Host hooks, optional pre-built parts and the modules.
The shell with each module's api beside it.
import { createKernel, type KernlModule } from '@kernlize/kernel';
const clock: KernlModule<'clock', { now(): number }> = { id: 'clock', setup: () => ({ api: { now: () => Date.now() } }) };
const kernl = createKernel({ host, modules: [clock] });
kernl.clock.now(); // milliseconds since the epoch
Compose the shell from the kernel and the modules the host lists, and nothing else: one
EventStore, oneRelayPool, oneAccountManager, the relay tiers, the guard pipeline, the grants layer, kehto's services andcreateShellBridge, plus the applet lifecycledecodePointer→resolve→plan→mount. Applets are offered only what the kernel and those modules answer.@kernlize/kernelholds no module, so a host that lists its own loads only what it lists (D-068).Anything the host passes in
optionsis used as is; anything missing is created with kernl's defaults. The host wireshandleWindowMessageto the window once and supplies the frames; everything else is reached through KernlHost.