Skip to content

composemgr/lenpaste

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👋 Welcome to lenpaste 🚀

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.

📋 Features

  • 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

🔍 Project Status

Important: The original GitHub repository at github.com/lcomrade/lenpaste is no longer available. This fork maintains the project:

🐳 Docker Setup

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)

Environment Variables

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

Usage

  1. Ensure Docker and Docker Compose are installed
  2. Clone or download this configuration
  3. Start the services:
    docker-compose up -d
  4. Access Lenpaste at: http://172.17.0.1:59093

Updating

To update to the latest version:

docker-compose pull && docker-compose up -d && docker system prune -a -f

🔗 Resources

📚 Alternatives

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

📄 License

Lenpaste is licensed under AGPL-3.0 and written in Go.

Author

🤖 casjay: Github 🤖

About

Repo for lenpaste

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published