svelte-idb
Zero-dependency, SSR-safe IndexedDB wrapper built for Svelte 5 runes. Live queries that update automatically.
Why svelte-idb?
Everything you need for client-side persistence in Svelte.
Lightweight and fast. No external runtime libraries required.
Works seamlessly with SvelteKit server-side rendering out of the box.
Native reactivity using $state and $effect under the hood.
Complete TypeScript support with generic schema inference.
Auto-updating queries with microtask batching for performance.
Declarative schema with versioned upgrades and custom migrations.
Simple, Powerful API
Get started in seconds. Scale to complex use cases.
Interactive Playground
Data persists securely in your local browser's IndexedDB. Experience zero-latency reactivity with a fully functional note-taking app.
My Notes
Your personal knowledge base is empty
Start by adding a quick note above
Ready to get started?
Read the docs, explore examples, and start building with svelte-idb.