Melon-dbMelon-db
Walkthroughs

Local-first quick start

In-memory database, writes, and reactive reads without native code.

Steps

  1. From the monorepo root: bun install and bun test.
  2. Use the snippet from Getting started or open the CRUD playground.
  3. Insert a row inside db.write() and read with collection.findMany() or useQuery in React.

All mutations must run inside db.write() — see Read/write.

Verify

  • bun test passes for @melon-db/db.
  • You can insert and list a task without a network call.
  • Completing a task in the playground updates the open-tasks list reactively.

On this page