A self-hosted web application for storing, organizing, and managing code snippets with AI assistant integration.

ByteStash is a self-hosted web application for storing, organizing, and managing code snippets. It provides a centralized location to save reusable code blocks, allowing users to maintain a personal library of technical references in a secure environment. The application is deployed as a server and accessed via a web browser, making it suitable for developers who want to keep their code fragments accessible across different projects.
Deployment is flexible, with support for installation through Docker, Unraid, or PikaPods. The system utilizes a SQLite database for the local storage of all snippets, ensuring that the data remains under the user's direct control. Users can manage their library through a dedicated user interface or interact with the system programmatically via a REST API.
The software is built with a React and Tailwind CSS frontend and a Node.js and Express backend. A primary technical component is the Model Context Protocol (MCP) integration, which allows AI assistants like Claude, OpenAI, and Perplexity to search, read, and manage snippets directly. These assistants interact with the system via a streamable HTTP transport using the same API keys used for the REST API. The available MCP tools include specific functions to list, get, create, update, and delete snippets, as well as list metadata. To ensure security for remote AI clients, the endpoint requires HTTPS, which is typically handled by a reverse proxy or ingress controller.
ByteStash is designed for developers who require a private, searchable repository for their code fragments with optional AI connectivity for automated snippet management.
A privacy first personal knowledge management system with block level references and markdown WYSIWYG editing.
A privacy-first knowledge management platform using bidirectional linking and outlines to organize notes and tasks.
Join our newsletter to get shiny new open source software delivered to your inbox. Unsubscribe anytime.