v1.0 now in beta

Your code snippets,
always within
reach.

SnipVault is a blazing-fast snippet manager built for developers who are tired of Googling the same thing twice.

No credit card. No account required.
~/snipvault/react-hooks
import { useState } from 'react'
 
type Setter<T> = (val: T) => void
 
function useLocalStorage<T>(
key: string,
initial: T,
): [T, Setter<T>] {
// retrieve from storage on init
const [stored, setStored] = useState<T>(() => {
try {
const raw = window.localStorage.getItem(key)
return raw ? JSON.parse(raw) as T : initial
} catch { return initial }
})
 
const set: Setter<T> = (val) => {
setStored(val)
window.localStorage.setItem(key, JSON.stringify(val))
}
 
return [stored, set]
}
 
export default useLocalStorage
TS25 lines

Features

Everything you need. Nothing you don't.

Built for speed, designed for focus.

debounce|
debounce.tsutils

> function debounce<T>(fn: T, ms: number)

useDebouncedValue.tsreact-hooks

> const [value, set] = useState<T>(initial)

debounce-input.csscss-tricks

> .input { transition: all 200ms ease; }

Instant search

Find any snippet in milliseconds with fuzzy search across titles, code, and tags.

debounce.tsTS
fetch-retry.tsTS
docker-up.shSH
sql-paginate.sqlSQL

Starred snippets

Pin your most-used snippets to the top so they're always one click away.

react-hooks12
useDebounce.ts
useLocalStorage.ts
usePrevious.ts
utils8
sql-snippets24

Collections

Organise snippets into collections by project, language, or whatever makes sense to you.

>Go to snippet|
Open snippetEnter
New snippetN
Switch collectionTab
Copy to clipboardC
Delete snippetDel

Command palette

Navigate your entire workspace from the keyboard. No mouse required.

TS
PY
GO
RS
SQL
def fetch_with_retry(url, retries=3):
for attempt in range(retries):
try:
return requests.get(url)
except Exception:
if attempt == retries - 1: raise

Syntax highlighting

16 languages supported out of the box with automatic detection.

MacBook Pro
synced
iPhone 15
synced
iPad Air
synced
Last sync: just now

Sync everywhere

Your snippets live in the cloud and sync instantly across all your devices.

How it works

From idea to snippet in seconds.

01

Save it

Paste your code, give it a name, pick a language. Done in under 10 seconds.

~/new-snippet
nameuseDebounce.ts
TypeScript
123456789101112131415
import { useEffect, useState } from 'react'
export function useDebounce<T>(
value: T,
delay: number = 300
): T {
const [debounced, setDebounced] = useState(value)
useEffect(() => {
const id = setTimeout(() => setDebounced(value), delay)
return () => clearTimeout(id)
}, [value, delay])
return debounced
}
15 lines
Unsaved changes
Save
02

Organise it

Drop it into a collection, star it, tag it. SnipVault stays out of your way.

SnipVault — react-hooks
All snippets47
Starred6
react-hooks13
useDebounce.ts
useLocalStorage.ts
usePrevious.ts
utils8
sql-snippets24
useDebounce.tshooksutils
import { useEffect, useState } from 'react'
export function useDebounce<T>(
value: T,
delay: number = 300
): T {
const [debounced, setDebounced] = useState(value)
useEffect(() => {
TSreact-hooks15 lines
03

Use it

Hit K, search, copy. Back to building in seconds.

SnipVault
CmdK
import { useEffect, useState } from 'react'
export function useDebounce<T>(
value: T,
delay: number = 300
): T {
const [debounced, setDebounced] = useState(value)
useEffect(() => {
const id = setTimeout(() => setDebounced(value), delay)
return () => clearTimeout(id)
}, [value, delay])
return debounced
}
useDebounce|
useDebounce.tsreact-hooks
Copy
debounce.tsutils
useDebouncedValue.tsreact-hooks
Entercopy·JKnavigate

Loved by developers

Don't take our word for it.

Real developers. Real workflows. Real results.

I stopped keeping a notes.txt in every repo the day I found SnipVault. It's genuinely changed how I work.

Ryan Matsuda

Ryan Matsuda

Senior EngineerStripe

The command palette is life-changing for my workflow. I use it 30+ times a day without even thinking about it.

Priya Nair

Priya Nair

Staff EngineerLinear

Finally a snippet manager that doesn't feel like it was designed by committee. Clean, fast, does exactly what I need.

Tom Briggs

Tom Briggs

Freelance Developer

The collections feature alone is worth it. I have 400+ snippets across 12 projects and finding things is instant.

Sophie Lindqvist

Sophie Lindqvist

Lead EngineerVercel

We rolled it out to the whole team and onboarding new devs got so much easier - shared collections are fantastic.

Tariq Hassan

Tariq Hassan

Engineering ManagerNotion

I tried every snippet tool out there. SnipVault is the only one that gets out of your way and just works.

Chloe Dubois

Chloe Dubois

Frontend EngineerFigma

Pricing

Simple, transparent pricing.

Start free. Upgrade when you're ready.

Snippets47 / 50
Collections3 / 3
Instant searchSyntax highlightingSearch

Free

$0 / forever

For developers just getting started.

  • Up to 50 snippets
  • 3 collections
  • Syntax highlighting
  • Search
Search 1,247 snippets…|
useDebounce.tsreact-hooks
fetch-retry.tsutils
docker-compose.ymldevops
sql-paginate.sqlsql-snippets
synced · just now
Most popular

Pro

$7 / month

For developers who live in their editor.

  • Unlimited snippets
  • Unlimited collections
  • Command palette
  • Cloud sync
  • Priority support
  • Early access to new features
shared-utils10
BW
ben
online
SR
sarah
online
TH
tariq
3h ago
+ 7 more members

Team

$19 / month

For teams who want to share knowledge.

  • Everything in Pro
  • Shared collections
  • Team members (up to 10)
  • Admin controls
  • Usage analytics

FAQ

Questions, answered.