ByteStash - Keep track of your code from a single secure UI
ByteStash is a self-hosted web app for developers who are tired of losing useful code snippets in random text files or chat history. You save snippets with a title, tags, and language, then search and filter them later without digging through old projects . It handles syntax highlighting for a ton of languages and stores everything in SQLite by default (PostgreSQL is an option if you outgrow that) . The newer versions even have an MCP endpoint so AI assistants like Claude can search your snippet library directly . Since it’s self-hosted, your private commands and config examples stay on your own server.
Links
- Website: https://bytestash.jordandalby.com (demo available)
- GitHub: https://github.com/jordan-dalby/ByteStash
- Railway Deploy: https://railway.com/deploy/bytestash--bytestash
Alternatives
- Opengist: A self-hosted Pastebin powered by Git. Snippets live in a Git repo, so you can clone, push, and version them like code. It’s more pastebin than organized snippet library, but great if you love Git workflows .
- massCode: A free, open-source desktop snippet manager that stores snippets as local Markdown files. It’s local-first and includes notes and an HTTP client, but it’s not a web app you host for a team .
- Cacher: A commercial snippet manager with team workspaces, GitHub Gist sync, and IDE plugins. Not open source, and the free tier is limited, but it’s polished for teams that want cloud sync .
- GitHub Gist: GitHub’s own snippet tool. Not open source and not self-hosted, but it’s free, integrates with Git, and works fine if you don’t mind your snippets living on GitHub.