compose
Type or paste code. The editor highlights in real time and tracks language, lines and columns.
zero-server · client-side · encoded in the link
Paste a snippet, pick the language, get a permanent-looking link with real syntax highlighting. The code is the link - nothing is stored on a server.
$codebin init
Your snippet is packed into the URL - share it anywhere.
live samples, rendered by the same highlighter.
no accounts, no uploads, no tracking.
Type or paste code. The editor highlights in real time and tracks language, lines and columns.
The payload is compressed with DEFLATE and encoded into the URL fragment. No request leaves your machine.
Send the link. Anyone who opens it sees a rendered, copyable, downloadable snippet.
snippets you minted on this device. stored locally, never uploaded.
a snippet bin that refuses to own your data.
codebin ships in two modes and picks one automatically. With a KV store connected, snippets are saved server-side and you get short links, view counts, comments and ratings - the full reference behaviour. Without one, the payload is compressed and written straight into the URL, so links still work anywhere.
The serverless API is built from plain /api functions with zero npm dependencies: three thin handlers over a KV REST endpoint (Vercel KV or Upstash). Nothing runs on a long-lived server.
curl /s/<id>/raw - and one-click export to a secret GitHub gist.KV_REST_API_URL / KV_REST_API_TOKEN are injected automatically./api/health then reports storage: true and short links turn on.ctrl + enter - mint linktab - insert two spaces in the editoresc - clear focus