Open Source & Self-Hosted

Manage your snippets like a pro

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.

Open Source
Docker Ready
100% Private
snippet-vault.ts
const snippet = {
  title: "Quick Sort",
  language: "typescript",
  tags: ["algorithms", "sorting"],
  blocks: [
    { type: "markdown", content: "..." },
    { type: "code", lang: "ts" }
  ]
};

await vault.save(snippet);

See it in action

A clean and dense interface, designed for developers. Dashboard with statistics, quick search, and tag management.

localhost:3000/dashboard
SnippetVault Demo
Dashboard
Detected languages
Tag organization
Instant search

Everything you need

A powerful editor, fast search, and flexible sharing options. All while staying simple and lightweight.

Block Editor

TipTap editor with markdown, code, images, files, tables and more. Slash menu for quick insertion.

Hierarchical Collections

Organize your snippets in infinitely nested collections, just like Notion.

Full-text Search

Instant search with SQLite FTS5. Filter by collection, tags or status.

Syntax Highlighting

Syntax highlighting with Shiki for 100+ languages. Automatic language detection.

Public Sharing

Publish your snippets with a unique URL. Embed them via iframe in your sites.

Custom Tags

Create tags with colors to categorize and quickly find your snippets.

Flexible Export

Export to Markdown or ZIP. Bulk export or full vault export.

REST API

Complete API to integrate SnippetVault with your tools and automation workflows.

Modern Block Editor

Inspired by Notion, the editor supports many block types to structure your snippets clearly and organized.

  • Slash menu - Type / to insert code, images, tables...
  • Auto detection - Language is detected automatically
  • Drag & Drop - Drag and drop images and files
  • Tables - Create tables with headers
Supported blocks
Markdown
Code
Images
Files
Tables
Callouts
Tasks
Links
Self-Hosted

Your data, your server

Deploying SnippetVault takes less than 5 minutes. One Docker container, one SQLite file, and you're good to go.

Self-hosted

Your data stays on your server. One Docker container with SQLite.

Privacy

No telemetry, no tracking. Your snippets are truly private.

Fast

SQLite with WAL mode. Ultra-fast FTS5 search. Reactive interface.

Simple

No PostgreSQL, no Redis. One SQLite file for all your data.

One command deployment
# 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.js
// 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']
  })
});
REST API v1

Integrate everywhere

A complete REST API to integrate SnippetVault with your favorite tools. Automate snippet creation, sync with your workflows.

  • 42+ documented endpoints
  • API key authentication
  • Full CRUD for snippets/collections/tags
  • Full-text search via API
  • GitHub Gist export
AI Integration

Connect your AI

Use the MCP (Model Context Protocol) to connect Claude or other AI assistants to your vault. Search, create and manage your snippets through conversation.

Smart search

Ask Claude to find your snippets by description

Auto-creation

Save code directly from your conversations

Assisted organization

Let AI tag and classify your snippets

Compatible with

Claude.ai
Claude Code
MCP Clients
8 MCP tools available
search_snippets - Search snippets
create_snippet - Create snippets
update_snippet - Update snippets
list_collections - Manage collections
list_tags - Manage tags
+ get_snippet, delete_snippet, list_snippets

"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?

Cloud Version

Interested in a hosted version?

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.

Ready to organize your snippets?

Deploy SnippetVault in minutes and start managing your code snippets professionally.