Why Qat
Measured numbers only. Each one names the file it comes from; rerun the command next to it to check it. Machine for every timing: an 11-core Apple Silicon laptop, Node 22 (docs/scale.md).
Size
| What | gzip | Budget | Source |
|---|---|---|---|
@qatjs/core, the entry every component loads |
4.67 kB | 4.7 kB | pnpm size |
the whole @qatjs/core package, all entry points |
7.02 kB | 7.1 kB | pnpm size |
@qatjs/router |
3.38 kB | 3.4 kB | pnpm size |
@qatjs/load · @qatjs/store · @qatjs/form · @qatjs/head |
1.47 kB · 850 B · 1.53 kB · 397 B | 1.5 · 1.5 · 3 kB · 400 B | pnpm size |
@qatjs/federate |
2.06 kB | 2.1 kB | pnpm size |
| all first-party runtime packages together | 14.99 kB | 15 kB | pnpm size (scripts/size/first-party.js) |
a new app from npm create qatjs, built: initial JS |
6.11 kB (its core trimmed to 2.72 kB) | — | qatjs init, then qatjs compress (its initial JS line) |
| examples/shop, built: what the first route loads | 12.97 kB | — | qatjs compress in examples/shop (initial JS) |
Measured 2026-11-29. The budgets fail CI when exceeded (pnpm size). Comments, license headers
included, are stripped from what is measured, and a package's imports of other packages are
counted by a fixed short name, never by its length (scripts/size/size.mjs). An app ships less
than the core's full size: qatjs compress keeps the units of the core the app uses
(compress.md).
Speed
Qat's speed and memory are held by a gate, not by a claim: the js-framework-benchmark rows run in
CI against a reference implementation, and a row over its budget (1.05 for time, 1.10 for memory)
fails the build. The harness, its method and its results are in
benchmarks/js-framework-benchmark.
Dev server and HMR
| What | Measured | Source |
|---|---|---|
qatjs dev cold start, examples/shop |
20 ms (server ready, median of five new processes) on a laptop; the CI runners' medians, 46–61 ms on Linux and 59–116 ms on Windows | docs/dev.md; ci.budgets.json (gates.dev.cold-start.shop-ms) |
qatjs dev cold start, a 104,495-line app (1,000 routes) |
12 ms median (53 ms with Node's own start) | docs/scale.md; benchmarks/scale/results/phase-5.json |
| first page in dev, that app, a later start | 182 ms (216 ms with the test driver) | docs/scale.md |
| HMR, examples/shop, a component update, the server's part | 1.4–2.6 ms (CI medians; write to DOM is not measured by a committed script) | ci.budgets.json (gates.dev.hmr-component.server-ms) |
| HMR, that app, a leaf / the shared header (300 components) | 18 ms / 38 ms median | docs/scale.md |
| HMR across federation, two hops | under 100 ms, each update | examples/federation/e2e/hmr.spec.js (asserts it, and prints each timing) |
State is kept across a component swap; what each kind of edit keeps is the table in docs/dev.md. The dev server does not bundle.
qatjs migrate
| App | Constructs converted automatically | Left by hand | Source |
|---|---|---|---|
RealWorld "Conduit" (React 17, Redux Toolkit, react-router 5; 44 files, 2,423 lines), to .tsx |
293 of 299 (98%) | 6 | docs/migrate.md; benchmarks/migrate/realworld-phase6-tsx.json |
the same, to .qx |
293 of 300 (97.7%) | 7 | docs/migrate.md; benchmarks/migrate/realworld-phase6-qx.json |
the same, --keep-unconverted |
296 of 302 (98%), 1 file bridged as a React island | 0 TODOs after 2 --ai proposals |
docs/migrate.md |
| examples/migrate/react-checkout (11 files) | 118 of 122 (97%) | 4 | docs/migrate.md |
Coverage counts every React construct met, including React left in the output and every compile error of the output (docs/migrate.md, "On an app we did not write").
Federation
| What | Measured | Source |
|---|---|---|
@qatjs/federate runtime |
1.94 kB gzip of a 2 kB budget | pnpm size |
| build step a shell needs for a remote | 0: manifests (qat.json) become one import map at boot |
docs/federation.md |
copies of @qatjs/core on a page with a shell and two Qat remotes |
1 | examples/federation/e2e/federation.spec.js ("singleton merge") |
| React remote shell side · Angular remote shell side | 777 B · 777 B gzip | pnpm size |
| a remote with its own Angular (zoneless, one component) | about 37 kB gzip | docs/federation.md |
qatjs check
| Project | TypeScript 6 | TypeScript 7 | Source |
|---|---|---|---|
| the 103,472-line app, 1,301 files, compiler + types | 9.0 s | 4.6 s | node benchmarks/scale/measure.js (an earlier run; not run again since) |
| the same in the first run (TypeScript 6) | 11.1 s (compiler checks alone: 2.3 s) | — | docs/scale.md |
a new app from npm create qatjs (2 files) |
1.0–1.4 s over 4 runs, with npx and Node's start |
— | node scripts/release-verify.mjs (the timestamps around npx qatjs check) |
Under TypeScript 6 and 7 the 100-file corpus gives the same file, line, column and code for every
diagnostic (packages/language/test/ts7.test.ts).
Scale
On the generated 104,495-line app (benchmarks/scale; docs/scale.md):
| Measured | Target | |
|---|---|---|
qatjs dev cold start |
12 ms | < 300 ms |
| HMR, leaf · shared header | 18 ms · 38 ms | < 50 ms |
qatjs compress, 1,000 route chunks |
2.8 s | < 5 s |
qatjs compress, 10,000 lines (100 routes) |
0.35–0.5 s on a laptop (docs/compress.md); the CI runners' medians 1.09–1.20 s on Linux, 0.98–1.56 s on Windows (ci.budgets.json, gates.compress.10k-loc.ms), over the target |
< 1 s |
qatjs check |
11.1 s (TS 6, the first run); 9.0 s (TS 6) and 4.6 s (TS 7) since | < 15 s |
completion in VS Code, 2,045-line .qx |
98 ms median, p95 140 ms | < 200 ms |
| first dev page, a later start · the first start on a machine | 182 ms · 385 ms | < 300 ms (the second missed) |