Use this when you want to see how db reports local fixture drift. It intentionally includes schema/data mismatches so the viewer can show source diagnostics while valid resources still work.
- db/users.schema.jsonc: schema-backed collection.
- db/users.json: contains an extra
twitterHandlefield. - db/projects.schema.jsonc: contains a nested field mismatch.
From the repository root, use the repo-internal CLI path:
npm run db -- sync --cwd ./examples/diagnostics
npm run db -- serve --cwd ./examples/diagnosticsOpen the viewer:
http://127.0.0.1:7331/__dbsync reports warnings. The viewer surfaces diagnostics for the broken source files instead of making unrelated resources unusable.
Leave serve running and run this from another terminal:
curl http://127.0.0.1:7331/db/users.jsonExpected diagnostics include an extra twitterHandle field in users.json and an undefined nested metadata.priority field in projects.schema.jsonc.
Generated .db/ output is ignored by git and can be removed whenever you want a fresh mirror.