Skip to content

Repository files navigation

naste

A minimal, self-hosted paste service for the command line.

No database. No frameworks. Just files.

Go CI Docker Docs


$ echo "hello world" | naste
https://paste.semi.sh/abc123

$ curl https://paste.semi.sh/abc123
hello world

$ cat secret.txt | naste --private --burner 1
https://paste.semi.sh/private/x7Kp2q   # deleted after first view

Features

  • Burner pastes - auto-delete after N views, one-time secrets with no cleanup job
  • Private pastes - HTTP Basic Auth, no accounts needed
  • Custom slugs - readable URLs with file extensions (naste --slug deploy.sh)
  • Syntax highlighting - auto-detected from file extension, dark theme in browser
  • Full CLI - naste get, naste ls, naste rm for managing pastes
  • Zero dependencies - Go stdlib only, single static binary
  • Docker / NixOS / Home Manager - multi-arch images version-tagged on releases, declarative modules with sops-nix

Install

go install github.com/semi710/naste/cmd/naste@latest

Or run without installing:

echo "hello" | nix run github:semi710/naste#naste --

Deploy

docker run -d --name naste -p 8080:8080 -v /var/lib/naste/data:/data/paste \
  ghcr.io/semi710/naste-server:latest

NixOS:

services.naste-server.enable = true;
programs.naste-client = {
  enable = true;
  endpoint = "https://paste.semi.sh";
};

Documentation

Full docs at naste.semi.sh - CLI usage, Docker, Nix, NixOS module, Home Manager, API reference, reverse proxy guides.

About

A minimal, self-hosted paste service for the command line. No database, no frameworks, just files. Go binary + CLI client, Docker, NixOS and Home Manager modules.

Topics

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages