Advanced settings atlas
Every setting should answer one production question.
Use these pages after the first fixture works. They explain which knob changes source discovery, schema contracts, runtime persistence, exposed routes, operation refs, mock behavior, and generated artifacts.
stores.default = "json"
resources.orders.store = "appDb"
server.expose.rest = "registered-only"
operations.acceptRefs = "ref"
source
Where fixtures and schema files live.
runtime
Where writes and hydrated state land.
public API
Which routes clients may call.
Decision map
| Question | Default | Advanced setting | Page |
|---|---|---|---|
| Where do fixtures live? | ./db | dbDir, sourceDir | Configuration |
| When should schema drift fail? | warn | schema.unknownFields | Schema contracts |
| Where do writes land? | .db/state | stores, resources.*.store | Runtime stores |
| Which routes are public? | open local dev | server.expose | Server routes |
| How do clients call stable contracts? | raw REST | operations, refs | Operations |
| How realistic should local responses feel? | 30-100ms | mock.delay, mock.errors | Mocking |
| What belongs in git? | ignore .db | outputs.* | Generated files |
Configuration
Use config when defaults stop matching the project shape.
02Schema contracts
Know what inference can prove and when explicit schema should take over.
03Runtime stores
Keep JSON where it fits and move only the resource that outgrows it.
04Server routes
Separate local viewer routes from app-facing data routes.
05Registered operations
Expose reviewed callable refs instead of raw resource exploration.
06Mocking
Make loading, retry, and error states visible while staying local.
07Generated files
Keep `.db/` out of git, then deliberately commit generated types, manifests, or operation refs only when the app imports them.