npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@wildwinter/app-shell

v2.1.0

Published

The shared shell for the editor family (Patterpad, Storylet Studio): the app-agnostic design-token grammar, the per-entity colour hash, and the vanilla-TS DOM primitive. Two palettes, one grammar - each app supplies its own palette/fonts over these tokens

Readme

@wildwinter/app-shell

The shared shell for the editor family (Patterpad, Storylet Studio): the app-agnostic pieces both apps would otherwise hand-mirror. Framework-neutral (vanilla TS + DOM), no app dependencies.

Two palettes, one grammar. Each app supplies its own palette and fonts; this package supplies the grammar and primitives beneath them.

v0.1 (the thin slice)

  • el - the tag-typed element factory. A superset of the two apps' prior signatures, so neither rewrites call sites:

    import { el } from "@wildwinter/app-shell";
    el("div", "card", "hello");                       // string className + text child
    el("button", { className: "b", onClick: fn }, child);  // props bag + children
  • colourIndex / colourFor / PALETTE / PALETTE_SIZE - the per-entity colour hash. A stable name -> palette-slot index, storage-free. The hues live in each theme as --char-0 .. --char-11.

  • tokens.css - the design-token grammar (elevation, motion, radius, scrollbar). Import once at the app root:

    @import "@wildwinter/app-shell/tokens.css";

v0.6 (the long-job kit)

For work that takes long enough to need a progress bar and a Cancel button: coverage sweeps, big exports, corpus runs.

// main
import { createJobHost, JOB_PROGRESS } from "@wildwinter/app-shell/job";
const jobs = createJobHost({ send: (ch, p) => window.webContents.send(ch, p) });
const outcome = await jobs.start("coverage", async (ctx) => {
  for (let i = 0; i < runs; i++) {
    if (ctx.cancelled) break;          // cancellation is a boundary, not an interrupt
    doOneRun();
    await ctx.step(i + 1, runs);       // reports progress AND yields the loop
  }
  return report;                        // a cancelled job may still hand back a partial
});
jobs.cancel("coverage");
// renderer
import { mountJobProgress } from "@wildwinter/app-shell";
import "@wildwinter/app-shell/job.css";
const strip = mountJobProgress(host, { units: "runs", onCancel: () => api.cancel() });

Cooperative, not parallel. The work still runs in the main process; it just stops hogging it, so IPC keeps flowing and the renderer keeps painting. ctx.step() throttles progress messages (100ms) separately from yielding the event loop (16ms), so a fast inner loop neither floods IPC nor stutters.

A strip, not a modal. The window that started the job shows it; the rest of the app stays usable.

v0.18 (the bars, and the third semantic colour)

Three drawings each app had grown its own copy of, and the token the family kept needing and never had.

  • renderStepperBar - a bottom bar that walks a list of things to attend to, one at a time: count, previous, position, next, the entry as a button, an action slot. Four bars across the two apps are this shape (problems, review walks). It knows about a list and an index; it knows nothing about what a problem or a comment is.

    import { renderStepperBar } from "@wildwinter/app-shell";
    import "@wildwinter/app-shell/stepper.css";
    renderStepperBar(host, {
      items: problems.map((p) => ({ kind: p.severity, kindClass: `sev-${p.severity}`, where: p.path, text: p.message })),
      at, tone: "danger", onStep: (i) => { at = i; paint(); }, onGo: (i) => jumpTo(problems[i]),
    });

    Whether stepping NAVIGATES is the caller's decision, and the bar takes no view: an ambient surface moves the view and never the focus; a mode you entered may take you somewhere.

  • saveIndicator - the six lines that draw what createSaveController already computes. Three states, always present: a dot that only ever appears to worry you leaves "did that get written?" unanswered.

    const ind = saveIndicator();
    topbar.append(ind.el);
    const saver = createSaveController({ write, onStatus: ind.set });
  • staleBar - a running session that has fallen behind its source. The app supplies the noun and the callback; the sentence is shared, because both apps had written it independently and landed a word apart.

    staleBar({ subject: "The project", onRestart: () => void rebuild() });
  • toast - a transient remark: "Bundle published", "Save refused: ...". Bottom-right, an outlined card on the surface colour with the kind in the border, on the shared panel motion; one at a time, 4s (7s for an error). Both apps had one, and they agreed on nothing but the sentences - place, colour, timing, motion and ARIA all differed. It mounts its own node, so a second window gets it by importing it. Bring toast.css.

    toast(`Bundle published\n${where}`, "ok");
    toast(`Save refused: ${err}`, "error");
  • revealRow - land on one row of a settings list. expandableRow takes a name and stamps it on the row; revealRow(within, name) opens that row's details, brings it to the middle of its scroller and lights it for a moment. "Go to definition" in both apps opened the page a property is declared on and stopped there, with the row off screen. It returns false when no row carries the name, so a host whose page fills in late asks again on a later frame. Brings nothing new: the light is in settings.css.

    list.append(expandableRow({ line, details, name: decl.name }));
    revealRow(document, "mood");
  • --linkstatus-reserve - how much of the window's bottom-right corner the live-link chip takes, published on the document while the chip is visible (0px while hidden) and re-measured as its address comes and goes. The chip floats over that corner, and both apps had things drawn under it. The stepper bar leaves the room itself; a host strip that can end in the corner opts in with padding-right: calc(<its own> + var(--linkstatus-reserve, 0px)).

  • --ok joins --danger and --warn in tokens.css, with a light-dark() default every palette should override in its own theme.css. It is the only colour in the grammar layer, and it is there because it kept not being anywhere: "all is well" was being met with raw green literals that could not theme-shift.

v0.41 (the kit gallery)

The new-thing moment (New Project, New Box, New Scene), drawn once: tiles on the left, the chosen kit said in full on the right, one screen, on the dialog frame. Shelves say what their button does, so a kit ("Create") and a worked example ("Open a Copy") can sit side by side.

import { openKitGallery } from "@wildwinter/app-shell";
import "@wildwinter/app-shell/kit-gallery.css";

openKitGallery({
  title: "New project",
  what: "A project is one game's worth of storylets.",
  namePlaceholder: "The Village",
  details: vcsFields,                       // the app's own fields, under the name
  sections: [
    { caption: "Start from a kit", items: [
      { id: "starter", name: "Starter project", blurb: "Two cards that already work together.",
        play: "Press Play: one card opens the next.", features: ["One box", "Playable at once"],
        lands: ["One box", "Two cards"] },
    ] },
    { caption: "Learn from a finished project", action: "Open a Copy", usesDetails: false,
      items: [{ id: "hamlet", name: "The Hamlet", blurb: "Small.", badge: "Start here" }] },
  ],
  onPick: (id, { name }) => { /* the app makes it */ },
});
  • What a kit is made of stays in the app. The shell knows names, words and pictures, never boxes or scenes.
  • Single click chooses, double-click chooses and goes, Enter in the name field creates; the name is required when asked for.
  • v0.42: on the welcome too. A welcome group with tiles: true draws its items with the gallery's own tile (kitTile), so a kit looks the same on the welcome as in New Project; import kit-gallery.css beside welcome.css. An item's tile is a shorter line for the tile when its blurb runs past the three lines a tile shows.
  • v0.43: onNameInput runs as the name is typed (and once on open), so an app's own fields can follow it: Patterpad's "Saved as" preview and its default publish path.
  • v0.44: onChoose runs whenever an item is chosen, so an app can show or hide its own fields per kit; validate holds the pick until the app's own field is filled, marking and focusing it the way an empty name is.
  • v0.46: features, a kit's features as pills on its tile (the welcome's too) and in the panel, replace both shows and pictures. Pictures were tried in 0.41 to 0.45 and ruled out by the author; image and the --kit-art-* tokens are gone.

v0.51 (the file-byte history, and rows for structured values)

@wildwinter/app-shell/history (main process): undo and redo for the files an app writes, the files-are-truth way. Storyletter's, lifted so Patterpad's project-level undo is the same code; the document undo of each app still shares nothing.

import { History, captureBefore, applyStates } from "@wildwinter/app-shell/history";

const history = new History({ write: myOrderedWriter, restorer: (path) => path.endsWith(".patterx") ? trail : undefined });
history.record("Rename card", "card:c_1", captureBefore(paths), writes);   // after the writes land
const outcome = await history.applyUndo();   // { ok, label } or { ok: false, error, drift? }
  • A repeated key folds into one step; fold adds a write nobody asked for to the last step; a hundred steps are kept.
  • Drift is refused: a file changed since the step (a pull, a merge, the other app) refuses the undo or redo, names the file, and drops that step and every one below it.
  • A per-file restorer decides what counts as drift and what is written back; the write option is the app's own write path (applyStates, all or nothing through simple-vc-lib 0.5, by default).

@wildwinter/app-shell/value-rows: a row for a value of any declared type, for an extension's fields. The seven scalars are the field row; a reference picks one of the host's nodes, a pick one choice from its sources ("auto" first, then its fixed words, the host's nodes of a kind, and the extension's project lists, through the adapter's optional list(name)), a record is its fields, a map is keyed by a host's nodes or by text, a list adds, moves and removes items (a new item of an id list gets a fresh id). The checks are @wildwinter/toolkit/extensions' (an optional peer, 0.2.5 or later), so the editor and validation agree.

import { valueRows } from "@wildwinter/app-shell/value-rows";
const rows = valueRows();
host.append(rows.row(`${nodeId}:${decl.name}`, { decl, value, adapter: { nodes: (kind) => myNodes(kind) }, onCommit }));
  • v0.52: a declaration's valueHelp (a sentence per enum value, flag or stage, as a manifest gives them) shows the chosen value's under the control, and each chosen flag's, in the field row and so in every value row. The adapter's optional label(kind, id) names a held node the choices leave out, so only a node the host says is gone reads as gone.
  • v0.53: History.clearRedo(), for a host that changes the files on its own; replaceProblem on a field row or value row, the host's sentence instead of the row's own; and @wildwinter/app-shell/extension-copy, an extension's problems worded for the writer (entryProblemLine, valueProblemSentence, fieldPhrase), Patterpad's rules made the family's, with each app's words for its items, kinds and where a value is changed passed in.
  • v0.54: the pick row, the adapter's list(name) for a pick's project lists, and the words for a pick's problems (not-a-choice, pick-ambiguous, pick-clash). Needs toolkit 0.2.5.

v0.55 (one live link server)

@wildwinter/app-shell/live-link (main process): the loopback WebSocket server a running game connects to, once for the family. Patterpad's and Storyletter's were copies; each now plugs its own protocol into this one. ws (8 or later) is an optional peer the app supplies.

import { createLiveLinkServer } from "@wildwinter/app-shell/live-link";

const server = createLiveLinkServer<MyFields>({
  port: 4471,
  currentBuildHash: () => projectHash(),
  onStatus: (s) => sendToWindows(s),
  protocol: ({ pushStatus }) => ({
    hello: ({ build, project, msg }) => { /* a run begins: read msg's own fields */ },
    message: (msg) => { /* anything after the hello; pushStatus() if it changes the status */ },
    reset: () => { /* the game went away */ },
    describe: () => ({ /* your fields on a connected status */ }),
  }),
});
server.start();
server.pushBundle(hash, json);   // after a save
  • Loopback only, and a web page's Origin is refused (isLocalOrigin).
  • One game at a time: a new connection replaces the old.
  • Nothing reaches the protocol before a hello, which names the build: match, stale, or unknown (no project open).
  • pushBundle sends { t: "bundle", v: 1, build, data } only to a game that has said hello and runs another build, and shows the build stale until the game re-hellos with the new one.
  • A taken port reports an error and leaves the server off. The status is the link-status chip's.

v0.56 (native controls follow the palette, and extension fields folded)

--color-scheme: tokens.css now sets color-scheme: var(--color-scheme, light dark) on :root. Native controls (unticked checkboxes, radios, scrollbars, select pop-ups, date fields) and every light-dark() default (--ok, --on-accent) draw from color-scheme, so they followed the OS even when the author had picked a palette: a light palette under a dark OS drew every unticked checkbox as a dark filled square, and a dark palette under a light OS drew bright white boxes. accent-color colours only the ticked state.

The rule: every palette block declares --color-scheme, light or dark by its ground. A palette that can be chosen explicitly needs a block of its own even when it is also the bare :root default, so the bare :root can leave the token unset and "follow the OS" keeps working through the fallback.

/* an app's theme.css */
:root[data-theme="linen"]  { --color-scheme: light; }
:root[data-theme="indigo"] { --color-scheme: dark; }

An extension's fields folded (@wildwinter/app-shell/value-rows): an extension's section in an inspector shows only the fields the node sets, and opens to every field on request. isSet(decl, value) is the rule: held, and not the toolkit's defaultOf, compared deeply (a record of defaults, an empty map, an enum's first value and false are all unset). extensionFold() draws the section around the host's own rows: the caption is the disclosure, with the count ("Pattershot (3 set)"); the fold is per extension and stays as left from node to node; a value cleared while folded keeps its row until the author leaves the node; the host's lead (a lock line) and tail (undeclared keys) always show. Styles in controls.css; lockControls leaves the caption live.

const fold = extensionFold();   // one per inspector, kept across redraws
host.append(fold.section({
  extension: x.id, caption: x.name, node: nodeId, fields, entry,
  row: (decl) => rows.row(`${x.id}:${nodeId}:${decl.name}`, { decl, value: entry?.[decl.name], onCommit }),
  group: (name) => heading(name),
}));
fold.sweep();   // after each redraw, beside the rows' own sweep

Project Settings shouldn't fold: it's where an author goes to set things.

v0.57 (a map of records as a grid)

@wildwinter/app-shell/value-rows, for a map whose values are records (an extension's per-character performance, say), too big for an inspector's column:

  • isRecordMap(decl): which fields these are, from the declaration alone.
  • recordMapSummary(decl, value, adapter): a line per key, "TAM: smile, nod", the record's set values as their controls show them (valueText); for the inspector, beside an Edit button.
  • recordMapGrid({ decl, value, adapter, onCommit, disabled }): the grid a helper window draws, a row per key and a column per record field, each cell the row value-rows draws for that field (picks, checks and problems included), a remove button per row and the key adder under it. onCommit gets the whole map. Cells keep their elements across update. Styles in controls.css.

selectionFollowButton (tool-window kit): "Follow selection", for a helper window that shows whatever the editor has selected. The other direction from followButton ("Follow in the editor"), so it has its own words.

v0.58 (tier 2 view extensions)

A view is a web component an extension's installed package supplies (a performance sheet, say), which an app opens in a floating tool window of its own. The window is sandboxed, on a session partition of its own (kept on disk since 0.62), with a preload that does one thing: it hands the view a MessagePort straight to the editor's renderer. Main hands the pair over and then stays out of the path; the editor's renderer answers the view from the app's own model, unsaved edits included. Needs toolkit 0.2.6 (views and reads in the manifest).

| Subpath | Where | What | | --- | --- | --- | | ./view-protocol | both ends | The messages, VIEW_API, the port's channel and message names. Types and constants only. | | ./view-client | the view | connect(), typed requests, events, the theme, and keys. For view authors. | | ./view-host | main | Packages (read, install, list, choose a version), the scheme, and openViewWindow. Imports electron. | | ./view-host-web | the editor's renderer | hostViews (every open view), hostView, onViewPort, readTheme. Also in the root entry. | | ./view-preload.cjs | the view window | The view preload, which openViewWindow uses by default. |

Packages

An extension's local package is a folder or an npm pack tarball with one <id>.extension.json at its top level and its view files. readExtensionPackage(path) reads either (no node_modules, no dotfiles) and says why not in a sentence. installExtensionPackage(pkg, dir) puts it in <dir>/<id>/<version>/ (dir is userData/view-extensions), replacing the same version whole. installedExtensions(dir) lists what's there, and resolveInstalled(dir, id, pinned) picks the version for a project: the pinned one, else the highest with the same major version and a warning to show ("This project expects Pattershot 0.3.0; 0.4.1 is installed."), else none and why ("Pattershot isn't installed on this machine.").

Wiring an app, in order

  1. Register the scheme, in the app's one protocol.registerSchemesAsPrivileged call (Electron keeps only the last call, so list the app's other schemes there too):

    import { viewSchemePrivileges } from "@wildwinter/app-shell/view-host";
    protocol.registerSchemesAsPrivileged([assetScheme, viewSchemePrivileges("storylet-view")]);
  2. The scheme is served per view session by openViewWindow (it calls serveViews and guardViewSession on the view's partition the first time). <scheme>://<id>/?view=<view> is a generated page that loads the view's entry as a module and fills the window with its element; any other path is that package's own file, confined to its folder; everything else is a 404. Every response carries VIEW_CSP as a header. The session cancels every request off the scheme and refuses every permission.

  3. The editor's preload forwards its port. Apps allow no preload import but electron, so it's a snippet rather than an import:

    ipcRenderer.on("wildwinter-view:port", (event, meta) => {
      window.postMessage({ type: "wildwinter-view:port", meta }, "*", event.ports);
    });
  4. Open the view from main:

    import { openViewWindow, resolveInstalled } from "@wildwinter/app-shell/view-host";
    
    const choice = await resolveInstalled(viewsDir, "pattershot", project.pin("pattershot"));
    if (!choice.installed) return showInstallPrompt(choice.why);
    const view = openViewWindow({
      installed: choice.installed, view: "sheet", host: "patter", scheme: "patter-view",
      editor: mainWindow, pinnedVersion: project.pin("pattershot"),
      title: choice.warning ? `Performance sheet (${choice.warning})` : undefined,
      rect: savedWindowRect(store.sheet.bounds, DEF, MIN), pinTo: () => mainWindow,
      pinned: slice.pinned(), onPin: slice.setPinned,
    });
    // Reset View: view.setPinned(true)
    // on a project change: view.close()

    The window closes with the editor. Each time the view's page loads, and each time the editor's does while the view is open, both ends get a fresh pair. When the view window closes, the editor gets its meta again with closed: true and no port, through the same snippet. An app that bundles its main process passes preload (the path of @wildwinter/app-shell/view-preload.cjs), since the default is found beside the shell's own built module.

  5. Host them in the editor's renderer with an adapter over the app's model:

    import { hostViews } from "@wildwinter/app-shell";
    
    const views = hostViews((meta) => {
      const manifest = manifestOf(meta.extension);
      if (!manifest) return null;   // refused: its port is closed
      return { adapter, reads: manifest.reads ?? [], names: { extension: manifest.name, view: viewName(meta) } };
    });
    // then, as things change, once for every open view: views.changed(ids), .selection(), .theme(), .writable()

    hostViews keeps one hostView per view window: a new port for a window replaces its handle (one end reloaded), and the window's closed drops it. onViewPort and hostView are there for an app that wants them apart.

hostView answers nothing before a hello for VIEW_API (another API is refused with a sentence, and the port closed); checks every request's shape (bad-request); keeps each node's ext to the view's own extension and its manifest's reads, children included; refuses a write read-only with the adapter's why; refuses media as unsupported when the adapter has none; answers a throw as failed; and debounces changed (100 ms, node lists merged, "all" wins). The theme it sends is readTheme(): the palette tokens (--bg, --surface, --card, --ink, --ink-soft (0.61), --muted, --line, --line-soft, --accent, --accent-soft, --on-accent, --danger, --warn, --ok, the three fonts, and --char-0 to --char-11) and the shell's grammar (radii, shadows, motion, scrim, scrollbar), with the scheme from the root's color-scheme.

The node envelope

Every node a view reads is { id, kind, parent, label, host, ext, children? } in both hosts: kind the manifest's node kind, host that host's own fields for the kind (below), and ext extension data by extension id, the view's own and its reads, nothing else. A write is a list of { node, field, value } edits to the view's own extension, applied as one undo step with its label or refused whole. field is one of the extension's top-level fields, never a path inside one: to change one key of a map, write the whole map. An absent value clears the field. A write's edits are all on the project node or none are, since the project's data and a scene's undo separately in Patterpad; hostView refuses a write that mixes them. A node whose data for the view's extension somebody else holds carries held, the sentence saying who, so the view can show it read-only; a write touching it is refused held.

Writing a view

import { connect } from "@wildwinter/app-shell/view-client";

const app = await connect();   // as the module loads: the port arrives once
const sel = await app.selection();
const node = sel.path[0] && await app.node(sel.path[0].id);
app.on("changed", () => redraw());
await app.write("Set shot", [{ node: node.id, field: "shot", value: "wide" }]);

The client sets the theme's tokens on the page's root (var(--ink) works) and its color-scheme, and keeps them current. A key combination with Cmd or Ctrl that the view didn't handle (didn't preventDefault) goes to the app in the portable spelling, so Mod+Z is the editor's undo; Mod+Z, Mod+Shift+Z and Mod+Y never run the page's own undo. Plain typing never leaves the view. A refused request rejects with a ViewRefusalError carrying the refusal.

The probe view (test/fixtures/probe-view/) is the shell's test view, there for hosts' tests to borrow: a probe extension targeting both hosts with one note field, and a plain-JS view (inspect, <probe-view>) that speaks the protocol itself, shows the selection's innermost node and its note, and writes the note.

Host fields

What each host puts in a node's host, by node kind.

Patterpad (host patter). gameData is always an object, {} when empty. padAfterDefault is the pause a node sets for what's inside it, present only when it sets one.

| Kind | host fields | | --- | --- | | project | name, cast ([{ token, name }], the shown name in the source language), qualifiers ([{ gameId, name }]), padAfterDefault (resolved), localiseDialogueText | | scene | title, address, gameData, padAfterDefault | | block | name, address, gameData, padAfterDefault | | group | role (choice, branch, sequence, or group), gameData, padAfterDefault. Not a manifest kind, so it carries no extension data. A choice's children are its options. | | option | text (the choice text), gameData, padAfterDefault. Its children are its prompt beat, then its run. | | snippet | gameData, padAfterDefault, padAfterEffective | | line | character, qualifier (or null), direction (or null), text (source language), padAfter (effective, as Patterplay resolves it), padInherited (where it came from: snippet, group, option, block, scene, project, or default; absent when the line sets its own), gameData | | text | text, action, padAfter, padInherited, gameData | | gameEvent | gameData |

Patterpad answers media (a take's measured length, else the estimate Play uses) and changes only the scene open in the editor and the project node; a write to another scene is refused read-only, saying so.

Storyletter (host storylets). An absent optional string is null; label is the title, else the gameId.

| Kind | host fields | | --- | --- | | project | name | | box | gameId, title, purpose | | deck | gameId, title, purpose, gate, box | | card | gameId, title, purpose, condition, priority, redraw, copies, tags ({ group: [tag gameIds] }), fields ({ name: value }), deck, box | | outcome | gameId, title, purpose, gate, fields, card, deck, box | | tagGroup | gameId, tags (gameIds), spatial, box (null for the map's group) | | tag | gameId, group | | handTemplate | gameId, title, purpose, slots, bindings, box | | hand | gameId, title, template, slots, tags ({ group: tag }), box |

Children: the project's boxes, then the map's tag group; a box's decks, tag groups, hand templates, and hands; a deck's cards; a card's outcomes; a tag group's tags. The selection has no outcome or tag, since Storyletter has no focus for either. Storyletter has no media.

v0.60 (a view plays audio, hears what's missing; one Add Extension)

Still view API 1: everything here is an addition a view feature-tests. Needs toolkit 0.3.1 (requires, missingRequirements, and a field's editor).

Audio, played by the host. A view asks play({ id }) for a line's or text beat's take (app.play(id)), and stop(); the app plays it as its own player does, so nothing about audio crosses into the sandbox. play answers true when the take plays and false when the node has none (media's measured says so beforehand). A host with no audio refuses both unsupported, and a host before 0.60 refuses them bad-request: treat either as "no audio here". The event playing says which take plays ({ id }), and { id: null } when it stops or ends, whoever asked for it. The adapter supplies play(id) (true, false, or a refusal) and stop(), and calls the handle's playing(id | null) as a take starts and ends; hostView stops a take its view started if the view closes while it plays.

Missing requirements. The welcome carries missing, the extensions the view's manifest requires that the project doesn't take ([] when none; absent from a host before 0.60), and the event missing ({ extensions }) says the new list when it changes. The adapter supplies missing(extension) (the toolkit's missingRequirements over what the project takes), and the app calls the handle's missing() whenever the project's extensions change; hostView sends it only when the list did. A view can then say "this project doesn't take Patterstage" instead of previewing as if it did.

One Add Extension. planPackageAdd(manifest, taken) (./view-host) decides what Add Extension does with a package for a project, so the same item serves the first person and a teammate whose machine lacks the views. Its views install on this machine whatever it says; project is take (the project doesn't take it: copy the manifest and pin it), update (the project pins an older version: offer the package's, one undo step if taken), or none (the same version, or the project pins a newer one, which it keeps: note says so). For take and update, missing lists the requirements the project lacks, which the app adds first (or refuses with a sentence naming them). There is no separate install item: a view the project offers but this machine lacks shows in the Window menu as viewMenuLabel(name, false), "Performance sheet (not installed)…", and opens Add Extension.

./view-package (0.60.1) is the package half of ./view-host with no Electron import: reading, installing and choosing packages, planPackageAdd, and viewMenuLabel, for main-process code that runs under test without Electron. ./view-host re-exports all of it, as before.

v0.61 (a view window wears the shell's head)

A view window now looks like every other tool window: frameless, with the shell's .swin-head above the view (its title, the pin, and close), drawn by the host. openViewWindow asks for it by default (frame: true gives the OS title bar and no head, as before). The page the scheme serves carries the head's markup and styles (?view=<id>&head=<title>&pin=1), and the view preload wires it in its own isolated world (wireViewHead), so the view's code never reaches the channels behind it.

  • The pin is drawn when the window has pinTo. A click pins or unpins the window (pinToolWindow, as Search and Play do) and calls onPin(on), where the app persists it (slice.setPinned). Main re-pinning it (Reset View) goes through the window's setPinned(on), which tells the head too.
  • Close closes the window, and so does Escape, the family's rule: not from a field, and not when the view has called preventDefault() on it. A view that uses Escape itself says so that way.
  • The head draws in the view's theme: the palette tokens the view's client sets on the root (applyTheme), with fallbacks until then. The view's own element fills the rest of the window.

Still view API 1: nothing changes for a view, which can't see or drive the head.

--ink-soft in the theme. readTheme sends --ink-soft too, the text tone between --ink and --muted (Patterpad's is color-mix(in oklab, var(--ink) 70%, var(--muted))). --muted in some palettes is too faint for text a writer must read, so greyed text that still carries meaning uses --ink-soft. A host that doesn't set it sends none: a view falls back to that same mix.

Increase Contrast. tokens.css answers prefers-contrast: more (macOS Increase Contrast): --muted, --line and --line-soft become mixes of the palette's own --ink into --bg (70% for the grey, 50% for both lines, since a soft line needn't stay softer here), so grey text reaches 5 to 7:1 and edges 3:1 in every palette, with nothing else changed. It outranks a palette block (:root:root:root), so an app's theme.css needs nothing.

./contrast, for tests: WCAG ratios (contrastRatio), color-mix(in oklab) (mixOklab, resolveColour), an app's palettes read from its theme.css in cascade order (themePalettes: default, each data-theme, and system-dark), and contrastShortfalls(palettes, tokens, grounds, needs). withHighContrast(palette) applies the block above, and HIGH_CONTRAST_MIX holds its mixes. Each app's suite holds its text tokens to TEXT_CONTRAST (4.5).

v0.62 (a view's storage survives a restart)

Each extension's views now run on a persistent partition, persist:view-<id> (viewPartition), instead of an in-memory one: what a view keeps in its own localStorage or IndexedDB (a remembered tab, a panel shown or hidden) is still there after the app quits, and after the extension is upgraded. It is still one partition per extension, never shared with another extension or with the app, and still reaches nothing off the view scheme, with every permission refused. A view should still default quietly when its storage is empty.

clearViewStorage(extension) (./view-host) forgets all of it (the partition's storage and cache), for an app that removes an extension from the machine.

The Extensions window (patterkit design/extensions-window.md): one File ▸ Extensions… in each app, replacing Add Extension…, opens a tool window listing every extension the project takes or this machine has installed, with Add extension… at the top and, on each row, Remove from project…, Install on this machine…, and an Uninstall for each installed version. The shell supplies the parts; each app supplies the window and does the work, asking first.

  • extensionRows(taken, installed, host) (./view-package, pure): the rows. Each says where it's taken and at what pin, its views in this app, every installed version, whether its views need installing here, and which other taken extensions require it.
  • planProjectRemoval(id, taken): refused, with a sentence, while another taken extension requires it ("Pattershot needs Patterstage, so remove Pattershot first."), the add rule the other way round.
  • uninstallViews(dir, id, version) (./view-host): removes that version, and clears the views' storage (clearViewStorage) once no version is left, so moving between versions keeps a view's settings. Close the extension's view windows first.
  • extensionsPanel(actions) (root export) and extensions-window.css: the panel a window page mounts under toolWindowHead, drawn from an ExtensionsPanelState main sends. Every button only calls its action.

Remove from Project keeps the extension's data on nodes (validation already says data for an untaken extension is kept and not compiled), as one undo step.

v0.63 (Update… in the Extensions window)

Each row has Update… (one the project takes, or one installed here). The app asks for the extension's package, then says what will happen before doing it:

  • planPackageUpdate(row, manifest, current, host, taken) (./view-package): measured against the project's pin, or the newest installed version. newer carries changes (manifestChanges: the fields each node kind gains or loses, the views gained or lost, what it newly needs) and missing; same is a reinstall; another extension's package, or an older version, is refused with a sentence naming both.
  • sameAsInstalled(pkg, root): the package's files are exactly what's installed, so a reinstall would change nothing and the app says so.
  • ExtensionsPanelActions.update(id) is the button's action.

A newer version goes into the project as Add's update does (one undo step), and installs; the same version replaces the installed files, and the project's copy of the manifest too when the package changes it. The project's other extensions and its data aren't touched; values the new manifest no longer accepts show among the usual problems.

v0.64 (one family palette, and a crisper grammar)

From the October 2026 UI review (patterkit design/ui-review-2026-10/00-conclusions.md, ruled 2026-10-27): the family shares one set of colours, and the grammar moves to the "Fair Copy" look.

palette.css, new: Light (the bare :root), Dark, and Parchment on data-theme, with Follow System (no attribute) tracking the OS. Blue pencil is the accent in every app; one character and deck wheel; shared status colours; and three new tokens: --selection (a selected row's neutral fill), --hover, and the derived --ink-soft and --ink-read. The tiers are --bg (the desk), --surface (panes, bars, menus, dialogs) and --card (content and fields, white in Light). An app imports it after tokens.css and drops its own palette blocks:

@import "@wildwinter/app-shell/tokens.css";
@import "@wildwinter/app-shell/palette.css";

./theme, new: the ids as data, for a store, a menu and the root attribute. THEME_CHOICES (Follow System, Light, Dark, Parchment, in menu order), ThemeChoice, migrateTheme(stored) (Paper, Mist, Chambray and Linen go to Light; Night, Slate, Indigo and Baize go to Dark; anything unreadable to Follow System), and themeAttribute(choice).

tokens.css, retuned:

  • The chrome base is 13px, and every shell font size is one of five steps, --text-xs to --text-xl (11, 12, 13, 15, 22). On Windows (:root[data-platform="win32"]) the middle two are 14 and 16. --weight-regular, --weight-medium, --weight-strong, and two leadings.
  • --font-ui is the system face (SF Pro, Segoe UI), with Inter as the fallback. An app's own --font-ui still wins until it drops it.
  • Radii 4, 6 and 8, and --radius-dialog 12.
  • No shadow at rest (--shadow-1 is none). Two floating tiers, --shadow-pop and --shadow-modal, each a 0.5px ring and a soft drop; --shadow-2 and --shadow-3 alias them. Menus, popovers, toasts and dialogs lose their 1px border, since the ring is the edge.
  • --hairline: 1px, 0.5px on a 2x display.
  • One rendered icon stroke, --icon-stroke (1.25px, non-scaling).
  • Motion: --dur-panel 200ms; panels enter with a 4px rise and no scale. Tooltips, menus, popovers and anchored panels appear at once; a toast still fades out. Reduced motion zeroes every duration too.
  • No blur behind a dialog.

Shell stylesheets: weights follow the rule (600 for titles, 500 for a button and the selected item, 400 for serif titles); "Saved" is muted with no dot; the current settings tab is ink on --selection; a menu's highlighted item is the accent, filled; menus set themselves in the UI face.

Locked controls stay readable: a locked field keeps --ink with no fill or fade, and every locked control has a dashed edge and the not-allowed cursor (fading had taken locked values under AA in every palette).

v0.65 (the frame's shared pieces)

The composition step of the October 2026 UI review (design/ui-review-2026-10/3-composition.md, proposals 7 to 9): three things both apps drew alike are the shell's now, in pane-shell.css, which both already import.

  • .shell-nav-row, one navigator row: 28px at weight 400, a hover on --hover, and the open document's row marked by aria-current on the neutral --selection fill, in ink at 500 with a 2px accent mark. With .shell-nav-count (a quiet, tabular count) and .shell-nav-add (the "New scene" / "New deck" foot).
  • .shell-topbar-title and .shell-topbar-sub: the project's name in ink and the open document's in the quieter ink, at one size, and no app name.
  • .shell-statusrow: a 28px row at the window's foot, with no rule and no fill, for hints, a canvas summary or an armed tool's instruction. It leaves Live Link the room it publishes, and Live Link now sits centred on it (its toggle 22px, 3px off the corner).
  • Two drawn icons for a canvas's verbs: frame (Lucide panel-top) and arrange (Lucide workflow).

themePalettes reads a built stylesheet's unquoted selectors ([data-theme=dark], as the bundler writes palette.css) the same as quoted ones, so an app's contrast test can read the shipped file.

v0.66 (a jump and a call, drawn; one focus ring)

Two drawn icons for a script's flow, from the October 2026 UI review's END marker (design/ui-review-2026-10/3-composition.md, proposal 3): jump (Lucide corner-down-right), a one-way jump, and call (Lucide iteration-ccw), out and back. Patterpad typed "↪" and "⤳" for these.

The family's keyboard focus ring now covers editable text as well. A contenteditable used to fall back to the system's ring, which macOS draws in the user's accent colour (Patterpad's scene title showed up boxed in orange). An editor that draws its own focus still wins, as before.

v0.67 (Undo, not "Are you sure?"; a quiet updater; a command palette)

The behaviour step of the October 2026 UI review (design/ui-review-2026-10/4-behaviour.md, changes 1, 2 and 6).

  • A toast can carry an action: toast(message, kind, { action: { label, run } }) draws a bordered button beside the message, stays 8 seconds, and holds while the pointer or focus is on it. The apps use it for Undo after a delete, in place of a confirm that ended "You can undo this."
  • An update that downloads on its own no longer opens a dialog. Main sends UPDATER_CHANNELS.ready; the renderer's showUpdateReady(info, { host, restart }) puts a "Restart to update" chip in the top bar and says so once in a toast. The chip sends UPDATER_CHANNELS.restart, which installs after the usual unsaved-edits question. Help > Check for Updates still answers in a dialog, since the author asked. Style: updater.css.
  • The command palette, on Cmd+K (VIEW_MENU.commandPalette): openCommandPalette({ commands, run, items }) lists the app's live menu by name (greyed where the menu is) and the app's own quick-open rows, filters as you type, and runs the pick after giving focus back. The menu comes from ./palette-main (registerCommandPalette(), openCommandPaletteIn(win)), which reads Menu.getApplicationMenu() through flattenMenu and runs an item as clicking it would. Style: command-palette.css.

v0.68 (What's New)

Step 5a of the October 2026 UI review: the first launch after an update says what's new, in the changelog's own words, and Help ▸ What's New (HELP_MENU.whatsNew) shows the latest at any time.

  • ./changelog reads a Keep a Changelog file, with no DOM: parseChangelog gives each version's headlines (each Added, Changed and Removed entry's bold lead, or a ### Highlights list when a version has one) and a count of its fixes; versionsSince, latestVersions and compareVersions pick which; entriesWithoutLead is for a release check, which fails on an entry What's New couldn't headline.
  • whatsNewAfterUpdate(state, opts) opens the dialog for every version since the last run, newest first: nothing on a fresh install, only this version for an install from before What's New, and nothing when the "Show what's new after updates" tickbox is off. openWhatsNew(opts) is the Help item: the latest three. The app passes its CHANGELOG.md as text (built in, so no network) and where each version's full release notes are. Style: whats-new.css.
  • ./whats-new-main's registerWhatsNew({ version, read, write, existing }) keeps the last version and the tickbox in the app's own settings, and gives the launch answer until the dialog is closed (WHATS_NEW_CHANNELS.seen, which the launch's onClose sends), so a reload at launch doesn't lose it.

v0.69 (hover that fades)

After step 6 of the October 2026 UI review: controls that appear on hover, and hover tints, were blinking in and out at 120ms or snapping with no transition at all, and a page of them felt busy. Four tokens give hover its own timing (tokens.css): a revealed control fades in over --dur-reveal (180ms) after --reveal-delay (60ms), so a pointer sweeping a page doesn't flicker every row, and fades out over --dur-conceal (280ms); a hover tint or colour eases over --dur-tint (160ms). Reduced motion turns all four off. The shell's own hover tints use them (nav rows, pane toggles, buttons, settings tabs, comment rows, the stepper, the update chip and the rest). Menu and palette rows keep their instant highlight: it follows the keyboard, as a native menu does.

v0.70 (what changed outside, and what a change answers)

From the hands-on review of October 2026. Disk stamps (./history): DiskStamps remembers what an app last read or wrote, file by file, by modification time and size (fileSignature), and changedSince names a file changed outside the app since, so a write built from the old bytes is refused rather than throwing the change away; matches says whether a walk of the project still finds exactly the files noted, unchanged. Both apps use it. The comments popover redraws from the threads a change answers: post, setResolved and deleteMessage may return every thread on the thing as it now stands, directly or once the write lands. A reply shows at once, a new thread's second post replies to it rather than starting another, and a host that hands the popover copies never shows stale ones. The property list takes onRename, fired once when a name edit is committed, for a caller that carries every reference to the old name.

v0.71 (focus that lands, and a colour that stays)

From the hands-on review of October 2026 (the keyboard and character colour findings, and rulings Q14 and Q16).

  • A collapsed pane leaves the Tab order. The pane shell sets inert on a collapsed or held-closed pane and clears it when the pane shows, so Tab no longer walks through controls you can't see. Collapsing a pane that holds focus hands focus out of it first, rather than letting it fall to <body>.
  • Cmd+1 and Cmd+2 move focus into an open pane. focusOrToggle(side) is the one call for a pane's shortcut: a closed pane opens and takes focus, an open one takes focus, and only when focus is already inside does it close, giving focus back to where it was. focusTarget names what a side focuses (default: its first control) and focusHome where focus lands when the earlier place has gone (default: the centre's first control). togglePane and the toggle buttons stay plain toggles.
  • Focus comes back after a dialog whose opener has gone. dialogFrame (and confirmDialog) take returnFocus, an element or a function called at close; failing that, the opener; then the nearest ancestor of the opener still in the page that can take focus; then the host's setDialogFocusFallback. canTakeFocus and firstFocusable are exported for hosts that name these targets.
  • Comments say Resolve and Resolved. The popover's action is "Resolve" (it said "Mark complete"), and a resolved thread, and its row in the picker, says "Resolved" in words as well as fading.
  • A character can keep its colour. colourIndex(name, stored?) and colourFor(name, stored?) answer a stored palette slot when it is valid and the name's hash otherwise; hashColour(name) is the bare hash, for an app to stamp into its model when a character is renamed, and isColourSlot checks a stored value. Callers that pass only a name are unchanged.

v0.72 (one clash resolver)

From the hands-on review of October 2026 (ruling Q21). When a merge clashes, each app's merged shard keeps your side and records the clash under its unresolved key, and the author used to settle it by editing files. Now both apps settle it in one shell dialog, through an adapter of their own.

  • openClashResolver({ adapter, returnFocus?, onChange?, onClose? }) opens "Resolve clashes" on the dialog frame. It lists every clash the adapter gives: where it is, what kind of clash it is, the path, and your side against theirs (long text wraps, a side with no value says "Absent on this side", and the sidecar's detail and the value before the merge show when the adapter passes them). Each clash offers Keep mine, Take theirs and Edit; one the adapter marks as not settable (Patter's moved, a structural clash) offers Keep mine and Edit. It answers { dialog, refresh(), close(), isOpen() }.
  • Every decision goes through the app. The shell never writes: Keep mine and Take theirs call adapter.resolve(id, "ours" | "theirs"), and the app makes it one undoable step through its own writer and answers with the clashes left, which the dialog shows (as the comments popover's callbacks do). The buttons rest while a write is in flight; a refusal shows in a toast and leaves the clash there.
  • Edit, then Mark resolved. Edit closes the dialog and then calls adapter.edit(id), so the app's own focus lands last. Opened again, that clash shows Mark resolved (adapter.markResolved(id)), keeping what's there now.
  • The keyboard. The first clash takes focus when the list arrives, Up and Down (and Home and End) walk the clashes from a clash or any of its buttons, Tab reaches the buttons, Escape closes, and focus goes back by the frame's rules (returnFocus, the opener, its nearest surviving ancestor, the host's fallback). After a decision, focus goes to the clash that took its place; with none left the dialog says "No clashes left." and Close has focus.
  • clashBanner({ onResolve, count? }) is the condition bar an app mounts at the top of its window: "This project has 3 unresolved clashes from a merge." and Resolve…. It answers { el, update(count) } and hides at 0; feed it from the resolver's onChange.
  • PROJECT_MENU.resolveClashes ("Resolve Clashes…") and resolveClashesMenuItem(count), which adds enabled: count > 0.
  • clashKindLabel(clash) and clashCountText(n) are the words the dialog and banner use. Style: clashes.css (with dialog.css and controls.css).
import { openClashResolver, clashBanner, type ClashAdapter } from "@wildwinter/app-shell";
import "@wildwinter/app-shell/clashes.css";

const adapter: ClashAdapter = {
  list: () => api.listClashes(),                 // the unresolved entries, as Clash rows
  resolve: (id, side) => api.resolveClash(id, side),  // one undo step; answers the clashes left
  edit: (id) => goToClash(id),
  markResolved: (id) => api.markClashResolved(id),
};
const banner = clashBanner({ onResolve: () => openResolver() });
topOfWindow.prepend(banner.el);
const openResolver = () => openClashResolver({ adapter, onChange: (left) => banner.update(left.length) });

A Clash is { id, where, path, kind, kindLabel?, ours?, theirs?, base?, settable, detail? }: the id is the adapter's own (unique in the project), and ours, theirs and base are display text the adapter has already written, absent where that side has no value. The shared kinds (both-changed, delete-vs-edit, added-both, structural) have the shell's words; a family's own kind brings a kindLabel.

v0.73 (field rows that fit)

  • Field rows fit a narrow inspector. At inspector widths of about 220px and below, a quality's rung strip and a map's key field ran past their row and the inspector scrolled sideways. Every control in a field row now stays inside it: the rung strip wraps within the row, a long stage name wraps within its rung, and a key field gives up its 10em when the row is narrower. Measured in Patterpad's preview: 45 to 67px of overflow in a 130px control column before, none after.

v0.74 (a navigator drawn as a tree)

  • Tree keys. wireTreeKeys(host, toggle), treeKey, treeRows, and rove give a navigator drawn as a tree one tab stop and the arrow keys: Up and Down between visible rows, Right to open a row or step into it, Left to close it or step out, Home and End. Rows say what they are in the DOM (role="treeitem", aria-level, and aria-expanded on a row with children), and a row found again after a redraw carries data-nav-key. Lifted from Storyletter's navigator for Patterpad's scene folders.
  • Drop into a row. wireReorder takes an optional { onInto }. A row wired with it is a container, such as a folder: its middle half takes a drop into it, wearing .drop-into, and calls onInto(draggedId, targetId). Its top and bottom quarters still mean before and after. Existing callers don't change.

v0.75 (an announcement in What's New)

  • An announcement. A version's changelog can carry a ### Announcement section: hand-written news, such as a new member of the family. What's New draws each entry as a callout above every version it shows, so it reads as a banner even when several versions show together. Each entry is a bold title and the words after it, with [links](https://...) and code kept; a web link opens through the app's openExternal, and any other link keeps only its words. It goes with its version: shown on the first launch after that update, and in Help ▸ What's New until three newer versions have shipped. parseChangelog gives each version's announcements ({ title, body }), apart from its headlines, and entriesWithoutLead holds them to the same rule as every entry: a bold title.

    ## [0.41.0] - 2026-11-05
    ### Announcement
    - **Meet Patterstage.** Patter stories, staged in Unity, Unreal, and Godot. [Find out more](https://...)

v0.76 (the live link sends the protocol's own messages)

  • send(msg) on the live link server sends the connected game one of the protocol's own messages, such as Patterpad's request to play a block in the game. It returns false, and sends nothing, when no game has said hello. pushBundle is unchanged.

v0.77 (a live link games can come back to)

  • A replaced game is told so. The server still takes one game at a time; the one a new connection replaces is now closed with code 4000 ("replaced", exported as LIVE_LINK_REPLACED). A client that retries stops on it, so two running games don't take turns knocking each other off. Patterplay's and Storylets' clients reconnect to one rule (1 s doubling to 10 s, a hello again with the open flows), which stops on 4000.
  • onStaleHello (option): called when a game says hello on a build that isn't the project's, the first hello on its connection. The app compiles and pushes its current bundle, so a game started from an older bundle, or one that reconnected after edits, catches up without waiting for the next save. Once per connection, so a bundle the game can't take isn't pushed in a loop.
  • gameBuild() on the server: the build the connected game last said it runs, null with no game.
  • Unpublished edits. With the publishedBuildHash option (the hash of the bundle on disk), the connected status carries unpublished: true while the game runs a bundle this server pushed that isn't that one. The chip shows Unpublished edits beside it, and the tip says the game is running edits that haven't been published (UNPUBLISHED_TIP). Call pushStatus() after a publish so it clears.
  • @wildwinter/app-shell/sibling-app (main process, Node only): finding and starting the other family app, which Patterpad (Show Card in Storyletter) and Storyletter (Show Scene in Patterpad) each had a copy of. SIBLING_APPS (each app's name and bundle id), appExecutable, findApp (the remembered path, then the fixed places, then Spotlight on macOS, asynchronously and only after a miss, so it never freezes the app), launchApp (<project> --at <address>, detached, never open -a), the Locate words and picker options (locateCopy, locateDialogOptions), and locateApp, the one flow: found, else asked in the window, picked, and remembered, given the app's ask, pick, and remember.
  • The window prompt, so main can ask a question in the app's own chrome, never a system message box (Patterpad's, now the family's): @wildwinter/app-shell/prompt-main's createWindowPrompt({ window }) gives ask(prompt) and tell(title, sub, body?); the window draws it with promptDialog (from the package's root); the preload wires the two over PROMPT_CHANNELS (@wildwinter/app-shell/prompt-channels, with onPromptRequest for a preload whose build bundles app-shell). The channels are app:prompt and app:promptReply. A sandboxed preload that can't load the package names them itself; pin them to PROMPT_CHANNELS in a test.

v0.78 (links that leave the app)

  • @wildwinter/app-shell/external-links (also from the package's root): externalLinkAllowed(url, { links, repo, sites }), the family's rule for what the renderer may open in the browser: the exact About links, the app's own GitHub release pages (https://github.com/<repo>/releases/tag/v<version>), and pages on the app's own sites. https only, no credentials. And releaseNotesUrl(repo, version), the release page What's New's "Full release notes" links to. Both apps let out only their About links, so that link (and any link in a changelog announcement) did nothing.

Roadmap

Later slices lift the rest of the common shell from Patterpad (canonical), reconciling Storylet Studio's variants: the pane grid + toggles, the command palette, and version control's renderer half. Storylet Studio migrates each first (proving app-agnosticism); Patterpad follows - see patterkit/design/from-storylets/patterpad-onto-the-shell.md for that order.

v1.0 (the 1.0 release)

  • 1.0.0. The API of 0.78.0, unchanged, declared settled. From here the version follows semver: a patch fixes, a minor adds, and a major removes or changes a meaning (patterkit design/release-1-0-readiness-2026-11.md, section F).
  • Peers at 1.x. The optional peer on @wildwinter/toolkit reads >=1.0.0 <2.0.0: the shell's 1.x goes with the family's 1.x. (1.0.0 also raised the @wildwinter/simple-vc-lib peer to >=1.0.0; 1.0.1 puts it back to >=0.5.0. simple-vc-lib isn't part of the family's 1.0 and stays at 0.5.x.)

v1.1 (What's New reads like it was written for you)

v1.1.1: a preview stops at the first sentence that would pass the cap; 1.1.0 skipped it and went on to shorter ones after it, leaving the middle out.

Ian, 2026-11-08, on the first What's new page: "make it human friendly; a short lede and a quick idea of what that means, nothing mechanical." The writing half is patterkit design/changelog-writing.md; this is the display half, in ./changelog and the dialog:

  • Each entry's preview is its bold lede and the rest of its first paragraph, whole sentences, up to about forty words (PREVIEW_WORDS), not the first sentence alone. leadOf(text, cap?).
  • Breaking first, marked. A ### Breaking entry's preview comes before Added, Changed and Removed, with breaking: true and a "Breaking" tag in the dialog (.whatsnew-tag).
  • Fixes show by their previews under a small "Fixed" heading (ChangelogVersion.fixed, .whatsnew-sub, .whatsnew-fixed); fixes is still their count.
  • A carrier version is one line. A version whose only entries say another release is inside ("Patterplay 0.46.0 inside", "Nothing changed in the runtime") has carrier: true and is drawn as one line, the version in front (.whatsnew-carrier), rather than a heading of its own.
  • changelogProblems(md, version) is the release check: an entry with no bold lede, a lede over LEDE_WORDS (12), a bare label with nothing after it, or a package name in the lede, each with the words to say to the person releasing. entriesWithoutLead stays for the first of those.

v1.2 (a group of fields that starts closed)

A closed group (@wildwinter/app-shell/value-rows; Pattershot's brief extension-closed-field-groups, 2026-11-10): a manifest's groups can say a group of fields starts closed (toolkit 1.1.0, groupClosed). Such a group is its heading with a disclosure and the same count as the section's caption ("More (2 set)"), and only the fields the node sets, until the author opens it to every field. The rules are the fold's: a group stays open or closed per extension and group for the session, from node to node; a value cleared while it's closed keeps its row until the author leaves the node.

  • fieldGroups() draws a list of rows so: every field in the manifest's order, a heading wherever the group changes, a closed group's heading given a disclosure button (.shell-group-cap, inside the host's own heading, which gains .shell-group). Opening one redraws its rows in place. Project Settings uses it directly, one kept per view, with sweep() after each redraw.
  • extensionFold() takes closed in section() and uses its own groups while a section is open. Folded, the section shows the set fields under plain headings, as before.
  • lockControls leaves the disclosure live, as it does the section's caption (1.2.1: 1.2.0 turned it off in a locked view, so a closed group's other fields couldn't be seen there).
const groups = fieldGroups();   // Project Settings' own, kept across redraws
holder.append(...groups.rows({
  extension: x.id, node: nodeId, fields, entry, row, group: (name) => heading(name),
  closed: (name) => groupClosed(manifest, name),
}));

v1.3 (field help as a tooltip; lists and maps as tables; a pick that takes any text)

From Pattershot's briefs field-help-as-a-tooltip and lists-and-maps-as-tables-in-settings, at Ian's request (2026-11-10): an extension with a few dozen fields ran to screens of help paragraphs and stacked rows.

  • A field's help is the caption's rollover, not a paragraph under the control: hovering a caption that has help shows it in the themed tooltip (the caption takes a help cursor; there's no mark). A keyboard user gets it above the control when the control takes focus from the keyboard (not on a click). The help stays in the page, visually hidden, as the control's description, so a screen reader still reads it. What the chosen value means (valueHelp) joins the same tooltip on a second line, after the value's name, and is described the same way, so nothing but a problem is drawn under a control. A record grid's column headings carry their field's help too.
  • A list or a map of single values is a table: each entry's value (a map's key first) and its tools on one row, in one grid, with the adder as the last row, sized and placed as a row. Every table on a page shares its widths, so the tools line up in one column. A list draws no numbers: a screen reader hears each item as "moods, item 2".
  • "Not set" reads one way: an unset pick shows default (auto), as an unset enum already did.
  • A closed group keeps what's set outside it (amends v1.2): the fields a node sets are drawn above the group's heading, in the manifest's order, and the group holds only the fields left at their defaults, so closed it's its heading alone, with no count. A field doesn't move while it's being edited: the split is settled when the group is closed or the node changes. A group with nothing left inside draws no heading.
  • tables: true on a value row lays a map of records (recordMapGrid) or a list of records (recordListGrid, new, with move and remove tools per row) out as a grid, a column per field, for a page with room (Project Settings). Without it, a record is stacked rows, as a narrow inspector wants.
  • Captions sit at the top of a list or a map, however long it is, and every row honours the app's labelClassName (a pick, a reference, a list, a map and a record used to ignore it, so their captions looked unlike a plain field's). A list's controls share the left edge of a plain field's; only a record inside one is set in with a rule.
  • The Extensions window says what's installed (Pattershot's brief extensions-dialog-installed-here): each extension's installed copies are "Views installed on this machine", each with "used by this project" or "not used by this project" when a project is open (ExtensionRow.inUse, the copy chooseInstalled would open), and a line on why there can be several. Uninstall buttons end in "…", since they ask first. The window and the package sentences say a project "uses" an extension, not "takes" it.
  • A pick that takes any text (toolkit 1.2.0's { "pool": name } source, from Pattershot's brief free-text-with-suggestions): drawn as a text box with a list of suggestions under it, not a dropdown. It offers the pick's fixed words, then its nodes by name, then the pool's values the host passes as ValueAdapter.pool (the commonest first), filtered as the author types, anywhere in the name, case ignored. Arrows, Enter, and Escape work the list; leaving the box keeps what's typed; a name a source holds is that choice (a cast member by name is held by id). suggestBox (src/suggest-box.ts) is the box.
  • tipFor(anchor, text) shows a tip for an element without giving it a data-tip, dr