Appearance
Changelog
Each entry says what ships, per package and app. Alpha status is the current picture; this page is the history. Versions follow semver on 0.x: a breaking change is a minor bump.
Unreleased
@kernl/bridges
createWebTorrentBackend({ client, trackers?, now?, progressIntervalMs? }): aTorrentBackendthat downloads inside the page through a structuralWebTorrentLikeclient or a loader for one. It keeps onlywss://trackers plusDEFAULT_WEBRTC_TRACKERS(webTrackersis the filter) and addsjobs,subscribe,pause,resume,removeandfiles. Errors:invalid:info-hash,unavailable:<why>,unavailable:not-finished,denied:unknown-download(D-017).BackendTraits.handoffis typedtrue | undefinedand is read on every availability check, so a backend may switch between moving data itself and handing off.
@kernl/core
createDefaultBridgestakes an optionaltorrentbackend that replaces the hand-off for magnet links only;KernlOptions.torrentpasses one throughcreateKernl.createPrivateMessagesBackend: NIP-17 messages over the account signer. The seal is signed by the account withnip44; the wrap is signed by an ephemeral key that lives inside an applesaucePrivateKeySignerand is discarded after the wrap. Sends go to the recipient's kind 10050 inbox relays, falling back to the user'soutboxandsupertiers, with a copy wrapped to the user (D-015).createRatchetMessagesBackendandcreateSealedRatchetStorage: ratchet sessions over thenostr-double-ratchetlibrary'sNdrRuntime, with the account signer signing the device list and the library's device and session keys stored only asnip44ciphertext sealed to the account.createKernlwires it as the defaultratchetbackend, available while the signer hasnip44;ratchetno longer reportsno-runtimein the live shell, and applets reach it through thedmdomain like the other providers (D-016).createGroupMessagesBackend,createSealedGroupStoreandcreateGroupNetwork: group sessions (Marmot, MLS over nostr) over@internet-privacy/marmot-ts, with the account signer for identity and invitations and every library store sealed to the account withnip44.createDefaultMessagingregisters thegroupprovider andcreateKernlwires it;MessagingBackendFactoriesgainsgroup.createLegacyMessagesBackend: NIP-04 kind 4 messages throughsigner.nip04, normalised the same way and still marked metadata-exposing.createKernlwires both by default unlessKernlOptions.messagingBackendsoverrides them, soprivateandlegacywork in the live shell. Availability follows the active account:privateneeds a signer withnip44,legacyone withnip04.Breaking.
MESSAGING_UNAVAILABLE_REASONSnow holdssign-in-required,signer-cannot-encryptandno-runtime.needs-local-key-signerandnot-implementedare removed. See Error reasons.Breaking.
planMountenables kehto's released nested-context lock,experimental: { nestedContextLock: true }from@kehto/shell0.30.0, in place of kernl's port of it. kehto now renders the Trusted Types directives, installs thedefaultpolicy and pins the element factories; itsassertNappletHasNoFramestill maps todenied:nested-frame. Frame creation inside an applet now throwsTypeError('kehto: napplets may not create nested browsing contexts'); insertion still throwsdenied:nested-frame(D-014).@kehto/shellis now^0.30.0. The other kehto packages are unchanged.
@kernl/messaging
createGroupMessagesProvider: thegroupprovider, "Group sessions". Forward secrecy, post-compromise security and groups; experimental; specificationMarmot (MLS, RFC 9420; supersedes NIP-EE).
@kernl/guard
renderFrameLockScriptis renamedrenderInsertionLockScriptand emits<script data-kernl-insertion-lock>, which applies only the insertion lock: the DOM insertion pins, the refusal of custom elements that extend frame elements, and the removal ofXSLTProcessor. kehto's lock guards creation only, so the insertion lock stays until kehto guards insertion; the four routes past kehto's lock are to be reported upstream.- Breaking. Removed
appletMarkupHasFrame,assertAppletHasNoFrame,TRUSTED_TYPES_DIRECTIVESand thetrustedTypesfield ofAppletCsp.createAppletCspreturns the 14 baseline directives only, and@kernl/guardno longer throws outside the applet realm.
Shell and site (apps/web)
The Messages panel lists "Group sessions" beside the other providers, unranked; a send to someone who has not set it up says so in plain words. The site's vocabulary check also refuses the group protocol's names.
Magnet links download inside the shell. A Downloads panel lists each download with progress, peers and speed, and offers pause, resume, remove and Save. Settings has a Downloads choice, "Download in kernl" (the default where the browser can connect to peers) or "Open in an app on your device", remembered under
kernl:downloads:mode:v1. The shell host page loadswebtorrent3.0.21 (browser build) on the first download only; applet frames are unchanged. The preview downloads from nobody and finishes each download with a short text file.The Messages panel sends and receives private and legacy messages for an account whose signer can encrypt (browser extension, remote signer, password-protected local account). It opens the user's own messages without a consent prompt; applets still reach messages only through the
dmgrant.
0.1.0 — first draft, 2026-11-03
The first version of every package and of the shell. Nothing is published to npm yet; the packages are used from the source repository, which is private during the alpha (Packages).
@kernl/guard 0.1.0
- Three profiles,
strict,balancedandrelaxed, fromcreateGuardConfig, andapplyNappletRulesfor kehto's runtime firewall. - Envelope classification, ingress flood control with quarantine, the visibility gate, and the focus-aware firewall over
@kehto/firewall'sevaluate(). - The fixed zero-network CSP from
createAppletCsp, with the Trusted Types directives the frame lock needs. - The nested-frame lock: a port of kehto's unreleased
experimental.nestedContextLock(D-014), described under Security below. - Eleven mitigation descriptions for the guard panel. Pure; its one dependency is
@kehto/firewall. See@kernl/guard.
@kernl/messaging 0.1.0
- The
MessagingProvider,MessagingBackendandMessagingRegistrycontracts, with saved-preference restore. - The composite backend with
provider:innerIdnamespacing, anddescribeProviderrows. - A complete in-memory backend,
createMemoryBackend, used by the preview and the tests. - Three providers,
private,legacyandratchet, built withdefineProviderfrom backends the host injects. No real backend ships, so all three are unavailable in the live shell. See@kernl/messaging.
@kernl/bridges 0.1.0
parseLocatorfor the web schemes,magnet:,nzb:,slsk:andmailto:, withformatLocatorandisNzbUrl.- The
Bridgecontract, the registry with itsauthorizehook and outcome events, anddescribeBridgerows. - A complete HTTP bridge with an SSRF policy:
httpsonly, private and local destinations blocked, a byte limit on the streamed body, and opaque redirects refused in the browser. - The torrent, NZB, Soulseek and mail bridges, and
createHandoffBackends, which serves all four by opening the locator's canonical address in an app on the user's device (Bridges). createBridgeResourceResolverfor kehto's resource service. See@kernl/bridges.
@kernl/core 0.1.0
createKernl, the composition root: one applesauceEventStore,RelayPoolandAccountManagerover kehto'screateShellBridge, exercised end to end inkernl.feature.- Applet pointer decoding, manifest resolution, the mount plan and mounting.
- Grants over
bridge.runtime.aclState, the restrictive environment resolver, and consent summaries for destructive writes. - Relay tiers, persistence under the
kernl:prefix with plaintext keys refused, the guard pipeline and runtime firewall rules, the default messaging and bridge registries, and four layouts. See@kernl/core.
Shell and site (apps/web)
- The landing site at
/and the shell at/app/. - Sign-in with a browser extension, a remote signer, a read-only address or a password-protected local account.
- Open an applet by address, with its required and optional domains as choices.
- Floating and tiled windows, with a compact layout at 720 px and below.
- A grants panel per window, the shell-wide guard panel with its event log, the provider picker, and Settings for relay tiers.
- The offline preview behind
?preview=1(D-011), hosted at kernlize.github.io/app/?preview=1.
Docs
These pages, the TypeDoc API reference, llms.txt and a Markdown twin of every page, checked by pnpm docs:check: TypeDoc in strict mode, the docs audit, and every TypeScript sample compiled against the package sources.
Security
The nested-frame lock (D-014) closes a path an independent review found: applet code could create a child frame whose fresh realm still had a working RTCPeerConnection, which reached a public STUN server. @kehto/shell 0.29.0 removes the peer-connection globals from the applet's own realm only, and CSP does not govern WebRTC. The lock has three parts:
- Static markup.
assertAppletHasNoFramerefuses frame, object and embed markup in the verified bytes withdenied:nested-framebefore they become a srcdoc. - Creation.
renderFrameLockScriptinstalls a Trusted Typesdefaultpolicy that refuses frame markup at every HTML string sink, and pins the element factories so they refuse frame tag names. It runs before any applet script. - Insertion. A second review found four creation routes past the factory pins. Because a frame only gets a realm once it is connected to the document,
appletInsertionLockpins every DOM insertion method, includingRange.insertNodeandRange.surroundContents. It refuses any node that is, or contains, an HTML-namespace frame element. It reads node identity through native getters captured before applet code runs, refuses custom elements that extend frame elements, and removesXSLTProcessor.
tests/e2e/applet-network-sealed.spec.ts probes every route the reviews found, and thirteen insertion routes, and sees no child realm and no candidate. The cost: every DOM insertion in an applet walks the inserted subtree once.
Corrections
Recorded in Alpha status, both on 2026-11-03:
- Rate enforcement. Earlier drafts said kehto's runtime firewall refused envelopes over the profile's rates. It did not, because
applyRuntimeFirewallRulesalso set each applet's runtime policy toallow, which passes before any rate is checked. The policy call is removed, the rates and kehto's startup burst guard now refuse before dispatch, and D-012 is rewritten. - Size caps. The guard's size matchers were described as able to fire in the shell. The ingress guard rejects the same envelopes first, so they could not. Oversized downloads and queries were reported but still handled; they are now refused before dispatch.