Back to services

BinPastes

Minimal pastebin supporting client-side encryption, fulltext search, one-time messages. Intended for one to few users looking for a simple pastebin deployment.

View alternatives to BinPastes
Suggest edit
Open source
Self-hostable
Apache-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

BinPastes is an open-source Pastebin (text/code paste sharing) application written by developer querwurzel. The project describes itself as "an easy-to-use Pastebin for self-hosters." The author had long used open-source Pastebin apps written in PHP, such as PasteBin, sticky-notes and Paste, and even maintained them himself so they would run on newer versions of PHP. Eventually he decided to write one of his own, and that is how BinPastes came about.

Key Features

  • Note overview and full-text search: Browse all notes on a single page and search them by content with full-text search.
  • Expiration: Notes can be set to expire automatically after a period of time, or kept permanently.
  • Visibility settings: The exposure level of each note can be set individually.
  • Client-side encryption: Content is encrypted in the browser before it is submitted, which makes it suitable for sharing sensitive text.
  • Dark mode: The interface comes with a built-in dark theme.
  • Single-file deployment: The build produces just one binpastes.jar, so whoever deploys it doesn't need to know which build tools, frameworks or programming languages the project uses.

Target Users and Use Cases

It suits individuals, tech enthusiasts and small teams who want to stay in control of their own data and replace public Pastebin services. You can use it to share code snippets, logs and configuration files, or to pass along a piece of sensitive text temporarily.

Technical Requirements

  • JDK 21 or later
  • MySQL 8 or later

The JDK only needs to be extracted to any location on the file system; the java executable is in the bin directory.

Deployment

  1. Configure: Copy application-mysql.properties from the repository, fill in mysql.host, mysql.database (default binpastes), mysql.username and mysql.password for your environment, then place the file next to binpastes.jar.
  2. Build:
./mvnw clean package -Denv=mysql

The resulting file is at backend/build/binpastes.jar. 3. Run:

java -Dspring.profiles.active=mysql -jar binpastes.jar

Notable Points

  • Released under the Apache License 2.0.
  • The code is split into backend and frontend parts and built with Maven. Judging from the spring.profiles.active startup parameter, the backend is probably based on Spring.
  • The project is small and simple to deploy, making it a good fit for users who want a lightweight, easy-to-maintain self-hosted Pastebin.