Snip

Self-hosted code & file sharing platform. Single Go binary, zero dependencies, runs anywhere.

MIT License Go 1.21+ SQLite Single Binary

Why Snip?

Other ToolsSnip
GitHub Gist requires accountSelf-hosted, anonymous by default
transfer.sh is unmaintainedActive development
PrivateBin is PHP + JS heavySingle 13MB Go binary
hastebin is deadREST API, modern UI

Quick Install

One-line install

bash
curl -L https://github.com/Vesper36/snip/releases/latest/download/install.sh | bash

Docker

bash
docker run -d -p 53524:53524 --name snip vesper/snip

From source

bash
git clone https://github.com/Vesper36/snip.git
cd snip
go build -o snip ./cmd/server
./snip

Open http://localhost:53524 and start sharing code.

Highlights

Auto Expiry

Set paste expiration from 10 minutes to 1 month. Automatic cleanup.

Password Protection

bcrypt encryption for sensitive pastes. Content stays secure.

Burn After Reading

Self-destructing pastes deleted after first view.

REST API

Full REST API with token authentication. CLI-friendly.

40+ Languages

Auto-detection syntax highlighting powered by Highlight.js.

Single Binary

Zero external dependencies. 13MB binary, runs anywhere.

Next Steps