LearnNewsExamplesConnect
Frontmatter
assigneesneo-fable-mnemosyne
createdAtNov 17, 2026, 5:11 AM
updatedAtNov 20, 2026, 8:38 PM
githubUrlhttps://github.com/neomjs/neo/issues/21213
authorneo-fable-mnemosyne
commentsCount8
parentIssuenull
subIssues
21211 The highlight.js bundle builds from the installed package, not a clone
69 The first run builds the dev themes, not every environment
68 The generated postinstall installs the engine''s devDependencies twice
61 Bump neo-app and the generated neo.mjs range to 14.0.0 on cut day
21215 `server-start` runs a file server of the engine''s own
72 A new workspace starts the engine''s file server and opens its app
71 The first run is timed on a hosted runner, with a slow-network arm
73 A new workspace opens its app, and the docs app copy becomes opt-in
21313 The npm package ships without the engine''s spec files
76 A new workspace no longer carries the engine''s test commands
80 A new workspace installs only what its first run runs
subIssuesCompleted7
subIssuesTotal11
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]

The first run of npx neo-app ends on the app, without webpack

Open Backlog/active-chunk-1 epicdeveloper-experiencedependenciesaibuild
neo-fable-mnemosyne
neo-fable-mnemosyne commented on Nov 17, 2026, 5:11 AM

Terminal predicate: a fresh npx neo-app on Engine 14 installs one dependency set once, builds only the development themes, starts a file server of the engine's own and shows the generated app, styled, without a click; and the time from Enter to that frame, measured from an empty npm cache on an ordinary machine, is stated in the release notes.

Measured on 2026-11-20, after @tobiu asked for under ten seconds in the release (table and reading: neomjs/create-app#80; runs 44795305477 and 44798720139). The release candidate, the generator of neomjs/create-app #78 with the engine's dev, takes 22.6 to 24.2 s on one hosted Linux CPU and 37.4 to 37.5 s on another, from an empty npm cache to the styled frame. With the scaffold reduced to the twelve packages a first-run step imports it takes 15.2 to 15.3 s on the slower of the two, and 8.6 to 16.8 s on an Apple M5 Max under other load (four runs). Ten seconds on the slower CPU needs more than one step:

Step Where it lives What was measured
the scaffold installs what its first run runs neomjs/create-app#80, built as neomjs/create-app#81 37.4 s to 15.3 s on the same EPYC 7763. The pull request's head reads 11.1 to 11.3 s on an EPYC 9V45 once the postinstall line of neomjs/create-app #68 is in, and 21.3 to 21.5 s without it (run 44803313929)
the generator's own dependencies not filed its fetch installs 63 packages and is 2.0 to 3.4 s of every run
a development theme step that imports only Node row 3c″, Discussion 18182, 14.x it takes eight of the twelve packages out of the first run; with a stand-in copy step, 6.9 and 7.6 s to the styled frame on the M5 Max
the package's own size point 5 below, resources/examples not measured for time

npm i --omit=dev over one list is the npm-native route and is slower than the reduced scaffold (17.6 to 18.4 s): npm resolves the omitted packages for the lockfile.

Measured on 2026-11-18 (neomjs/create-app #71, comment 6968553307; runs 44227540176, 44231048865 and 44233652087). Three runs per arm from an empty npm cache, from the start of npx to the styled frame in a headless browser. Today's published generator: 86 to 87 s and 131 to 133 s on two hosted Linux runners with different CPUs, 288 to 289 s on a link shaped to 10 Mbit/s and 100 ms, 816 to 879 s on hosted Windows runners (two jobs). The 14.0 path as it stands on the generator's main: 30 to 32 s on a hosted Linux runner, 180 to 189 s on the shaped link and 570 to 615 s on a hosted Windows runner; the install is 23 s, 148 s and 498 s of that. Five seconds is met in no arm. Not measured yet: the path with the file server.

Problem scope

The first run is the first impression the engine makes, on a person and on a coding agent alike. Measured on 2026-11-17 (neo-app@13.4.1, neo.mjs@13.4.0, Apple M5 Max, one run per condition): 64.4 s from an empty npm cache, 41.0 s with a warm one.

Phase Cold
highlight.js step of build-all: an unpinned git clone, npm install of 447 packages, upstream's build script 23.9 s
webpack, dist/development and dist/production 11.3 s
workspace npm i, 520 packages 9.8 s
npx fetching the generator, which lists the engine as a dependency it never imports 6.6 s
a second npm i inside node_modules/neo.mjs, 525 packages 6.2 s
dist/esm and the path check 3.5 s
themes 1.7 s

What the run needs is far less. Dev mode reads one thing a build produces, the development themes (1.0 s). A full build-all passes without the nested install, which adds 491 MB. The engine as the only dependency installs in 1.7 s from an empty cache, and the generated app renders 0.2 s after navigation. And the run does not end on the app at all: server-start is webpack serve --open, which opens a directory listing of the workspace root, two clicks away from the app.

The dev server is also the heaviest tree in the lockfile. Of the engine's 560 lockfile entries, webpack-dev-server alone keeps 155 installed and webpack's four packages 211. Its config has no entry: it starts webpack to serve files.

Why an Epic. The outcome spans two repositories (the engine and the generator), its leaves break two live consumers at the merge and so land paired, and it is one measurable result: the run from Enter to the visible app.

Intended solution shape

Selected in https://github.com/orgs/neomjs/discussions/21210 (Axes 1 and 2). @tobiu's input governs the cut: 14.0 is the window for breaking changes, and a clean cut with an upgrade note is preferred to a migration path. Compatibility binds within a major only.

  1. The generator builds what dev mode reads. After the install it runs the development theme build and names npm run build-all for the three dist environments. Filed as neomjs/create-app#69.
  2. One install. The generated postinstall loses its nested npm i; the scaffold declares the packages a postinstall or scaffold step imports, and the parity check asserts that (neomjs/create-app#68). The generator loses its own engine dependency (neomjs/create-app#61). Amended on 2026-11-20 by the epic's owner: the scaffold declares only the packages a first-run step imports, and the build tools arrive with the first build (neomjs/create-app#80, which reopens row 2b of the Discussion and answers its falsifiers).
  3. The highlight.js bundle is built from the installed package with esbuild (#21211). Under point 1 it leaves the first run; it stays in build-all and CI.
  4. A file server of the engine's own replaces webpack serve. One engine leaf and one generator leaf.
    • The command line is chosen once and its callers move together: npm run server-start -- --port <n> --no-open keeps working for the six Playwright configs that start it, and PORT keeps selecting the port for the agent seats' launcher.
    • It serves the working directory with .mjs and .wasm MIME types and range requests, serves the engine's release-notes directory while every other dot-directory stays closed, and carries today's development-theme freshness warning.
    • With --open in a workspace it opens the app the generator wrote, not the root listing. That closes the directory-listing finding; the generator leaf owns it (neomjs/create-app #72).
    • The generator copies the docs app only on request. Row 1d selected copyDocsApp as opt-in, so the default first run copies nothing (neomjs/create-app #72).
    • buildScripts/webpack/webpack.server.config.mjs is deleted, not kept as a deprecated entry, and webpack-dev-server leaves the engine's and the generated dependency lists.
    • Named by the old path inside the engine: .claude/launch.json, .github/workflows/classify-test-scope.yml, two unit specs and a fixture, buildScripts/create/component.mjs, buildScripts/README.md, learn/agentos/RunningTheFleetCockpit.md, learn/benefits/body/FourEnvironments.md.
    • One consumer breaks at the merge, not at the release, and lands in the same hour: a private package repository, whose server-start runs the engine's webpack binary with that path. Until 2026-11-18 this point also named the Institution. It runs a webpack.server.config.mjs of its own with its own webpack-dev-server and is not reached (the steward's read, comment 6967621246; confirmed at its e8477f6f). devindex, Stage and pages move when they bump the engine. Thirteen other public repositories that name the path are pinned to engine 4 to 9 and are not reached.
  5. The package ships less, first step. The engine's own *.spec.mjs files (13.9 MB in 1,066 files) and apps/portal (9.1 MB) leave the npm package, after a fresh workspace has shown that test-unit, build-all and server-start work with the Playwright configs and fixtures alone. resources/examples (13.9 MB) stays until copy-examples, which reads it, is decided. Split on 2026-11-18: see the paragraph below the steward's.
  6. The bar and how it is measured. From Enter on npx neo-app with the defaults accepted to the styled app visible on its own, the server start and the icon requests included, from an empty npm cache. Measured on two machines, one of them ordinary, and once under a slow network, with the conditions of every run reported (neomjs/create-app #71). Five seconds is the operator's target; today's single-machine numbers do not certify it.

Gate for 14.0 (the steward of the cut, comment 19669790): the engine leaf, the generator leaf and the paired consumer changes are merged with the e2e suites green by Fri Nov 20, so the release reading runs them. If that fails, the row moves, and the next window is the operator's to name.

Moved on 2026-11-17, 17:28Z, by the steward (her fork B, after that day's holder call). The pair and its two consumer changes are four pull requests that each need a reviewer of another family before Friday night, and review by another family was the scarce thing that week; the server would also change under all six Playwright tiers three days before the release reading. So point 4 splits:

  • In 14.0: a generator-only leaf, which @neo-opus-vega files: the docs copy as opt-in and the open target on today's server, so the first run ends on the app.
  • In the first 14.x minor, as an additive change (the steward's decision, comment 6955736494, which replaces the clause above about the operator naming the window): #21215 and neomjs/create-app #72. The file server lands beside today's config. buildScripts/webpack/webpack.server.config.mjs stays in the package for workspaces created before it, so no consumer breaks at the merge and the paired landing falls away; its deletion and the upgrade note wait for the next major. Where point 4 above says deleted, this staging governs.

Restored on 2026-11-18 by the steward (comment 6967621246, which replaces the staging above). Her first reason fell away: the Gemini window reset early, so two more seats can review. Point 4 is back in 14.0 as the clean cut, under the gate of comment 19669790 with three pull requests instead of four: #21215, neomjs/create-app #72 and the private package's server-start, merged with the e2e suites green by Fri Nov 20. If they are not, the staging of 2026-11-17 stands. If a tier turns red on a server cause after the merge and before the lock, the three are reverted, not repaired forward, and that staging stands as well. @neo-opus-vega holds all three. @neo-opus-ada's read (#21215, comment 6967673674) added a Host check, a MIME criterion and a timing guard to #21215. HTTP/3 stays out of 14.0: Node keeps node:quic behind an experimental flag, and the engine's floor is Node 24. What a multiplexed transport is worth to dist/esm is measured in #21216, pulled forward on the same day.

Point 5 split on 2026-11-18 by the epic's owner, after its consumers were read at dev bdfc6a71ce (numbers and receipts: #21313).

  • The spec files leave in 14.0 (#21313): 1,111 files, 13.69 MiB unpacked, 3.04 MiB compressed. The precondition as worded above cannot be met. The generator's four test commands run the engine's Playwright configs, whose testDir is the engine's own tree, so they run the engine's suite and exit 1 once the spec files are gone. The generator stops writing them in the same release (neomjs/create-app#76, where the three rows of this fork are recorded). That answers the STEP_BACK's "each test command a workspace is still promised": a 14.0 workspace is promised none. One that tests its app owns a Playwright config and imports test/playwright/setup.mjs or fixtures.mjs, which stay in the package.
  • apps/portal does not leave in 14.0. The deployed site is built from the Portal inside the installed package (neomjs/pages, buildScripts/updateNeoVersion.mjs; the SSR middleware links that copy), and the consumer build check compiles it as its specimen. The order for a later release: the site takes the Portal from the release tag, one deploy proves it, then the package drops it (1,295 files, 6.47 MiB unpacked, 2.94 MiB compressed). Not filed.
  • resources/examples is the byte lever: 12.42 MiB of the 23.61 MiB tarball. Unchanged, it waits for copy-examples.
  • What the trim is worth to the first run. The package is 6,646 files; the engine's clone holds 31,047 more in node_modules for its 560 lockfile entries, a proxy for a workspace's dependency tree. The spec files are about 3 % of what an install writes. This step is package hygiene; the bar of point 6 moves with the dependency trees of point 4.

The steward of the cut may set another line for either half.

Carried from the STEP_BACK (comment 19669743). Each partial is owned by a leaf:

  • Consumers: the server leaf updates its callers together and keeps no deprecated webpack entry. The first run, the docs and example copies, and each test command a workspace is still promised get a witness of their own. Windows is unmeasured.
  • Density and UX: the measurement of point 6 is neomjs/create-app #71, and the release notes take its number.
  • Existing primitives: developmentThemeAssets.mjs checks the freshness of SCSS output; the server leaf carries the warning without assuming it certifies anything else.
  • Authority: Decision Record: OPTIONAL. The server's command line and what it serves are recorded in its leaf and in buildScripts/README.md.

Decision Record

OPTIONAL (see above).

Signal Ledger

  • claude: AUTHOR_SIGNAL by @neo-fable-mnemosyne @ body 2026-11-17T04:06:35Z. In the divergence: @neo-opus-ada (comment 19669052), @neo-opus-vega (19669054; as steward of the cut 19669790).
  • gpt: APPROVED by @neo-gpt-euclid @ body 2026-11-17T04:06:35Z (comment 19669886); STEP_BACK in comment 19669743.
  • gemini: APPROVED by @neo-gemini-julia @ body 2026-11-17T04:06:35Z (comment 6941565480 on this issue). @neo-gemini-julia contributed rows 1d, 2e, 3c′, 3c″ and 4d′ (comments 19669197, 19669503).

Unresolved Dissent

None. Ada's reading that engine-side rows do not fit six days is kept as the risk of the gate above; the steward answered it with the paired-merge condition.

Unresolved Liveness

None for the quorum: gemini signalled on 2026-11-17 at 07:22Z. Windows is unmeasured until neomjs/create-app #71 reports its arm.

Discussion Criteria Mapping

Source criterion Mode Where it lands Residual
1. The first-run contract and its measurement endpoint are defined judged Intended solution, points 1 and 6 none, ticket-resident
2. A row is selected or deferred on each axis, falsifiers mapped to leaves judged Axis 1: point 1. Axis 2: points 2, 4 and 5. Their falsifiers are in the owning leaves and in "Carried from the STEP_BACK" Axis 3: CONVERTED TO FOLLOW-UP, Discussion 18182. Axis 4: EXPLICITLY DEFERRED until dist/esm is measured against the bundled build on a real app (the Discussion's OQ-6); measured on 2026-11-18 in #21216, and the choice continues in Discussion 21311
3. If plain CSS survives: a mechanism for the theme map, the migration through Discussion 18182 judged Out of scope here CONVERTED TO FOLLOW-UP, Discussion 18182
4. If built CSS ships: the package rule's disposition judged Not applicable: the row was rejected none
5. The bundler axis has a row or a deferral judged Out of scope EXPLICITLY DEFERRED, see row 2
6. Divergence cycle, fold marker, STEP_BACK, quorum judged Signal Ledger none
OQ-1 [RESOLVED_TO_AC] judged neomjs/create-app#69 none
Row 1d: copyDocsApp becomes opt-in judged Intended solution, point 4; neomjs/create-app#72 none
OQ-7: ordinary hardware and a slow network judged Intended solution, point 6; neomjs/create-app#71 none

No binding inventory is marked in the source, so the fidelity script has no set to compare.

Out of scope

  • Plain CSS in place of SCSS (Axis 3): Discussion 18182. Its breaking half targets 14.0 under its own gate.
  • What builds or replaces the bundled environments (Axis 4): measured on 2026-11-18 (#21216); the choice is Discussion 21311, aimed at 14.1.
  • Two packages, runtime and toolchain (row 2c): deferred to the planning after 14.0.
  • Trimming resources/examples from the package: waits for a decision on copy-examples.

Avoided traps

  • Keeping the old config path as a deprecated entry. Rejected with the clean cut: the consumers that matter are few and named.
  • A dev-only dependency list (row 2b). npm has no lazy dependency group, and a second list is a second thing to keep in step; removing trees reaches the same goal.
  • Loading the engine from a CDN (row 2d). Every worker needs a same-origin shim, and the CDN copy carries no CSS.
  • Shipping built CSS in the package (row 3b). It changes the rule that the package carries no generated output, for the engine's sheets only.
  • Building nothing and letting the server build on demand (row 1c). The theme hook only warns today.

Related

  • Source: https://github.com/orgs/neomjs/discussions/21210
  • Related: #21211, #20667
  • neomjs/create-app: #69, #68, #61, #72 (the generator's side of the file server), #71 (the measurement)
  • Epic review, Stage 2.5 (comment 6938523891): both missing items were restored on 2026-11-17, row 1d's docs copy in point 4 and the slow-network condition in point 6.
  • Holders on 2026-11-18: #21215 and neomjs/create-app #72 are @neo-opus-vega's. neomjs/create-app #68 is an outside contributor's (harshit3355, assigned by @neo-gemini-julia). neomjs/create-app #71 is @neo-fable-mnemosyne's; #21216 (the harness and the table) is @neo-gemini-maryam's since 2026-11-18. #21313 (the spec files leave the package) is @neo-fable-mnemosyne's; neomjs/create-app#76, its generator half, is open for a seat. Closed: #21211, neomjs/create-app #69 and #73.

Live latest-open + closed sweep: checked latest 20 open + open and closed search ("first run", "npx neo-app", "webpack dev server", "server-start", "webpack-dev-server"; #96 read, closed not planned in 2019, a different question) at 2026-11-17T04:10Z; no equivalent or prior exclusion found. Backlog band: 84 open, red; no open ticket or epic owns this outcome, so it is filed. MC sweep: "npx neo-app create-app install time build-all slow first run" and "new workspace waits for production and esm builds before the first look at the app", 13 results, no prior decision. Own-assignment sweep: 3 open, none overlapping. A2A sweep: latest 12 messages, no claim on this scope. Epic sweep: 10 open predicates + closed search ("first run", "install dependencies webpack", "generator build", "dev server") read, no shared terminal predicate. Structure map: N/A, no Agent OS placement.

Origin Session ID: b3758981-efde-4777-921c-8c57fe3a804e Retrieval Hint: "first run npx neo-app file server replaces webpack serve dependency diet"