Scan your whole stack
From OX Research Newsroom
Are you using garphield?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.0
garphield was last scanned on 29 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.3.0 LATEST | 29 Nov 2026 | No rules fired |
| 0.2.0 | 28 Nov 2026 | No rules fired |
Findings for v0.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.3.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Dependency-free browser driver for putting a live Garphield view inside a web product.
import { createGarphield } from "garphield";
const frame = document.querySelector<HTMLIFrameElement>("#graph");
if (!frame) throw new Error("Missing graph iframe");
const project = await fetch("/network.gph").then((response) => response.json());
const graph = createGarphield(frame);
await graph.ready();
await graph.setTheme({ colorScheme: "dark" });
await graph.setDocument(project);
graph.on("nodeClick", ({ nodeId }) => {
console.log(nodeId);
});
createGarphield(frame) opens https://garphield.com/embed. Point it at
another deployment when developing or self-hosting:
const graph = createGarphield(frame, {
embedUrl: "http://localhost:4173/embed",
timeoutMs: 20_000,
});
ready() resolves when the hosted embed is listening.setDocument(document) replaces the graph with a versioned .gph document
and resolves with { warnings }: the parts it skipped, each with the
code, path and message document validation reports. It is empty when
the whole document loaded.setTheme({ colorScheme }) matches a light, dark, or seafoam host.setEdgeFilter({ field, min }) hides edges below a numeric threshold without
replacing the document or recomputing its layout. It resolves with the visible
edge count.setTimeFilter({ field?, to?, from?, step? }) sets the dates of the
document's first enabled time filter, the one the time bar drives: to is
the end, from the start (null for none), and step moves the end
through the field's distinct dates (1 next, -1 previous). Dates are
YYYY-MM-DD, RFC3339 timestamps with a timezone, or epoch milliseconds.
field names the date field, adding a time filter on it when the document
has none. A page can step through years with no Story. A colour bound to a
numeric field keeps its colours as the window moves.setBindingEnabled(channel, enabled) toggles an existing document binding
without relayout, for host controls such as optional hull or contour layers.nextStep() advances the storyboard player to the next captured scene,
starting at the first scene if it isn't already open. Rejects if the reel
is empty or already at the last scene.prevStep() steps back to the previous captured scene. Rejects if the
player isn't open or already at the first scene.goToStep(index) jumps directly to a captured scene by its 0-based
position. Rejects for an out-of-range index.setLayout(mode) switches to "force", "levels", or "geo".setLevels({ roots?, levelAttribute? }) switches to Levels with its bands
counted from roots (node ids), or one band per value of a numeric node
field; values win over roots. setLevels({}) returns to automatic levels.
An unknown root or a field without numbers is rejected.setGroups({ by, links? }) groups nodes by up to four levels and draws the
groups as rings; setGroups(null) stops. A level is a node field, or a
community or component algorithm such as
{ kind: "algorithm", id: "connected_components" }. Rings never move the
nodes, so turning them off brings the previous drawing back.setMerge({ by, label?, combine? }) draws one node per value of up to four
fields, with the links between them combined; setMerge(null) stops. It
never changes the network, so turning it off brings the previous drawing
back, and it turns groups and the Backbone off.setBackbone(on) and setDetail({ mode }) draw only the Backbone's links,
or every link.setLinkStyle(style) draws links as "line", "tapered", "arrow", or
"flow".bind(channel, { field } | { algorithm }) binds a visual channel such as
color or size; unbind(channel) removes it.setScale(channel, scale) sets a bound channel's explicit marks and legend
labels: { categories: [{ value, mark?, label? }], missing? } for a
categorical or set binding, or { domain, range } for a numeric one.
setScale(channel, null) returns it to the default marks.fit(), frame({ nodeIds?, padding?, durationMs? }) and
focus(nodeId, durationMs?) move the camera.select(nodeIds) and clearSelection() change the selection.run(commandId, params?) invokes a registry command allowed by
VITE_PUBLIC_EMBED_CAPABILITIES. The default grant covers the document,
theme, edge filter, time filter, bindings, layout, grouping, Backbone, link
style, camera, selection, and storyboard controls above, and returns no
value. An origin
granted a command explicitly gets its value.A command the embed refuses rejects with a GarphieldProtocolError whose
code says why, such as VALIDATION. On the default grant its message is
fixed and names nothing from the document.
on("nodeClick" | "stepChange" | "error", handler) subscribes to embed
events. Attach listeners before ready() when a ?file= document may open
directly into a storyboard.destroy() removes listeners and rejects pending calls.Inbound commands are granted per origin with
VITE_PUBLIC_EMBED_CAPABILITIES. nodeClick and stepChange are sent only to
exact origins whose grant lists events.nodeClick or events.stepChange.
The driver derives a strict message origin from embedUrl and never uses a
wildcard target. A renderer can opt into public embedding with
VITE_PUBLIC_EMBED_ORIGINS=* and a matching frame-ancestors * policy, or
list exact host origins for a private deployment.
See the embed guide for document shape, events, and deployment configuration.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.