Your code. Your rules.
SnippetVault is a self-hosted code snippet manager with a powerful block editor, instant full-text search, and flexible sharing options.
const snippet = {
title: "Quick Sort",
language: "typescript",
tags: ["algorithms", "sorting"],
blocks: [
{ type: "markdown", content: "..." },
{ type: "code", lang: "ts" }
]
};
await vault.save(snippet);A clean and dense interface, designed for developers. Dashboard with statistics, quick search, and tag management.

A powerful editor, fast search, and flexible sharing options. All while staying simple and lightweight.
TipTap editor with markdown, code, images, files, tables and more. Slash menu for quick insertion.
Organize your snippets in infinitely nested collections, just like Notion.
Instant search with SQLite FTS5. Filter by collection, tags or status.
Syntax highlighting with Shiki for 100+ languages. Automatic language detection.
Publish your snippets with a unique URL. Embed them via iframe in your sites.
Create tags with colors to categorize and quickly find your snippets.
Export to Markdown or ZIP. Bulk export or full vault export.
Complete API to integrate SnippetVault with your tools and automation workflows.
Inspired by Notion, the editor supports many block types to structure your snippets clearly and organized.
Deploying SnippetVault takes less than 5 minutes. One Docker container, one SQLite file, and you're good to go.
Your data stays on your server. One Docker container with SQLite.
No telemetry, no tracking. Your snippets are truly private.
SQLite with WAL mode. Ultra-fast FTS5 search. Reactive interface.
No PostgreSQL, no Redis. One SQLite file for all your data.
# Clone and run
git clone https://github.com/Gus0711/SnippetVault.git
cd SnippetVault
docker compose up -d
# That's it! Open http://localhost:3000// API Example - Create a snippet
const response = await fetch('/api/v1/snippets', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: 'Quick Sort Algorithm',
blocks: [
{ type: 'markdown', content: '## Description\nEfficient sorting...' },
{ type: 'code', content: 'function quickSort(arr) {...}', language: 'javascript' }
],
tagIds: ['algorithms', 'javascript']
})
});A complete REST API to integrate SnippetVault with your favorite tools. Automate snippet creation, sync with your workflows.
Use the MCP (Model Context Protocol) to connect Claude or other AI assistants to your vault. Search, create and manage your snippets through conversation.
Ask Claude to find your snippets by description
Save code directly from your conversations
Let AI tag and classify your snippets
Compatible with
"Find my snippet about quicksort in Python"
I found your snippet 'Quick Sort Algorithm' in the Algorithms collection. Would you like me to display it?
We're considering offering a cloud version of SnippetVault for those who don't want to self-host. Leave your email to be notified.
No spam, just a notification at launch.
Your code. Your rules.
Deploy SnippetVault in minutes and start managing your code snippets professionally.