Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Introduction
bin is a truly minimal Pastebin (text pasting and sharing) application. The author deliberately left out the extras common in typical paste tools: no database, no comments, no burn-after-reading or timed self-destructing messages, and no social media integration. It does just one thing: quickly send a piece of text to someone else.
The project is written in Rust, with a core of roughly 300 lines of code, so it runs fast and has a simple structure. The official demo instance is bin.gy.
Key Features
- Text pasting and sharing: Submit text to get a short link, then simply send the link to others.
- Code highlighting: Add a file extension (for example
.rsor.py) to the end of a paste link, and the page will highlight the content in the corresponding language. - Easy select-all and copy: On the paste page you can select all the content directly with ⌘+A, without opening a separate plain-text page.
- Command-line support: You can upload and read pastes directly with curl:
$ curl -X PUT --data 'hello world' https://bin.gy
https://bin.gy/cateettary
$ curl https://bin.gy/cateettary
hello world
- Automatic capacity rotation: You can set the maximum number of pastes to keep; once it is exceeded, older content is evicted on a rotating basis.
- Paste size limit: You can set the maximum size in bytes of a single paste.
Who It's For
- Developers and sysadmins who want to self-host a lightweight, private paste service
- Command-line users who often share logs, configuration or code snippets from the terminal
- Individuals or small teams who don't need accounts, comments, expiration policies or other complex features, and just want a simple paste tool
Core Strengths
- Minimal: A small codebase with no unnecessary features, easy to review and maintain.
- Zero-dependency deployment: No database required; a single executable is enough to run it.
- Good performance: Built on Rust, it runs fast and uses few resources.
- Command-line friendly: Native support for curl PUT uploads and GET reads.
Installation and Deployment
Option 1: Download a prebuilt release
Download the latest version from the GitHub Releases page, extract it, and run:
$ ./bin
Option 2: Build from source
# nix-shell provides an environment that includes rust/cargo
$ nix-shell
$ cargo build --release
$ ./target/release/bin
The repository also provides a Dockerfile and a docker-compose.yml for container deployment, as well as a flake.nix for the convenience of Nix users.
Configuration Options
Usage: bin [<bind_addr>] [--buffer-size <buffer-size>] [--max-paste-size <max-paste-size>]
bind_addr: The socket address to listen on,127.0.0.1:8820by default--buffer-size: The maximum number of pastes to keep before rotating, 1000 by default--max-paste-size: The maximum size in bytes of a single paste, 32kB by default
Technical Requirements
- Running the prebuilt binary requires no extra dependencies and no database
- Building from source requires the Rust/Cargo toolchain
- By default it only listens on the local address; to serve it externally, you need to change the bind address or put a reverse proxy in front of it
Things to Note
- Burn-after-reading, expiration times, comments, accounts and similar features are not supported. If you need them, consider other Pastebin solutions.
- Once the number of pastes reaches the limit, older content is rotated out, so it is not suitable for long-term archiving.
- The project ships with multiple license files, including 0BSD and WTFPL, both of which are very permissive licenses.
Discover more
Wastebin
Lightweight, minimal and fast pastebin with an SQLite backend.
lesma
Simple paste app friendly with browser and command line.
1time
Zero-knowledge one-time secret sharing. End-to-end encrypted, self-hosted, open source.
BinPastes
Minimal pastebin supporting client-side encryption, fulltext search, one-time messages. Intended for one to few users looking for a simple pastebin deployment.
ByteStash
A code snippet storage solution written in React & node.js
Chiyogami
Yet another pastebin