
Snippet Vault
A searchable vault for the code you actually reuse. Tag by language and intent, find by meaning — not by remembering the exact file it was buried in.
Snippet Vault is a personal code library built around fast, intent-based retrieval. Snippets are stored with CodeMirror for syntax-highlighted editing, tagged by language and use case, and indexed with SQLite full-text search so you can find them by what they do — not what they're named. Prisma handles the data layer cleanly, and Zustand keeps the UI state lightweight and predictable. The design philosophy is aggressively minimal: no folders, no nested hierarchies, no bloat — just a search bar and a vault of code that works.
Why I built this
I kept rewriting the same utility functions, regex patterns, and config blocks across projects because my snippets were scattered across Notion, old repos, and Slack messages. I wanted a single, fast place to store proven code and retrieve it in seconds — not minutes.
Use case
Developers store reusable logic, boilerplate patterns, and language-specific utilities, then retrieve them by intent — 'debounce hook', 'postgres upsert', 'zod email schema' — rather than by filename or exact syntax. Especially useful during fast-moving sprints and for onboarding teammates to shared patterns.
What I learned
Search relevance is the product. A snippet manager that returns the wrong result, or returns the right result third, is worse than no tool at all. I spent more time on indexing strategy, tagging structure, and result ranking than on any other part of the system — and that's exactly the right priority.
Where I got stuck
Preserving code formatting across languages was genuinely difficult. Indentation, special characters, and copy behavior interact differently depending on the language, the browser, and whether the code was pasted in or typed. Getting reliable, round-trip faithful storage and copy-to-clipboard behavior required far more edge case handling than expected.