/neo4j-skills:neo4j-nvl-skillfrom neo4j-skills
Renders Neo4j graph data in the browser using @neo4j-nvl packages. Covers Canvas vs WebGL renderers, node/relationship/cluster interactions, zoom/pan/drag, box/lasso select, and React wrappers (InteractiveNvlWrapper, BasicNvlWrapper, StaticPictureWrapper). Use when visualizing driver.executeQuery results as an interactive graph.
Ships in neo4j-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Shipped with
@neo4j-nvl/basev2.1.0. Once installed into a project this folder is detached from the package: the installed types innode_modules/@neo4j-nvl/*are the source of truth. If the project's@neo4j-nvl/baseis a different version andnode_modules/@neo4j-nvl/base/skills/neo4j-nvl-skill/SKILL.mdexists, read that copy instead.
driver.executeQuery results as an interactive graphNot for: a pre-styled graph view with default behaviour (GraphVisualization from @neo4j-ndl/react wraps
NVL for that), Python notebooks (neo4j/python-graph-visualization), Cypher, driver setup, GDS or GraphQL.
.d.ts files in
node_modules/@neo4j-nvl/* before using it. If they disagree, trust the types and say so.dist/ or lib/ output. Use the types and these docs.width and height; otherwise the graph is invisible.layout, layoutOptions and every other option go inside nvlOptions.<InteractiveNvlWrapper> is enabled by mouseEventCallbacks.onZoomAndPan; there is no onZoom.fit() needs explicit node ids. fit([]) fits nothing.'canvas' when labels matter, or html / icon overlays.optimizeDeps: { include: ['bin-pack'] }. Vite 7.3 pre-bundles it on its own, so only apply it when the symptom appears.nvlResultTransformer returns bare { id } elements; labels and properties are in recordObjectMap.nvlCallbacks are captured once; use refs or stable functions. interactionOptions replaces
the defaults, so pass every option you need.nvl.destroy(), on teardown. The React wrappers do this for you.updateCallback(name, cb) on interaction handlers is untyped: cb is (...args: unknown[]) => void, so
parameters arrive as unknown and a typed callback such as (node: Node) => … fails under strict. Cast
inside the callback; the React mouseEventCallbacks are fully typed.| Symptom | Cause | Fix |
|---|---|---|
| Graph invisible / blank | Container has no height | Explicit width and height on the container |
| Wheel does not zoom (React) | Zoom handler only wired from onZoomAndPan | mouseEventCallbacks={{ onZoomAndPan: true }} → react-wrappers |
| Hierarchical layout never finishes (Vite dev) | Layout SharedWorker imports CJS bin-pack; seen on older Vite, not on 7.3 | optimizeDeps: { include: ['bin-pack'] } → vite-and-bundlers |
| No text on nodes with WebGL | Captions are Canvas-only | html / icon, own overlay, or setRenderer('canvas') → labels-and-overlays |
fit([]) does nothing | Empty array = no nodes | fit(nvl.getNodes().map((n) => n.id)) |
fit() stops zoomed in on a huge graph | minZoom clamp (default 0.075) | fit(ids, { minZoom }) or lower the minZoom option |
| Clicking a cluster selects all its nodes | selectOnClick selects cluster.nodeIds | selectOnClick: false and select in onNodeClick → clustering |
| No cluster outlines / halos | Not force-directed, or mixed colours (halo) | Force-directed with layoutOptions.clustering; one colour per cluster → clustering |
| Pinned nodes move when clustering is on | Cluster forces ignore pins | Do not combine → clustering |
| Changing circle options does nothing | Layout is not re-run on option change | Bounce via setLayout('free') → layouts-and-positions |
| Un-pinned nodes stay frozen | Settled simulation is not restarted | setNodePositions(current, true) → layouts-and-positions |
Node x/y are ignored | Positions are owned by the layout; never set x/y on node data | setNodePositions(nodes) or the React positions prop → layouts-and-positions |
| Callbacks see stale state (React) | nvlCallbacks captured at creation | Refs or stable functions → react-wrappers |
| Minimap empty (React) | Container did not exist at creation | Keep the element in state → react-wrappers |
| Hover / shadow defaults lost | interactionOptions replaces defaults | Pass every option → react-wrappers |
| Many icons not drawn (WebGL) | More than 256 distinct icon images | Fewer distinct icons, or 'canvas' → labels-and-overlays |
| Layout looks hung in headless Chrome | Software WebGL | Hardware-GL flags → verifying-nvl-apps |
Raw executeQuery result passed to NVL | Records are not graph elements | resultTransformer: nvlResultTransformer → data-from-neo4j |
NVL or Needle? Default Neo4j styling and no custom interaction → GraphVisualization from @neo4j-ndl/react.
Anything custom → NVL.
| Need | Use |
|---|---|
| React, default interactions | <InteractiveNvlWrapper> from @neo4j-nvl/react |
| React, custom interaction logic | <BasicNvlWrapper> + ref to the NVL instance |
| Vanilla, standard interactions | NVL + @neo4j-nvl/interaction-handlers |
| Vanilla, custom events | NVL + container.addEventListener + nvl.getHits() |
| Static PNG / SVG | <StaticPictureWrapper> or nvl.saveToFile() / nvl.saveToSvg() |
| Renderer | Nodes | Notes |
|---|---|---|
'canvas' (default) | up to ~1,000 | Captions, icons, arrows, exact hit-testing |
'webgl' | 100,000+ | WebGL2 only; no captions; icons and arrowheads supported |
disableWebGL: true forces Canvas rendering and non-GPU layouts.
npm install @neo4j-nvl/base # required
npm install @neo4j-nvl/interaction-handlers # vanilla interactions
npm install @neo4j-nvl/react # React wrappers (React 19)
@neo4j-nvl/layout-workers is transitive; never install it directly. neo4j-driver is only needed for
nvlResultTransformer. License: Neo4j Visualization Library License, for use with Neo4j products.
Starters: https://github.com/neo4j-devtools/nvl-boilerplates
import { NVL } from '@neo4j-nvl/base'
import { ClickInteraction, ZoomInteraction, PanInteraction, DragNodeInteraction } from '@neo4j-nvl/interaction-handlers'
const nodes = [{ id: '1', caption: 'A' }, { id: '2', caption: 'B' }]
const rels = [{ id: '12', from: '1', to: '2', type: 'KNOWS' }]
const nvl = new NVL(container, nodes, rels, { layout: 'forceDirected' }, {
onLayoutDone: () => nvl.fit(nodes.map((n) => n.id))
})
const click = new ClickInteraction(nvl, { selectOnClick: true })
click.updateCallback('onNodeClick', (node) => console.log('clicked', node))
const handlers = [click, new ZoomInteraction(nvl), new PanInteraction(nvl), new DragNodeInteraction(nvl)]
// teardown: handlers.forEach((h) => h.destroy()); nvl.destroy()
import { InteractiveNvlWrapper } from '@neo4j-nvl/react'
import type { NVL } from '@neo4j-nvl/base'
import { useRef } from 'react'
export function Graph({ nodes, rels }) {
const nvlRef = useRef<NVL>(null)
return (
<div style={{ width: '100%', height: 600 }}>
<InteractiveNvlWrapper
ref={nvlRef}
nodes={nodes}
rels={rels}
nvlOptions={{ layout: 'forceDirected', renderer: 'canvas' }}
interactionOptions={{ selectOnClick: true, drawShadowOnHover: true }}
mouseEventCallbacks={{
onNodeClick: (node) => console.log(node.id),
onZoomAndPan: true,
onPan: true,
onDrag: true
}}
nvlCallbacks={{ onLayoutDone: () => nvlRef.current?.fit(nodes.map((n) => n.id)) }}
/>
</div>
)
}
Read the one that matches the task before writing code.
nvlResultTransformer output, recordObjectMap, enriching nodes, Integer and temporal valuesclusterBy per layout, outlines and halos, cluster click and hover, pinssetNodePositions, pinning, layout callbackshtml / icon / overlayIcon, coordinates for custom overlaysdisableWebWorkerswindow.__Nvl_* hooks, headless Chrome flags, detecting a settled layoutrestart, teardown, context loss, telemetry, onErrorGenerated from the installed version's type declarations. Open the page for the symbol you need; do not load all of them.
@neo4j-nvl/baseNVL class, options, callbacks, graph element types, hit testing, nvlResultTransformer.
Classes
Functions
Interfaces
window, for tests and toolingTypes
Variables
@neo4j-nvl/interaction-handlersZoom, pan, drag, click, hover, box/lasso select, keyboard handlers and their callbacks.
Classes
Types
@neo4j-nvl/reactInteractiveNvlWrapper, BasicNvlWrapper, StaticPictureWrapper and their props.
Functions
Interfaces
Types
Variables
Web: user guide https://neo4j.com/docs/nvl/current/ · API https://neo4j.com/docs/api/nvl/current/ · examples https://neo4j.com/docs/api/nvl/current/examples.html
README.md (opens in a new tab)references/api/base/classes/NVL.md (opens in a new tab)references/api/base/functions/getZoomTargetForNodePositions.md (opens in a new tab)references/api/base/index.md (opens in a new tab)references/api/base/interfaces/CircularOptions.md (opens in a new tab)references/api/base/interfaces/ClusteringOptions.md (opens in a new tab)references/api/base/interfaces/ExternalCallbacks.md (opens in a new tab)references/api/base/interfaces/ForceDirectedOptions.md (opens in a new tab)references/api/base/interfaces/HierarchicalOptions.md (opens in a new tab)references/api/base/interfaces/HitTargetCluster.md (opens in a new tab)references/api/base/interfaces/HitTargetNode.md (opens in a new tab)references/api/base/interfaces/HitTargetRelationship.md (opens in a new tab)references/api/base/interfaces/Node.md (opens in a new tab)references/api/base/interfaces/NvlMouseEvent.md (opens in a new tab)references/api/base/interfaces/NvlOptions.md (opens in a new tab)references/api/base/interfaces/NvlWindow.md (opens in a new tab)references/api/base/interfaces/Point.md (opens in a new tab)references/api/base/interfaces/Relationship.md (opens in a new tab)references/api/base/type-aliases/CanvasRendererType.md (opens in a new tab)references/api/base/type-aliases/Cluster.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub neo4j/agent-skills --plugin neo4j-skills30 skills in this plugin
/neo4j-agent-memory-skillAuthoritative reference for the neo4j-agent-memory Python package — a graph-native memory system for AI agents built on Neo4j — and for the hosted service (NAMS) at memory.neo4jlabs.com. Use this skill whenever the user mentions neo4j-agent-memory, agent memory with Neo4j, context graphs, the POLE+O model, MemoryClient/MemorySettings, the memory MCP server, or any of the framework integrations (LangChain, PydanticAI, CrewAI, AWS Strands, Google ADK, Microsoft Agent Framework, OpenAI Agents, LlamaIndex). Also use when the user mentions the hosted service at memory.neo4jlabs.com, NAMS, the Neo4j Agent Memory Service, the `nams_` API key prefix, or the hosted MCP endpoint. Also use when writing documentation, blog posts, tutorials, PRDs, or code samples for the project, when comparing agent memory approaches, or when positioning graph-native memory against vector-only approaches — even if the user doesn't explicitly name the package. Does NOT handle GraphRAG pipelines — use neo4j-graphrag-skill./neo4j-aura-agent-skillManages Neo4j Aura Agents via the v2beta1 REST API — create, list, get, update, delete, and invoke Aura agents backed by an AuraDB instance. Use when configuring Aura Agent tools (CypherTemplate, SimilaritySearch, Text2Cypher), setting system prompts, deploying agents to REST or MCP endpoints, invoking agents with natural language queries, or generating evaluation datasets (max 50 questions) for the Aura Agent evaluation feature. Covers OAuth2 auth, organization/project scoping, tool parameter schemas, and InvokeAgentResponse format. Does NOT cover AuraDB instance provisioning — use neo4j-aura-provisioning-skill. Does NOT cover vector index creation — use neo4j-vector-index-skill.Other plugins' skills for the same job