#pastebin #actix #selfhosted #pastabin #microbin

app microbin

Simple, performant, configurable, entirely self-contained Pastebin and URL shortener

4 stable releases

1.2.1 Mar 26, 2023
1.2.0 Nov 7, 2022
1.1.0 Jul 31, 2022
1.0.2 Jun 4, 2022

#91 in HTTP server

Download history 9/week @ 2023-02-06 17/week @ 2023-02-13 11/week @ 2023-02-20 4/week @ 2023-02-27 10/week @ 2023-03-06 10/week @ 2023-03-13 26/week @ 2023-03-20 28/week @ 2023-03-27 16/week @ 2023-04-03 29/week @ 2023-04-10 15/week @ 2023-04-17 4/week @ 2023-04-24 8/week @ 2023-05-01 23/week @ 2023-05-08 15/week @ 2023-05-15 22/week @ 2023-05-22

68 downloads per month





Build crates.io Docker Image Docker Pulls Support Server

MicroBin is a super tiny, feature rich, configurable, self-contained and self-hosted paste bin web application. It is very easy to set up and use, and will only require a few megabytes of memory and disk storage. It takes only a couple minutes to set it up, why not give it a try now?

Install from Cargo:

cargo install microbin

And run with your custom configuration:

microbin --port 8080 --public-path https://myserver.net --highlightsyntax --editable

Or get the Docker Image from Dockerhub: danielszabo99/microbin.

On our website microbin.eu you will find the following:


  • Is very small
  • Entirely self-contained executable, MicroBin is a single file!
  • Animal names instead of random numbers for pasta identifiers (64 animals)
  • File uploads (eg. server.com/file/pig-dog-cat)
  • Raw text serving (eg. server.com/raw/pig-dog-cat)
  • URL shortening and redirection
  • QR code support
  • Very simple database (JSON + files) for portability, easy backups and integration
  • Listing and manually removing pastas (/pastalist)
  • Private and public, editable and final, automatically and never expiring pastas
  • Syntax highlighting
  • Automatic dark mode and custom styling support with very little CSS and only vanilla JS (see water.css)
  • Most of the above can be toggled on and off!

What is a "pasta" anyway?

In MicroBin, a pasta can be:

  • A text that you want to paste from one machine to another, eg. some code,
  • A file that you want to share, eg. a video that is too large for Discord, a zip with a code project in it or an image,
  • A URL redirect.

When is MicroBin useful?

You can use MicroBin:

  • As a URL shortener/redirect service,
  • To send long texts to other people,
  • To send large files to other people,
  • To serve content on the web, eg. configuration files for testing, images, or any other file content using the Raw functionality,
  • To move files between your desktop and a server you access from the console,
  • As a "postbox" service where people can upload their files or texts, but they cannot see or remove what others sent you - just disable the pastalist page
  • To take notes! Simply create an editable pasta.

...and many other things, why not get creative?

MicroBin and MicroBin.eu are available under the BSD 3-Clause License.

© Dániel Szabó 2022


~674K SLoC