Description
pbnj is a minimal, self-hosted pastebin for sharing code snippets and text files through a simple URL. It has no public accounts and none of the extras of larger paste services; you deploy your own copy and paste into it. Deployment is designed for Cloudflare: a Deploy to Cloudflare button on the GitHub repository forks the project to your account and sets it up, and the documentation works through why the Cloudflare D1 free tier should cover typical use. Everything is configured in a single pbnj.config.js file, including the name, logo and the style of generated IDs. You can create pastes from a web interface with session-based login, from a command-line tool installed with npm install -g @pbnjs/cli, or through an API using a bearer token. It suits developers who want a private paste service they control.…
Highlights
- Self-hosted pastebin for code and text
- One-click deploy to Cloudflare
- CLI installed via npm
- API with bearer token authentication
- Web interface with session login
- Single config file for name, logo and ID style
Ratings & Reviews
No ratings yet
Be the first to rate pbnj.
People also visit
pbnj FAQ
What is pbnj?
A simple, minimal self-hosted pastebin that lets you share code snippets and text files with a short URL.
How do I deploy it?
Use the Deploy to Cloudflare button on the GitHub repo, which forks the repository to your GitHub account and sets up the deployment.
How do I use it from the terminal?
Install the CLI with npm install -g @pbnjs/cli and run pbnj --init to create your configuration.
Will it cost money to run?
The documentation includes a cost breakdown based on the Cloudflare D1 free tier, which offers 500 MB of storage and 5 million reads a day.
What are the best pbnj alternatives?
Popular alternatives to pbnj include Pastefy, PrivateBin and pastebin.com. See all pbnj alternatives