v0.1.3 — Now Available
svelte-idb logo

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.

Zero Dependencies

Lightweight and fast. No external runtime libraries required.

SSR Safe

Works seamlessly with SvelteKit server-side rendering out of the box.

Svelte 5 Runes

Native reactivity using $state and $effect under the hood.

Fully Typed

Complete TypeScript support with generic schema inference.

Live Queries

Auto-updating queries with microtask batching for performance.

Schema Migrations

Declarative schema with versioned upgrades and custom migrations.

Simple, Powerful API

Get started in seconds. Scale to complex use cases.

+page.svelte
Live Demonstration

Interactive Playground

Data persists securely in your local browser's IndexedDB. Experience zero-latency reactivity with a fully functional note-taking app.

My Notes

0

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.

Built with for the Svelte community.