Lenpaste is an open-source, self-hosted pastebin alternative that allows you to share notes and code snippets anonymously. It's a minimalist web service similar to pastebin.com with its own API.
- No registration required
- Syntax highlighting for multiple languages
- Optional paste expiration times
- Embed support via iframe
- Works without JavaScript
- Own API for programmatic access
- SQLite or PostgreSQL database support
- Rate limiting controls
- Dark/light theme support
Important: The original GitHub repository at github.com/lcomrade/lenpaste is no longer available. This fork maintains the project:
- Maintained Fork: github.com/casjay-forks/lenpaste
- Docker Image (GHCR):
ghcr.io/lcomrade/lenpaste:1.3.1
This setup uses PostgreSQL as the database backend with the following features:
- Port: 172.17.0.1:59093 (mapped to nginx proxy)
- Database: PostgreSQL 16
- Version: Lenpaste 1.3.1
- Theme: Dark mode default
- Rate Limits: Configured for paste creation (30/5min, 60/15min, 120/hour)
Key configuration options in the docker-compose.yaml:
LENPASTE_DB_DRIVER=postgres # Database type (sqlite3 or postgres)
LENPASTE_DB_CLEANUP_PERIOD=1m # Database cleanup interval
LENPASTE_TITLE_MAX_LENGTH=120 # Max title length
LENPASTE_BODY_MAX_LENGTH=9999999999999999 # Max paste body length
LENPASTE_MAX_PASTE_LIFETIME=unlimited # Max paste lifetime
LENPASTE_UI_DEFAULT_LIFETIME=never # Default paste expiration
LENPASTE_UI_DEFAULT_THEME=dark # Default UI theme- Ensure Docker and Docker Compose are installed
- Clone or download this configuration
- Start the services:
docker-compose up -d
- Access Lenpaste at:
http://172.17.0.1:59093
To update to the latest version:
docker-compose pull && docker-compose up -d && docker system prune -a -f- Maintained Fork Repository
- Setup Guide - Noted.lol
- Docker Installation Guide - Marius Hosting
- Alternative Pastebins - awesome-selfhosted
If you're looking for other self-hosted pastebin options:
- PrivateBin - Encrypted pastebin with zero-knowledge (recommended)
- Opengist - Git-backed pastebin, similar to GitHub Gist
- MicroBin - Lightweight Rust-based pastebin with URL shortener
- Wastebin - Minimal, fast pastebin with SQLite backend
Lenpaste is licensed under AGPL-3.0 and written in Go.
🤖 casjay: Github 🤖