You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the documentation map for the standalone @noorm/broccolidb package.
The package docs follow a layered structure used by mature storage systems:
Concepts → How it works → Reference → Operations → Decisions
The implementation and tests are authoritative when documentation disagrees.
This map explains where a claim belongs and gives each reader a shortest useful
path through the package.
Why WAL compaction is separate from named rollback checkpoints
Documentation conventions
Describe the current package. Distinguish the bounded JSONSQL subset from
the removed SQLite implementation and from full SQLite/PostgreSQL compatibility.
Use contract language. Distinguish what is guaranteed after an in-memory
mutation, after flush(), after checkpoint(), and after stop().
Name the source of truth. Public exports live in src/index.ts; type
contracts live in src/broccolidb.contracts.ts; behavior is verified by
test/.
Keep examples executable. Examples should use the public package import,
explicit lifecycle calls, and a temporary or application-owned workspace.
Document failure boundaries. Say what is process-local, what is on disk,
what is recoverable, and what requires an external coordination system.
Prefer stable vocabulary. Say table, record, WAL frame, checkpoint, CAS
blob, replay, rollback, flush, and health report consistently.
Update docs with contracts. Export changes, file-format changes, and
durability changes require API/operations updates plus an ADR or release note.
Source-of-truth matrix
Question
Source of truth
What can consumers import?
src/index.ts and generated dist/index.d.ts
What does a method accept/return?
src/broccolidb.contracts.ts and class signatures
How does a write reach disk?
src/broccolidb-kernel.ts and src/broccolidb-wal.ts
How are blobs addressed and verified?
src/broccolidb-cas.ts
What behavior is protected?
test/*.test.ts
Is the package publishable?
package.json, npm pack --dry-run, and npm run docs:check
# Build and test the implementation
npm test# Validate docs and relative Markdown links
npm run docs:check
# Audit Apache metadata and evidence-bounded claims
npm run license:check
npm run ip:check
# Inspect the publishable artifact without creating it
npm pack --dry-run