Skip to content

Architecture ​

Nanokit is organised into four horizontal layers. Each page below covers one of them in depth.

┌──────────────────────────────────────────────┐
│ CLI layer (nkapp)                            │  parses commands, resolves
│                                              │  project context, orchestrates
├──────────────────────────────────────────────┤
│ Core engine                                  │  config parsing, deep merge,
│                                              │  secrets, state, reconcile
├──────────────────────────────────────────────┤
│ Runtime layer                                │  Docker, Caddy gateway, bridge
├──────────────────────────────────────────────┤
│ Infrastructure layer (providers)             │  Docker/VPS, AWS, Azure, GCP, DO
└──────────────────────────────────────────────┘

Pages ​

PageWhat it covers
Core EngineConfig parsing, deep merge, secret resolution, state management
Resource ReconcilerThe observe → diff → plan → execute → report loop and drift hashing
Infrastructure ProvidersThe Provider Abstraction Layer and the supported provider set
Lifecycle & HooksHow hooks fit into the orchestration pipeline
State & LockingLocal state files, infra locks, and how to clear a stale one
UI Bridge (WebSockets)The telemetry/control bridge behind the Hub
Term & Hub SeparationWhy the web terminal and the Hub are separate services