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
@kernlize/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.
@kernlize/core
Publish outcomes (D-028):
summarizePublishfoldsRelayPool.publish's answers into aPublishOutcomethat isokwhen any relay accepted, with each refusal's reason;describeOutcomesays "Saved to 2 of 3 servers".toRelayUrlandrelayUrlsnormalise relay URLs, accepting onlyws:andwss:.A relay directory over NIP-66 monitors (D-029):
createRelayDirectorystreams kind 30166 reports fromDEFAULT_MONITOR_RELAYS, folds them per relay intoRelayListings, and offerssearchfor completing a relay field andsuggestfor inbox, outbox and lookup relays, topped up fromDEFAULT_SUGGESTIONSwhen it knows too few.Account mailboxes (NIP-65, D-029):
createAccountMailboxesstreams the active account's kind 10002 list, ismissingonly once every lookup relay finished without one (or after 15 s), suggests relays for a missing list, andsavepublishes a new one to the old and new relays and the lookup relays, returning aPublishOutcome.mailboxesFromEventandmailboxTagsread and write the list. None of this is composed bycreateKernlyet.subscribeWithEosetakes any pool withreq.Built-in applets (D-027):
KernlOptions.builtinslists applets the host ships,kernl:<id>decodes to abuiltinpointer, andKernl.resolveloads the bytes and checks them against the pinned SHA-256 with no lookup. New exportsresolveBuiltin,builtinAddress,BUILTIN_PUBLISHER,BuiltinAppletandPublishedPointer;AppletSummary.builtin; new reasoninvalid:artifact-hash. Breaking for exhaustive switches overAppletPointer['kind'], andfetchManifestEventtakes aPublishedPointer.KernlHost.chooseReplycarries the messaging registry's reply question to the user;createDefaultMessagingtakes it asaskReply.createDefaultMessagingswitchesprivateandlegacyon for someone who has never chosen; each starts once an account that can run it signs in.@kernlize/core/cache(@kernl/core/cacheon JSR): an event cache behind one adapter contract.openEventCache(adapters)opens the first adapter that opens and falls back to memory;defaultWebCacheAdapters()is sqlite-wasm over the OPFS SAH pool in a dedicated worker, then IndexedDB, then memory. Every backend keeps the newest replaceable and addressable version and honours kind 5 deletions.fromEventDatabaseturns any applesauce event database into a cache, andattachEventCachewires one to anEventStorethroughpersistEventsToCachewith a loadercacheRequestthat marks events as from the cache. The sqlite cache checks the database on open and wipes, rotates or gives up on a damaged one (unavailable:corrupt); a second tab falls back withunavailable:locked(D-030).The applet store:
kernl.catalog.load()overloadCatalog, withtoCatalogEntry,addressOf,newestEntries,searchCatalog,fuzzyScoreandpopularTopics(D-026).Intents:
createKernloffers theintentdomain through kehto'screateIntentServiceand kernl'screateIntentRouterandcreateIntentDelivery.kernl.intentsexposes the installed set and the user's handler defaults;kernl.install(summary)installs a verified applet without opening it, andkernl.planinstalls the applet it plans.KernlHostgains the optionalchooseHandler,openAppletandfocusApplet;KernlOptions.intentRetrytunes delivery.Handler preferences (kind 31129):
createHandlerDefaults,parseHandlerPreferences,preferenceTemplate,preferredHandlers,catalogIdForRefandrefForCatalogId. The signed-in account's preferences are read on sign-in; publishing is opt-in.describeChangenames the archetype and the applets added and removed when an applet writes one.Breaking.
AppletSummary.addressis required, andsummarize(resolved, address)takes it.@kernlize/core/crypto(@kernl/core/cryptoon JSR):installCryptoFallbackaddscrypto.randomUUIDand a pure-JScrypto.subtlewhere the browser withholds them outside a secure context, such as an onion or overlay address served over HTTP. The shell installs it first, and the mount plan gives every applet frame arandomUUIDfallback (D-024).createWindowManager(options?)and theWindowManagerinterface: placement, focus, stacking, minimising and what the guard is told about each window, with no DOM, publishingWindowManagerStateonstate$.createLayoutRegistryandcreateDefaultLayoutshold the layouts it offers; a layout of your own is oneregister(D-022).@kernlize/core/wm(@kernl/core/wmon JSR): a second entry exporting the layouts, the registry and the window manager, importing onlyrxjs. The same names stay on the main entry, which now also re-exportsLayoutStrategy,Rect,WindowPlacementandWindowStatefrom@kehto/wm.LayoutOptions.margin: the pixels between the windows and the container edge, defaulting togap. The tiling layouts now round rectangle edges rather than sizes, so two windows that share an edge never overlap or leave a hole when the space does not divide evenly.Opening an address no longer depends on every server behaving (D-025).
fetchManifestEventdrops hints that are not relay URLs, survives relays that are down, silent or hang up, no longer lets a quick relay with nothing to say end the lookup before a slower catalogue answers, and falls back to thesupertier when the address's relays and theappstier do not produce the manifest. Each of the two rounds ends withinMANIFEST_TIMING.timeoutMs, and a round whose relays all refused the connection is asked once more afterMANIFEST_TIMING.retryDelayMs. It takes an optionaltimingargument, andMANIFEST_TIMINGandManifestTimingare exported.New reason
unavailable:networkfromfetchManifestEventandKernl.resolve: no relay answered. Before, this surfaced as the relay library's own error with no kernl prefix, after up to thirty seconds.decodePointerfinds an encoded address inside a link or a sentence.A read-only account is an account a granted applet can be shown: the
identityservice answersidentity.getPublicKeyfor it.KernlServiceDeps.authgains an optionalgetUserPubkey.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.
@kernlize/messaging
Providers are kept in the user's order (D-027).
MessagingRegistry.setOrder(ids)reorders them,list()returns them in order, and the first enabled provider is the default; a send to someone new falls to the next enabled provider when the first answersunavailable:recipient-not-ready.The reply rule: before a one-to-one message leaves through a provider other than the one its recipient last wrote through,
askputs aReplyPrompttoMessagingRegistryOptions.askReply,theirsfollows the correspondent andminekeeps the order.setReplyRule,forgetReplyChoice, andCompositeOptions.chooseReplyoncreateCompositeBackend. A dismissed question rejects withdenied:cancelled.A saved provider that cannot run when it registers now waits and starts when it can, and stays in the saved list meanwhile.
Breaking.
MessagingPreferencesgains requiredorder,replyandreplyChoices;MessagingRegistryOptions.preferencestakesSavedMessagingPreferences, which accepts older snapshots.defaultProvideris now derived from the order: enabling a provider with nothing else on makes it the default, andsetDefaultmoves a provider to the top.createGroupMessagesProvider: thegroupprovider, "Group sessions". Forward secrecy, post-compromise security and groups; experimental; specificationMarmot (MLS, RFC 9420; supersedes NIP-EE).
@kernlize/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@kernlize/guardno longer throws outside the applet realm.
Shell and site (apps/web)
Every docs page answers at its clean address (D-032). On kernl.run,
/docs/<page>returned 404 when opened directly, which broke two footer links on the landing and every docs link on a fresh load; the build now writes each page at<page>/index.htmlas well.pnpm check:linkschecks every link and fragment in the built site against the host's rules in CI and before each deploy, and against the live site after it. The preview server follows the same rules.Messages are an applet (D-027). The Messages panel is gone; the button opens the Messages applet the shell ships (
applets/messages, built with the napplet toolchain, pinned by hash), or the applet the user chose for messages. It shows one conversation per person across providers, keeps drafts, counts unread itself and follows the shell's colours. The preview runs the same bytes over a real message port.Settings has a Messages section: the providers in the user's order with move up, move down and on or off, what each protects, the reply rule, and a button that forgets kept answers. The per-conversation provider picker is gone.
A reply to someone who last wrote through a provider other than the first in the order opens a question first: send it their way or keep the order, for this message, this person or everyone.
The count on the Messages button is the shell's own: messages that arrived, after Messages was first opened, while no messages window had focus.
Applets that ask for the theme are told the shell's colours when they open.
The launcher is a store: fuzzy search, topic bubbles, a filter for applets this shell can run fully, and an address pasted into the search still opens. Yours lists installed applets and which one opens each kind of request, with an opt-in to keep those choices with the account. When an applet asks another to do something, the shell picks the user's default, or asks with a chooser that can also find a handler in the store. The sample applets are gone; the preview's store lists its own applets, and its Notes can ask its Profiles to open a profile.
The landing at
/is now one screen and two adoption paths: add applets to an application you have, or start a shell from the reference one. What the home page held before is at/about/, with the five pages beneath it at/about/<page>/; their old addresses redirect. Moving between the site's pages no longer reloads the document: a WebGL curtain crosses the screen and the new page's content rises into place. Reduced motion, no WebGL and no scripts each leave a whole, still page (D-023).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.The shell's windows are run by kernl's window manager, made in one file,
windows.ts. The bar's layout control steps through four layouts (floating, tiled, columns, main and stack) instead of two, and the choice is stored by id;tiledfrom an earlier build still reads. How to change the layouts or replace the manager is in two new how-tos (D-022).
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).
@kernlize/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@kernlize/guard.
@kernlize/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@kernlize/messaging.
@kernlize/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@kernlize/bridges.
@kernlize/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@kernlize/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.