Snipplr

Best Self Hosted Alternatives to Snipplr

A curated collection of the 14 best self hosted alternatives to Snipplr.

Web-based snippet manager for storing, organizing and sharing code snippets with tags and syntax highlighting, aimed at helping developers and teams maintain searchable snippet libraries for code reuse and collaboration.

Alternatives List

#1
PrivateBin

PrivateBin

PrivateBin is a minimalist zero-knowledge pastebin that encrypts and decrypts pastes in the browser, with optional passwords, expiration, discussions, and file uploads.

PrivateBin screenshot

PrivateBin is a minimalist online pastebin designed so the server has zero knowledge of the pasted content. Pastes are encrypted and decrypted in the browser, and only the encrypted payload is stored server-side.

Key Features

  • Client-side encryption and decryption using 256-bit AES-GCM
  • Optional password protection for an additional layer beyond the URL key
  • Expiration controls, including “burn after reading” and “forever”
  • Optional discussions/comments with nicknames and identicons/vizhashes
  • Markdown rendering with preview and optional syntax highlighting for code
  • Optional file uploads with image/media/PDF preview (configurable, often disabled by default)
  • Customizable templates/themes and built-in translation support
  • QR code generation for paste URLs

Use Cases

  • Securely sharing snippets, notes, or code where the server should not read the content
  • One-time or time-limited sharing of sensitive troubleshooting details
  • Hosting an internal paste service for teams with optional discussion threads

Limitations and Considerations

  • Users must trust the instance operator not to serve modified client code; HTTPS is required for safe use
  • The encryption key is part of the URL, so sharing the URL publicly reveals the paste unless a password is used
  • Access logs may still reveal metadata such as who accessed a paste

PrivateBin is well-suited for privacy-focused paste sharing, offering strong client-side cryptography with practical features like expiration, passwords, and optional discussions. It provides a simple, self-contained way to run a paste service while minimizing server-side exposure to plaintext data.

7.9kstars
953forks
#2
MicroBin

MicroBin

MicroBin is a lightweight, secure pastebin for sharing text, files, and short URLs with optional encryption, expiration controls, and raw file serving.

MicroBin screenshot

MicroBin is a small, self-contained pastebin web application for sharing text snippets, files, and URL redirects. It focuses on simple deployment, strong security options, and flexible sharing controls.

Key Features

  • Text pastes, file uploads, and URL shortening/redirection in one service
  • Multiple encryption modes (including client-side and server-side options)
  • Expiration controls (auto-expiring or never expiring) and visibility controls (public/private)
  • Raw text/file serving for direct access to uploaded content
  • QR code generation for easy cross-device sharing
  • Single-binary deployment with low resource usage
  • Storage backends including SQLite and JSON

Use Cases

  • Sharing code snippets or logs between machines and teammates
  • Securely sending files or sensitive notes via password-protected links
  • Running a lightweight internal URL shortener and redirect service

Limitations and Considerations

  • Designed for simple sharing workflows rather than full cloud-drive features like sync, versioning, or collaborative editing

MicroBin is a solid choice when you need a compact paste-and-share service that is easy to run and offers practical security and expiration features. It fits well for personal servers, teams, and lightweight internal tooling.

4kstars
257forks
#3
Opengist

Opengist

Self-hosted pastebin powered by Git. Create, share and manage public, unlisted or private code snippets with syntax highlighting, Git push/pull, OAuth logins and Docker/Helm deployment.

Opengist screenshot

Opengist is a self-hosted pastebin that stores snippets as Git repositories and exposes a web UI and JSON API for creating, browsing and embedding code snippets. It is written in Go and designed for fast deployment with Docker or a native binary.

Key Features

  • Store snippets in Git repositories with full revision history and standard git push/pull over HTTP or SSH
  • Create public, unlisted or private snippets; like, fork and tag snippets with topics
  • Syntax highlighting, Markdown and CSV rendering; editor with indentation controls and drag-and-drop files
  • Search snippets, browse users, likes and forks; download raw files or ZIP archives
  • OAuth2 login (GitHub, GitLab, Gitea, OpenID Connect) and avatar support via Gravatar/OAuth providers
  • Admin panel with user/gist management, repo sync and git garbage collection
  • Supports SQLite, PostgreSQL or MySQL as backend databases
  • Distributed deployment options: Docker image, docker-compose configuration and Helm chart

Use Cases

  • Host an internal team gist/pastebin for sharing code snippets, configs and small scripts
  • Publish embeddable code samples or documentation snippets on blogs and docs sites
  • Maintain private or unlisted snippets for onboarding, secure notes, or ephemeral sharing between developers

Limitations and Considerations

  • Requires Git (recommended 2.28+) and OpenSSH for SSH-based Git operations; SSH support depends on system OpenSSH setup
  • Because each snippet is stored in Git, very large numbers of fragments can increase repository size and may impact search or git operation performance; plan storage and backups accordingly

Opengist is a focused, Git-centric alternative to gist-style services, offering familiar git workflows and a lightweight web UI. It is suitable for teams that want snippet hosting under their own control and integrates with common auth providers and containerized deployment workflows.

2.9kstars
145forks
#4
ByteStash

ByteStash

ByteStash is a self-hosted snippet manager for creating, editing, and filtering code snippets with secure storage in SQLite and an optional API with Swagger UI.

ByteStash screenshot

ByteStash is a self-hosted web application for storing, organizing, and managing code snippets in a central place. It provides a simple UI for creating, editing, and searching snippets, with data stored in a local database.

Key Features

  • Create, edit, and manage code snippets from a web interface
  • Filter and search snippets by programming language and content keywords
  • Secure snippet storage backed by a SQLite database
  • Optional authentication and configuration via environment variables (including JWT-based sessions)
  • API endpoints with built-in Swagger UI documentation
  • Docker-based deployment support (including docker-compose)

Use Cases

  • Personal or team snippet library for frequently reused code patterns
  • Centralized reference for scripts, commands, and configuration fragments
  • Lightweight internal tool for organizing language-specific examples

Limitations and Considerations

  • SQLite is optimized for lightweight and moderate concurrency; very high write concurrency may require careful usage patterns

ByteStash is a pragmatic choice for individuals or small teams that want a straightforward, self-hosted snippet vault. Its filtering/search and API documentation make it practical for both day-to-day browsing and basic integrations.

2kstars
95forks
#5
Rustypaste

Rustypaste

Lightweight single-binary Rust pastebin and file-upload server with expiring and one-shot links, URL shortening, MIME detection and simple token auth.

Rustypaste screenshot

Rustypaste is a minimal file upload and pastebin service implemented in Rust. It provides a single-binary HTTP server and a companion CLI for uploading files, creating short or one-shot URLs, and managing expirations.

Key Features

  • HTTP file upload, URL shortening and upload-from-URL support.
  • One-shot links (files/URLs that can be viewed only once) and expiring links with optional auto-deletion.
  • Random filename strategies (petname, alphanumeric, random suffix) and optional duplicate detection.
  • MIME type guessing with override/blacklist and support for forcing downloads via query parameter.
  • Basic HTTP token authentication support and token-protected delete endpoint.
  • Single-binary distribution (cargo/crates) with prebuilt packages for various platforms and Docker images.
  • Simple TOML configuration with hot-reload support and optional features for rustls/openssl and shuttle integration.

Use Cases

  • Share logs, snippets, or files quickly between team members without creating accounts.
  • Provide temporary or one-off download links for CI artifacts, debug data, or support traces.
  • Short-lived URL shortening for ephemeral links or temporary redirects.

Limitations and Considerations

  • Authentication is token-based (basic HTTP auth via tokens); there is no built-in OAuth, SAML, or advanced RBAC.
  • No built-in web admin dashboard (third-party UIs/clients exist); management is via CLI, HTTP endpoints, or the filesystem.
  • Uses the local filesystem for storage (no database), so metadata/querying is limited and scaling requires external proxies or storage strategies.

Rustypaste is designed for simplicity and performance: a compact Rust binary that covers common pastebin and temporary file-sharing needs while remaining configurable and easy to deploy.

1.1kstars
69forks
#6
bin

bin

A fast, minimalist pastebin written in Rust with syntax highlighting and no database, comments, or social features.

bin is a minimalist paste bin written in Rust. It provides a simple interface to store text snippets without a database, comments, or self-destructing messages, focusing on speed and simplicity.

Key Features

  • Minimalist paste bin with no database, no commenting functionality, and no social features
  • Implemented in Rust with around 300 lines of code
  • Lightweight HTTP-style workflow for pasting and retrieving text
  • Syntax highlighting by file extension

Use Cases

  • Quickly share code snippets or text with others
  • Lightweight alternative to heavier pastebin services in constrained environments
  • Temporary notes or snippets for quick collaboration

Conclusion

bin is a tiny, fast paste bin that emphasizes simplicity and instant sharing of text snippets without extra features.

627stars
56forks
#7
dpaste

dpaste

dpaste is an open source Django pastebin for publishing and sharing text snippets with optional self-hosting via standard Django or Docker deployments.

dpaste screenshot

dpaste is a pastebin application built with Python and Django for publishing and sharing text snippets. It is designed to run as a standalone Django site, or to be integrated into an existing Django project as a reusable app.

Key Features

  • Create and publish text pastes for easy sharing
  • Web UI for submitting and viewing pastes
  • Can run as a regular Django project or be embedded into another Django project
  • Container-friendly deployment (Docker support)

Use Cases

  • Sharing logs and configuration snippets during support or incident response
  • Exchanging code snippets in teams without using a full code forge
  • Hosting a private paste service for an organization or homelab

Limitations and Considerations

  • Public instances may require strong abuse prevention and moderation processes due to potential malicious content submissions
  • Requires a modern Python and Django version (at least Python 3.9 and Django 3.2)

dpaste is a practical choice for anyone who wants a straightforward, self-managed paste service with the flexibility of Django-based customization and deployments. It fits both small private deployments and larger installations that need integration into an existing Django stack.

622stars
126forks
#8
Paaster

Paaster

Self-hostable pastebin focused on privacy, with browser-side end-to-end encryption, paste history, expiring pastes, and file drag-and-drop.

Paaster screenshot

Paaster is a privacy-focused pastebin designed for sharing code and text securely. Pasts are encrypted in the browser using a secret that is never sent to the server, keeping the server unable to read content while still enabling sharing via links.

Key Features

  • Browser-side end-to-end encryption for paste content
  • Paste history stored client-side (IndexedDB) for quick access to previous pastes
  • Expiration options, including delete-after-view and time-based deletion
  • File drag-and-drop uploads alongside text pastes
  • Share options such as QR codes and keyboard shortcuts
  • Theme support, i18n, and automatic/manual language detection
  • Designed to avoid dynamically loaded third-party dependencies to reduce supply-chain risk

Use Cases

  • Share sensitive code snippets or logs with collaborators without exposing plaintext to the server
  • Provide temporary one-time secrets or snippets using delete-after-view
  • Host an internal paste service for teams that want simple, privacy-centric sharing

Limitations and Considerations

  • Stored client secrets (for history and managing pastes) rely on browser storage, and trust depends on the integrity of the built frontend
  • Requires object storage compatible with the S3 API for paste storage

Paaster is a strong fit for users who want a straightforward pastebin with encryption always enabled and a small, usability-oriented feature set. It pairs well with typical reverse-proxy setups and common S3-compatible storage providers for flexible deployments.

513stars
23forks
#9
Chiyogami

Chiyogami

Modern pastebin offering client-side encryption, configurable expiry, user accounts, public search and a REST API. Built with Go, SQLite and TailwindCSS.

Chiyogami screenshot

Chiyogami is a modern, self-hosted pastebin that provides encrypted and unencrypted pastes, user accounts, configurable expirations and a REST API for programmatic use. It combines a Go-based backend with a responsive JavaScript frontend and is distributed as a Docker image for easy deployment.

Key Features

  • Client-side encryption using the WebCrypto API for encrypted pastes; server does not store user passwords.
  • Configurable paste expiration (hours, days, never) and visibility modes: Public, Unlisted, Private.
  • User accounts and session-based paste ownership with endpoints for create, fetch, delete and instance info.
  • Syntax highlighting and Markdown rendering in the browser (uses HighlightJS and Marked for formatting).
  • Lightweight SQLite storage and built-in rate limiting to mitigate abuse.
  • Docker-ready distribution and example docker-compose; optional pre-built container image available.

Use Cases

  • Share code snippets or notes with configurable lifetime and optional client-side encryption.
  • Provide a small internal or team paste service for temporary file/text sharing behind a reverse proxy.
  • Integrate creation and retrieval of short-lived pastes into scripts, CI jobs or automation via the REST API.

Limitations and Considerations

  • Client-side encryption depends on the browser WebCrypto implementation; losing the encryption key/password may render encrypted pastes unrecoverable.
  • Uses SQLite for storage which is suitable for small-to-medium deployments but may be a scaling constraint for high-volume instances.
  • The README notes a /health endpoint that should be protected when exposed publicly to avoid information disclosure or abuse.

Chiyogami is a compact, developer-focused pastebin designed for easy self-hosting, quick sharing and scriptable workflows. It emphasizes privacy via client-side encryption and simple deployment via Docker.

70stars
4forks
#10
Snippets Library

Snippets Library

Full-stack code snippet manager with server-side Shiki highlighting, instant search, GitHub OAuth, public share links, bookmarks, likes and Postgres-backed storage.

Snippets Library screenshot

Snippets Library is a full-stack code snippet manager for storing, organizing, and sharing code with high-quality syntax highlighting and search. It provides authenticated snippet storage, public share links with view/like tracking, per-user settings, and a RESTful API surface for snippet management.

Key Features

  • Create, edit, delete and organize code snippets with metadata (title, description, language, tags).
  • Server-side syntax highlighting using Shiki with a cached highlighting service and fallback language detection.
  • Public share links implemented via secure random share IDs with view counting, like/unlike and copy-as-new-snippet actions.
  • Per-user bookmarks, likes, and persistent user settings stored in a JSONB settings object.
  • Authentication via NextAuth (GitHub provider) with a Drizzle adapter; sessions stored in the database.
  • Postgres-backed schema using Drizzle ORM; includes snippet views, likes, bookmarks and user tables plus migration scripts.
  • Instant search, pagination, language filtering and tag-based queries on the snippets API.
  • Utility endpoints for language detection, health checks and user settings.

Use Cases

  • Maintain a personal searchable library of commonly used code snippets and templates.
  • Share public examples or utilities with teammates using secure share links and track engagement.
  • Seed a developer blog or documentation with copyable, highlighted snippets and preserve authorship and metadata.

Limitations and Considerations

  • Default authentication is configured for GitHub OAuth; additional providers require custom NextAuth configuration.
  • Requires a PostgreSQL database and appropriate environment variables; migrations are managed via drizzle-kit.
  • Shiki-based server-side highlighting can increase memory/CPU usage at scale and may require caching/worker tuning.
  • The repository snapshot contains no bundled unit tests; testing must be added if required by deployments.

Snippets Library is suited for developers and teams who need a lightweight, self-hosted snippet manager with high-quality highlighting and sharing features. It is configurable for production deployments but requires standard Node/Postgres infrastructure and OAuth credentials to enable authentication.

58stars
6forks
#11
BinPastes

BinPastes

Lightweight, self-hostable pastebin (Java backend + TypeScript frontend) with full-text search, expiry, adjustable visibility and client-side encryption.

BinPastes is a minimal pastebin implementation intended for small self-hosted deployments. It provides a Java-based backend and a TypeScript frontend delivering searchable notes with optional expiry and client-side encryption.

Key Features

  • Full-text search and overview of stored notes for quick lookup.
  • Configurable expiry for notes (one-time or time-limited) and adjustable visibility/exposure settings.
  • Client-side encryption of paste content so the server never stores plaintext if used.
  • Dark mode and a lightweight TypeScript/CSS frontend for readable UI.
  • Packaged as a single runnable Java artifact (produced via Maven) for straightforward deployment.
  • Supports MySQL (production profile) and is built for JDK 21+.

Use Cases

  • Securely sharing short notes, credentials, or snippets among a small team with optional expiry.
  • Storing one-time messages or ephemeral logs that self-expire after a set period.
  • Developer snippet manager for private code examples and configuration snippets with full-text search.

Limitations and Considerations

  • Requires JDK 21+ and MySQL 8+ for the production profile; an application properties file must be provided for MySQL configuration.
  • Distributed/large-scale deployments may need additional operational work (no official container image referenced in repository; build uses the provided Maven wrapper).

BinPastes is a compact, pragmatic pastebin focused on privacy (client-side encryption) and simplicity. It is suitable for small teams or individuals who want a searchable, expiring paste service they control.

12stars
1forks
#12
GigaPaste

GigaPaste

Lightweight pastebin for creating, sharing, and storing text/code snippets. Repository has been moved and further development continues under SuperBin.

GigaPaste is a lightweight pastebin-style application for creating and sharing text or code snippets. The original repository indicates the project has been moved and continued under a successor project named SuperBin.

Key Features

  • Create and share text or code snippets with unique URLs
  • Raw view of pastes for easy copy/download
  • Lightweight design focused on quick snippet storage and retrieval
  • Intended support for expiration and privacy controls (public/private pastes)

Use Cases

  • Share code samples or logs with teammates during debugging
  • Store short text notes or one-off scripts for temporary collaboration
  • Provide a raw endpoint for embedding or programmatic retrieval of snippets

Limitations and Considerations

  • The original GigaPaste repository indicates it has been moved; active development and maintenance are continued in the successor project SuperBin
  • Specific features (syntax highlighting, API endpoints, authentication options) vary by fork and may not be present in all distributions

GigaPaste is suitable for users seeking a minimal pastebin/self-hosted snippet service or a starting point that has since been continued under a successor project. Review the successor repository for the most up-to-date features and security fixes.

2stars
0forks
#13
SnyPy

SnyPy

SnyPy is a self-hostable snippet manager to store, tag, and search code/command snippets with a simple web UI and API-friendly structure.

SnyPy screenshot

SnyPy is a personal snippet manager for collecting code fragments, shell commands, and notes so they remain searchable and reusable over time. It focuses on organizing snippets with lightweight metadata and fast retrieval.

Key Features

  • Create and manage snippets with titles, content, and syntax highlighting (where supported)
  • Organize snippets using tags for quick filtering and browsing
  • Full-text search across snippet content to quickly find commands/code
  • Web-based interface suitable for personal or small-team use
  • Import/export or backup-friendly data handling (project-oriented storage)

Use Cases

  • Maintain a personal library of reusable code patterns and utilities
  • Store operational runbooks (CLI commands, one-liners, config fragments)
  • Share a curated set of snippets inside a small team or lab environment

SnyPy is best suited for users who want a straightforward, searchable “snippet notebook” that they can run on their own infrastructure. It provides the core snippet-management workflow—capture, organize, and retrieve—without the overhead of a full documentation or wiki platform.

#14
lesma

lesma

Lesma is a lightweight pastebin service designed for both web browsers and command-line workflows, offering quick sharing of text snippets and pastes.

lesma screenshot

Lesma is a simple paste application (pastebin) built for quick sharing of text from either a web browser or the command line. It targets minimalist “sprunge/hastebin-like” workflows where creating and retrieving pastes is fast and straightforward.

Key Features

  • Create and retrieve text pastes via a web interface
  • Command-line friendly usage for piping output and sharing logs/snippets
  • Simple, lightweight design focused on fast paste creation
  • Optional limits and basic controls (for example, download/count limits depending on deployment configuration)

Use Cases

  • Share logs and command output during troubleshooting
  • Exchange code snippets or configuration fragments within a team
  • Provide a quick internal paste service for a homelab or small organization

Lesma is best suited for users who want a minimal pastebin with an easy CLI-oriented workflow and a small operational footprint. It provides a practical alternative to public paste services when you need more control over where your pastes are stored.

Why choose an open source alternative?

  • Data ownership: Keep your data on your own servers
  • No vendor lock-in: Freedom to switch or modify at any time
  • Cost savings: Reduce or eliminate subscription fees
  • Transparency: Audit the code and know exactly what's running