naste — minimal paste service

A self-hosted paste service for the command line. No database. No frameworks. Just files. Host your own for privacy or provide it as a free service to others.

Quick Start

# Pipe any text
echo "hello world" | naste
# → https://your-domain.com/abc123

# With a custom slug
cat deploy.sh | naste --slug deploy

# Private paste
cat secrets.env | naste --private

# Install via go
go install github.com/semi710/naste/cmd/naste@latest

# Or run with nix (no install needed)
echo "hello world" | nix run github:semi710/naste#naste --

API Endpoints

POST /api/paste         # Create paste
GET  /{slug}            # View paste (HTML in browser, raw with curl)
GET  /{slug}?raw=1      # Force raw text
GET  /private/{slug}    # Private paste (Basic Auth)
GET  /health            # Health check