Curated engineering knowledge for Decentralized Web Nodes (DWNs), the Enbox implementation, DWN engine authors, and applications built on top of DWNs.
This repository separates ten kinds of knowledge:
- DWN model — spec-derived semantics and invariants.
- Enbox implementation — how current Enbox realizes those semantics in TypeScript and Rust.
- Learning path — a deliberate progression and reasoning exercises for experienced engineers.
- Invariant registry — stable machine-readable rules with source classes and links.
- Builder guidance — practical design guidance for applications and protocols.
- Worked examples — complete protocol/application designs that apply the builder process end-to-end.
- Implementation guides — engine-level contracts independent of one language/storage design.
- Conformance checklists — observable behaviours suitable for cross-implementation testing.
- Agent workflows — tool-neutral playbooks for contract discovery, implementation, and semantic review.
- Decisions — architecture decisions and intentional divergences.
dwn/ DWN concepts, invariants, and protocol semantics
enbox/ implementation architecture and code mappings
learning/ guided learning path and reasoning exercises
invariants/ stable machine-readable DWN/Enbox invariant registry
builders/ practical guidance for designing applications and protocols
examples/ fully worked protocol/application designs
implementation/ engine-author contracts and implementation boundaries
conformance/ behavior-oriented conformance checklists
agents/ tool-neutral AI engineering workflows and task templates
decisions/ ADR-style decisions and intentional divergences
maintenance/ freshness and provenance policy
Start with:
learning/README.mdfor a guided route through the corpusdwn/foundations.mdfor canonical conceptsinvariants/README.mdfor compact stable rulesbuilders/getting-started.mdwhen building an application/protocolexamples/README.mdfor end-to-end worked designsimplementation/README.mdwhen implementing a DWN engineconformance/README.mdwhen building test/compatibility suitesagents/README.mdfor AI-assisted engineering workflowsAGENTS.mdfor coding-agent guidanceglossary.mdfor terminology
For implementation work, keep these distinct:
- the DWN draft specification,
- current
enboxorg/enboxTypeScript behaviour, - current
enboxorg/enbox-rust-corebehaviour.
Where current TypeScript intentionally differs from the draft, Rust parity work follows the documented upstream behaviour and links the relevant spec issue.
Learning, invariant summaries, builder/example/implementation/conformance guides, and agent workflows are aids to reasoning, not independent protocol authority. Every invariant records its contract class so Enbox parity behaviour is not silently promoted to normative DWN behaviour.
Keep pages concise, evidence-oriented, and explicit about source class. Prefer stable invariants, traps, code mappings, design matrices, test contracts, and issue links over unsupported assumptions.