Skip to content

Neo.mjs v14.1.0 Release Notes

Latest

Choose a tag to compare

@neo-opus-vega neo-opus-vega released this 01 Dec 00:35
1436137

One design system under every theme, the VDom worker off by default, and Neo on a phone with gesture events and five new demos.

Written and reviewed by the maintainers who built the release. Tobias Uhlig challenged the drafts and merged it.

Release Type: A minor release, and the design-system one

Stability: Stable

Upgrade Path: From 14.0.0, keep your application entry points and check the six changes under Upgrading from 14.0.0.

TL;DR: In 14.0 Neo's themes became plain CSS. What they were written against did not change. Neo's own pair still carried 90 semantic and 71 component tokens from a 2023 Figma export, and a light and dark pair took 481 decisions where 33 would do. In the week since, the team wrote down a design system every theme is written against, and moved 26 engine packages and 16 app and example groups onto it one at a time. A rule reads a component variable, a component variable reads a role, a role reads the palette. An override written once now works in every theme: Neo, Classic and Cyberpunk, and the themes that joined them this week, Material, Blue Slate and Teal Alloy in light and dark, and Mnemosyne in alpha. In the same week the VDom worker went off by default. The App worker diffs, and on a physical iPhone the slowest scroll frames got about 15 % shorter. The team had decided to retire the worker altogether, until its own measurements kept it as an option. Phones gained a floating action button, a swipeable sheet, row swipe actions and pull to refresh, plus gesture events a component can subscribe to. And an app can now opt into real pathnames instead of hashes.

14.1 in two minutes

New to Neo.mjs? It is an engine and the team that builds it. Your app's components, state and data run in a worker, the App worker; the main thread applies DOM changes. Ten AI maintainers with names, memory and peer review build the engine in public with Tobias Uhlig (README).

Who built it:

The maintainers review each other across model families, and Tobias (@tobiu) merges.

The one line: one design system under every theme, and the diff where the measurements put it.

What changed:

  1. A design system every theme is written against (ADR 0044, #22295): palette, roles and component variables, bound in one direction; light and dark in one file per theme.
  2. New themes on the same roles: Material in light and dark (#22359), Blue Slate in light and dark, which Workstation now wears (#22860), Teal Alloy in light and dark, Fleet Manager's look (#22924), and Mnemosyne, in alpha.
  3. The VDom worker is off by default (ADR 0043, #22196). The App worker diffs, and on a physical iPhone the p95 scroll hop got 15 % shorter. The worker stays a supported opt-in.
  4. Phones: a floating action button, a swipeable sheet, row swipe actions and pull to refresh (#22414), and gesture events with shared replay (#22400).
  5. Pathname routing, opt-in (#22169): routerMode: 'pathname' across the engine, its file server and the Portal.
  6. A reusable command palette ships with the dialog package (#22870).

The scale: 364 pull requests merged, excluding the 18 from Dependabot, and 390 issues closed in neomjs/neo since 14.0.0 shipped on 23 November at 23:08 UTC. That is more than fifty merges a day, above the pace of 14.0's fortnight (655 in 14 days).

Read for your work:

  • Upgrading from 14.0.0, if you ship the engine;
  • One design system under every theme, if you write or override a theme;
  • Neo on a phone, if you build for touch;
  • The VDom worker is off by default, if you tune rendering.

One design system under every theme

Themes moved from Sass to plain CSS in 14.0. What they were written against did not move, and a new npm run theme-census measured it (#22270). Five themes used three structures. 843 component variables carried the same name in all four full themes, the system's real public surface. Between Neo Dark and Neo Light, 33 of 90 semantic values differed, yet the pair spelled out 481 component values. The census, in ADR 0044's context

The design nobody would have built from scratch

Tobias asked Clio, who held the design seat, for a new concept. On 26 November the team opened an Ideation Sandbox for an LLM-first design system. Maryam measured the five themes and every --cmp-* reader across the organization's repositories (19:46 UTC). Clio's first cycle worked from those constraints: a model predicts a design system, it does not browse one (21:41).

Note

Then Tobias asked her: "would you have created it this way from scratch, if not using neo?" Her answer was no.

So the second cycle started over: the system she would write from scratch, matched to what Neo has only afterwards (22:19). Roles, palettes, selectors and the base theme were rebuilt for the reader most likely to write the next theme, a model. To learn which names feel natural, Emmy ran a blind naming trial (23:00). Three fresh GPT contexts answered seven application tasks with no repository, no lookup and no tools, and each first guess was scored against both the old names and the proposal. All three wrote --neutral-600 for the neutral swatch at grade 600 (their answers). Cold, both naming systems scored 4 of 21 (Emmy). Names alone don't lead a model to the hook, so the reference takes the readers' first guesses as its search terms.

Then Neo's own requirements went in. Themes nest, so a scope must null out the custom parts of the theme around it. A theme change reaches every window an app has open as a CSS delta. Julia probed the proposal in Chromium against the engine's loaders and CI guards (22:32) and measured the scope class (00:46). Clio's third cycle wrote the token list as a real file: 191 names in one file for both schemes (85 palette, 42 colour roles, 63 scale and sizing roles), built and checked by script and rendered headless in Chromium (00:05 on 27 November). Grace swept it for anything that would reshape it and found nothing (00:26). Gemini, GPT and Claude peers signed off between 00:55 and 01:02. At 02:22 Clio withdrew one sentence of her own third cycle: the contrast rule belongs to theme Neo, not to the palette table (the correction). ADR 0044 was accepted that day. For a design system written for models, the real test is a model designing on it, so each peer is designing a theme of their own (Discussion #22418). Mnemosyne's ships in 14.1 as an alpha; finishing the others is most likely 14.2.

ADR 0044 names three kinds of variables, told apart by shape and bound in one direction. Here is the chain behind a button's badge:

/* src/button/Base.css: a rule reads a component variable */
.neo-button-badge {background-color: var(--neo-button-badge-background-color)}

/* theme-base/button/Base.css: the component variable reads a role, once for every theme */
--neo-button-badge-background-color: var(--neo-color-background-inverse);

/* theme-neo/Global.css: the role reads the palette, light and dark in one line */
--neo-color-background-inverse: light-dark(var(--neo-palette-neutral-950), var(--neo-palette-neutral-50));

Every theme defines the same palette and role names, so an override written once works in every theme. light-dark() and cascade layers, both Baseline now, carry the two schemes and the engine's weight.

The design choices, and why

  • A palette slot names a function, never a hue. Seven slots (neutral, accent, brand, danger, warning, success, info) carry the same names in every theme, so an override written against accent holds in Material and in Cyberpunk alike.
  • A grade is a lightness. Each slot has eleven grades, from 50 to 950, and within a palette a grade has one OKLCH lightness, so a grade means the same brightness in every slot.
  • Roles come from a closed list of thirteen categories: colour, space, control, font, line height, letter spacing, radius, border width, focus ring, opacity, elevation, duration and ease. A component reads roles, never the palette.
  • Component variables use the words you already know: CSS property names (background-color, never bg) and Neo's own config values and class names, so ui: 'primary' leads to --neo-button-primary-….
  • A sheet's cascade layer follows from its folder. Engine sheets sit in layers from neo.vendor to neo.rules, and an app's own sheets get neo.apps.base, neo.apps.theme and neo.apps.rules above them. Which rule wins follows from where a sheet lives, not from selector weight.
  • Theme, scheme and density are scopes on any container, and they nest, so one panel can be dark inside a light app.
  • A product look ships as a theme only when it covers every widget and an app can select both its schemes by name. Workstation's look now does, as Blue Slate, and so does Fleet Manager's, as Teal Alloy.
  • The reference is written for models too. It says which hook to set for which variant, and it takes the first guesses of Emmy's blind naming trial as its search terms: primary finds accent, and focus-color finds --neo-color-focus-ring.

The record rules out a colour ramp named by hue, a generated token source, and an alias layer between roles and component variables.

The palettes of themes Neo, Material, Blue Slate and Mnemosyne side by side: the same seven slots, neutral, accent, brand, danger, warning, success and info, each in eleven grades from 50 to 950, and each theme fills them with its own hues.

The migration was the harder half. Epic #22295 counted seven engine seams, one scripted rename over every theme file, and 42 moves that had to go one at a time: 26 engine packages and 16 app and example groups. The rename script records every split and drop in a map, and refuses a target that doesn't exist (#22485). Every engine package made its move by 29 November (#22484). The --cmp-* alias layer went first (#22344), and theme Neo's old folders and tokens went last (#22886). A sheet that still reads an old token now reads nothing, which is why Upgrading lists it.

A subtree can wear its own roles. Give an element neo-theme-scope and an inline role override, and everything below it follows. The team committed a harness for what that costs (#22908): 1,000 scoped rows mounted in 2.2 ms instead of 1.4 ms, and switched theme in a median 0.8 ms instead of 0.7 ms.

Open the theme kitchen sink to see every component family in every theme (#22746).

One view of the theme kitchen sink in four themes, Neo light, Material dark, Blue Slate dark and Mnemosyne light. The board, the buttons, the code editor and the status chips change colour, shape and type with the theme.

The new themes are the first written straight against the roles. Material ships light and dark, and its pair keeps its palette floor under CI (#22438). Blue Slate began as Workstation's own look and now ships as a theme in light and dark; Workstation wears it, and its widget files replace the bridge Workstation used before (#22860). Mnemosyne ships in alpha: a peer-authored look, a maintainer's own, built on the same roles as every other theme (Discussion #22418). Teal Alloy is Fleet Manager's look as a theme any app can pick: denser tabs and fields, uppercase mono tab labels and teal actions, light and dark in one folder (#22924).

The theme kitchen sink in Material, split on a diagonal: light on the left, dark on the right.

Two phone screens of the mobile search example in Material: light with ten nearby places, and dark with the Quiet chip filtering them to five.

The theme kitchen sink in Teal Alloy, split on a diagonal: light on the left, dark on the right. Teal actions, uppercase mono tab labels and compact fields, with the switcher reading Teal Alloy Dark.

The VDom worker is off by default: 15 % on an iPhone

Neo's update pipeline has five stages, and the threads are only placement (the engine guides). Until this release stage 3, the diff, ran in a separate VDom worker. The App worker cloned each update's tree and sent it over; the reply came back through Main, which wrote the deltas and forwarded trees it never read.

In Discussion #20751 Clio measured that path in fifteen tables. One changed text in 5,000 nodes cost 17–18 ms of CPU, and its delta applied in under 0.1 ms. The wire was 63–64 % of the cost; the diff itself, 17–18 %. Main spent 1.0 ms per grid scroll flight relaying trees, against 0.2–0.3 ms applying deltas. A grid scroll collected 60–68 ms of garbage across three heaps. On 25 November ADR 0043 accepted the conclusion: diff in the App worker, and retire the VDom worker (#22197).

The next day the measurements disagreed with half of that decision. The team compared three lines (#22218):

flowchart LR
    subgraph A ["A: the VDom worker, until 14.1"]
        A1["App worker"] -- "vdom and old vnode, cloned" --> A2["VDom worker"]
        A2 -- "deltas and new vnodes" --> A3["Main"]
        A3 -- "vnodes it never reads" --> A1
    end
    subgraph B ["B: the 14.1 default"]
        B1["App worker diffs"] -- "deltas" --> B2["Main"]
    end
    subgraph C ["C: useVdomWorker: true"]
        C1["App worker"] -- "cloned payload" --> C2["VDom worker"]
        C2 -- "new vnode" --> C1
        C2 -- "deltas" --> C3["Main"]
        C3 -- "DOM write acknowledged" --> C1
    end
  • On an M5 Max at 60 Hz, with 20 fresh pages per arm on DevIndex's 25×15 stress buffer, C shortened the p95 frame interval of the continuous scroll from 61.69 to 53.40 ms against A (13.45 %, 95 % CI 5.86–21.03 %). B was strongest on the warm re-sort. 60 Hz measurements
  • At 120 Hz, with 15 runs per arm on the primary suite, the time with less than 5 % of the grid painted averaged 12.65 ms on A, 4.37 ms on C and 1.67 ms on B. On the 25×15 stress buffer, B also kept the most of the grid painted at its worst moment. Headed measurements
  • On a physical iPhone in Safari, the scroll-hop p95 fell from 86.95 ms on A to 72.60 ms on B, pooled over 20 pages per arm from two series. Low Power Mode switched on halfway through the first series. The clean series alone reads 86.50 against 73.20 ms, 15.4 % shorter (95 % CI 9.7–21.0 %). Phone measurements

So the amendment of 26 November kept both. The App worker diffs by default, because it led on the phone and at 120 Hz. A workload that benefits from offloading the diff sets useVdomWorker: true and gets the worker with the direct reply, a join that settles only when the App worker has the vnode and Main has acknowledged the DOM write (ADR 0043, amendment). The worker the team had planned to delete beat the old path by 13 % on that desktop scroll.

Neo on a phone: gesture events and five new demos

14.0 could render on a phone. 14.1 gives a phone app the components it reaches for first. Epic #22414 found the gaps: src/button had no floating action button, Dialog had no snap positions, and nothing reacted to a horizontal swipe on a row or a pull at a scroll boundary. Four new engine classes close them: button.FloatingAction, a sheet with its drag handle, and two list plugins, SwipeActions and PullToRefresh. Row actions bind to a record, not a DOM row, because buffered lists recycle their rows.

The floating action button example in theme Neo Light: a task list with a filter button floating at the bottom left and an extended New task button at the bottom right.

Tap New task to add one. On a phone, swipe a row in the Swipe actions example sideways to reach its actions, and Undo puts it back. Swipe actions · The sheet · Pull to refresh · The floating action button · Mobile search

Three phone screens: a row of the swipe actions example dragged left to its Archive action, the list after the archive with an Undo toast, and the sheet example open at its middle snap point over a map.

Gestures became something a component subscribes to (#22400). Gesture families arrive as ordinary declarative listeners, with phased movement on the drag:start/move/end/cancel convention the engine already used. The same contact sequence replays from a peer over the Neural Link and from a Playwright test, so the agent that has to fix a gesture bug can reproduce it.

The 3D Gallery takes a swipe now (#22409). It scrolls like a list, as far and as fast as the gesture (#22856), and its selected item rises to 2.1 times its tile, centred, on a phone too (#22865). A pinch zooms the Gallery's own depth and never the page (#22857). On Tobias's iPhone, 25 pinches, ten of them during the swing, changed the depth and left the page at scale 1. Open the Gallery on a phone to try it.

Three phone screens of the Gallery example: the selected photo raised and centred, the rows turning in 3D during a swipe, and the gallery settled with its new selection raised.

The Gallery example on a phone in landscape: the selected photo raised in the middle of the grid, the gallery controls beside it.

The Helix turns with a horizontal swipe and moves in depth with a pinch (#22411). On iOS, Safari delivers pinch and rotate as its own gesture events, and the Helix takes those too (#22802). The Helix

The Circle turns under two fingers (#22416), and on a touch screen a long press on its disc expands or collapses it, the way hovering does with a mouse (#22806). The Circle

Three phone screens: the Helix example shaped through its sliders into a spiral of photos, then into a wider, open coil, and the Circle example turned by a two-finger gesture, its code panel showing the new rotateZ.

On 30 November Tobias ran the phone checks on a physical iPhone, against a build of current dev. The Gallery's selected item sat where it should, raised above its row (#22865). The photo strip moved the right way in both directions (#22835). Three things did not hold on the device, and their fixes land before the cut. The run and its dispositions

Also in 14.1

  • Pathname routing, opt-in (#22169). It began with a bug every test missed: on neomjs.com/learn the logo didn't return home, and Markdown links reloaded the page, while all 38 Engine CI jobs stayed green (#22140). An app that sets routerMode: 'pathname' now navigates, edits ?search parameters and serves deep routes without mocks. The file server's SPA fallback and dist mounts came from @02Aditya2323 (#22211), and @yashh1323 documented the routes (#22225). routerMode: 'hash' stays the default.
  • A reusable command palette ships with the dialog package (#22870).
  • A wedged update flight now releases the queued updates it doesn't reach, a bug 14.0 already had (#22912).

Honest bounds

  • The opt-in worker has two open measurements. At high buffers line C recorded one 425 ms frame interval in 15 runs, and its cause is unresolved. On the phone it had one page, so its tail latency is unpriced.
  • Not in 14.1: theme Mnemosyne's full coverage. It ships as an alpha, and its coverage of Gantt, Scheduler, Timeline and the Portal follows (#22717, #22719).

From the community

Thank you to the thirteen people outside the team who sent eighteen pull requests to 14.1. Their work reaches from the file server's pathname fallback to a calendar's week numbers, and two of them documented the routing the release introduces:

What you can try

On a phone. Open the Gallery, swipe through its rows, and pinch to change its depth. The Helix turns with a swipe and moves in depth with a pinch, and the Circle turns under two fingers. The five new phone demos are swipe actions, the sheet, pull to refresh, mobile search and the floating action button.

Every theme in one view. The theme kitchen sink takes every component family through every registered theme and scheme, Teal Alloy included.

Clean URLs in your own app. Generate a workspace with npx neo-app@latest, set routerMode: 'pathname' in its neo-config.json, and follow Opting Into Pathname Routing. A deep link, a hard refresh and Back keep the intended view, in development and in the production build.

Upgrading from 14.0.0

The package keeps its entry points, module type, binaries and Node requirement. Six changes can affect an existing workspace.

What your workspace uses Change to make
grid.Container#viewConfig Rename it to view; it takes the same object. A leftover viewConfig throws and points to view. #22825
gantt.EventDragZone#setLinkTarget() or #setTaskPreviewRecord() Assign linkTarget or taskPreviewRecord instead; both are reactive configs now. #22910
Engine theme sheets by path The light and dark folders merged into one per theme: theme-neo-light and theme-neo-dark became theme-neo; theme-light and theme-dark became theme-classic. Shared declarations live in theme-base. ADR 0044
Overrides of --sem-* or --cmp-* variables They read nothing now. Move each override to the role or component variable that ADR 0044 names. #22344 · #22886
Your own neo-theme-* class names The neo-theme- prefix is reserved for themes, and the ThemeSwitcher's own classes were renamed. #22327
The separate VDom worker It is off by default. Set useVdomWorker: true in neo-config.json to keep it. ADR 0043

What comes next

The themes that didn't make the cut come first: theme Mnemosyne beyond its alpha, and a theme from each peer, the fullest dogfooding the design system can get, most likely in 14.2 (Discussion #22418). The grid's ownership model is also up for 14.2: the View creates its bodies, each row gets one owner and each region a name (Discussion #22851).

Full changelog

This snapshot covers the interval from the publication of 14.0.0 on 23 November at 23:08:01 UTC through 30 November at 23:53 UTC. neomjs/neo merged 364 pull requests into dev, excluding the 18 from Dependabot, and closed 390 issues, 381 as completed and 6 as not planned. It is regenerated at the cut head. Compare the complete source window

Thank you to the thirteen outside contributors whose work is in this release.

Contributor credits and maintainer names used below

The names on the changelog entries identify the maintainers who wrote them: Ada, Clio, Emmy, Euclid, Grace, Julia, Maryam, Mnemosyne, Sophie, Vega.

Outside contributors:

@alhinawi, @02Aditya2323, @VanshChitransh, @bardrop, @yashh1323, @VeqtaDev, @ilovegarick, @Apocalypse10110, @benjibunbun, @TruTruMaster, @sarthakdev143-lite, @litoxe, @daichunghy

Examples · 20 changes
Planning · timeline, scheduler, Gantt chart and board · 16 changes
Grid and tables · 13 changes
Phones, gestures and input · 14 changes
Desktop, docking, dashboard, drag and Workstation · 9 changes
Themes and CSS · 101 changes
Forms, components and calendar · 58 changes
Core, data, VDom and workers · 20 changes
CI, build and tests · 72 changes
Docs, guides, blog, Portal and SEO · 44 changes
Other · 15 changes

All changes delivered in 1 atomic commit: eba07a2