Paste code, pick a theme and background, get a shareable image. Like Carbon, but self-hosted and with permanent share links.
- Renders code with syntax highlighting and a chosen background, padding, window chrome, and font size
POST /api/sharesaves the snippet config to SQLite and returns a short IDGET /s/:idre-renders the same snippet from any device (the page injects the saved config aswindow.__SHARED_SNIPPET__)- Open Graph meta tags are generated server-side so links unfurl in chats
Bun + Hono server, bun:sqlite for snippet storage, static HTML/JS frontend in public/.
bun install
bun run dev # or: bun run startThen open http://localhost:3300.
- No env vars required.
- SQLite db at
codeshot.dbnext toserver.ts. Created on first run.