hop · pastes

Pastes & short links, one small tool

https://paste.divyam.top/<id> serves a piece of text — plain text for curl, a numbered view in a browser (/<id>/raw is always raw). Anyone can paste here without an account: up to 32.0 KiB, gone after 24h. With the write token, pastes go up to 256.0 KiB and live 30 days or forever.

Need a short link instead? go.divyam.top

How it works

  1. 1WriteType or drop text below — no account, no token. Anonymous pastes are capped at 32.0 KiB and expire after 24h.
  2. 2ShareCopy the URL. Reading is public (and lightly rate-limited).
  3. 3Unlock (optional)With the write token you get 256.0 KiB, 30 days or forever, a list of your pastes and delete.

Create a paste in the browser

Anonymous — up to 32.0 KiB, expires in 24h. Text only.

0 B
Have the write token? Unlock for 256.0 KiB, 30 days or forever, 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.