Changelog
Releases follow semantic versioning and are published from main. Each tagged release also has release notes on GitHub, and the version menu in the header opens the docs for any release.
December 2026
2026-12-03
- Added an optional edge flow. Turn it on with
flow: { on: "both" }orsetFlow()and small dots travel along the edges of the hovered or selected node, from the source of each relation to its target, in 2D and 3D and along curved edges. Choose hover, selection or both, one ring of edges or two (the second fainter and slower), and a direction relative to the focused node. Edges can carry an optionalweightthat adds dots and speed withweightBy: "evidence". It is off by default, costs one draw call only while dots are shown, and the dots stand still under reduced motion.getDiagnostics()has newflowDotsandflowEdgescounts. See the Labels and focus guide.
November 2026
2026-11-20
- Fixed the cluster view showing the wrong glyphs after
update()moved it to a grown tree. A glyph whose id the new tree gave to another cluster stayed on screen with the old cluster’s size, place and colours (large discs in the wrong spots) until the camera cut changed. The layer now compares what each id draws with what is on screen, also while an animation runs, and redraws what differs. Aggregate edges whose weight changed are redrawn too.
2026-11-17
- Fixed nodes vanishing when you zoom a large graph out. In the cluster view of a very large 2D graph, a group of nodes could shrink to under a pixel and disappear, even though “fit to view” showed it. Groups now always draw at least 2 pixels wide, and every part of the renderer reads the same on-screen scale, so a view reached by the wheel looks the same as the same view reached by
fitView()orsetCameraState().getWorldUnitsPerPixel()returns that scale for your own labels. - Fixed edges of a selected node being hidden when the other end is off screen. The edges of selected, focused and hovered nodes, and of selected edges, are now always drawn and clipped at the edge of the view, also in the cluster view and when an edge budget is set.
- Added a far look for 2D. It is off up close and eases in only as nodes shrink on screen, the same for wheel zoom and for fit to view. On dark backgrounds each node gets a soft glow. On light backgrounds it looks like ink on paper: a soft halo, colours muted a little and thin grey edges. It adds one draw call and only while nodes are small. Tune it with
farLook(strength0.2,nearPixels10,farPixels3) orsetFarLook(), or turn it off withfarLook: false. The look is provisional.
2026-11-13
- Added a radial blur as an alternative to depth of field. With
setDepthOfField({ enabled: true, mode: "radial" })the selected node and its neighbours stay crisp and the rest of the graph, edges included, blurs more the farther it is from the selection on screen. It works in 2D and 3D, andvignette: truedarkens (or, on a light theme, dims) the viewport edges.innerRadius,outerRadius,maxBlurandvignetteStrengthtune it, and depth of field stays the default. The playground has the new Mode and Vignette controls under Focus blur. - Large
"edge-t"layouts can use workers.computeMultilevelForcePositionsAsync()from@yggy-tech/graphraum/layout-multilevelrefines the big levels in parallel, 1.7 times faster for that step at 1,000,000 nodes, with the same layout quality. Without workers it runs on one thread. A warm start of the multilevel layout now settles only what changed (new nodes, changed edges or anchors) and leaves every other node where it was (#241). - Huge graphs can now open straight into the cluster view.
openClusterLod()from@yggy-tech/graphraum/lodtakes plain typed arrays (positions, edge pairs, optional colours), builds the tree in a Web Worker without blocking the page, and hands graphraum only the cut, so the full graph is never loaded into the renderer. The coarse regions appear first, in about 0.2 seconds at 1,000,000 nodes, and the edges between them follow. Without a worker it does the same on the page’s own thread. Real nodes come from a function you pass, and the whole graph stays in compact arrays, so millions of nodes fit. See the Cluster LOD guide andbun run dev:lodwith?n=5000000. - Very large graphs use far less memory. The edge buffers now hold only the edges that are drawn, not room for every curve of every edge, so a 100k node graph keeps about 300 MB less in memory and its first frame arrives about four times sooner. A graph of 5 million nodes and 15 million edges now loads in 2D instead of crashing the tab. The graph keeps your node and edge objects instead of copying them, so change them with
updateNodes()rather than editing them aftersetData()(#136). - Cluster level of detail looks and feels finished. Glyphs are bigger and carry a compact member count (1.2k, 34k) that hides when the glyph is too small; they blend the colours of their members as soft blobs; a click on a glyph zooms in on it; and a cluster that splits or merges animates in about 200 ms, or swaps at once with reduced motion on. Changing the cut now applies only the nodes and edges that arrived or left. Nodes can also show up to three colours through the new
blendfield. Runbun run dev:lodto try it on 200,000 nodes (#229). - Added an optional cluster level of detail for very large graphs, in its own entry
@yggy-tech/graphraum/lod. It groups nearby nodes once, then on every camera change draws far regions as one glyph sized by how many nodes it holds, joined by aggregated edges, and opens the regions you zoom into until you see the real nodes. What is drawn stays within a budget you set (4,000 nodes and 8,000 edges by default) however large the graph is, in 2D and 3D, so a million-node graph shows every region instead of the first 100,000 nodes. Apps that do not use it pay nothing in the main bundle. The look of the glyphs is provisional. See the new Cluster LOD guide (#229). - Added an opt-in multilevel force layout for large graphs (#238).
computeMultilevelForcePositions()from the new@yggy-tech/graphraum/layout-multilevelentry lays out a few hundred merged groups first, then refines finer levels, and can hand you a rough picture of the whole graph before the refinement finishes. WithlayoutStyle: "edge-t"it was about 2.5 to 3 times faster at 10,000 and 100,000 nodes at similar layout quality;"classic"is already fast and gains nothing. Predefined starts, anchors and clusters carry through, and the default layout and the main bundle do not change. See the Layout guide.
2026-11-12
- Loading a large graph is faster.
setData()and the first frame take about half the time on a 30,000 to 100,000 node graph, and about a third less at 300,000 nodes: the graph is read in one pass, the camera fit no longer lays out the view twice, and a window resize that does not change the size no longer redraws it. What is drawn does not change. - Panning and zooming a large 2D graph does less work again. Edges that stay in view are no longer rewritten on every camera move, only the ones that come into view or leave it. What is drawn does not change; where edges overlap, their paint order can differ (#235).
- Panning and zooming a large 2D graph does less work per frame. Finding the nodes in view is about 12 times faster at 100,000 nodes, and nodes that stay in view are no longer rewritten on every camera move, only the ones that enter or leave. What is drawn does not change (#228).
2026-11-11
- Large graphs keep their important edges in the overview. When more edges are in view than
maxVisibleEdges, graphraum used to keep an even sample. It now keeps the edges of selected, focused and hovered nodes first, then the edges between the best-connected nodes, so hubs and the main structure stay visible while you pan. In 2D it also skips edges shorter than a pixel, which add nothing to the picture.getDiagnostics()has a newsubPixelEdgesSkippedcount (#227). - Added an optional interaction quality mode for large graphs. Turn it on with
interactionQuality: { enabled: true }orsetInteractionQuality()and graphraum draws at a lower resolution and shows fewer edges (in 2D also fewer nodes) while the camera moves and frames run slow, then restores full quality in one frame about 200 ms after the camera rests. Your data never changes, no draw call is added, and a graph that keeps up stays at full quality.getDiagnostics().interactionQualityreports the tier. It is off by default (#226). See the Camera and 3D guide. - Selecting, focusing or hovering a node in a large graph no longer redraws the whole edge list. Over the edge budget, graphraum used to repack every visible edge on each change, about 450 ms at 900,000 edges in a test run. The budgeted edges are now independent of the selection, and the edges of the selected node that the budget left out are drawn as a small extra layer, under a millisecond. They are still always visible.
2026-11-10
- Breaking: the force layout moved to its own entry,
@yggy-tech/graphraum/layout. ImportcomputeForcePositions,computeClusteredForcePositions,createForceSimulation,DEFAULT_FORCE_SETTINGS,FORCE_LAYOUT_STYLES,forceIterationCountand theForce*types from there instead of@yggy-tech/graphraum. Apps that only render get a 5.7 KiB (gzip) smaller main bundle, and the main entry has room again for new features. - A layout no longer starts over when a graph gains nodes. Pass the previous positions as
initialPositionswithwarmStart: truetocomputeForcePositions()orcreateForceSimulation(), and use the newplaceNewNodes()from@yggy-tech/graphraum/layout-startto put new nodes next to their neighbours (or their cluster): known nodes keep their place and the layout only settles briefly, so existing nodes barely move. It works with both layout styles, clusters and anchors. The Layout guide also explains when a layout computed on your server is the better choice (#147). - Small clusters now sit closer to the rest of a clustered layout. Before, a group of 2% of the nodes kept an empty margin 4 times (
"classic") to 12 times ("edge-t") wider than a large group. Cluster centres are now spaced by cluster size, and"edge-t"scales the push between clusters by size. The margin is now 2.6 and 8.9 times wider, and groups stay as clean as before (#192).
2026-11-07
- Added an optional focus lens. Turn it on with
focusLens: { enabled: true }orsetFocusLens()and nodes near the center of the canvas draw larger while nodes toward its edge draw smaller, in 2D and 3D. Labels fromGraphraumOverlayfade in only on the large ones. Positions never move, picking follows the drawn size, and a hovered or selected node never shrinks. It is off by default. - You can now change how a graph looks beyond colours. Pass
styleto the constructor or callsetStyle()to set a default node stroke width, a default arrowhead size and label typography, and switch between ready-made looks without rebuilding the graph.@yggy-tech/graphraum/stylesshipsneutral(greys with blue accents for hover and selection, on a transparent canvas with a system font),blueprint, andclassicDarkandclassicLight, which are exactly the looks graphraum has always had. Labels get--graphraum-label-*CSS custom properties you can use in your own label styles. The default look does not change, and drawing cost stays the same (#203). See the new Styling guide. - Nodes can show an icon. Build an atlas from SVG strings with
createIconAtlas()from@yggy-tech/graphraum/icons(it includes a helper for raw Phosphor SVGs, and no icon set is bundled), pass it tograph.setIconAtlas(), and give nodes aniconindex. Icons are tinted, sit inside the node in lit and toon shading and in 3D, and cost no extra draw call. The Data and visuals guide has a new Icons section (#208). - You can now check which groups in a drawing are real.
measureLayoutStability(), imported from@yggy-tech/graphraum/diagnosticsso it stays out of the main bundle, lays the graph out with several seeds and reports how stable each cluster is, next to the score of a shuffled copy of the graph that has the same node degrees but no real groups. A cluster is trustworthy when it scores clearly above that shuffled copy. The Prove run reports the score for its fixture (#194). - Long chains and strips no longer start knotted. Force layouts take an optional
initialPositionsstart, and the new@yggy-tech/graphraum/layout-startentry computes one from graph distances, so the layout starts stretched along the graph’s length. On a long grid strip the layout comes out with almost no folds where the default random start leaves dozens or hundreds. The default start is unchanged and the main bundle barely grows (#193). - Force layouts can follow positions you already have. Pass
anchorstocreateForceSimulation()with one position per node, for example a PCA or UMAP projection of embeddings, and nodes start there and are pulled back towards it. The positions can use any range, nodes withNaNare laid out freely, andsettings.anchorStrengthsets how closely the layout follows them. The new Guided layout guide shows how to combine anchors, clusters, and weak neighbour edges (#170).
2026-11-06
- Force layouts have a second style for graphs that end up as one tangled ball. Set
layoutStyle: "edge-t"inForceSettingsto give well-connected nodes more room, so groups separate and hubs no longer pile up in the middle. It works forcomputeForcePositions(), clustered layouts andcreateForceSimulation(), and a running simulation can switch withsetSettings({ layoutStyle: "edge-t" })without starting over. Its one-shot layout runs 8 times as many steps, so run large graphs in a worker."classic"stays the default (#191).
October 2026
2026-10-31
- 3D nodes can be lit.
setScene({ shading: "lit" })turns circles into spheres lit by a sun and a soft sky and ground light; other shapes get a bevel."toon"uses the same light in three hard bands. The sun (azimuth,elevation,color,intensity) and the ambient light (sky,ground,intensity) are scene options too, merged field by field.graphraumScenes.flat,.litand.toonset a whole look in one call. The node stroke stays unlit and reads as a rim. It costs no extra draw calls, 2D and the default are unchanged, andgetDiagnostics().shadingshows what is in effect (#165).
2026-10-30
- TypeScript projects that use
"moduleResolution": "nodenext"withoutskipLibCheckno longer fail on graphraum’s types with “Cannot use namespace ‘Graph’ as a type”.bindGraphology()now accepts any graphology graph through graphology’s owngraphology-typespackage (#175). - In 3D, edges can now pass in front of a node or behind it by where they really are, instead of always disappearing under every node. Turn it on with
scene: { edgeDepth: "scene" }orsetScene({ edgeDepth: "scene" }): circle nodes then render as spheres with real depth, so an edge just in front of a node stays visible near its outline and hides towards its middle, and an arrowhead behind a node is hidden by it. It costs no extra draw calls. The default and 2D are unchanged;getScene()andgetDiagnostics().edgeDepthshow what is in effect (#164).
2026-10-23
- Depth of field has a
nearStrengthoption: the aperture for what lies between the camera and the focus. Set it abovestrength, with a largermaxBlur, to melt the foreground while the background keeps its softer blur. - Blurred nodes in front of the focus now blur into what lies behind them instead of keeping a hard outline with a soft halo.
- A large
maxBlurno longer makes the softly blurred background look grainy.
2026-10-22
- 3D graphs can use depth of field: the selected nodes stay sharp and the rest of the graph blurs with its distance from them, in front and behind, like a camera lens. The blur gets stronger as the camera moves closer to the selection and the selection stays sharp while you orbit or zoom. Turning it on or off, changing its strength and moving the focus to a new selection all animate with an easing you can choose, and reduced motion makes them jump. It is off by default; turn it on with
depthOfField: { enabled: true }orsetDepthOfField(). It does nothing in 2D and costs nothing while off (#158).
2026-10-21
- Adding nodes and edges with
applyDataPatch()is faster on large graphs. A patch of 1,000 nodes and about 3,100 edges on a 10,000-node graph took about 65 ms with straight edges and 210 ms with curved ones in 3D; it now takes about 12 ms and 22 ms. Only the new nodes and edges are written, and the picture is identical to loading the same graph withsetData(). The same holds in 2D withviewportCulling: false(about 62 ms before, 9 ms now). In 2D with culling the visible set is still repacked, and the patch is about one and a half times faster (#152). - Nodes can be dragged: turn it on with
setNodeDrag({ enabled: true })and listen withonNodeDrag(). The node follows the pointer in 2D and 3D, its edges follow, and Escape puts it back. The camera, hover and auto-orbit stay out of the way while a node is held, and on touch screens a node drags after a short press so swiping still pans (#151). - The camera view can be saved and restored:
getCameraState()returns it as plain JSON andsetCameraState()puts the camera back there at once, in 2D and 3D. A 2D state keeps its height on a canvas of another shape (#153). - A 2D canvas that is resized to the size it already has no longer refits the graph, so a view you set is not replaced when the browser reports the canvas size for the first time. A resize to a new size still refits.
setData(data, { fit: false })replaces the graph and keeps the camera where it is, so a host that sends a full snapshot on every change no longer resets the view. The default still fits the camera (#150).
2026-10-19
- In 3D, edges and their arrowheads now end on a node’s visible outline from every camera angle, so arrowheads show instead of hiding under the node they point at. The end is placed on screen, where the camera-facing node is, rather than one radius along the edge in space. This is exact for circle nodes; other shapes use their width as the radius. 2D is unchanged.
2026-10-11
flyTo({ nodeIds })animates the camera to a group of nodes and resolves when it arrives, orfalsewhen someone interacts first. In 3D it keeps the current viewing angle, so a running auto-orbit carries on around the new spot, which makes ambient tours from cluster to cluster possible. It jumps instead of animating when reduced motion is on.
2026-10-10
- The docs site is simpler. It now has three parts: a home page, the docs (Start, Guide, Reference) and one playground. The playground replaces the Explorer, the Prove page and the three demo pages: it has the Knowledge, Software and Fraud scenes, a stress test up to 100,000 nodes, and Prove as a side panel that compares your device with the reference run. Old links redirect to the new pages.
2026-10-09
fitViewaccepts{ nodeIds }to frame a subset of nodes, for example a highlighted path, in 2D and 3D.
2026-10-08
fitView()in 2D now undoes wheel zoom, so fitting after zooming in or out frames the graph the same way as the first fit instead of keeping it small or cropped (#130).- Edges now always draw behind nodes in 3D, as they already did in 2D, so busy hubs keep a clean node face. In 3D a node behind an edge now shows on top of it, and overlapping edges no longer hide each other by depth (#127).
- In 3D, edge ends now meet the outline of circle nodes from every camera angle instead of stopping short of it, including edges that point toward or away from the camera. For other shapes the ends land close to the outline but can stop slightly short of it on long or angular nodes, depending on the view. 2D is unchanged. An arrowhead on an edge that points almost straight at the camera can sit under its node (#127).
- Fixed node, edge, marker, selection, and glow colors drawing darker than specified. A node set to
#8a9096drew as#41474e; it now draws as#8a9096, the same as that color in CSS and as the canvas background (#123). - This changes how every graph looks: colors are noticeably lighter than in earlier versions, for both presets and for custom colors, and glow halos on dark backgrounds look brighter and wider because they blend over the corrected colors. The dark and light presets keep their values, because they now draw as their documented palette. If you picked colors to compensate for the darker output, set them back to the values you meant.
fitView()in 3D now frames the graph to fit the canvas: the graph spans most of the canvas width or height instead of about a third, glow halos stay in view, and nodes no longer fall off the sides of tall canvases (#124).
2026-10-07
- 3D graphs can slowly orbit on their own with
setAutoOrbit(). The orbit is off by default, pauses while people interact and resumes after a short idle, and stops while the tab is hidden or the graph is off screen (#113). - Edges can be dimmed with
setEdgeState("dimmed", ids), styled by the newdimmedEdgeanddimmedEdgeOpacitytheme colors, so focusing a neighborhood recedes edges as well as nodes. Selected edges stay highlighted (#116). - Highlighting edges with
setEdgeSelectionon hover stays fast on large graphs: only the edges that changed are repainted. setEdgeSelectionnow ignores IDs that are not in the graph, andsetDatadrops selected edges that no longer exist. TheselectedEdgesdiagnostic counts only real edges, so it can be lower than before for hosts that pass stale IDs.GraphraumThemehas two new required fields,dimmedEdgeanddimmedEdgeOpacity. Hosts that type a complete theme object must add them; partial themes and the presets need no change. A partial theme that setsdimmedEdgeOpacitytoundefinedor to a value outside 0 to 1 now throws.- Fixed edges that could show outdated lines when a layout update and a pan or zoom landed in the same frame.
- Nodes can glow: set
glowbetween 0 and 1 to draw a soft halo in the node’s color around the few nodes you want to stand out (#114). - Live force layout can keep data-defined clusters together: pass cluster indices to
createForceSimulation()and tuneclusterStrength. Nodes added later join their cluster (#115).
September 2026
2026-09-03
- Edges can meet node outlines instead of centers, and force layout accepts per-edge spring length and strength (#111).
- Focus labels can skip importance fillers (
focusLabelFill: "none") so idle graphs stay unlabeled.
2026-09-01
- Switching a graph from 2D to 3D keeps the correct canvas shape on a wide or tall view, instead of stretching the nodes.
August 2026
2026-08-20
- Prove times progressive force layout separately: worker startup, edge transfer, compute, first useful
applyLayoutframe, and complete streaming. Results appear in the JSON report, headline metrics, and local history. - Position and layout updates patch visible edges in place when the viewport set is unchanged, instead of rebuilding every edge each frame.
- The Explorer Force section can change iteration count, repulsion, link distance, gravity, and batch size while force layout still runs in a worker.
- Selection and hover color updates upload only the changed node slots.
- Topology removals that stay within the preallocated capacity reuse existing GPU meshes instead of rebuilding them.
- Detail curves use denser segments, and 2D graphs keep correct aspect when the canvas resizes.
- The Explorer can show focus labels, a selected-node toolbar, and one HTML card on the dense GPU graph. Turn the overlay off from the sidebar when you only want appearance and layout.
2026-08-19
- Overlay can project a hard-capped set of host HTML cards onto focused nodes (
renderRichNode,setRichNodes,autoRichNodes) while the dense graph stays on the GPU batches.
2026-08-11
- Graphs can switch between light and dark theme presets at construction or runtime, and the canvas background can be a solid color, transparent for a host CSS pattern, or a tiled image/canvas pattern.
- Overlay labels support a
focuspolicy (selected, hovered, and neighbors) so dense graphs stay readable; pointer hover updates node highlight automatically. - Overlay toolbars can auto-anchor to the selected or hovered node when
renderToolbaris set.
2026-08-10
- Pointer picking can resolve edges as well as nodes (
pickHit), and selected edges highlight with a theme color without clearing node selection. - Overlay labels can follow a viewport budget (
autoLabels) so only the most important on-screen titles appear withinmaxLabels, without hosts guessingsetLabels()every frame.
2026-08-08
- Docs gained a fullscreen Explorer at
/explore/with grid, circle, force, and live force layouts plus appearance controls./benchmark/stays the Prove protocol; its Explorer tab links to the fullscreen surface. - Edges can follow straight, quadratic, or cubic paths. Supply control points or let graphraum derive them; overview zoom still collapses curves to a single straight segment.
- Fixed a WebGL shader validate failure where node fill color was declared twice (
instanceColorredefinition). - The docs
/benchmark/page hosts the timed Prove protocol and local history; live shape and edge exploration moved to the fullscreen Explorer. - Nodes gained four shapes—hexagon, triangle, pill, and rounded—alongside the existing circle, square, and diamond. Every shape can now draw an outer stroke and set width and height independently instead of one uniform size.
- Edges support width, opacity, dash styles, and triangle direction markers, with overview zoom dropping markers first.