Developer Guide¶
The maintainer documentation is split into focused sections so package internals, contribution workflow, and release operations stay easier to navigate.
Documentation Map¶
- Architecture covers the package layers and the intended dependency direction between them.
- Contributing covers local development commands, validation expectations, and change discipline.
- Release and Docs covers npm publishing, GitHub Actions release automation, and MkDocs workflows.
Maintainer Defaults¶
Keep these rules in mind when changing the package:
- public consumer docs should lead with
defineEntityModel(...),defineClientModel(...), andcreateEntityClient(...) - lower-level repository wiring should stay available, but documented as advanced usage
- transport, crypto, auth, and UI-specific concerns should stay decoupled
- every public API change should be reflected in docs and validated with build, typecheck, and tests
Start with Architecture if you need to understand where a change belongs before editing code.
- builds the site with mkdocs build --strict
- uploads the generated site as a Pages artifact
- deploys it with the official GitHub Pages deploy action
Contribution Notes¶
When making package changes:
- keep public exports in
src/index.tsintentional and minimal - prefer interface-driven abstractions over hard-coding app-specific providers
- keep crypto and transport code decoupled from UI concerns
- update docs when public APIs or release steps change
- validate with build, typecheck, and test before publishing