Walkthroughs
Local-first quick start
In-memory database, writes, and reactive reads without native code.
Steps
- From the monorepo root:
bun installandbun test. - Use the snippet from Getting started or open the CRUD playground.
- Insert a row inside
db.write()and read withcollection.findMany()oruseQueryin React.
All mutations must run inside db.write() — see Read/write.
Verify
-
bun testpasses 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.
