Cytoscape.js v4 — executive summary
The v4 rewrite: a columnar model and a WebGPU renderer, per #3486.
- Status: not released.
cytoscape@3remains the shipping library. - Scope of this record: the v4 prototype, from 2026-07-22.
- Last updated: 2026-10-29 for Round 151's Windows and macOS CI runners.
Round 151 runs CI on Windows and macOS as well as Linux: the Node tier,
Bun latest and the renderer / renderer-webkit browser projects. The
pixel goldens, workerd and v3 stay on Linux. The new jobs found only
portability defects in the test tooling and specs, none in the library:
temp-directory and path-separator assumptions, Node given Windows paths
where it needs file URLs, CRLF checkouts, and commands spawned without
Windows quoting. Before the fixes, the JSDoc and throw-coverage audits
on Windows matched nothing and so checked nothing. Neither runner reaches
a WebGPU adapter, so the Windows and macOS browser jobs run only the
non-GPU specs (17 and 16; 256 on Linux). A force-layout teardown race
(layout-cancel, positions not restored after destroy()) and the
existing cancellation timing flakes stay open for a later round. See the
Round 151 record.
Round 150 changes six algorithm defaults to the standard definitions
that NetworkX, igraph and the literature use, after a review found the
reference script adjusting library numbers to fit v4. Undirected
betweenness is halved (#3543),
pageRank is undirected by default, and classic closeness is
(n − 1)/Σd with the Wasserman–Faust correction. Hierarchical
clustering now merges at exactly the threshold. The restarting walk
returns to the seeds from a dead end, and MCL runs up to 100 passes.
New options reach the other libraries' conventions: closeness
direction, a normalization choice on the normalized centralities,
effective resistance weightAs, RWR dangling and MCL
pruneThreshold. Every algorithm is now checked against each library
that implements it: NetworkX, SciPy, scikit-learn, scikit-fuzzy and
markov_clustering in Python, and igraph, stats, cluster, e1071
and MCL in R, from cached fixtures generated in one locked pixi
environment. Four places where the libraries disagree with each other
are pinned, not tolerated. The round also fixed an intermittent force
layout defect on Node: V8 could overwrite the spectral seed's first
eigenvalue, so a layout sometimes started from the plain scatter. See
the Round 150 record.
Round 149 adds 31 bounded feature views plus eight API-workflow contexts to
the main debug harness, with 55 canonical feature states, visible
comparisons, focused controls and embedded arrow/hull galleries. The
published status mirror serves its local Open Sans faces, and the arrow
comparison has a working v3
copy-or-explicit-fallback path. A generated ledger accounts for all 220 style
properties and 325 of 326 recursive schema property/value combinations. The
one remaining schema-permitted pair, node text-rotation=autorotate, is
rejected at runtime because autorotate is edge-only and has a direct test.
The final visual inventory has 107 reference PNGs, 107 current PNGs, 107
coverage records and 107 degrade records. The visual Playwright project
reported 229 passes and one expected failure for the pre-existing Round 55
compound-routing parity gap; it had no skips, unexpected results or flakes.
Three generic font-family states are
intentionally manual-only because platform font resolution varies; pinned
Open Sans states remain in the visual suite. Physical touch/pinch acceptance
remains a device check; the public API does not expose actual renderer-worker
identity.
Three public getter mismatches are recorded for separate library fixes: a
chart-domain bypass changes the stored chart record but leaves the getter
and legend at the stylesheet domain; mapped label transform/justification
render their per-node values while their getters return stylesheet fallbacks;
and compound hull parents expose a packed polygon reference as corner-radius.
The final pixel scan found three restore observations: resetting node
font-weight moved 24,909 pixels and left 180; scoped font-style restoration
left 169 pixels (bounded at 256) as one scoped restoration limitation; and
images-multi left 624 pixels inside the image body. The font-style and image
residues, like the font-weight residue, have unlocalized causes. No renderer
runtime source was changed in this round. See the
Round 149 record.
The 12 October interview scopes three work streams. Round 46 now has v3-comparable Markdown prose/API sources without demos: all twelve non-demo sections, style/layout catalogs and an audit accounting for 238 v3 API names (215 mappings, 18 decided removals, five maintainer questions). Specified provisional contracts and holes carry TODO_PROVISIONAL markers. The complete site/template integration and deployment remain open.
Round 84's benchmark pass records three independent processes at each of 10k, 100k and 1m rows, with scrolling/jump windows, dirty updates, snapshots and memory evidence. Current reads took 0.27–0.84 ms per 32-window trace; snapshot refresh and memory costs do not justify a new public column-view API for this fixture. Broader table/filter decisions remain open.
Round 99 is complete: Deno support is withdrawn and the complete Node tier runs natively under Bun 1.4.0 and 1.4.3, with exact Node 24.18.0 parity for 3,310 public tests, 1,226 module tests and 40 soak tests. Native coverage and exact throw probes pass, as do all nine bundle smokes, workerd and focused Chromium/WebKit worker checks. The worker cleanup releases destroyed graphs even when callers retain completed results or settled handles. npm is the alpha channel; JSR may be reconsidered after alpha. See the round 99 record.
Round 148 adds manual miniature compounds. Collapse scales current descendant
positions and effective sizes while leaving original nodes and edges live;
scoped layouts, JSON/wire persistence, clone/follow and optional animation
use that same geometry. Live collapse-scale restyles retarget the applied
factor. At 10,000 leaves and 20,000 edges, flat immediate collapse measured
144 ms median. A built-headless animation tick measured 137 ms median with
node/edge labels and arrows, versus 58 ms with minimal style. Bulk restyling
dominates, so large miniatures are not a 60 Hz animation promise and do not
reduce topology work. The clustered debug page and PNG export were checked
at overview and child-detail zoom.
Round 82 adds convex, rounded-convex and connected concave parent shapes with shared CPU contours for drawing, picking, endpoints and bounds. Measured drag cost is 8.5 ms median on 41 EnrichmentMap clusters and 44.5 ms on 500 sparse clusters.
Round 80 raises pie, donut and stripe charts to 255 ordered slots and adds heat strips, radial heat and signed bars. Heat colour scales and bar geometry bounds use shared explicit or automatic domains; missing slots keep their positions. Apps own chart labels, axes and rendered legends. Line and scatter charts remain deferred.
Round 146 keeps one canonical tee-compound arrow spelling, uses edge-width- aware tee bars, and renders hollow compound heads as component outlines. The same-scene renderer cost is 5.4–6.8% in fit and zoom views, below the 10% mover threshold.
Round 147 lets numeric continuous and quantize mappers use auto at either
outer domain endpoint while keeping authored stops intact and refreshing live
bounds as data and graph structure change. Unresolvable extents use the
configured fallback and recover when eligible data arrives. cy.legend()
returns detached, headless-safe JSON for mapped properties and current charts,
resolved domains, conditional rules and aggregate bypass exceptions; its
legendchange event follows committed snapshot changes and precedes
batchend. At 2,000 nodes, the measured auto-bound update rewrites the group
only when the bound moves; unchanged and explicit-bound updates write one
node, and 100 cached two-entry legend reads take about 428 µs. Round 80
extends these rules to chart-scale populations and bar geometry.
Earlier, round 145 (29 September) was a correctness fix:
item 73's chart measurement found: past about 305,000 nodes with
16-slice pie charts (or 350,000 with four background images each),
a chart's or image's stored reference silently overflowed, so the
node read back — and would have drawn — another node's slices or
images. Readback is now exact at any size, and past that point the
renderer stops drawing charts (or images) and says so with one
gpuerror event, the same way it treats a chart store too large for
the GPU, rather than drawing the wrong thing. Round 80 also removed the
chart's packed count field; custom-polygon node shapes still have a similar
logged exposure at about a million nodes.
Earlier in this record, round 105, parallel edges at
GeneMANIA's width: the two GeneMANIA queries the design sitting chose
(the site's own human example, and TP53) are fetched from
genemania.org by a script and drawn in the debug page with the site's
own style, and — since 5 October, with the GeneMANIA authors'
approval — committed and hosted on the status site. Measured with
v3 beside, bundle width costs v4 nothing: loading, routing, drawing
and picking are flat from 2 to 32 edges per pair at 32,768 edges,
where v3's load grows from 1.6 s to 2.3 s; what costs is the curve
style (curved bundles about 9× straight haystack lines on the GPU),
so haystack is the recommendation at scale and no bundle
simplification was built. A 30-wide curved bundle matches v3's
drawing to the pixel. Two fixes
users would meet: pointing at an edge inside a wide bundle picked a
neighbour near the bundle's ends (it now picks the nearest, as v3
does), and raising one edge's opacity over a data-mapped colour — the
GeneMANIA highlight — did not draw. Earlier in this record, round 144,
animated layouts at scale: a layout with animate: true now moves its nodes as one
animation instead of one per node, so a 20,000-node grid tween draws
62 frames in its second where it drew 2 (5,000 nodes already drew
only 2), and under renderer: { worker: true } the tween runs on the
worker's GPU — 547 KB crosses to the worker per tween instead of
8.75 MB. Each node stays individually addressable during the tween,
as in v3: animated(), position() (now the drawn value, where it
used to read the start), stop(), lock(), remove() and
cy.patch() act on one node while the rest carry on, and the eight
built-in layouts gained the layout.stop() they were documented to
have. Two defects the new checks found are fixed: cancelling an
animated layout left the GPU animating the nodes forever, and a node
outside a layout's tween, moved during it, stayed drawn where it had
been. Earlier in this record, round 143, what the goldens
actually see: every style property a visual golden sets was reset to
its default, one at a time, and the pixels that moved counted — 530
(golden, property) pairs in 2.2 minutes, 520 moving pixels, 3 moving
none on purpose. 131 of the 216 properties now have a golden pixel
riding on them; 140 are set by some golden. The pass found three
bugs a person would have met: a per-element style override over a
data-mapped colour never reached the screen once the graph had drawn
once (it now does, immediately), a label rotation change on its own
was ignored, and a custom polygon reported a nonsense corner radius.
It also showed the earlier count had credited five image properties
no golden sets. Earlier in this record, round 142, the gesture traces:
ten scripted gestures — drags, box selection, the wheel in each mode,
pinches, right clicks, taps with and without modifiers, one-finger
touch, leaving the canvas — now replay in a real browser on both
WebGPU hosts (the page's thread and the worker) and on v3, and are
compared as numbers: where every node ends up, what is selected, the
pan and zoom, and every event in order. The WebGL2 renderer runs the
same scripts by adding one line. They fixed four gesture bugs — a
second finger taking over a drag now releases it properly, a right
click no longer ends with a stray tapend, dragpan and pinchzoom
no longer report a pan or zoom the settings refused, and
tapunselect fires for everything a tap deselects, as in v3 — and
measured, against v3, the event orders and targets that still differ,
now open decisions. Every one of the 30 inventoried gestures has a
browser-level check. Earlier in this record, round 76, the small style wins:
label boxes take v3's text-border-style — dashed, dotted and double
borders, on node and edge labels — drawn along v3's own stroke path,
and the box border now straddles the box edge as v3's does (it had
been drawn inside); against v3 live at 3× zoom the boxes differ by
0.4% of the frame, against 7.5% with the style ignored. v3's
mid-*-arrow-width is accepted and read back; it draws nothing,
because mid arrows stay filled and v3 uses the width only for a hollow
head. Gradients were already v3's props and already shipped; they
are now priced — a whole scene of gradient fills costs about 1% more
GPU time than solid ones. Earlier in this record, round 126 made the
bundles smaller without touching what they draw: the column and style
property names that were spelled once as constants now ship as plain
strings again, their tables gone from the download, and shader
numbers are shortened — the full minified build is 10 KB smaller,
3.5 KB gzipped, and the slim builds nearly as much, pixel for pixel
the same. The obvious next step, running the shaders through a
WGSL minifier, was measured and does not pay here: it needs each
shader whole, and whole shaders repeat the code the bundle now
shares, so the bundle grew by 50–61 KB. Earlier in this record, round
141 finished the worker host: under renderer: { worker: true } background images now draw —
decoded in the worker, so a style change that brings in 1,000 new
images costs the page 5 ms instead of a 124–142 ms stall — and labels
use the fonts the app lists in renderer.fonts, since a worker does
not see the page's @font-face rules; both match the main-thread
renderer pixel for pixel. It is verified end to end in Chromium;
WebKit here has no WebGPU, so there it verifies the worker-side
mechanics only. Earlier in this record, round 140 typed element data: an
app that names its node and edge data shapes —
cytoscape<Gene, Link>( … ) — gets cy.nodes().data( 'weight' ) read
as a number, a misspelt field in data(), an element definition, a
query or a stylesheet mapper rejected by the compiler, and collections
that know which group they hold; events and the add/patch/load/clone
payloads carry the same shapes. An app that names none sees exactly
the types it saw before. The declaration build was measured first
and keeps the generics and their hover docs in all three shipped
declarations. Earlier in this record, round 139 gave apps the hooks
for undo and priced the obvious undo: every outermost batch — and so
every cy.batch() and cy.patch() — is now bracketed by
batchstart and batchend events, so an app snapshots the graph as
a transaction starts and restores it with cy.patch(). At 100k
elements that costs 27 ms and 3 MB per transaction and 18–31 ms to
undo; whether core ships an undo stack of its own — and if so a
snapshot or an inverse-operation log — is now an open decision with
those numbers. Earlier in this record, round 138 took v4 to the GPU's
own limits and made running past them loud but survivable: every
device now asks for what its adapter offers, so on the benchmark
machine's RX 580 a graph renders to 16,776,960 nodes or edges per
group — four times the old ceiling, where every frame had silently
blanked — and cy.add() of one more throws GpuUnfitError with the
graph unchanged. A buffer the device refuses, or one past its
limits, now fires a gpuerror event and costs a feature rather than
the picture: labels go first (2 million labelled nodes still draw
them), then charts and images, then gradients, whose storage is now
allocated only when a gradient is used — up to 18% less GPU memory
for every other scene. cy.stats().gpu reports the renderer's own
allocations, and a browser soak over them ran 10,000 add/remove/
restyle/zoom cycles flat, after finding and fixing a label cache that
grew without end under label churn. Earlier in this record, round 100
wrote the
supported-environment matrix: per environment, what runs (the
headless core, workers, GPU compute, rendering), how that is known
and what is not promised. Node, Bun, Cloudflare's runtime and
Chromium and WebKit — pages and, now, their dedicated, shared and
service workers — are held by CI; Firefox, Electron and Vercel Edge
were measured and are re-checked at release; React Native's Hermes,
QuickJS and GraalJS each run the headless core with one TextDecoder
polyfill and are recorded as unsupported, as are audio worklets. On
Cloudflare the limit is CPU, not size: a 439-node graph's ingest,
metrics and export fit the free plan's 10 ms, its force layout (83 ms)
does not. Earlier in this record, round 73 scoped rendering without
WebGPU: a WebGL2 renderer can draw everything the WebGPU one draws,
measured on the benchmark machine's RX 580 — reading the columns
from data textures costs nothing measurable, the GPU culling pass
is replaced by a vertex-stage test that costs 0.03–0.33 ms of GPU
from 100k to 800k elements, and the edge pick reads back no slower
than WebGPU's; the layouts' GPU force, the GPU tweens and the GPU
mapper evaluation take the CPU paths they already have. The reach
gap, fetched the same day: WebGL2 96.4% of users, WebGPU 85.7% (plus
3% partial), the gap in Linux desktops, Firefox off Windows and
Apple Silicon, and Safari before 26. The build is planned as its own
round, after the drawn features settle. Earlier in this record,
rounds 135 and 136 measured what
the tests cannot see, ahead of the SVG-export and WebGL parity work:
every visual golden now records the style properties its scene sets,
and 75 of the 212 properties are set by no golden (56 of them
drawable; the count is gated, so a new golden lowers it on purpose),
and the gestures are inventoried with the specs that hold them — 30,
of which 26 had a browser-level assertion and 3 (leaving the canvas,
the additive tap, anything on the worker renderer) none, until the
traces covered them the same day.
Earlier in this record, round 134 moved the attribute
clusterings off the calling thread — kMeans, kMedoids,
fuzzyCMeans and hierarchicalClustering with a named metric run on
one worker under 'workers' and, above a measured size, 'auto',
answering the same clusters bit for bit; their in-thread reference
runs the same kernel and got 3–10× faster (k-medoids at 5,120 points
3.0 s → 0.31 s). Earlier in this record, round 104 made dense labels
legible — label-declutter: 'cull' hides each node label that would
overlap a higher-label-priority one, so the 465k-edge fixture's
19,607 labels at fit (99.4% of them overlapping) become 1,545 that do
not, for ~2 ms a frame, and a pan re-decides nothing; the priority
also orders the zoom fade, lowest first. Earlier in this record, round
102 made the hover
highlight one call — cy.emphasize( node.closedNeighborhood() ) dims
everything else and draws the neighbourhood above it, at 0.42 ms per
hover change at a 733-degree hub on the 465k-edge fixture, where
the per-element opacity spelling apps wrote took 2.9 s; the
emphasized set is a state the sheet can style, and the dim is the
renderer's (+0.64 ms of GPU a frame). Earlier in this record, round 88 made edge overlays and
underlays end, turn and reach as v3's — round caps on every stroke, a
translucent layer that blends once with a round join at every corner
instead of darkening its own folds, and an overlay whose cap reaches
over a hollow arrowhead — each measured against v3 live, and landed
before the WebGL path so it copies the final strokes. Before it
round 75 shipped the DX polish
bundle — a container resize now announces itself (resize fires
without cy.resize()), a web font the labels do not use no longer
re-lays every label while the ones they do use are caught in every
loading order, collections work with for..of and cy.add() takes a
generator, cy.nodeAt() answers the node under a point
synchronously (headless too), a canvas that will not zoom lets the
page scroll again with wheelBehavior choosing what a wheel does,
and cy.viewportCounts() reports what the renderer actually drew.
Before it round 79 shipped the official
JSON schemas — element definitions, the stylesheet, layout options
and the factory's options as cytoscape/schemas/*.json, the
stylesheet's listing every property the compiler accepts per group,
and all five held to the running library by a gate that goes red when
a round adds a style property or an option without them. Before it
round 133 made a stylesheet replace a diff — cy.style( sheet ) re-writes only what the new sheet
changed, so a style editor re-sending its whole sheet for one colour
pays 1.5 ms instead of 250 on the 465k-edge fixture, with the same
end state column for column. Before it round 103 shipped cy.load() —
a graph streamed in chunks shows a correct partial graph before the
last byte: on the 465k-edge fixture over a 100 Mbit/s link the first
frame comes 4.8–18× sooner and the whole graph 38% sooner than a
one-shot load, and cy.ready now means the first chunk drawn.
Before it round 106 shipped cy.clone() —
a second view of a graph (a minimap, an overview) is a second
instance with its own sheet, viewport and selection, and follow
keeps it current by a throttled patch() (~50 ms a sync at 100k
elements; a restyle or a selection on the main view costs it
nothing), proved as the debug page's minimap. Just before it round
107 shipped cy.patch() —
a server's next query result reconciled into the live graph by id, in
one batch, keeping every survivor's selection, position and listeners
(1.7–2.4× cheaper than destroy-and-recreate at 100k elements and 90%
id overlap; a reload stays cheaper below ~70%). Earlier in this record,
round 131 shipped builds for the
use case: cytoscape/headless (no renderer, no WebGPU code — 513 KiB
minified against the full build's 872 KiB, gated under a
1,000,000-byte edge budget, and run in a WinterTC-shaped isolate every
run and on Cloudflare's workerd) and cytoscape/headless-gpu (the
GPU executors with no DOM — historically measured on Deno's native
WebGPU, whose support is now withdrawn); the pre-release
cytoscape/gpu alias is gone. The same day the eleventh design
sitting answered every open call. On 21 Sep round 132 made the status site's
Features page say what its numbers mean — Showing all 929 rows
over a composition line (495 API members, 303 style properties, 131
capabilities), a visible legend that tallies the selection per status,
counts and definitions in the pickers, a tooltip on every status
cell, and the CSV download and the feature-direction review as
buttons. The same morning, 129.3 was revisited (headless 'auto' takes the worker); the day before, round 130 split the ten largest
source files — style (9,961 lines), collection (6,581),
graph-store (5,665), shaders (5,220), core (3,385), renderer
(3,016), animation, curve-geometry, force, pointer — on the
pattern collection.mts already used for src/algorithms/: the
class keeps its path as a facade, every signature and doc comment on
its body where the JSDoc gates read them, and delegates its bodies to
a sibling directory of functions over the instance. Nothing on the
public surface moved (the generated API is byte-identical modulo
line stamps), 371 line-anchored inventory rows were re-anchored, and
every gate is green; the three facades still over 2,000 lines are
doc comments, and eleven files between 1,000 and 1,600 are listed
for the maintainer's call (PLAN.md item 71). Before it, 18 Sep was
a day of five rounds and three measurements. The last of them
(round 129) made the main thread's
availability a lane's value: the ten whole-graph algorithms the
worker pool cannot partition run their reference on one worker
under 'auto' — the same kernel function on both sides, so the
bits are the reference's — the worker-hosted renderer runs the
force integrator in its worker (12.8 s of frozen page → 1.4 s with
the page ticking), and the force layout's CPU simulation runs on a
worker that loaded the same bundle, behind a new executor option,
so a compound or constrained graph no longer holds the page for its
run. Before it, the execution model got a cancellation contract
(round 128): every async algorithm's promise carries cancel(), a
layout has cancel() beside stop() — the nodes go back where the
run found them, layoutstop still fires, promise() rejects with
CancelledError — and cy.destroy() cancels whatever is still in
flight. Earlier in this record: the algorithm tier's follow-ups
measured and closed (round 72 — closeness a BFS per source on both
executors, every routing constant a measured number), a fourth
executor (round 74 — a pool of plain workers, 12× the reference at
2,048 nodes warm), and the copy census (round 110 — v4 at the
zero-copy floor everywhere but the export readback, now a compute
pass). Three ledger items were measured and left as
recommendations: the scale ceiling was exactly 4,194,304 edges, set
by a device limit the renderer never asked to raise, and an
allocation failure was silent validation errors and a blank frame —
both built on 29 Sep; and the worker host's deferrals are priced —
the force one closed by round 129 the same evening, images and
fonts on 29 Sep. The day
before,
round 127 gave every string vocabulary one declaration, and the
layout quality audit was carried out, one sub-round per layout,
each waiting on the maintainer's review sitting.
How to maintain this file
- The development record is the source; this file is derived from it. That
record is the round files under
plan/rounds/, indexed inplan/INDEX.md, plusPLAN.md's standing sections. Nothing is recorded here that is not recorded there first. - This is the only cross-round summary of the work, by design (round
108.8).
PLAN.mdused to carry a second one and it silently stopped at round 64; the duplicate was removed rather than revived, which makes the rule below the thing keeping this history current. - Rewrite when a round closes — by re-reading the record and restating it, never by appending.
- Point form only. Short points, high level, readable in five minutes.
- Day by day, headline changes only. Each day is a list of what changed and what it buys — the benefit, not the implementation. A change earns a line only if it changed what the library is or what it can do; most do not.
- No round narrative. Rounds, file names, sub-round numbering and implementation detail belong in the round files. Round numbers appear here only where one is the sole handle on an open question.
- Restate, don't append. Later work routinely changes what an earlier decision meant, so earlier days need correcting too.
- Facts, not judgement. The numbers table below stays current; assessments of how close a release is, what is "left", or whether the work is on track do not belong here — they need information this file does not carry.
- Quote a number only if it is current. Test tallies, member counts and
benchmark figures go stale first; re-run the relevant command (see
AGENTS.md) rather than copying one forward. - Keep the decisions table honest: an item leaves it when the decision is made, not when the work is scheduled.
- Update Last updated and the round it covers.
Where it stands
| Automated tests | Full Node and Bun module gates passed; the final public Bun suite passed. Round 149 status-site modules passed 56/56 and workflow modules 9/9 under both runtimes. Focused workflow browser checks passed 8/8 in Chromium. The renderer and renderer-WebKit projects completed with 262 passes, 232 skips, zero unexpected and zero flaky results; workflow WebKit checks skipped because WebGPU was unavailable. The focused compound-hull spec passed in Chromium and skipped in WebKit for the same adapter limit. The final status build produced 435 files and was opened at 3335; older rounds' recorded outcomes are in their own records. |
| Documented API | 347 members over 48 sections, gated at 100% — round 90's review removed or demoted the rest of the parity pass's accidental surface |
| Visual regression | The final inventory has 107 reference, current, coverage and degrade records. The visual project reported 229 passes and one expected failure for the pre-existing Round 55 compound-routing parity gap (playwright-tests/lib/routing-scenes.mjs:441; playwright-tests/routing.spec.js:66 checks finite geometry separately); it had no skips, unexpected results or flakes. Golden coverage assigns non-default values to 207/220 properties; 13 have no static assignment (four paintable, nine without meaningful single-frame coverage). The reset pass checked 1,701 pairs: 1,600 moved pixels, 46 had value changes without pixel movement, and 55 had unchanged readbacks; 199/207 assigned properties moved pixels in at least one golden. The keyword controls checked 233 cases with 11 semantic exceptions, one scoped font restoration limitation and zero unclassified failures. The manual ledger accounts for all 220 properties and 325/326 recursive schema property/value combinations; the one remaining node text-rotation=autorotate pair is runtime-rejected because autorotate is edge-only, with a direct test. These are distinct measures, not a claim of 100% golden pixel coverage. The prior 53-reference exact comparison remains the dated baseline. Older rounds' renderer, gesture, parity and algorithm checks are recorded in their own round files. |
| Benchmarks | 31 suites, 5 published profiles · all 373 v3-comparative pairs read v4-faster as of 2 Sep — 269 core/collection pairs at geometric mean 10.7×, minimum 1.02×, plus 104 renderer pairs at 31× · GPU algorithm executors 7.5× geo-mean over their CPU reference across the 65-pair sweep of 18 Sep (medians of three; the 14 pairs behind are the cells the CPU owns by design) · the worker pool 2.4–18× over the CPU reference across its 18-pair sweep of 18 Sep, every pair ahead · the offload tier's 32 cells of the same day: the calling thread held for 0 ms of a 180 ms Floyd–Warshall, a 593 ms MCL, a 1 s affinity propagation — and, from 29 Sep, of a 265 ms k-medoids and a 630 ms hierarchical clustering at 5,120 points · round 82's 41-cluster EM / 500 sparse / 500 degenerate drag p50 for convex controls was 6.967 / 34.558 / 32.088 ms and for concave was 8.462 / 44.534 / 43.144 ms (Node 24.18.0, i9-9900K) |
| Style parity | v4 accepts 162 of v3's 291 style property names by the inventory reader's count (round 85.4 restored the per-side padding quartet; round 76 added text-border-style and the mid-arrow widths); the rest dropped by decision |
| Bundle | Built 5 Oct, minified / gzipped: cytoscape 1,029,507 / 294,389 bytes; cytoscape/headless 617,371 / 190,879 bytes; cytoscape/headless-gpu 696,384 / 209,483 bytes. Both slim minified entries stay below the 1,000,000-byte edge budget; every slim raw/gzip pair has a measured ratchet. Import and constant-inlining gates keep the tiers separate and the tables out of minified output. |
| Runtimes | Node ≥ 24 and Bun ≥ 1.4.0 run the headless bundles and worker paths. Bun 1.4.0/1.4.3 pass the full public/module/soak/throws tier with exact Node parity; no Bun WebGPU compute or renderer is promised. Deno support is withdrawn. Edge isolates use cytoscape/headless, gated in a WinterTC-shaped isolate and on workerd. Other environments retain their measured support-matrix rows in src/README.md. |
| CI | Node, browser, Bun and workerd jobs gate. Bun runs full native verification and bundle smoke at 1.4.0 and latest stable; local final checks passed on 1.4.0 and 1.4.3. The Node tier, Bun latest and the renderer / renderer-webkit projects also run on Windows and macOS; those browser jobs reach no WebGPU adapter, so they run the non-GPU specs only. Goldens, workerd and v3 are Linux-only. Cancellation timing specs fail intermittently. Deno jobs are removed. |
Day by day
22 Jul — the whole stack, stood up in one day
- Columnar store, model↔renderer contract, core facade, collections, events, viewport, compiled style engine, grid layout, WebGPU pipeline, GPU picking, pointer interaction, SDF labels, debug harness.
- Buys the architecture proved end to end before any of it was polished.
23 Jul — the model earns its shape
- Packed numeric keys for set operations, columnar flag scans, id-index selector resolution, slot-native traversal.
- Buys v3's own API measuring faster on v4, not just its drawing.
24 Jul — style becomes data
- Mapper spec compile, scale programs, OKLab colour and named schemes, ordinal dictionaries, GPU evaluation of scalar and colour channels.
- Buys paint that never round-trips through the CPU, and style that can cross a wire.
27 Jul — visible-behaviour parity, in one sitting
- Search, path, structure and centrality algorithms; polygon shapes; line styles; label visuals; edge labels; one easing layer; the gesture family (cxttap, taphold, dbltap, drag-all-selected); mount/unmount; device-loss recovery.
- Buys an existing app the same picture and the same interactions.
28 Jul — measurement infrastructure
- A single-page benchmark report, and browser renderer benchmarks putting v3 canvas against v4 WebGPU.
- Buys claims that are numbers.
29 Jul — memory comes back
- String-dictionary and id-blob compaction, CSR adjacency rebuild.
- Buys a long-running session that does not keep the graph it removed.
30 Jul — curved edges
- Curve parameters, route pipeline, arrows on end tangents, labels at route midpoints, exact accessors, haystack and manual endpoints.
- Buys v3's whole edge vocabulary.
31 Jul — compound graphs
- Hierarchy model, lifecycle, auto-bounds, ancestor-gated visibility, event bubbling, parent draw/cull/pick, compound layouts and loop edges; end labels on v3's 3×3 grid.
- Buys nested graphs, which most real applications use.
1 Aug — the layout leaves the main thread
- The force layout on the extension contract with a GPU integrator; touch gestures; the display/visibility split; style transitions; slot compaction.
- Buys layout that does not freeze the page, and a hide that costs only paint.
2 Aug — the visual vocabulary completed
- Every remaining v3 node shape and arrowhead, v3's nonlinear arrow sizing, size/width/font/padding tweens, shipped TypeScript declarations.
- Buys a stylesheet that ports without a lookup table of what is missing.
3 Aug — contracts gated, hot paths fixed
- Documentation and error contracts gated at zero tolerance; the style read
path's 150-case switch became a dispatch table; memoized collections;
O(1)
indexOf. - Buys a build that fails on an undocumented member or an untested guard, and a worst-case style read 2.6× faster.
- Documentation and error contracts gated at zero tolerance; the style read
path's 150-case switch became a dispatch table; memoized collections;
O(1)
4 Aug — v4 becomes the package
- The repository split so v4 is the package and v3 lives whole in
v3/; v4's own event emitter; packaging gates; the docs generator; the debug harness rebuilt. - Buys a v4 that ships alone, and a real v3 to keep measuring against.
- The repository split so v4 is the package and v3 lives whole in
5 Aug — robustness and publication
- The soak tier (leaks, churn, wire fuzzing, multi-instance isolation); the status site; machine provenance and a tracked benchmark archive; fixtures shipped in v4's binary wire format.
- Buys a deployable preview of the branch, and a benchmark history that survives the machine that produced it.
6 Aug — CI made honest
- Fresh-checkout failures fixed, bundles built before the suite; v3's arrow gap and spacing constants ported; feature pipelines built on first draw.
- Buys a green run that means something, and a first frame of 2.7 s where it had been 4.6.
7 Aug — parity found by measuring, not by looking
- Numeric routing parity (geometry, not pixels); the arrow gap; element state
(
:selected,:active,:grabbed) as ordinary style condition rather than a shader constant; v3's selection colours. - Buys differences 400× below the pixel bound being caught, and every affordance being restyleable or disableable by an application.
- Numeric routing parity (geometry, not pixels); the arrow gap; element state
(
8 Aug — the things you click
- v3's hit halos, arrowheads as hit targets,
:activeon edge press; border-style and outline-style on every shape; minified WGSL; directional fit bounds. - Buys edges that are clickable again, and smaller shipped shaders.
- v3's hit halos, arrowheads as hit targets,
9 Aug — every benchmark pair reads v4-faster
- State flips write the diff rather than the element; the force layout made stable by construction; cross-commit benchmark comparison pages.
- Buys performance visible across commits — the pages caught a four-day-old regression on first use.
10 Aug — the expensive algorithms go async, onto the GPU
- Nine whole-graph algorithms return promises and take
executor: 'cpu' | 'gpu' | 'auto', with WGSL kernels and a performance pass; per-element bypasses returned as a stylesheet section;cy.collection()throws on an argument,cy.$()andcy.byId()return. - Buys Markov clustering at up to 642× its CPU reference, and v3's bypass ergonomics at twice v3's speed.
- Nine whole-graph algorithms return promises and take
11 Aug — the load path taken apart
- Definition-form payloads convert to columns before ingest; mapped style costs per distinct value; a run of identically styled edges is written once; the benchmark comparison learned harness epochs, repeat medians and screened movers.
- Buys 1.9× on a 465k-edge load with a byte-identical frame, and a comparison page that can tell a change from its own noise.
12 Aug — the instrument
- The benchmark runner runs jobs concurrently; concurrency is folded into the harness fingerprint and the published archive stays serial.
- Buys a publishing run in 8.4 minutes instead of ~55, with no way to mistake a faster instrument for a faster library.
12 Aug — the matmul-first algorithm families
- Markov clustering leads the GPU benchmark because its inner loop is a dense matrix product; four families were built to that shape: triangle counting / clustering coefficients / transitivity (A²∘A), neighborhood similarity (A·Aᵀ), Katz centrality, and a GPU path for whole-collection closeness centrality that folds each distance row on the device — n floats read back instead of the n² matrix. Whole-collection closeness joined the async tier (a public API change); the three other families are v4-only surface. 'auto' gates the A²∘A families on density — their sparse CPU walks own sparse graphs however large — and never routes Katz to the GPU, the pageRank verdict for the same iteration shape.
- Buys three algorithms v3 never had, on kernels the suite already trusts; each of the five new parity specs was proven able to fail by degrading its kernel; crossover numbers await the benchmark machine.
12 Aug — the propagation tier: network biology's algorithms
- Five more families, chosen by scientific usefulness: random walk with restart (seed propagation — the disease-gene-prioritization primitive — plus the all-pairs proximity matrix), heat-kernel diffusion (HotNet-style exp(−tL), seed and all-pairs forms), effective resistance / commute time (Laplacian pseudo-inverse: f64 elimination on the CPU, Newton–Schulz matmuls on the GPU — O(n³) both sides, so the GPU wins at every density), SimRank, and the sixteen-class triad census ('030T' is the biology literature's feed-forward loop), whose closed forms are pinned by a brute-force classify-every-triple spec. Seed forms are CPU-only by design — O(E) walks with nothing for a kernel to win.
- Buys the network-biology propagation toolbox on the existing kernel machinery; five more parity specs, each proven able to fail; measured on an M2: RWR proximity 119×, SimRank 45× at n=1024.
24 Aug — verification goes quiet for agents
- Every verification script gained a
:quiettwin (npm run -s test:quietand friends) that prints only actual failures: a green run is zero bytes — measured, a greentest:nodehad been ~3,800 lines / ~226 KB of pass marks — and a red run prints the failing tests' blocks and nothing else. A failures-onlynode:testreporter, a capture-and-replay wrapper for tools with no quiet mode, a Playwright twin, and a gate that keeps each quiet script identical to its loud original modulo the reporter flag, so the pairs cannot drift. CI and the interactive debug scripts stay loud deliberately. - Buys agent context spent on failures instead of on green; the first full quiet run proved the point by printing exactly one real failure (a planned-paths gate its own new files had tripped) and nothing else.
- Every verification script gained a
24 Aug — the parity pass audited: the API sheds what it never meant to ship
- The early rounds copied v3's surface aggressively, and the bill came due:
the public tier carried members v3 itself kept internal. A new
member-grained
@internaltag now runs through the coverage scanner, the docs generator and the shipped declaration (which oxc already half honored, unnoticed); the maintainer ruled on every headline member. Removed:forceRender,onRender/offRender,mutableElements,batchData, and thebind/unbind/listen/unlistenlistener aliases — the event surface now follows Node'sEventEmitterspellings, pluspon. Demoted to internal:renderer()(with a new publiccy.stats()snapshot in its place),instanceString, the silent position writes, the style-engine and animation machinery, and the wholeViewportclass. - Buys a typed surface that matches intent — 460 → 355 public members, the declaration 9,695 → 8,387 lines — with every removal a MIGRATING row and every demotion still working at runtime.
- The early rounds copied v3's surface aggressively, and the bill came due:
the public tier carried members v3 itself kept internal. A new
member-grained
24 Aug — the repo itself is made workable by an agent
- The instructions, the record and the search results were all costing
more than the work.
AGENTS.md— which both Codex and Claude Code load verbatim before a session knows what it is for — went from 62,818 to 10,303 bytes (~15.7k to ~2.6k tokens), with every hard-won lesson moved verbatim into fivedocs/agents/notes and a routing table keyed by what you are about to do put in their place. The 1.5 MB development record — past what any agent can open — became one file per section underplan/rounds/, verified byte-identical to the original (1,524,666 bytes over 146 files) and still published as one page. v3, which is 821 of 1,290 tracked files and ~57% of every search hit, is now declared frozen in its own nestedAGENTS.mdand skipped by default in search (style: 462 hits to 186). - One live defect fell out of the review: a Claude Code worktree left
behind after an earlier round put 141 of 278 files into
npm packand had turnedtest:modulesred, because.npmignoreis a denylist with no entry for a directory that did not exist when it was written. Fixed, gated, and the closing sweep now checksgit worktree list. - Buys a named inner loop (
npm run -s verify, 9.6 s against the 88-second gate) and four new gates that keep all of the above from growing back: a byte budget onAGENTS.md, its paths and script names checked, and the record's index held in step with its files.
- The instructions, the record and the search results were all costing
more than the work.
25 Aug — the record is made skimmable
PLAN.mdstopped summarising itself (round 108.8): the round-by-round prose at its head was a third copy of a history two better-kept documents already hold, and the only copy nothing obliged anyone to update — it had stopped at round 64 while 44 further rounds landed.- Every section heading became a title rather than a label (round
108.9). 109 of 149 opened with
Round N, 94 carried a parenthetical lifecycle date, and all of it was already in the filename; headings now average 33.9 characters, down from 72.6, and the filename took akindfield (plan/landed/note) so nothing reads metadata out of prose any more. - Buys an index you can scan for the section you want, and three prose regexes deleted in favour of one filename parse.
26 Aug — the renderer leaves the main thread (round 86)
- Measure-first gate (86.1): the worst-case per-frame copy — the whole position column crossing the thread boundary — is 0.035 ms at harness scale, so the copy design was committed and the SharedArrayBuffer tier declined with the measurement recorded.
- The seam (86.2): the renderer takes everything through one
RenderHost(src/render/host.mts) and speaks slots and pick ids only; behaviour-neutral, all 45 goldens exact-zero. The same seam is what a WebGL fallback (round 73) or a headless-Node renderer mounts through. - The worker host (86.3):
renderer: { worker: true }runs the same engine in a worker over a transferred OffscreenCanvas, fed by transferable span batches; the canonical store, sync picks, the canvas element and the animation clock stay main-side. Worker-vs-main exports diff exact-zero on the pinned adapter. Pass-1 deferrals recorded: worker background images, GPU tweens/force across the boundary, page @font-face labels — the force layout moved into the worker on 18 Sep, images, fonts and position tweens on 29 Sep; paint tweens stay on the CPU path, which was measured as costing nearly nothing. - Measured (86.4): under a saturated main loop the worker host painted 236 of 240 frames against same-thread's 120 at equal main-thread busyness; costs are ~0.7 ms/frame of batch traffic and +0.6 ms pick round trip. On this real-GPU box the renderer's own main-thread cost was already ~0.2 ms/frame, so the win is cadence isolation, not occupancy — the recommendation stays opt-in and post-4.0.
26 Aug — the record says which rounds landed (round 111)
- Thirty-three rounds that had shipped sat in files still named
plan, because the filename convention arrived at round 108.7 and the rounds before it had their plan amended in place — round 10's own file opens**Round complete (2026-07-27)**. Read through the index, the planned queue looked three times its real size. - Renamed on the evidence in each file; five pre-108.2 rounds merged into
the one-file-per-round shape; three planning sweeps re-kinded from
landedtonote— filed as landed, they had marked seventeen unbuilt rounds as shipped. - Buys a generated "Which rounds landed" table in
plan/INDEX.mdand two gates that keep it honest: aplanfile may not record its own landing, and no round may be filed as both a plan and a landed record.
- Thirty-three rounds that had shipped sat in files still named
26 Aug — the record answers for itself: a spec that diagnoses, a ledger swept
- Round 109 was planned as a hunt for a harness sensitivity and measurement
falsified its premise: the invocation it blamed cannot run at all (no spec
imports the test shim, so the unpreloaded form dies at
describe is not defined). What is real is an intermittent full-tier failure of one force layout spec, at a value identified as exactly the non-spectral seed's result — which rules out the whole family of explanations two earlier rounds had reached for, since nothing in that code path reads global state or the clock. It is instrumentation-shy (0 failures in 20 probed runs), so the round left the diagnosis in the spec: on failure it re-measures the other path in the same process and names which failure happened. - The open-calls ledger was swept for the first time in sixteen days and fourteen rounds. One decided-but-undone action was finally done (a comment the maintainer ruled on 2026-08-06); one item's "first measurement" was taken rather than described; two calls that lived only inside round records joined the ledger.
- Buys a failure that reports instead of puzzling — three rounds had read the same bare assertion and each guessed a different mechanism — and a ledger that is again what it claims to be: the one place a question waiting on the maintainer can be found.
- Round 109 was planned as a hunt for a harness sensitivity and measurement
falsified its premise: the invocation it blamed cannot run at all (no spec
imports the test shim, so the unpreloaded form dies at
27 Aug — what you see is what you pick
- Round 97: a click on an edge crossing a compound parent's body selected the
parent. The renderer draws every parent in one stream under the edges,
so picking was answering with the thing drawn underneath — the one place it
contradicted its own "what you see is what you pick" contract. Picking now
resolves leaf, then edge, then parent, the reverse of the draw order, and
cy.pick()states that order as contract where nothing had written it down. - Both of the round's open questions went to the maintainer with the two
libraries' draw orders measured first, which was the point: the plan's
premise about the nested case was backwards. v4 has no "edge layer" that
parent bodies sit above, and v3's interleave-by-depth follows from
z-index/z-compound-depth— dropped from v4 on 1 Aug. So there was no v3 tie-break left to match, and the flat rule (depth changes nothing) is the only one consistent with what v4 draws. - The plan's other claim — that both gesture seats route through the same pick
— was false for the press seat, and the spec caught it:
cy.picksaid "edge" while the click still selected the parent. A parent grab is now provisional (it starts instantly, so dragging a cluster keeps its feel, and is dropped if an edge outranks it), and a release that has not moved waits for that answer before it taps. - Buys the reported defect fixed at the seat where it was felt, an ordering users can rely on rather than infer, and one recorded deviation: an app that relied on a deeply nested v3 parent out-ranking a shallower edge now gets the edge.
- Round 89: the canvas now says what a gesture will do. Neither library set
a CSS cursor anywhere, so a graph canvas showed the browser default through
panning, dragging and box selection alike. It carries the standard pair
now —
grabover a draggable node,grabbingwhile it or the background moves — pluspointerover anything else clickable andcrosshairwhile boxing, and it keeps the affordance during a drag that leaves the canvas. - The compatibility decision is what shapes it: v3 apps set cursors
themselves, from
mouseover/mouseouton the container, and v4's canvas fills that container — so idle over background writes nothing at all, leaving the app's own cursor in force wherever v4 has nothing to say.pointerCursors: falseturns the writer off outright, and an object overrides individual states. A touch pointer never gets a cursor. - The plan said to hook seven specific gesture transitions; the code derives the cursor after every pointer event instead, because the press state is cleared in six places and three of them are touch paths no enumeration had listed — each a sticky "grabbing" waiting to happen on a hybrid device.
- Buys the affordance every other graph canvas has, without taking the one a ported v3 app already sets.
- Round 97: a click on an edge crossing a compound parent's body selected the
parent. The renderer draws every parent in one stream under the edges,
so picking was answering with the thing drawn underneath — the one place it
contradicted its own "what you see is what you pick" contract. Picking now
resolves leaf, then edge, then parent, the reverse of the draw order, and
28 Aug — a round that shipped nothing is still closed (round 111.1)
- Round 111 taught the record to say which rounds landed, and missed the one
that ended by deciding to build nothing. Round 40's design sitting closed
the error-policy question on 9 Aug — no
cytoscape.warnings(), noerrorPolicy, no re-tiering, with the 198-site taxonomy left as the recorded rationale for the fail-loudly contract standing whole — and every form the gate knew looks for evidence that something shipped. - So the generated table read
planned 40for nineteen days while another section of the same record already read "Round 40closed with no new surface", and this summary had never listed it as pending. The derived view is trusted because it cannot go stale, which makes an incomplete input the most confidently wrong thing in the repo. - Buys
landed 7–48running unbroken, and a third clause in the gate — aplanfile may not record its own close either — matched against the file's own round number, so round 79's item-level "ships nothing" does not close round 79.
- Round 111 taught the record to say which rounds landed, and missed the one
that ended by deciding to build nothing. Round 40's design sitting closed
the error-policy question on 9 Aug — no
28 Aug — the v3-default
eh, restored by bypasses (round 96)- The maintainer's screen-pass report that
eh"seems not quite right" on?network=v3-default, closed with the renderer exonerated: given v3's exact parameters, v4 routes the curve identically to the last float. The sheet was the defect — the list-valued curve props take constants only, so the port had collapsed v3's four per-edge arrays to one per family andehdrew a different curve entirely. - A round-63 bypass entry is a per-element constant, which is exactly what a
per-edge array is — for the list props the bypass is the only per-edge
spelling, and the sheet now carries v3's four arrays that way, pinned by a
spec whose
ed/ehnumbers are v3's own (probe-verified, exact). Half the recorded deviation turned out never visible: the family constants wereab's andbc's arrays. - The routing-parity suite gains its first segment-family scene — v3's
arrays verbatim plus mixed-sign and extrapolated-weight cases, the v4 side
parameterised through bypasses — measured clean at 50 fields, max delta
2.55e-6 model px. The edge-types demo's two unbundled-bezier rows draw
different curves again by the same mechanism, and
MIGRATING.mdnames bypasses as the porting path for per-edge list-prop arrays.
- The maintainer's screen-pass report that
28 Aug — the compound fit, from conservative to exact (round 92)
- The maintainer's screen-pass report that the compound fixture "does not
fit to screen properly", closed at its cause: the fit scan's conservative
compound-loop bound over-framed the fixture 1.23×, and because its slack
grew up-left only,
fit— which centers the box it is given — sat every compound graph visibly down-right. An over-frame reads as "zoomed out a bit"; an off-center over-frame reads as "fit is broken", which is what was reported. - The fix extends the tier round 54 had already built for taxi: every box-bounded curve kind (compound loops, taxi, extrapolated weights) now reads the exact memoized curve box in both CPU fit-scan sites, so the conservative terms — and both defects — are deleted rather than tuned. The fixture fits at the exact box's own zoom (0.874 → 1.077), centered to the pixel, with a centering assertion standing where none had been.
- Freshness is structural, not margin-based: every input the geometry reads writes through the same epoch that invalidates the memo, checked setter by setter. The warm scan got 4× faster in the bargain (a fresh memo now answers without evaluating the curve); a straight-edge graph's scan is untouched, and the one cost — a cold scan's first pass over the affected kinds — was measured and recorded, not assumed away.
- Buys compound graphs that fill the screen a fit was asked for, on real data and the fixtures alike.
- The maintainer's screen-pass report that the compound fixture "does not
fit to screen properly", closed at its cause: the fit scan's conservative
compound-loop bound over-framed the fixture 1.23×, and because its slack
grew up-left only,
28 Aug — the outline goes under the ink (round 95)
- The maintainer's screen-pass report that label outlines cut white notches into the previous letters of a word, closed at its mechanism: glyph quads overlap by construction, and the one-pass label draw composited each glyph's opaque outline ring over the previous letter's already-blended fill. v3 strokes the whole line and fills over it; v4 now draws every label stream's outline coverage first and every fill over it — two specializations of the one label shader, same instances, no new buffers.
- Priced before landing, on the renderer bench's new outlined twin of the wrapped-label scene: outline-free rendering is unchanged against the published baseline to the microsecond (streams without an outlined glyph skip the extra pass before any GPU work), and outlines cost +0.087 ms (+1.5%) of device time at the zoomed-in label view.
- Two measurements the coverage keeps: the notches are a zoom-1-scale artifact of the outline cap's anti-aliasing fringe (the pre-fix close-up at zoom 4 differs by only 15 px, so the zoom-1 golden carries the discrimination), and the v3 parity ratio is blind to outline defects outright — outline presence is asserted by an inked-pixel floor instead, which separates the two decisively where the ratio measures nothing.
- One recorded deviation: the split is global across labels where v3's is per line, so where two distinct labels overlap, v3 strokes the later label over the earlier one's ink and v4 does not — both being unreadable there, per-run parity was declined rather than deferred.
- Buys legible outlined labels — every word on the classic demo's edges,
and any app styling text with
text-outline-width— at every zoom.
28 Aug — resize without distortion (round 91)
- The maintainer's screen-pass report that the network view stretches and
squishes while the window is dragged, closed at its mechanism: the steady
state was already right, but a
100%-CSS canvas let the compositor scale stale content to the new layout for at least one frame — ResizeObserver callbacks run after this update's rAF, and the redraw was scheduled to the next one, so a continuous drag was a continuous rubber-band. resize()now draws its frame synchronously — the observer runs before paint, so the frame that composites the new layout composites new content and the stretched frame never exists — and the canvas CSS box is written in fixed px (v3's shape), so any frame that is still late — the no-observer path, the worker mount — letterboxes instead of stretching. Measured on the debug harness: one frame per drag step, ~0.5 ms each.- The same round un-froze the device-pixel ratio:
'auto'is now live — re-read per measure and watched by a resolution media query — so browser zoom or a monitor move re-rasterizes (and emitsresizeon the core, v3's semantics) instead of blurring at the construction-time ratio; an explicitpixelRationumber stays pinned, both directions spec-pinned. - Buys a window drag that reads as a window drag — coverage catching up, never the graph deforming — and crisp rendering across monitor and browser-zoom changes.
- The maintainer's screen-pass report that the network view stretches and
squishes while the window is dragged, closed at its mechanism: the steady
state was already right, but a
28 Aug — Bun and Deno run the package (round 98)
- The library was runtime-clean by fact — no
node:*import, no dependency, the headless path speaking only web-platform API — but not by gate: the import audit deliberately skipped bare specifiers, and no artifact of the repo had ever been loaded by Bun or Deno. Both halves are now pinned: the audit asserts the set of non-relative specifiers undersrc/is empty (comments stripped first, so a doc-comment example cannot trip it), and one framework-free smoke file runs the built ESM, minified-ESM and CJS bundles under Node, Bun and Deno — headless init, the wire round-trip with every dictionary column checked value-for-value, style mappers and bypasses read back as values, layouts, sync and async algorithms on the CPU executor, events and the json() export. Deno's require-compat held when measured, so the CJS bundle is contract on all three. - The smoke found zero defects on its first run, and every assertion is on values and ordering rather than "it didn't throw", because a compat layer can pass a completion check while handing back a subtly wrong decoder — the degraded-reader control produces exactly the plausible-looking graph with no labels, and fails loudly on all three runtimes.
- Buys a support claim that is a gate rather than a hope:
ci-bunandci-denosmoke every push at latest stable plus a pinned floor (Bun 1.4.0, Deno 2.9.6), and anode:fsimport added tomorrow is a red build today.
- The library was runtime-clean by fact — no
28 Aug — curves spend their quads where the bend is (round 93)
- The maintainer's screen-pass report that some curved edges render as visible chord chains while bundled beziers stay smooth, closed at its mechanism: every curved edge is one 24-quad strip, and the route families (unbundled bezier, round-segments, round-taxi) split it uniformly across their pieces — so pixel-straight legs, which need exactly one quad, consumed the subdivisions their arcs needed, and a radius-50 corner drew as ~6 facets. The bundled bezier spends all 24 on one curve, which is why it never showed the defect.
- The allocator now weights each piece by its tangent turn — an arc by its sweep, a bezier piece by the turn between its control legs, a straight leg zero — with one mandatory quad per piece and piece boundaries still landing exactly on subdivision indices, so legs stay pixel-straight and nothing new is drawn: the same budget, spent where the bend is. Both twins (the CPU flatten that bounds/picking read, and the vertex shader) moved together, and dashes follow by construction because their coordinate is the same polyline's length.
- Verified at three tiers with controls: the radius-50 corner now flattens 22 chords (max error 0.24 → 0.03 model px, asserted); a new close-up parity scene framing one large-radius corner per family reads 0.004% against v3 where the uniform allocation reads 0.099%; the numeric routing suite confirmed no routing number moved. One golden moved by 2 px — the round-segments scene, its arcs smoother.
- The budget itself was then priced on hardware (93.2, this box's RX 580) and raised 24 → 32: the 5-corner probe's 0.384% collapses to 0.003% while the 25k-curved scene's device time stays under the frame budget (9.6 → 13.2 ms, wall on the vsync floor). 48 — the number the deferral's arithmetic favoured — measured 25.7 ms device and 33 ms wall (two vsync frames) for no measurable gain over 32, and was declined: the dash arc-length loop prices the budget superlinearly. Twelve curved-scene goldens regenerated, each diff read first; no routing number moved.
- Buys magnified round corners drawn as arcs — the reported defect class fixed with zero new vertices, and the residual case measured, named, and then closed by the hardware-priced raise.
28 Aug — zoomed-in labels stop going soft (round 94)
- The maintainer's screen-pass report that labels "break down in quality when zoomed in a fair bit", closed at its mechanism: the glyph atlas's edge AA is scale-free but its letterform is not — raster + EDT quantization error is baked in at the fixed 32 px per glyph and magnifies linearly with displayed size, rounding corners and deforming descenders by ~2 px at zoom 4.
- The atlas is now zoom-tiered: a settle-debounced meter (the svg image promotion's twin, sharing its timer) watches the largest label's displayed pixels and, past 40, re-rasters every glyph in use at 64 px — one-way, covering graphs built already zoomed and image exports at the export scale, with the swap sequenced so no frame ever mixes old and new raster. Costs nothing until someone zooms; then one ~39 ms re-raster and 3 MiB of texture, once.
- Verified by the close-up tier's first label scenes: a letterform-dominated live parity diff reads 0.112% against v3 where the pre-round render reads 1.202% against a 0.4% bound, and zoomed goldens export only after the public stats counter reports the promoted tier, so the sharpen cannot race the diff. Raising the base raster for everyone (4× first-paint cost, 4 MiB everywhere) and raster-derived MSDF were both measured or assessed and declined, with the reasons recorded.
- Buys crisp labels at the zooms people actually inspect graphs at — and closes the screen pass: all seven defects the maintainer found in one sitting are landed.
31 Aug — layouts: the mechanics, then the breadth
- The layout→renderer handoff decoupled from animation: a flat rendered
graph hands force integration to the GPU however the run is shown —
presentation does not pick the executor — with a silent run publishing off-mirror
so the screen holds its frame until the one settle write. Measured at
25k×50k: 0.35 s silent-GPU settle against 25.3 s of synchronous
main-thread CPU (the old
animate: falsebehaviour) — the one named semantics change: that spelling is now async, settled atlayoutstop/promise(). - Component packing extracted from the force layout into a shared module,
and the extension contract gained
ctx.packComponents()— v3'sseparateComponents, the bolt-on both flagship apps ship, in one call. - grid and preset stopped lying about animate: their doc comments claimed
tween support the code ignored (and both skipped the
ready/stopcallbacks outright); any animate/transform/callback option now routes through the shared finisher while the bare calls keep their benchmarked bulk paths. The debug harness forwards the animate toggle to every layout and its timing chain stops throwing on every non-force Apply. - A new built-in: the radial tree layout (#2493) — hierarchy-aware angular wedges, each subtree a contiguous sector sized by its weight, so tree edges never cross the circle; multi-root sweep partitioning and disconnected components each getting a wedge. Priced against v4's own breadthfirst-circle: ~3× faster at N=2000.
- Data-driven layout mappings (#1514): the census found the whole
fn-taking layout surface is five params in two shapes, so both got a
serializable spelling —
edgeLength/concentrictake{ data, scale?, range?, invert?, default? }(the "log mapping, large scores → short edges" recipe as one literal) and the three sorts take{ data, order? }with deterministic ties; fn forms stay as escape hatches. A typo'd key or wrong-kind column throws instead of defaulting into a plausibly wrong layout. - Force constraints (fcose's main draw absorbed):
alignmentid-array groups (a locked node pins its group) andrelativePlacementleft/right/top/bottom pairs, projected after each integration step; validation throws at start on unknown ids, placement cycles and contradictory locked members. The measure-first gate ran: constrained runs take the CPU executor (~26 s vs 0.4 s at 25k, but seconds at the fcose-sized graphs constraints serve; the projection itself costs ~4%), with the on-device kernel design recorded, not built. - Per-side compound padding —
padding-left/right/top/bottom, px or'N%'likepadding— closing the hook logged when the round-14 centered clamp dropped v3's four min-size bias props: the clamp stays centered and each side grows the box about it. - Buys layout breadth an app can feel: a new layout, fcose's constraint surface without leaving core, per-edge lengths from data without functions, an asymmetrically padded compound, and a silent force settle ~73× off the main thread.
- The layout→renderer handoff decoupled from animation: a flat rendered
graph hands force integration to the GPU however the run is shown —
presentation does not pick the executor — with a silent run publishing off-mirror
so the screen holds its frame until the one settle write. Measured at
25k×50k: 0.35 s silent-GPU settle against 25.3 s of synchronous
main-thread CPU (the old
1 Sep — the flow layout: layered/hierarchical, built not ported
- The known portfolio hole (nothing Sugiyama-class) closed with a
built-in:
flow— greedy-FAS cycle removal, network-simplex layering, weighted crossing minimization, Brandes–Köpf coordinates built against the 2020 erratum dagre still predates, compound support as one global layering (contiguity, side-consistent sibling boxes, border walls carrying the padding), and no emitted edge geometry by design — style-driven (taxi) edges stay correct when nodes drag. - "Comparable to dagre" was made a measured bar first: a quality harness (crossings / edge length / area / validity / runtime) over real DAG fixtures found dagre crashing on long skip edges, hanging on nested clusters, and never finishing 10k nodes; elkjs completes but needs 53 s there.
- Where flow landed against that bar: best engine outright on the 1k workflow (fewer crossings than both, smallest area, 116 ms vs dagre's 22 s); 10k nodes in 7.1 s with fewer crossings than elkjs and 22× less area; within 3% of dagre's crossings on the real dependency graph at 10× its speed. The residue is recorded, not hidden: elkjs still leads crossings by ~25–30% on three fixtures, and the taxi-geometry pairing measured worse than straight lines — both carried as named follow-up levers with their numbers (10 Sep resolved the second: the taxi counts were never comparable, since collinear runs are ambiguity, not crossings).
- Buys the dagre use case in core: v3 apps that shipped a layout extension for DAGs get a faster, maintained, compound-correct built-in that one option object away replaces it.
- Real data joined the same day: the debug page gained the repo's own
npm dependency DAG (scopes as compound parents) and Reactome's
human Immune System pathway hierarchy (CC0), both also quality
fixtures — and the bio hierarchy seemed to invert the taxi
finding: 3 crossings under taxi routing against dagre's 73 and
elk's 54 (10 Sep showed the 3 was 37 collinear overlapping runs
that a crossing counter cannot see; separated, they are 59). The
first
positionless compound fixtures also flushed two round-trip bugs:
toColumnarElementsfabricated a positions column (a positionless graph came back from the wire positioned), and the debug page's wire decode dropped compound parents.
- The known portfolio hole (nothing Sugiyama-class) closed with a
built-in:
1–2 Sep — the performance review: the whole suite against 13 Aug
- Every profile re-measured (core sweep at medians of three, renderer scenes and the GPU executor sweep on the RX 580) and read the archive's way: screened against each row's own band with frozen v3 as the control. Across the 43 commits since the last published run the library did not regress: zero screened regressions, drift within 1.5%, and the one pair reading v4-slower had been at parity for a year.
- That pair — the whole-graph predicate filter — was rebuilt on the
existing memo and handle paths:
cy.filter( fn )4× faster,nodes().filter( fn )1.2×, nothing observable changed. The "every comparative pair v4-faster" property, found to have lapsed unmeasured since round 65 (two pairs at parity in the 13 Aug baseline itself), holds again at 373 pairs. - The first hour measured the wrong thing: a shell without mise ran
Node 22 against a Node 24 archive and every frozen control moved.
The instrument now refuses that (the runner checks
.nvmrc; the archive records the engine), the machine fingerprint no longer splits a box's history when a kernel changes its reported RAM (the 21-run archive re-stamped to one id), and a layout benchmark row that had never passed at its published size was made to measure what it is named for. - Buys a benchmark history that is comparable again — the page had been refusing to draw a line to any new run — and a standing performance claim that is measured rather than remembered. Four movers no run could screen (one-shot rows, rows narrower than their noise) are logged with the measurement each needs.
2 Sep — the layouts, cleaned up
- A survey of the portfolio found nine defects: flow's animated runs
never fitted, radial and the spiral example had no overlap
avoidance, force ignored node size and every finisher option,
labels counted for three layouts out of nine, and only force and
flow honoured a locked node — every other layout, and
position()itself, moved one. - One reading of node dimensions now serves every layout (labels
on request — an afternoon with labels on by default showed why v3
never did that); each layout avoids overlap in its own geometry
(radial's rings grow, flow's box holds the bodies) and force's
point sim gets the one post-settle separation; a locked node holds
against writes, tweens and every layout; force's
animate: truetweens to its result like every other layout, withanimateLivefor the streaming run. - A quality suite runs every layout over six fixtures — 170 specs, each overlap row paired with a control that goes red when the layout's overlap code is stubbed — and the debug page gained what a person judging a layout needs: Preset restores the load positions, a live-vs-tween choice, layout-appropriate edge types, and a hover panel that dims or hides everything outside a neighbourhood.
- The first version of those overlap rules cleared overlap by spreading everything: every pair was spaced by the largest node in the graph, and force scaled a whole component by its worst pair (a 2.4k px field became 11.6k). The same day, the spacing became exact per pair — two boxes only need to clear on one axis, and which one depends on the direction between them — and force's pile is opened by proximity stress instead of a scale: the field is back to 2.8k px, rings are v3's size, and the quality suite now asserts tightness as well as clearance (a crammed layout must leave some pair exactly at the padding). The debug page runs layouts with overlap avoidance off unless its two new checkboxes say otherwise, and a spacing slider scales any layout's result. The review after it fixed what the page then showed: a dimmed node now dims its label (the label pass never multiplied element opacity), and the spiral example lays each component on its own spiral.
- Buys layouts that are correct about the things a user sees first — nothing overlaps, nothing is farther apart than it must be, the viewport fits, a pinned node stays pinned — before the portfolio audit decides what else to build.
- A survey of the portfolio found nine defects: flow's animated runs
never fitted, radial and the spiral example had no overlap
avoidance, force ignored node size and every finisher option,
labels counted for three layouts out of nine, and only force and
flow honoured a locked node — every other layout, and
3 Sep — force keeps bodies apart itself; the GPU readback that never was
- The force sim now reads the same padded node boxes the settle separates, on the CPU and the GPU alike: a short-range push measured from the gap between two boxes makes the steady state overlap-free, while a pair already clear is exactly what it was (a ring settles at the same link length; a 30-clique and a 200-clique of padded boxes converge overlap-free with a few px to spare where the point sim left 94 and 1,712 overlaps). A live run streams separated bodies once the transient clears; the settle's exact separation clears residue only. The price is convergence: a run with boxes anneals to the end instead of settling early — the 25k benchmark's GPU live run 15 → 25 s, its CPU settle 44 → 130 s — and whether that is the right default was left open for a day (see 4 Sep).
boundingBoxon force holds the drawing — scaled down, never up, bodies inside, centred — by the same rule flow uses; a pinned node or constraints hold it back. A locked child stays where it is when its compound parent is positioned, shifted or dragged, its subtree with it, and the parent re-derives about the stayers and the movers — v3's rule.- Found by the first spec that needed a converged GPU run: the force runtime's convergence poll mapped its staging buffer ahead of every frame's copy, so the copy was always skipped and every readback was zero — which counted as settled. Every GPU force run with the default threshold had stopped after nine iterations since the integrator landed, with the spectral seed making the result plausible and the settle's separation hiding the pile. Fixed; the spec asserts the frame count; every browser force number measured before it was a nine-iteration figure.
- Buys a force layout whose live run is watchable without overlap, whose box option means what it means elsewhere, and whose GPU executor actually converges.
4 Sep — the sim's overlap term becomes opt-in
- The measurement the open decision asked for was taken: a run with boxes is never done early (its largest per-tick step sits at the step cap almost to the end, so stopping sooner would freeze a bounce), and on a dense random graph — the shape the benchmarks are made of — the term does not clear the overlap at all: the spring pressure beats its bounded push, the fully annealed 25k sim still holds 36,042 overlapping pairs, and the settle's exact separation clears them exactly as it clears the point sim's.
- So the term became opt-in (a flag 7 Sep replaced with the
mechanism's name — see below), worth it on a small or clique-heavy
graph whose live run would otherwise show piles; the settle's
separation stays on by default. The render bench can price both
(
--layout-sim-boxes), and its live-layout figures from before 3 Sep are marked as the nine-iteration runs they were. - Driving the debug page (scripted, on the real GPU — the extension for a hand-driven session was not connected) confirmed the locked child and the pile, and found that the settle's separation gives out on the 25k scene: it hands back more overlap than the sim gave it (12,352 overlapping pairs in, 13,406 deeper ones out), where at 5k it clears 159 to two. Logged as the next open decision with its first measurement; a force result at that scale is not overlap-free today.
- Buys a force layout that converges as fast as it did before the term existed, a decision made on a measurement rather than a hope, and a defect at scale that is now written down instead of drawn.
7 Sep — the force rounds: the settle at scale, projection, the infinite run, the page
- The settle's overlap separation reaches 25k. The per-stage measurement said why it had been handing back a deeper field than it was given: on a field where nine nodes in ten sit inside a neighbour's padded box, the sweeps push pairs the full box depth into the next node and forty stress rounds add pairs without ever moving the bounding box — a stress round is a local step, and a uniformly dense field's neighbours ask for nothing net. A component of a thousand nodes or more with most of them touching is now expanded about its centroid by what its median overlapping pair asks for before the local passes run (piles stay with the stress rounds, which open them tighter), and a guard restores the shallowest state any stage reached. 5k, 10k and 25k random scenes come out with no overlapping bodies, in under 3 s at 25k against 7 s, grown 1.4–1.8× — what the boxes need. The quality suite gained the crammed 3k row it never had.
- In-sim overlap is a projection, not a force: the settle's own
separation sweep runs after every tick (twice — the second takes
the first's residue), on the CPU and the GPU alike, and cannot be
out-pushed by the springs or bounce.
avoidOverlapon force now says which mechanism —true/'settle'(the default, cheapest for a one-shot run),'sim'(the sweep; a streamed run holds its piles open as it streams and ends clear with no settle pass),'both'— and the 4 Sep flag is gone with the contact force. A sweep is a local pass: the 25k scene under'sim'alone ends its cap with 2,565 overlapping pairs, where'both'ends clear, and the docs say which graphs want it. - The infinite run:
infinite: trueis the live force-directed layout that never ends, done so that it costs nothing at rest — the sim ticks only while its field moves (the renderer's clock stops with it), a drag pins the grabbed node and heats the field around it, a moved node or an added / removed element does the same,stop()lands the positions as they stand, andlayout.reheat()is the handle for a change the run cannot see. On both executors; the browser spec drags a node on the GPU run. A boxed run at alpha's floor sweeps for at most 200 more ticks, because a field denser than its boxes allow never quiets and an infinite run on one drew frames for a whole minute on the page. - The debug page's layout section has an Infinite box with Stop and
Reheat, and a select for the overlap mechanism (pinned to
simunder Infinite). Driven on the real GPU: every mechanism ends clear at the padding on 300 nodes, the infinite run rests with the frame counter still, wakes for a pointer drag with the node under the pointer, and Stop lands it; on the 25k scene the settle mechanism is item 57 fixed where it was found. The maintainer sat in front of it the next day — see 8 Sep. - Buys an overlap-free force result at every scale the benchmarks reach, a live run whose piles stay open as it streams, the interactive force layout people build with d3 — at no cost while nothing moves — and a page a maintainer can judge all three on.
8 Sep — the GPU force executor's iteration cost
- The maintainer's first sitting in front of the force page: quality good with avoid overlap on and off, the sweep slow as expected, and force on em-web at two seconds where it had been "near instant". Measured: the instant run was 116.1's nine-iteration defect (90 ms, a field four times too wide), and the two seconds were the converged run at three iterations per rendered frame — vsync-paced — plus the page's tween. The CPU sim on the same graph, every commit since before round 114: 0.4 s, unchanged.
- Two costs, both found by measuring. The GPU run was bound at 3.2 ms an iteration on 569 nodes, scaling with the grid's cells, not the nodes: the counting sort's cell scan was one thread walking every cell through a dependent chain (19 ms an iteration at the 65k-cell cap). It is now a 256-thread workgroup scan, and the separation sweep rebuilds the grid through the same kernel. And a run nobody watches mid-run — silent, or tweened to the settle — now batches up to 64 iterations per frame by the renderer's own frames-in-flight backpressure, while the live stream keeps its watchable rate. Two other signals were tried and dropped on measurement.
- em-web silent 1.5 s → 0.3 s; the 25k scene 11.8 s → 3.3 s, and under the per-tick sweep 50 s → 18 s. The batch rule and the silent-versus-live frame count are pinned, each red with the rule stubbed; the parallel scan is gated by the executor-invariant specs that already read the grid. Round 112's record, filed as a plan while the flow layout had shipped, is re-filed as landed.
- The maintainer's eye, measured: the nine-iteration field had
looked fine, and on seven fixtures the edge-length spread, a
sampled stress and the overlap count plateau by 100 iterations —
the spectral seed places the graph, and the 0.1 px settle spent
two hundred more ticks moving nothing any metric sees. The
default
thresholdis now 2% of the mean ideal edge length for a run nobody watches (1 px reproduces the 0.1 px metrics within 2% on every fixture at 2–3× the speed); a presented run keeps 0.1 px because a stream's stop is visible motion. The separation sweep got its own quiet test, and the GPU settle credits a quiet batch with every iteration it covers instead of waiting three polls. em-web silent on the page 0.27 → 0.15–0.24 s; what remains is frames of latency, not iterations.
8 Sep — the smallest components take shapes, and the page's EM combo
- The maintainer, on the packing: components of one to four nodes
should take canonical shapes, which also orders the rows by size
and keeps centre labels apart. At the settle a pair now stands as
a vertical barbell, three make a point-up triangle, four a diamond
(
tidyComponents, default true), sized to the edge length and the bodies' clearance, walked round the perimeter from a path's end or a star's hub. Every component of a size is the same box, so the largest-first re-pack makes rows of quads, triples, pairs and singletons — the EnrichmentMap preset's shape. A locked node's component and one with mixed per-edge lengths keep the sim's. - The EM preset, measured: shelf rows by size, largest first, split by the sign of NES with the positives to the right. The debug page's dropdown gained that as a combo: force once per sign, each side's components packed as force packs, the positive side shifted right of the negative, fitted. Driven on em-web and em-desktop.
- The maintainer, on the packing: components of one to four nodes
should take canonical shapes, which also orders the rows by size
and keeps centre labels apart. At the settle a pair now stands as
a vertical barbell, three make a point-up triangle, four a diamond
(
9 Sep — the re-pack takes a grouping and an order, and the larger components turn
- The five follow-ups 120 left, and the maintainer's note that EM
also sorts by score. Force's settle re-pack now takes
componentGroup(a key per component, the groups in a row by key) andcomponentOrder(a comparator ahead of largest-first), each a function of the component's description — its nodes, its size, its packed box — so the EnrichmentMap shape is one call: the preset's singleton rows read NES descending on each side, measured. Components of five nodes and up turn to a canonical angle (the principal axis flat, or a ring's farthest node up). The page's EM entry is that one run, with a mixed component between the sides. - The non-presenting GPU batch is priced by the device's time on the last completed batch before it doubles: the 25k scene's batch rides 3–16, no run frame over 50 ms; the one long frame in the recording was the run's synchronous start, which the spectral seed's BFS owned — typed now, bit-identical, 200 → 70 ms at 25k, the library's run() call there 95–120 ms.
- The five follow-ups 120 left, and the maintainer's note that EM
also sorts by score. Force's settle re-pack now takes
9 Sep — the layout portfolio audit closes item 49
- The demand, read from the flagship apps' repositories at pinned
commits: Cytoscape Web carries three layout engines (G6's dagre,
gForce and radial; v3's grid, circle, cose and concentric plus a
third-party left-to-right layered layout; Cosmos for GPU force)
and falls back to
gridat 1,000 elements; EnrichmentMap runs fcose, a vendored component packer and a sortedgridfor its singletons. Against that, one flagship per use case is named —force,flow,radial,circle/concentric,grid,preset— and every use case the apps ship has one. The one gap is component packing on the discrete layouts (logged, the next layout round); a tidy tree, a crossing-minimised circle and any second force layout are declined until an app asks, and scale is not a use case (forceruns em-web in 0.3 s and 25k × 50k in 3 s). The migration guide now maps each v3 layout extension to its built-in.
- The demand, read from the flagship apps' repositories at pinned
commits: Cytoscape Web carries three layout engines (G6's dagre,
gForce and radial; v3's grid, circle, cose and concentric plus a
third-party left-to-right layered layout; Cosmos for GPU force)
and falls back to
9 Sep — component packing on the discrete layouts, the pack layout, and breadthfirst's trees as blocks
- Item 58, the same day, on four calls the maintainer made at
planning.
packComponents: trueon circle, concentric, grid, breadthfirst and radial lays each component out on its own and shelf-packs the drawings under force's four spellings — one ring, one grid, one tree per component; grid's singletons become EnrichmentMap's rows.cy.layout({ name: 'pack' })re-packs the components where they stand, grouped and ordered. Breadthfirst now draws its trees as blocks by default: ranks ordered tree-first, each tree a column band with its root over its own subtree, the singletons a block of rows, the bands wrapped into shelves — em-web's 144 components read as the big tree, shelves of the smaller trees, rows of pairs and rows of singletons, where the first version was one row 144 bands wide. One component is v3's picture exactly.
- Item 58, the same day, on four calls the maintainer made at
planning.
10 Sep — taxi tracks: which edge goes to which node
- Item 59, planned and landed the same day on four calls the
maintainer made. Flow's one open legibility problem was that
every taxi edge out of a rank turned at the same distance, so
different sources' runs lay on one line — the reference picture
(Abrate's tangled-tree genealogy, GeneaQuilts with curved links)
gives each family its own trunk.
taxi-turn: autonow takes an edge's turn from a track the store assigns from live positions (style-side: edges keep routing themselves after a drag, under every layout),taxi-trackgroups by source (the default — ELK's hyperedge), target or family, and conflicting bundles take distinct lines in the gap, ordered by ELK's pairwise crossing rule because it beat the staircase on all four fixtures. The new run-overlap column reads 0 / 1 / 0 / 0 on deps, workflow-1k, reactome and the Greek gods where the 50 % turn read 43 / 1141 / 37 / 10. - The line casing draws per edge in v3's order now, so a later
edge's casing gaps an earlier edge's line at a crossing (the
parity scene 72 → 10 px), and flow merges the long edges into a
target into one chain anchored at the target — a corridor probe
over 400 seeded DAGs went from 187 violations to 7 — and grows a
rank gap for the tracks it holds (
edgeSep). - Two things the code corrected in the plan: the turn is delivered through the params header's unused lane, because a new column had no binding left in the curved vertex stage; and 31 Aug's "3 crossings under taxi" was 37 collinear overlaps, which a crossing counter cannot see — the taxi contract's number is comparable only once the lines are apart.
- The sweep's cost, measured after the plan's estimate ("well under a millisecond at 7k edges") met an 8.7k-edge layered DAG at 1.1 s: the crossing rule's per-pair cycle search became a bitset closure per conflict component, capped at 128 bundles (past which that component keeps the staircase), the obstacle scan an index, the keys numbers — 8 ms on workflow-1k, 160 ms on the pathological one; the sweep stays whole, not incremental, until a real graph asks.
- Buys the picture: the Greek-gods scene on the debug page is the reference figure — one trunk per parent pair, the families in dark2, the crossings gapped.
- Item 59, planned and landed the same day on four calls the
maintainer made. Flow's one open legibility problem was that
every taxi edge out of a rank turned at the same distance, so
different sources' runs lay on one line — the reference picture
(Abrate's tangled-tree genealogy, GeneaQuilts with curved links)
gives each family its own trunk.
15 Sep — the layout quality audit, carried out and awaiting its sittings
- The maintainer's first sitting found every layout it opened wrong the way overlap is not: too airy, labels not held apart, a leaf stranded, a packer wasting rows. The debug page became the instrument first — a live spacing slider, an airiness readout, a baseline script — so every finding is a number before it is a picture.
- Fixed on the record: label boxes measured with a canvas before the first frame, so an app's load-time layout keeps labels apart (buys the EnrichmentMap load); force's pair / triangle / diamond survive separation; flow's one-sided labels no longer count twice and a rightward flow is separated on the right axes (the Greek gods with labels: half the area); flow's free singletons sit by their parents; breadthfirst no longer scales with the zoom it ran at; the shelf packer stacks short components under tall ones (em-web packs 25 % tighter); preset refuses a half position; random is seedable; circle and radial can size by their nodes.
- Not changed: every default the pictures argue against, measured and recommended for the sittings — flow's gaps, breadthfirst's box-fill, condense by default.
- The first sitting pass: radial centres a hierarchy's true root (buys reactome reading outward from Immune System); preset and random signed off; the rest deferred to the page. Raised for the whole layout surface: one consistent option spelling for spacing and compacting, the bounding box as hint or constraint, and AVSDF reconsidered.
15 Sep — every string vocabulary spelled once
- Column ids, style property names and the reserved data keys had
one typed declaration each and were still written as literals at
~1,500 sites. Now
COL.NODE_POSITION,PROP.BACKGROUND_COLORandDATA_SOURCEare the spelling undersrc/, a scanning spec rejects the literal, and the tables are pinned to the engine (COL≡ the column specs,PROPin the engine's own normalized form). The specs undertest/keep the literals on purpose, as the pin on what each constant resolves to. - Buys a rename that touches one line, a "who reads this column" search that needs no spelling, and a property table the docs and tools can read instead of regex-mining the engine.
- The price was 0.7% of the minified bundle and 1.4% gzipped, because the minifier mangles a table's name but not its member names; since 29 Sep the build writes the literals back and the tables no longer ship, so the source keeps the constants at no cost.
- The finding: two source-scanning tools failed on the second full
run — the feature inventory had regex-mined the read registries'
literals and found an empty surface; two
file:lineallowlist entries in the throw gate had moved. A mechanical edit is a free control on every tool that reads the tree as text (round 57.2's lesson, again), and the round's own replacement tool had the same class of bug: not regex-aware, it read one['"]on one line of the style engine as an unterminated string and skipped 8,300 lines silently. That line is now a control in the gate.
- Column ids, style property names and the reserved data keys had
one typed declaration each and were still written as literals at
~1,500 sites. Now
17 Sep — the group names too
- The maintainer's one-line call on the one vocabulary round 127
had left alone:
'nodes'/'edges'areGROUP_NODES/GROUP_EDGESat 718 sites,GroupNamederives from them, and the publicgroupfield's declaration names the pair once. - The walker learned template expressions on the way: three
literals sat inside
${…}in error messages, which a walker that treats a template as opaque text skips along with the text. The gate reads the code inside the braces now and has a control for it.
- The maintainer's one-line call on the one vocabulary round 127
had left alone:
18 Sep — the algorithm tier's follow-ups, measured and closed
- Unweighted closeness walks a BFS per source on both executors: 18–47× faster on the CPU at the bench sizes, and the GPU walk, lifted out of the betweenness kernels into a shared plan, takes over from a thousand nodes (3.4× at 4,096); weighted runs keep Floyd–Warshall.
- The heat family takes
laplacian: 'normalized'— the bounded-spectrum form a hub-heavy network wants, at the price of heat conservation, asserted deliberately. - Affinity propagation's availability update is coalesced (−42%
per run). pageRank and Katz run a sparse CSR kernel on the GPU
(2–19× cheaper when asked for), but
'auto'keeps both on the CPU, because the whole CPU run is under one GPU readback — the 3.5 ms floor this box pays per call, measured phase by phase. - Every
'auto'constant the sweep touches is a measured number now, and two of them were wrong in opposite directions: the triangle family's density gate is a constant mean degree of 64, not a share of n² (right at n=1024 only), and the round-70 iterated-product families had no crossover at all — the GPU wins from 256 nodes at any density, 2–10× on the sparsest fixture — so their gates are gone. The executor sweep publishes medians of three like every other profile. - Three lessons written where they bit: a WGSL pipeline that fails
to compile runs as a silent no-op, so a timing row must check its
result (
precisionis a reserved word); a uniform skew is invisible under max-normalization, so a control must be non-uniform; and the six-node affinity fixture could not see its own availability update, so a seeded cloud joined the suite.
18 Sep — a fourth executor: the worker pool
- The per-source-parallel algorithms — both betweenness forms,
unweighted closeness, the heat kernel and RWR proximity — run on a
pool of plain workers under
executor: 'workers', and'auto'takes the pool wherever the GPU does not run. The gate the ledger set (3× at eight workers after start-up) cleared by four times: weighted betweenness at 2,048 nodes 12× the sequential reference warm, 7× cold, on the 8-core benchmark machine; the published sweep reads 2.4–18× across eighteen cells. - Nothing to configure: the worker entry ships as source text inside
every bundle (Node
worker_threads, browserWorkers), so the bundles stay single-file. SharedArrayBuffer was priced at a tenth of a millisecond per run and declined — it would have demanded cross-origin isolation of every embedder. - Determinism is a ladder, and the ledger's bit-identity claim was
corrected on the record: the pool is bit-stable across runs and
pool sizes, bit-identical to the CPU for closeness, heat and RWR,
and f64-tight but not bit-equal for betweenness. A caller that
compares betweenness bit-for-bit says
executor: 'cpu'. - One family inverts the GPU's precedence: the sparse closeness BFS measured the pool ahead of the adapter at every size, so it is tried first; unweighted betweenness hands over to the GPU at 1,024 nodes where a pool exists. Heat and RWR keep the GPU first.
- Three Node lessons a spec found: a worker must be
unref()ed after its listeners (a listener refs it again), an unref'ed worker does not keep the loop alive for a pending reply (the pool refs for the span of each request), and an eval-mode worker inherits--input-type, so the parent port is reached throughprocess.getBuiltinModulerather thanrequire. - Left for later: the CPU reference itself is 2.5× behind its own worker body on one thread — the cheapest algorithm win still in the tree (item 65).
- The per-source-parallel algorithms — both betweenness forms,
unweighted closeness, the heat kernel and RWR proximity — run on a
pool of plain workers under
18 Sep — the copy census: every copy priced, one removed
- Asked whether copying could be removed generally, the round measured instead of assuming, and found v4 already at the zero-copy floor on every path but one — with the floor set by WebGPU, not by v4. Wire decode copies nothing (every numeric column is a view); the load-time column copy is 0.4% of a 370 ms init; the per-frame upload of a whole moving graph is 12 µs; the worker host's batch is 18 µs; the first frame's 95 MB upload runs at the speed of a memcpy. Each declined pass is written in the design decisions with its number.
- The one path above the line was the image export's readback: a JavaScript loop over every pixel, 81 ms of a 4k figure and 332 at 8k. It is a compute pass now — the device un-premultiplies and packs, the readback maps final bytes — 12 and 52 ms, both hosts, goldens unchanged, pinned by a spec the older export specs could not have failed (a half-opaque body over transparency).
- The SharedArrayBuffer tier for the worker host is designed in full and not built: epoch-double-buffered columns behind a byte-less notice, a declared growth ceiling, a loud refusal without cross-origin isolation. Its trigger is unchanged and unmet — the census reads a fiftieth of it.
- What the census found instead of copies: registering 465k generated edge ids is a third of a bulk load (item 66), and a whole-sheet restyle re-derives every column (item 67, made a diff on 28 Sep).
18 Sep — three ledger items measured (two built on 29 Sep)
- The scale ceiling had a number: 4,194,304 edges rendered and 4,194,305 were blank, on any card — the edge gradient column at the next power-of-two capacity crossed the device's default storage-binding limit, which the renderer never asked to raise although the adapter offers thirty-two times more. Labels capped two million glyphs the same way. Nothing else failed first at 5M edges: ingest, style, the curve blob, cull and pick all held.
- An allocation failure was silent: a bad buffer on a mirror
growth yielded twenty-six validation errors in thirty frames and
a blank picture — no device loss, no exception, no event, and
png()returned an empty image. The VRAM price is 196 B per node, 164 per edge, 68 per glyph (a labelled node ~544 B), exact across three sizes; real exhaustion could not be provoked on this driver, which spills to system RAM. Recommended: one round for both — error scopes and a limits pre-flight before any degradation order. - The worker host's deferrals, priced: its boundary traffic is trivial (a position column per frame at 13–52 µs), but the force layout under it runs on the CPU and freezes the page for 12.8 s where the GPU integrator takes 1.7 — the worst deferral, first to build. Images were priced at 6.5 ms of main-thread decode each — re-measured on 29 Sep as the stylesheet's data write, not the decode; worker-side decode still saves a 124–142 ms stall per 1,000 new images. A font loaded in a worker from a URL seemed never to apply to its canvas while the same bytes from a buffer applied — on 29 Sep that turned out to be measuring order (Chromium keeps a font it resolved before the face arrived); bytes stayed the design. Found beside them: a per-node layout tween on the same-thread host drew six frames in 1.5 s (item 68).
18 Sep — cancellation: the execution model gets an off switch
- Every async algorithm returns its promise with
cancel()on it. A pending run rejects withcytoscape.CancelledErrorat once and answerstrue; a settled one answersfalse— a'cpu'run always does, because the reference completes inside the call and the handle says so rather than pretending. What a cancel reclaims is per executor: a GPU run's submitted work runs out and is discarded undecoded; a workers run stops posting ranges, drops the partials in flight and leaves the pool standing. - Layouts have
cancel()besidestop().stop()keeps what stands;cancel()puts the nodes back where the run found them, drops a tween where it is, leaves the viewport alone, still fireslayoutstop(withcancelled: true) so UI that re-enables on it keeps working, and rejectspromise()— marked handled for a caller who never awaits it. A custom impl may implementcancel(); one without is asked tostop(). cy.destroy()is the last cancel: every run still open closes before the renderer goes, so anawaitoutstanding across a destroy rejects instead of hanging and nothing writes into a dead renderer.- Decided as a handle, not an
AbortSignaloption (the maintainer's call): it is what a caller already holds, and it composes with destroy. Two things the specs found on the way: round 74 had quietly made every CPU run yield once before running (restored), and a reachability soak's loop body pins its last instance whatever the library does.
- Every async algorithm returns its promise with
18 Sep — the main thread kept free: one worker where the pool cannot help, the force integrator across the worker host, the CPU simulation on a worker
- The ten whole-graph algorithms the pool cannot partition —
pageRank, Katz, Floyd–Warshall, triangles, neighborhood
similarity, the motif census, SimRank, effective resistance, MCL,
affinity propagation — run their reference on one pool worker
under
'auto'from a per-family size, and under an explicit'workers'(which rejected on them before). The reference is the worker's kernel: each moved intoalgo-kernels.mtsas a self-contained function the pool carries as source text and the in-thread path calls, so the two answer identical bits — asserted with===, per family. The pool spawns lazily now (one worker for an offload, the full size for a partitioned run). A new bench tier measures what the lane buys as the wall time the calling thread could not tick: a 180 ms Floyd–Warshall holds the thread for 180 ms in-thread and 0 on the worker; the crossovers were stamped where a run first reaches a quarter frame. What the lane frees is the kernel's share — on a sparse graph a cheap family's call is mostly its in-thread builder (item 69). - The worker-hosted renderer runs the force integrator in its
worker:
startForcecrosses the boundary as one message, the run's state and readback come back as messages, stop / cancel / destroy propagate. The worker host's force run on the 465k-edge graph: 12.8 s with the page frozen → 1.4 s with it ticking (the same-thread host reads 1.75 s). - The force layout's CPU simulation runs on a worker that loaded the
same bundle (the render worker's mechanism), behind
executor: 'auto' | 'cpu' | 'gpu' | 'workers'.'auto'takes the GPU integrator where the renderer offers one, else the worker wherever one can be constructed — so a compound graph, a constrained run or a page without an adapter no longer holds the page, and a headless Node process keeps its event loop free (the maintainer's addendum of 21 Sep; the round had kept headless in-thread) — else in-thread;'cpu'is the synchronous spelling. The worker's trajectory is bit-identical to the in-thread simulation's, on the plain, the compound and the constrained fixtures. - Two facts the suites found: a Node worker thread inherits tsx's
loader but not its
.mjs→.mtsaliasing (the test setup registers tsx inside the worker; the library names no loader), and headless Chromium issues no animation frames while nothing draws, so main-thread availability is measured by a timer where a run draws nothing.
- The ten whole-graph algorithms the pool cannot partition —
pageRank, Katz, Floyd–Warshall, triangles, neighborhood
similarity, the motif census, SimRank, effective resistance, MCL,
affinity propagation — run their reference on one pool worker
under
28 Sep — the small things an app reaches for
- A container resize is handled: the canvas follows its container and
resizefires once per change, with nocy.resize()call (v3 needed one); an existing call is harmless. - Web fonts: only a font the labels actually name re-lays the labels when it loads — an icon font elsewhere on the page costs nothing — and a label font that finishes loading while the page is idle, or that was loaded before it was registered, still reaches the labels. One order is left to the next redraw on a page fully at rest (a face added after it loaded), documented rather than polled.
- Collections are iterable (
for..of, spread,Array.from), andcy.add()takes any iterable of definitions — a generator feeds it directly; a binary payload is never mistaken for one. cy.nodeAt( x, y )(aliascy.pickNode): the node under a point, answered synchronously — the pick the drag gesture already used.cy.pick()stays the async whole answer, edges included. Headless it computes from the viewport rather than answering null.- The wheel: a canvas that will not zoom lets the page scroll, as in
v3 (v4 had been swallowing every wheel), and
wheelBehaviorpicks what a wheel does — zoom (default), pan (with a newscrollpanevent) or'modifier-zoom', the embedded-map idiom where the page scrolls and ctrl/meta or a trackpad pinch zooms. cy.viewportCounts(): how many nodes and edges the renderer drew in a frame, after culling, visibility and level of detail — a GPU readback, so async, and null headless.- Buys the everyday requests (#2401, #3408, #1209, #1905/#3287, #2283) answered in the library, each proven by a test that fails when the feature is broken.
- A container resize is handled: the canvas follows its container and
28 Sep — the data formats get official schemas
- JSON Schema documents for what v4 takes as JSON — element
definitions, the stylesheet, layout options, the factory's options
— ship in the package as
cytoscape/schemas/*.json, for editors, CI steps and stored-document checks (issue #3487). - The stylesheet schema is the one worth having: per group, every one of the ~120 properties the compiler accepts, which take mappers, and the keyword sets — possible at all because v4's sheet has no functions. A v3 sheet fails it at its first selector block, so a store of saved sheets can be triaged without loading any.
- Hand-written and gated both ways: every property the schema names compiles, every property the engine knows is in the schema, every option name matches the declaration, and the debug harness's networks, sheets and layout runs validate — 157 documents. A pass means well-formed, not loadable; colours and data keys stay the library's to judge, and the schemas say so.
- The fixtures found the declaration short: conditions compare
booleans (
eq: true), which the runtime always did.
- JSON Schema documents for what v4 takes as JSON — element
definitions, the stylesheet, layout options, the factory's options
— ship in the package as
28 Sep — a stylesheet edit costs what it changes
cy.style( sheet )re-writes only the properties whose declaration changed, per group, instead of every channel of every element: one node colour changed on the 465k-edge fixture went from 250 ms and 60 MB of dirty columns to 1.5 ms and 0.08 MB; an unchanged sheet costs 0.06 ms. In the browser, sixty such edits went from 12 s and 1.8 GB of upload to the frame rate and 2.4 MB.- Nothing a user can see changed: bypasses are still cleared by a replace, an animated value is still reset by one, transitions still fire, and every clause is pinned against the full pass, column for column. A property without a narrow writer (sizes, labels) still re-applies its whole group.
- Buys Cytoscape Web's style editor — which re-sends its whole sheet per edit — an edit inside a frame.
28 Sep — data refreshes reconcile in place
cy.patch( payload ): the next query result — definitions, columnar or the binary wire form — reconciled by id in one batch: what is new is added, what is gone removed (or kept, with{ mode: 'merge' }), survivors' data replaced, a rewired edge re-added; the call returns what it added, removed and updated, and onepatchevent carries the same.- Survivors keep selection, scratch, listeners, animations and every position the payload does not carry; the viewport and stylesheet are never touched. A payload equal to the state costs one scan (~20 ms at 100k) and fires nothing.
- Buys the server-driven apps (GeneMANIA re-query, Cytoscape Web backend sync) a refresh without a reload, and the framework wrappers their prop-diffing: at 90% overlap 1.7–2.4× cheaper than destroy-and-recreate, where the diff an app writes over the public API was slower than recreate at every overlap. Below ~70% overlap a reload is still cheaper, and the docs say so.
- The same loop keeps a second instance in step with a first
(
follower.patch( master.serialize() ), ~47 ms a burst at 100k) — whatcy.clone()'sfollowruns on (below).
28 Sep — a second view is a second instance
cy.clone( { container, style, follow } ): a copy of the graph in its own instance — elements, data, positions, hierarchy, selection and lock/grab/pan flags, the sheet with its bypasses, the viewport and the interaction settings, any of it overridable (the minimap's own sheet). Each clone has one core, one viewport and one renderer, so no "whose viewport?" question enters the API. ~230 ms to clone at 100k elements, and ~50 MB of duplicated model per 100k (113 MB at the 465k-edge fixture's shape, measured).followkeeps it current: a second reader of the dirty stream — new consumer cursors, which cost the renderer's drain nothing measurable — wakes a throttledpatch()only for a change the payload carries (add, remove, move, data, reparent): ~8 ms a sync at 10k elements, ~50 ms at 100k, and never more than half the main thread. A clone owns its selection, hover, sheet and viewport; linked brushing is app wiring.- Buys the navigator/minimap port and the devtools panel their
primitives:
debug/'s minimap is a following clone with a dots-and-hairlines sheet, an extent rectangle and tap-to-centre, and the panel's store tap is a registered consumer. The evaluated alternative — N renderers over one store — is kept as the fallback design: it needed six drain-once channels, three singleton leases and the hover flags made view-aware.
28 Sep — a first frame before the last byte
cy.load( asyncIterable ): the graph arrives chunk by chunk — a streamed response, a server's pages — in any input form, and the renderer draws between chunks. Every element drawn is correct; completeness arrives.cy.readynow means the first chunk drawn; the returned promise is completion, withcancel(); the viewport fits once to the first chunk and then holds; a layout waits for the load.- Measured first: chunking with the existing API cost 3× a one-shot load, nearly all of it the edges between chunks, which could only travel as slow per-element definitions. So the columnar and binary forms gained node references — a chunk names nodes an earlier chunk loaded, each id resolved once — the wire format's first new section under its experimental rule. A 10-chunk load now costs 1.2–1.3× a one-shot one.
- On the 465k-edge fixture and a real GPU: with the payload in hand the first frame is 1.8–2.4× sooner and the whole graph ~23% later; over a 100 Mbit/s link the first frame is 4.8–18× sooner and the whole graph 38% sooner, since ingest overlaps the transfer; at 20 Mbit/s the first frame arrives in under half a second against six. The final frame is pixel-identical to the one-shot load's.
28 Sep — builds for the use case
cytoscape/headless: the whole model, style engine, CPU algorithms, every layout and the worker pool, with no renderer and no WebGPU code — 513 KiB minified against 872 KiB — for CI, Node services and edge isolates (a Cloudflare Worker has no GPU, noWorkerand a script-size ceiling; the build is gated under 1,000,000 bytes and run in a WinterTC-shaped isolate every run and onworkerdin CI).cytoscape/headless-gpu: the WGSL algorithm kernels and a compute-only host for an explicit'gpu'force run, with no DOM — green on Deno's native WebGPU (wgpu, not Dawn: the first non-Dawn run of the kernels; pageRank within 2e-8 of the CPU, a 200-node force run settled in ~0.35 s on an RX 580). The run found a Deno panic on zero-byte buffer writes, which the library no longer issues.- Asked for what they lack, the slim builds say which build to import
instead — a container,
mount(), an explicit'gpu'— never a silent fallback. The pre-releasecytoscape/gpualias is gone. - Buys an edge deployment at 60% of the full download, and a GPU compute server with no browser in it. Each build carries exactly its tier, walked by a spec, so a leak fails the build rather than the size.
5 Oct — arrow shapes keep their proportions and track the edge
- The duplicate triangle-cross spelling is gone without an alias. Tee bars stay visible on thin edges and reach at least the edge width on thick ones; hollow compound ends show each component open, while mid heads stay filled.
- Buys one clear compound vocabulary and hollow heads that retain their intended shape. The 25k-node / 50k-edge renderer scene measured a repeatable 5–7% GPU-pass cost in fit and zoomed views, below the 10% mover threshold.
29 Sep — edge overlays end, turn and reach as v3's
- Every overlay/underlay stroke ends in a round cap, as v3's (they were cut square).
- A translucent overlay on a segments or taxi edge blends once at a corner, with a round join, as v3's single stroked path does — it used to darken each fold and spike at sharp corners. Separate edges still blend over each other.
- The overlay reaches over a hollow arrowhead exactly as far as v3's (its path end plus its cap — measured, so no arrow-shaped pass); the underlay stops flat where v3's head erase cuts it.
- The band stays
width + 2 × paddingwide, a documented deviation with a recipe for matching a v3 sheet. - Buys the look the maintainer saw was wrong, fixed before the WebGL path has to copy it; a translucent line on a sharp route still folds, logged for its own call.
29 Sep — the hover highlight is one call
cy.emphasize( eles )emphasizes exactly those elements and dims the rest;cy.unemphasize()ends it. A hover handler is one line per event.- The emphasized set is a state the sheet styles (
{ when: { emphasized: true } }) and a query finds; the rest is dimmed by the renderer as one composite at the coredim-opacity, with the set drawn above it — an emphasized edge is never hidden under a dimmed node. Exports draw it; a clone does not share it. - Buys the gesture every flagship app implements at any graph size: 0.015 ms per hover change at a typical node and 0.42 ms at a 733-degree hub on the 465k-edge fixture, against 2.9 s for the per-element opacity spelling and 1.1 s for a dim that is a style state — the measurement that decided the design.
29 Sep — dense labels declutter
label-declutter: 'cull'(a core prop, off by default) hides each node label that would overlap a higher-ranked one — hidden, never half-faded;label-priority(any number, mapped from data) is the rank, and the hovered set ranks above all.- The priority also orders the zoom fade: zooming out takes the lowest-ranked labels away first. A graph with no priority draws exactly as before.
- The decision is stable: a pan re-decides nothing, and a zoom does not strobe winners (142 labels flipping back over a 60-frame zoom on the 19,607-label fixture, from 36,703 without the hysteresis). Exports declutter their own view.
- Buys labels on at scale — the reason apps hide them wholesale: the 465k-edge fixture's labels at fit, 99.4% overlapping, become 1,545 that do not, for 1.6–2.0 ms a frame. Edge labels are not decluttered yet.
5 Oct — cluster parents gain convex and organic outlines
- Applications can style compound parents as convex, rounded-convex or connected concave hulls around actual child bodies, and include labels when they want names inside the cluster region.
- The same contour drives ordinary parent drawing, picking and edge attachment; empty and degenerate groups retain usable geometry.
- Buys EnrichmentMap-style cluster regions without a separate overlay or membership model. The sparse 500-cluster drag control is 44.5 ms median, so concavity has a measured cost as well as a tighter outline.
29 Sep — GeneMANIA-width bundles, measured and fixed
- The two GeneMANIA queries the design sitting chose are fetched from
genemania.org by
node debug/genemania.mjsand drawn in the debug page with the web app's own style — per-network-type colour as one mapper over a string column. First kept out of the repo because GeneMANIA publishes no licence for its data; committed and hosted from 5 Oct with the GeneMANIA authors' approval. - Bundle width costs nothing measurable, 2 to 32 edges per pair at 32,768 edges — load, routing, frame and pick all flat (v3's load grows 1.6 s → 2.3 s); curved bundles cost ~9× haystack lines on the GPU, so haystack is the recommendation at scale. A 30-wide curved bundle draws as v3's to the pixel, at zoom 1 and close up.
- Fixed: inside a wide bundle a pointer picked a neighbour of the edge under it near the bundle's ends; edges now pick nearest-first, as in v3. Raising one edge's opacity over a data-mapped colour (the GeneMANIA highlight) now draws and reads back.
- That lands the last of the six ecosystem rounds planned on 20 Aug for the flagship apps; CX2 conversion, decided alongside them, stays extension territory, not core.
- The two GeneMANIA queries the design sitting chose are fetched from
genemania.org by
29 Sep — the attribute clusterings leave the calling thread
kMeans,kMedoids,fuzzyCMeansandhierarchicalClusteringwith a named metric run on one pool worker under'workers'(which rejected them before) and under'auto'from a measured size (512–4,096 points), in Node and in the browser, in every build that carries workers;cancel()works as for the other offloaded runs.- The in-thread reference runs the same kernel, so the worker answers its bits — and the reference answers exactly what it answered before, every cluster and membership at 1k and 5k points, while running 3–10× faster (k-medoids at 5,120 points 3.0 s → 0.31 s).
- A custom distance function is called inside the loop, so it keeps
running on the calling thread;
'workers'says so when asked. - Buys a page that clusters thousands of points without freezing, and a faster answer where it does not offload.
29 Sep — every environment gets an answer
- A support matrix in
src/README.md: for each environment, which tier it reaches — the headless core, workers, GPU compute, rendering — how that is known, and what is not promised. CI holds Node, Bun, Deno, Cloudflare's runtime and Chromium and WebKit; Firefox, Electron and Vercel Edge are measured and re-checked at release; the rest are recorded as unsupported with the failure named. - A graph model now runs, under CI, in a browser's dedicated, shared and service workers — on the worker's own thread; a worker pool from inside a worker is an open question.
- React Native's Hermes, QuickJS and GraalJS each run the headless
core given one
TextDecoderpolyfill; Electron renders on Linux only when the app enables Vulkan; on Cloudflare the free plan's 10 ms fits ingest, metrics and export of a few hundred nodes but not a force layout. - Buys a link, not a shrug, for "does it run on X".
- A support matrix in
29 Sep — big graphs reach the GPU's limits, and fail gracefully past them
- Every GPU device asks for its adapter's own limits: on an RX 580 a graph renders to 16,776,960 nodes or edges per group (4× the old ceiling, where every frame went blank without a word), 2 million labelled nodes with their labels (8×).
- Past the limits,
cy.add(),cy.load()andcy.patch()throwGpuUnfitErrorbefore anything is added; mounting a graph that is already too big rejectscy.readywith the same error. - A buffer the device refuses, or one that would not fit, fires a
gpuerrorevent and costs a feature, not the picture — labels first, then charts and images, then gradients; gradient storage is now allocated only when a gradient is used, up to 18% less GPU memory for every other scene. cy.stats().gpuis the renderer's own count of what it allocated; a browser soak over it (CI-gated, its first test a deliberate leak that must show) ran 10,000 churn cycles flat on the RX 580, and found a label cache that grew without end — now bounded.- Buys a large-graph app a known ceiling, an error it can catch, and a picture that degrades instead of vanishing.
29 Sep — transactions an undo stack can hook
batchstartandbatchendfire on the core around every outermost batch —cy.batch(), astartBatch()/endBatch()pair, everycy.patch():batchstartbefore the first change,batchendlast, after the style catches up and after a patch's ownpatchevent. Nested batches fire nothing; a batch that throws still ends inbatchend(there is no rollback).- Buys an editor app its undo in four lines — snapshot with
cy.serialize()atbatchstart, restore withcy.patch()— priced at 100k elements: 27 ms and 3 MB per transaction, 18–31 ms to undo, whatever the edit. v4 ships no undo stack itself; that call is open with the numbers.
29 Sep — application data gets types
cytoscape<NodeData, EdgeData>( … )types an instance by the app's data shapes:data()takes only their keys and reads their field types (orundefined, since a read can miss);cy.nodes(),source(),children()read the node shape andedges(),connectedEdges()the edge shape; a mixed collection reads the fields both share. Events,add/patch/load/clonepayloads, queries and mapper fields in the stylesheet are checked against the same shapes, so a misspelt field is a compile error.- Without the generics nothing changes: every type is the untyped one, and they are never inferred from the elements passed in.
- Stops short of the binary and columnar payloads (untyped by
nature), the
'data(name)'label string and the algorithm and layout callbacks, which are deferred. - Buys a TypeScript app its data model checked end to end, at no cost to one that does not use it (type-checking the source: 0.49 → 0.50 s).
29 Sep — the worker host draws images and the app's fonts
- Background images draw under
renderer: { worker: true }, decoded in the worker: a style change bringing in 1,000 new images costs the page 5 ms instead of a 124–142 ms stall. SVG images still raster on the page, which has the<img>they need. renderer.fontslists the faces the stylesheet names (a url or the bytes); the worker loads them itself, since the page's@font-facerules do not reach it. Labels draw at once and switch to the face when it arrives, as on the main thread.- Both match the main-thread renderer pixel for pixel. Verified end to end in Chromium; WebKit's worker mechanics are verified, its worker-side WebGPU is not.
- Also found: a data write to a key a string style maps grows faster than linearly with the number of distinct values (33 ms a write at 4,000 distinct image urls); logged.
- Background images draw under
29 Sep — label boxes dash, as v3's
text-border-style(solid, dashed, dotted, double) on node and edge label boxes, mapper-capable, with v3's dash lengths laid along v3's own stroke path. 0.4% from v3 live at 3× zoom; 7.5% with the style ignored.- The box border now straddles the box edge, as v3 strokes it; it had been drawn inside the box since the label boxes landed, which no comparison had looked at until this one.
- Three smaller label-box differences from v3 are recorded for a decision: v4 draws no border without a background, keeps its own rounded-corner radius, and does not round a label's width up.
mid-*-arrow-widthis accepted and read back and draws nothing, as in v3 for a filled head. Gradients, already shipped as v3's props, cost about 1% of GPU frame time across a 25k-node scene.
29 Sep — animated layouts stay smooth at scale
- A layout with
animate: trueis one animation over its nodes, not one per node: one GPU upload per layout. A one-second grid tween draws 59–62 frames at 2k, 5k, 10k and 20k nodes on both hosts, where the page's own thread drew 29 at 2k and 2 from 5k up; on the 465k-edge fixture, 44 frames where it drew 6. - The worker host evaluates position tweens on the worker's GPU: one message per tween where it posted every node's position every frame.
- Each node stays addressable mid-tween, v3's answers:
animated()is true,position()reads what is drawn,stop(), a new animation,lock()andremove()act on that node alone, andlayoutstopfires when the tween ends. A node mid-tween cannot be dragged (v3 let the drag and the tween fight) — stop it first; one locked mid-tween stays put afterunlock(). The eight built-in layouts gainedlayout.stop(). - Fixed: cancelling an animated layout left the GPU holding the node positions for good; a node moved during another layout's tween was drawn where it had been until it moved again.
- A layout with
29 Sep — what the goldens see, measured
- Every style property a golden sets was reset to its default on its scene and the moved pixels counted: 530 pairs in 2.2 minutes, 520 moving pixels. 131 of 216 properties have a golden pixel on them; the three pairs that move none do so by design, and the result is gated, so a golden that sets a property it does not show fails.
- Fixed: a per-element override of a data-mapped colour reaches the screen (after the first frame it had drawn the mapped colour forever); a label's rotation can change on its own; a custom polygon's corner radius reads back correctly.
- The earlier count had credited five image properties and every labelled scene's label-box colours; it now reads 140 of 216 set.
29 Sep — the gestures replayed, against v3 too
- Ten scripted gesture traces replay in a real browser on every v4 renderer host and on v3, compared as numbers — positions, the selection, pan and zoom, the events in order — against a checked-in record per trace. The WebGL2 renderer is one more host entry.
- Fixed: a second finger taking over a drag now frees it (it had left
the nodes flagged as grabbed, with no
free); a right click ends without a straytapend;dragpanandpinchzoomno longer fire when the settings refused the pan or zoom;tapunselectfires for everything a tap deselects, as v3's does. - Measured against v3 and left open: the order of the release events, which element an edge press starts on, a drag from a locked node (v4 pans, v3 does nothing), and v3's slower first wheel ticks.
- All 30 inventoried gestures now have a browser-level check (26 before), leaving the canvas, the additive tap and the worker host among them.
29 Sep — smaller bundles, the same pixels
- The constant tables no longer ship: the build writes each
COL.…/PROP.…back as its string, and shader constants and float literals are shortened. The full minified build is 10 KB smaller (3.5 KB gzipped); the two slim builds 9 KB (3.2 KB). - A WGSL minifier that renames identifiers was measured on every complete shader and not taken: it needs each shader whole, whole shaders repeat the code the bundle shares once, and the bundle grew 50–61 KB. One candidate could not parse the shaders at all.
- Ready for the WebGL2 renderer: GLSL literals get the same build-time minification under GLSL's rules; the GLSL minifier the plan had named cannot parse what that renderer will need.
cytoscape/headless-gpuis 641 KB against its 600 KB target; the rest of the gap is library code, not shaders.
- The constant tables no longer ship: the build writes each
21 Sep — the Features page says what its numbers mean (round 132)
- The status site's counter read
929 of 929 features— done, or total? It readsShowing all 929 rowsnow, orShowing 303 of 929 rows, and a line under the buttons says what the rows are: 495 API members, 303 style properties, 131 capabilities — one function or one property each for the first two, a whole feature for the third, so the total counts rows, not work. - The status legend is a visible table with the totals per status,
and the filter script tallies those same cells for the selection:
pick
Style (303)and the legend is Style's statuses and counts. The pickers carry counts, the status picker its definitions too, and every status cell has the definition as a tooltip. Download CSV and the feature-direction review are buttons under the lede. - Buys a page a reader can take a number from without asking what it means. Every count is computed from the CSV at build time; the module test and the Playwright spec derive theirs from the same inventory, never a literal.
- The status site's counter read
20 Sep — the large files split (round 130)
- Ten sub-rounds, one file each:
shadersandcurve-geometrybecame re-export facades over a directory;style,collection,graph-store,core,rendererandpointerkept their class as a facade — every signature and doc on the class body — and moved their private groups out as functions over the instance;animationbecame one class per file;forcesplit into flatforce-*siblings. Facades after: 789 / 3,870 / 2,279 / 26 / 2,218 / 832 / 64 / 100 / 263 / 540 lines; every new module under 1,050. - Buys a source tree a reader can hold: no file over 1,050 lines but
the three class facades whose remaining length is documentation,
with the gates (JSDoc coverage, the docs generator, the shipped
declaration,
features.csv, the throw and WGSL audits) proving nothing on the surface moved. - What the split taught the tools, kept in the round file: a body
that reads
argumentscannot delegate; aPromise<void>must be returned or its rejection goes unhandled; a local that shadows a removed method's name would call itself; a spied-on private method keeps instance dispatch; an@internalexport cannot be re-exported by a facade oncestripInternalhas dropped it from the d.ts.
- Ten sub-rounds, one file each:
What changed for users of v3
- Each removal was a decision with a recorded rationale, not an omission.
- Selectors removed — the largest break for existing apps, and what the migration guide leads with.
- z-index dropped.
- Animation queue removed — concurrency by channel, promises for sequencing.
- display/visibility split into a structural tier and a paint-only tier.
cy.layout({ impl })is the whole extension story.- The expensive whole-graph algorithms return promises and take
executor: 'cpu' | 'gpu' | 'workers' | 'auto'— including, since 12 Aug, the whole-collectionclosenessCentralityNormalized; the single-root form stays synchronous. Since 18 Sep the promise carriescancel(), and a cancelled run rejects withcytoscape.CancelledError. - Layouts can be cancelled, not only stopped (18 Sep):
layout.cancel()restores the pre-run positions and rejectspromise();layout.stop()is unchanged, and since 29 Sep the eight built-ins have it too. eles.animate()is one animation over the elements — stopping one element stops it all — except an animated layout's tween, whose nodes stop, lock and leave one by one as v3's per-node tweens did.- Eight algorithm families v3 never had, on the same executor
contract:
triangleCount,neighborhoodSimilarity,katzCentrality,randomWalkWithRestart(+ its all-pairs proximity form),heatDiffusion/heatKernel,effectiveResistance,simRankandmotifCensus. cy.collection()throws if passed an argument;cy.$()andcy.byId()restored as aliases.- Overlapping elements pick in a stated order (27 Aug): leaf node, then
edge, then compound parent — the reverse of v4's structural draw order. v3
ordered the same three by
z-index/z-compound-depth, which v4 does not have, so a deeply nested v3 parent that used to out-rank a shallower edge now loses to it. Hover styling on a parent body likewise stops firing where an edge lies under the cursor, which is v3's behaviour restored. forcewithanimate: falseon a rendered flat graph is async (31 Aug): executor choice is availability-driven — read positions atlayoutstop/promise(). Headless runs are async too under'auto'(21 Sep) wherever a worker can be constructed;executor: 'cpu'is the synchronous spelling.forcecan avoid overlap in the sim, and honoursboundingBox(3–7 Sep):avoidOverlapon force takes the mechanism —true/'settle'(the default) separates after the settle,'sim'runs a separation sweep after every tick so the run is held open as it streams,'both'does both; the sweep is opt-in because the settle's pass is cheaper for a one-shot run. AboundingBoxscales the drawing down (never up) so the bodies fit, then centres it — v3 cose stretched centres to fill the box, up or down, size-blind. A locked child no longer travels with a dragged compound parent.forcehas an infinite mode (7 Sep):infinite: truekeeps the run open at no cost while nothing moves, and reflows around a dragged node, a moved node and an added or removed element; v3 had this only as the cola extension'sinfinite.animate: truetweens onforcetoo (2 Sep) — v3 cose's'end'; the streaming run v3 spelled'during'isanimateLive: true. Every layout avoids overlap by default, exactly per pair (radial,forceandflowincluded;nodeDimensionsIncludeLabels: truekeeps labels apart too — its default stays v3'sfalse), and a locked node holds againstposition(), tweens and every layout, as v3's did.- A
radialbuilt-in layout, force constraints, data-driven layout mappings and per-side compound padding (31 Aug) — fcose's alignment / relative-placement surface and per-edge length control without leaving core; the fn forms stay, the object spellings are canonical. - Component packing on every layout, and a
packlayout (9 Sep):packComponents: trueon circle, concentric, grid, breadthfirst and radial lays each disconnected component out alone and packs the drawings under force'scomponentSpacing/componentGroup/componentOrder;cy.layout({ name: 'pack' })re-packs the components where they stand (layout-utilities'separateComponents, with grouping and order). Breadthfirst draws several trees as blocks by default — tree-first ranks, column bands, shelves, the singletons in rows — where v3 interleaved them across the width. - A
flowbuilt-in layout (1 Sep) — the dagre/elk use case in core: Sugiyama-class layered placement with compound support, rank constraints and data-drivenminLength/edgeWeight; node positions only, designed to pair withcurve-style: taxiso edges keep routing themselves when nodes drag. cy.json( obj )stays export-only, andcy.patch( payload )covers the refresh case (28 Sep): an app that fed the next server response back throughjson()reconciles it by id instead, keeping survivors' state; restoring a saved session is still the app'scy.add().- Streaming a large graph in (28 Sep): v3 apps showed nothing until
the whole payload had arrived and been parsed;
cy.load()takes the chunks as they come, andcy.readyresolves when the first is on screen. - A minimap is a
cy.clone()(28 Sep): v3 apps drew a navigator from exported images or kept a second instance in step by hand; a v4 clone withfollowis a full instance that stays current by itself, with its own sheet and its own selection. - Dense labels can declutter (29 Sep): v3 apps hid labels wholesale
below a zoom or kept the few that mattered by hand; v4's
label-declutter: 'cull'keeps the highest-label-prioritylabel wherever two would overlap, and the priority orders the fade. Off by default, so a ported sheet draws what it drew. - The hover highlight is
cy.emphasize()(29 Sep): v3 apps added a class to everything outside the hovered neighbourhood and removed it on leave — a write per element per hover; v4 emphasizes the set and the renderer dims the rest, andstyle()on a dimmed element reads its own values. - The round-90 API review (24 Aug):
forceRender,batchData,mutableElements,onRender/offRenderand the jQuery-erabind/unbind/listen/unlistenaliases are gone; listener spellings follow Node'sEventEmitter, pluspon;cy.stats()replacescy.renderer().stats().
Open decisions
- Settled on 3 October and landed on 5 October: arrow vocabulary, 255-value charts, shared scales, legend metadata, convex/concave hulls and manual miniature collapse with best-effort locks and optional animation.
- The miniature model keeps original children and edges. Aggregate edges are separately deferred, with persistence (leaning toward regeneration) and developer-specified direction still open. Automatic viewport snapping, hull obstacle avoidance and a public concavity control remain future considerations.
| Membership/enclosure model | Compound containment stays; a node can belong to multiple overlapping groups. Nonzero numeric membership with retained signs/magnitudes is provisional and needs further review; naming, operations, data and topology remain open. |
| Annotation placement/data | Whole-object and membership data, anchoring beyond line ends, shared collection APIs and annotation-aware placement/layout remain to specify. |
| Editing contract detail | Handles, event families/dispatch, label sessions and role permissions are decided; payloads, hit-part enums, per-kind geometry and attachment thresholds remain. Editing controls are built after alpha; body-drag staging needs reconciliation. |
| An edge press's first events | Synchronous CPU targeting versus deferred GPU targeting remains benchmark-gated, including right presses — item 89. |
| Attribute-table column view | Internal filtering improvements first; add a minimal column API only if visible-window scrolling measurements justify it — item 91. |
| Bundling | API/lifecycle/precedence and initial polylines are decided; persistence remains benchmark-gated, and smoothing awaits maintainer visual review. |
| Layout/CJK/export detail | Export option names, SVG modes/defaults and model-pixel metrics callback settled on 12 October. Warning codes, default font estimates, kerning/text fidelity, CJK contracts and headless evidence remain open. SVG is parked while an earlier WebGL2 start is considered; no font-stack change approved. |
| Release acceptance | Concrete platform evidence, repository-owned app scenarios, full WebGL2 parity and release workflow/bake gates remain implementation/acceptance work. |
The contract interview settles app-owned undo, independent color/opacity readbacks with no public folded API, retained numericStyle(), label-border/fractional-width behavior, gesture ordering/cancellation and adaptive wheel zoom. Dedicated nested browser workers are the initial target; Firefox model/rendering CI waits for WebGL2. Layout capability registration and data-driven gradient lists are deferred. These are specification decisions, not claims of implementation. The follow-up register and membership research hold the detailed unanswered questions and provisional review.
Decided at the eleventh design sitting (28 Sep), which put every open
call to the maintainer one by one: arrow-scale keeps its 1/16 step as
a recorded deviation; the edge overlay/underlay band keeps v4's
width + 2 × padding; mid arrows are filled only, and the mid-arrow
width override is ported (29 Sep — read back only: it draws nothing on
a filled head, in v3 either). The layout option surface takes the
bounding box as a hint by default, and goes into one layout round with
the page sittings and AVSDF; one column animation per animated layout
landed 29 Sep; the worker lane for the k-clusterings landed 29 Sep,
and the sheet diff for cy.style() landed the day of the sitting, as
did the official JSON schemas on the sitting's terms: ajv in the tests
only and no runtime validate(), the $id base left to the
documentation site, the columnar form's schema held until 4.x and
SchemaStore after 4.0.
From the logged ideas, also before alpha: the device-limits round (where cy.add() throws past the GPU's limits)
with a renderer soak — landed 29 Sep — typed element data — landed 29 Sep — batch events for undo plus a
snapshot measurement — landed 29 Sep, with app-owned history subsequently chosen
— the worker host's images and fonts — landed 29 Sep — and the CJK
label design. During alpha: the extension ports, a devtools panel and
a workloads benchmark profile. After alpha: lasso and spatial queries,
compound drag-and-drop, viewport constraints and framework bindings;
RTL text after 4.0. Declined: a v3→v4 codemod, library-level
accessibility (an app responsibility) and a core PDF export (an SVG→PDF recipe instead). The wire format stays
public but experimental until 4.x.
Cluster hulls landed in round 82 as compound shape styles. The shared CPU
polygon record drives the nonconvex SDF, synchronous picking and edge endpoint
queries; it remains available for a future SVG exporter. The 500-cluster
sparse fixture costs 44.5 ms median per moved-child flush and uses 140,264 B
of live polygon-pool data at 262,144 B capacity for concave contours.
Manual miniature collapse landed on 5 October; labels, picking and
dragging remain ordinary element operations. The
WebGL fallback is full parity at alpha — scoped on 29 Sep, where
the tween pipelines were also decided not to be warmed at start-up (no
user is served a software WebGPU adapter; one would get WebGL2).
Not yet built
The release path:
| Documentation site | The scoped prose/API source pass is complete, including twelve non-demo v3 section equivalents, v4 additions and style/layout catalogs. Five v3 API disposition questions remain. Site/template integration, demos and deployment are still open. |
| Cross-platform validation | macOS/Metal and Windows/D3D12 rendering (CI on both runs only the non-GPU specs), real-device touch |
| Release engineering | The release workflows are still v3's, and are marked as not yet adapted |
| Release bake | Alpha/beta cycle, external-consumer smoke, then 4.0.0 |
The planned queue — each item has a written plan under plan/rounds/,
verified against the source before planning (the mid-August planning wave).
plan/INDEX.md derives the same split from the section filenames, round by
round, and is regenerated rather than maintained:
| API review | The v3-parity surface audited member by member, now that the foundation exists to judge it |
| Extension toolchain | cyext: scaffold, build, test and publish an external extension from one tool, with a template and a real example layout package |
| Exports & interop | SVG vector export; headless figure generation in plain Node (the cytosnap replacement). The official JSON schemas landed 28 Sep; their $id base waits on the documentation site |
| Visual features | Annotations and GPU edge bundling remain open. Charts, compound hulls and manual miniature collapse landed in rounds 80, 82 and 148; aggregate display edges remain separately deferred. |
| App affordances | Attribute-table and filter fast paths (the Cytoscape Web case). The DX polish bundle landed 28 Sep, the small style-wins bundle (text-border-style, the gradient price) 29 Sep |
| WebGL2 renderer | Full parity with the WebGPU renderer, for browsers without WebGPU; scoped 29 Sep (backend, capability selection, the measured substitutes, the reach table), built after the drawn-feature rounds and held to a live WebGL-vs-WebGPU parity suite |
- Logged as directions, unscheduled: splitting the largest implementation files, the Brandes reference's data layout (2.5× on one thread, measured 18 Sep), the offload families' in-thread builders (item 69, 18 Sep), and a fresh idea-ledger sweep of ~20 further candidates awaiting scheduling.
How this project works
- A control for every claim — each test run once with the behaviour it checks deliberately broken, to prove it can fail.
- Measure, don't remember — statements about the code are re-verified, not inherited.
- Decisions are written down when taken, with their rationale.
- Run it where it will actually run — a fresh checkout, a runner, a real browser, a person opening the page.
- A change that should be invisible is the best test of the tools that watch for changes.