A lightweight service to anonymously share code snippets. Written in Go.
A public instance is available at https://paste.rowin.dev/.
This project is meant to be run behind Cloudflare as it relies on the CF-Connecting-IP
, CF-IPCountry
,
and Cloudflare-CDN-Cache-Control
headers.
- Light and dark mode (uses your operating system's setting)
- Quickly save using CTRL + S
- Syntax highlighted and raw pastes
Compiling this project requires CGO to be enabled because of the go-sqlite3
dependency.
CGO_ENABLED=1 go build
- SQLite for storing pastes
- Chi for routing
- highlight.js for syntax highlighting
- Toastify for toasts
- A DIY template engine that I made for fun