hop · short links
Short links & pastes, one small tool
https://go.divyam.top/<slug> redirects to a long URL you chose. Slugs can be yours (/k8s) or random (/Xk3Pq); visits are counted. Anyone can make one here without an account: random slug, gone after 7d, and visitors see a confirmation page naming the destination before they are sent on. With the write token, links get custom slugs, any lifetime and a direct redirect.
Need to share text instead? paste.divyam.top
How it works
- 1ShortenPaste a long http(s) URL below — no account, no token. Anonymous links get a random slug and expire after 7d.
- 2ShareCopy the short URL. People who open it see where it leads and click Continue.
- 3Unlock (optional)With the write token you get custom slugs, longer or permanent links, a direct redirect, a list of your links and delete.
Create a short link in the browser
Have the write token? Unlock for custom slugs, longer or permanent links without the confirmation page, list & delete.
Locked. The token is the HOP_TOKEN value — see “Where is my token” below.
From the terminal
From the voyager repo
make short URL=https://kubernetes.io/docs/ SLUG=k8s
make short URL=https://example.com/very/long/path
make paste FILE=notes.md
Each prints the URL to share. The token is read over ssh from the box.
The hop CLI
export HOP_API=https://go.divyam.top
hop login # stores the token locally
hop link https://example.com/docs k8s
cat error.log | hop paste
HOP_TTL=1d hop paste secrets.txt
The same binary is the client (go build in the repo).
Plain curl
curl -sS -H "Authorization: Bearer $HOP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"url":"https://kubernetes.io/docs/","slug":"k8s"}' \
https://go.divyam.top/api/links
curl -sS -H "Authorization: Bearer $HOP_TOKEN" \
-H "X-Title: notes.md" -H "X-TTL: 7d" \
--data-binary @notes.md https://paste.divyam.top/api/pastes
Where is my token? Signed-in users make their own on the account page (hop login --token hop_u_…). The instance owner's token lives on the box: /opt/voyager/secrets/hop.env. Reading a link or a paste never needs it.