Repolode
szabodanika

szabodanika/microbin

A self-hosted, single-binary pastebin and file-sharing web app written in Rust, with optional encryption and URL shortening.

Open-source alternative to:PastebinWeTransfer

Stars
4,618
Forks
323
Open issues
104
Last commit
last month

What is it?

MicroBin is a small, self-hosted paste bin for sharing text, files and links. It ships as a single executable and needs only a few megabytes of memory and disk space, so it can run on modest servers or alongside other services.

Uploads can be plain text, one or more file attachments, or URL redirects. Each upload gets a readable identifier made of animal names, such as pig-dog-cat, and can be served as a web page, as raw text, or through a QR code. Uploads can be private or public, editable or read-only, and set to expire automatically or never. Both server-side and client-side end-to-end encryption are supported.

Storage uses either SQLite or a JSON file. The interface uses vanilla JavaScript and automatic dark mode, and the project is available on Cargo and Docker Hub.

Key features

  • 01Distributed as a single self-contained executable.
  • 02Server-side and client-side end-to-end encryption.
  • 03File uploads with multiple attachments and raw text serving.
  • 04URL shortening and redirection.
  • 05QR code generation for uploads.
  • 06Private or public, editable or read-only, and expiring or permanent uploads.
  • 07SQLite or JSON file storage.

Use cases

  • Sending long text snippets or code to a colleague.
  • Sharing large files that are too big for chat apps.
  • Sending sensitive documents or secrets with encryption.
  • Running a private URL shortener on your own server.
  • Serving configuration files or images via raw links for testing.

Quick start

  1. 1

    Install MicroBin from Cargo

    cargo install microbin
  2. 2

    Download the example .env configuration file

    curl -L -O https://raw.githubusercontent.com/szabodanika/microbin/master/.env
  3. 3

    Load the configuration into your shell

    source .env
  4. 4

    Start MicroBin

    microbin

Topics

FAQ

What is microbin?
A self-hosted, single-binary pastebin and file-sharing web app written in Rust, with optional encryption and URL shortening. MicroBin is a small, self-hosted paste bin for sharing text, files and links. It ships as a single executable and needs only a few megabytes of memory and disk space, so it can run on modest servers or alongside other services.
Is microbin free to use? What license does it have?
microbin is open source under the BSD-3-Clause license. Check the license terms before using it in commercial products.
Is microbin still maintained?
Updated within 6 months. The last commit to microbin was on Sep 8, 2026.
What can I use microbin for?
Sending long text snippets or code to a colleague. Sharing large files that are too big for chat apps. Sending sensitive documents or secrets with encryption. Running a private URL shortener on your own server. Serving configuration files or images via raw links for testing.
How do I install microbin?
Install MicroBin from Cargo: cargo install microbin Download the example .env configuration file: curl -L -O https://raw.githubusercontent.com/szabodanika/microbin/master/.env Load the configuration into your shell: source .env Start MicroBin: microbin
Where can I get microbin?
The source code and installation instructions are on GitHub: https://github.com/szabodanika/microbin

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects