Node Zero
Cryptographic Mesh Node Primitives
01. Architecture
Node Zero is the atomic unit of the Kenosis mesh โ a pure TypeScript library with zero runtime dependencies. Every Cloudflare Worker in the Kenosis topology is effectively a Node Zero instance. It provides all the primitives needed for a sovereign, cryptographically-identified mesh participant.
-
โธ
WebCrypto Identity (
src/backends/webcrypto-identity.ts) Ed25519 key generation via the Web Cryptography API. Private keys are non-exportable โ they never leave the secure context. Works identically in Cloudflare Workers, browsers, and Node 20+. -
โธ
Channel Manager (
src/primitives/channel-manager.ts) Multiplexed logical channels over a single transport connection. Each bond relationship, spoon event, and telemetry stream runs on its own isolated channel. -
โธ
Vault Store (
src/primitives/vault-store.ts) Encrypted IndexedDB storage for key material, bond records, and session tokens. AES-GCM encryption with keys derived from the WebCrypto identity. Data is unreadable without the local identity key. -
โธ
Transport Adapters (
src/transports/) Pluggable transport layer. WebSocket transport included. Workers use the fetch transport. The same node logic runs on any transport without modification. -
โธ
Forwarder (
src/forwarder.ts) Mesh packet routing with TTL management and loop detection. Implements the Delta topology routing rules โ packets travel the Kโ shortest path, not through a hub.
02. PWA & Demos
Node Zero ships with a full PWA subdirectory (pwa/) โ a production-ready Vite + React 19 + Cloudflare Pages deployment demonstrating the mesh node in a browser context.
QUANTUM HELLO WORLD
pwa/src/views/QuantumHelloWorld.tsx โ interactive SIC-POVM measurement demonstration. Visualizes the tetrahedral Bloch sphere geometry that underpins the Kenosis topology.
SHELTER DEMO
pwa/src/views/Shelter.tsx โ demonstrates Node Zero's application to housing navigation. A P31 mesh node used for resource access, not just cryptographic identity.
TEST COVERAGE
9 test files: channel-manager, codec, forwarder, identity-provider, node-integration, state-engine, transport-adapter, vault-store, webcrypto-identity. Full integration test validates end-to-end node-to-node communication.
Package Info
pwa/wrangler.toml)