Appearance
Package Reference
Use these pages when you need to choose or integrate one part of Kehto. Each page is grounded in the package manifest and source barrel for the current repository state.
Alpha status: Kehto is an early toolkit for a draft NIP-5D protocol. NAP contracts and package APIs are not final; use these package pages as current implementation guidance, not as a stability guarantee.
| Package | Page | Role |
|---|---|---|
@kehto/acl | ACL | Pure capability state and enforcement primitives. |
@kehto/cli | CLI | Top-level kehto command namespace, including kehto paja and kehto conformance. |
@kehto/conformance | Conformance | Runtime conformance suite for NIP-5D and advertised NAPs, behind kehto conformance. |
@kehto/paja | Paja | Reference developer runtime and local authoring workshop. |
@kehto/firewall | Firewall | Pure scoped approval and access policy. |
@kehto/rate-limit | Rate limits | Optional host-installed temporal budgets. |
@kehto/runtime | Runtime | Browser-agnostic NIP-5D protocol engine. |
@kehto/shell | Shell | Browser shell adapter over the runtime. |
@kehto/services | Services | Reference service handlers for runtime domains. |
@kehto/mocks | Mocks | Deterministic mock services for every NAP domain, for shells implementing NAPs without real data sources. |
@kehto/nip | NIP utilities | Unique Nostr NIP utilities, including NIP-5A/5D napplet artifact verification and Cache Storage reuse. |
@kehto/wm | Window Management | Structural window-management contracts. |
Reading Order
- Start with
@kehto/runtimeif you are building a host. - Add
@kehto/shellwhen you need browser iframe/session integration. - Add
@kehto/servicesfor reference implementations of runtime services, or@kehto/mockswhile a domain's real backend does not exist yet. - Use
@kehto/acldirectly when you need capability-state persistence or policy tests, and@kehto/firewallfor scoped approval policy. Install@kehto/rate-limitseparately when the host wants temporal protection. - Use
@kehto/nipand@kehto/wmas optional utilities. - Use
@kehto/clifor package scripts such askehto pajaandkehto conformance. - Use
@kehto/pajadirectly when embedding or extending the Paja implementation API.
Generated API reference lives under docs/api/. Package pages link to generated module pages for the public packages included in TypeDoc.