SNIP.thgenius.xyz
Open scratchpad

About snip

A scratchpad for code, documents and diagrams with live previews. Everything stays in the link itself, so there are no accounts, no cookies and no database.

Previews

HTML
Runs in a sandbox. Switch between desktop, laptop, tablet and phone widths.
Markdown
READMEs and specs with tables, checklists and Mermaid diagrams inside.
Mermaid
Flowcharts, sequences, state machines, Gantt charts, journeys and ER diagrams.
Diff
Patches with added and removed lines coloured and numbered.
JSON
Formatted text or a tree you can expand and collapse.
PNG export
Save any preview as a 2x image or copy it to your clipboard.

Privacy

Your title and code are compressed in your browser and placed in the part of the address after the #. Browsers never send that part to a server, so the link is the only copy. Anyone with the link can open it, and nobody else can.

The one exception is the raw link (/api/raw?c=...). It carries your snippet in the query string so the server can return plain text, so that request does reach our server. Share the normal link to keep your code in the browser.

Terminal

The raw link returns your snippet as plain text, so you can use it directly from a terminal.

Apply a shared patch
curl -s "https://snip.thgenius.xyz/api/raw?c=..." | git apply
Download a script onto a server
curl -s "https://snip.thgenius.xyz/api/raw?c=..." > setup.sh && chmod +x setup.sh
Give an AI coding tool the context
agent "Review this spec: $(curl -s 'https://snip.thgenius.xyz/api/raw?c=...')"

Keyboard Shortcuts

  • Copy share linkCtrl / ⌘ + S
  • Open templatesCtrl / ⌘ + K
  • Editor onlyAlt + 1
  • Preview onlyAlt + 2
  • Side by sideAlt + 3
  • Close a dialogEsc
Ready to write or inspect something?
Open the editor to start from scratch or pick a template.
Open scratchpad