Short links
go.divyam.top/<slug> redirects wherever you point it — hop, a small Go service I wrote. Anyone can follow a link, and anyone can create one.
Example: go.divyam.top/hop → the repo.
Anyone can create a short link (no token): random slug, expires in 7 days, a confirmation page shows the destination before redirecting, 5/hour per IP; unlock with the token for custom slugs, longer/forever links without the confirmation page, and list/delete.
How to create one
- Browser, no token: open go.divyam.top, paste the URL → Create (random slug, 7 days, confirmation page on open).
- Browser, unlocked: same page, unlock with the token first — custom slug, any expiry, straight redirect.
- From the voyager repo:
make short URL=https://… [SLUG=k8s]
- hop CLI (once:
make hop-setup): hop link https://… [slug] · hop ls · hop rm <slug>
- curl:
curl -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"url":"https://…","slug":"k8s"}' https://go.divyam.top/api/links
Token: make hop-token (it lives on the box in secrets/hop.env). Slugs are [A-Za-z0-9_-]; a link can carry a ttl; hits are counted. Anonymous links get random slugs, expire in 7 days and open via a confirmation page.
Create a short link source
Pastes
The other half of hop: text, logs and command output at a URL — plain text for curl, a numbered, highlighted view in a browser. Pastes expire after 30 days unless told otherwise.
Anyone can paste (no token): text only, up to 32 KiB, expires in 24 h, 5/hour per IP; unlock with the token for 256 KiB / 30 days / forever and list/delete. Pick your own URL: open paste.divyam.top/<name> (1–15 letters/digits/-/_) and, if it is free, write the paste right there.
Read: paste.divyam.top/<id> · raw: /<id>/raw
How to create one
- Browser, no token: paste.divyam.top → type/paste → Create (24 h, 32 KiB).
- Browser, unlocked: same page, unlock with the token for the full limits, a title/language/expiry of your choice, and list/delete.
- From the voyager repo:
make paste FILE=notes.md (or FILE=/dev/stdin to pipe)
- hop CLI:
kubectl get pods | hop paste · hop paste deploy.sh --ttl 1d · hop rm <id>
- curl:
curl -H "Authorization: Bearer $TOKEN" -H "X-Title: notes.md" -H "X-TTL: 7d" --data-binary @notes.md https://paste.divyam.top/api/pastes
With the token: up to 256 KiB per paste; X-TTL: 0 / --ttl 0 keeps it forever. Same token as short links. Anonymous pastes are capped (32 KiB, 24 h) and rate-limited.
Create a paste