Neo4j Nvl Skill logo

Neo4j Nvl Skill

Organization
neo4j
neo4j-nvl-skill

Neo4j Visualization Library (NVL) — framework-agnostic graph rendering for the browser. Covers @neo4j-nvl/base (NVL class, nodes/relationships, Canvas vs WebGL renderer), @neo4j-nvl/interaction-handlers (zoom, pan, drag, click, hover, box/lasso select, keyboard) and @neo4j-nvl/react (InteractiveNvlWrapper, BasicNvlWrapper, StaticPictureWrapper). Use when rendering a Neo4j graph in a browser, feeding driver results through nvlResultTransformer, choosing Canvas vs WebGL, clustering or laying out nodes, wiring node/relationship/cluster interactions, or embedding NVL in React, Vite or vanilla JS apps. Does NOT handle Cypher authoring — use neo4j-cypher-skill. Does NOT handle driver lifecycle, sessions or executeQuery setup — use neo4j-driver-javascript-skill. Does NOT handle the pre-styled GraphVisualization embed — use @neo4j-ndl/react.

Overview

Publisherneo4j
Repositoryagent-skills
Skill nameneo4j-nvl-skill
Stars
127
Forks
44
Bundled files
85
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 85 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by neo4j on GitHub. Read the source before you install it.

Installation

Install the Neo4j Nvl Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/neo4j/agent-skills/tree/main/neo4j-nvl-skill
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/neo4j/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/neo4j-nvl-skill .claude/skills/neo4j-nvl-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Neo4j Nvl Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Neo4j Nvl Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Neo4j Nvl Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Neo4j Visualization Library (@neo4j-nvl/base)

Shipped with @neo4j-nvl/base v2.1.0. Once installed into a project this folder is detached from the package: the installed types in node_modules/@neo4j-nvl/* are the source of truth. If the project's @neo4j-nvl/base is a different version and node_modules/@neo4j-nvl/base/skills/neo4j-nvl-skill/SKILL.md exists, read that copy instead.

When to use

  • Rendering a Neo4j graph in the browser with custom interactions, rendering or data shapes
  • Visualizing driver.executeQuery results as an interactive graph
  • Zoom, pan, drag, click, hover, lasso or box-select interactions; clustering; custom layouts

Not 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.

Rules

  • Types win. Confirm every option, callback and method against this skill or the .d.ts files in node_modules/@neo4j-nvl/* before using it. If they disagree, trust the types and say so.
  • Never invent options. NVL options and callbacks are flat, named keys. If a key is not in the API reference below or the types, it does not exist.
  • Do not reverse-engineer from compiled dist/ or lib/ output. Use the types and these docs.
  • Symptom first. When something does not work, check the table below before changing code.

Before you code

  1. The container has explicit width and height; otherwise the graph is invisible.
  2. React wrappers: layout, layoutOptions and every other option go inside nvlOptions.
  3. Wheel zoom in <InteractiveNvlWrapper> is enabled by mouseEventCallbacks.onZoomAndPan; there is no onZoom.
  4. fit() needs explicit node ids. fit([]) fits nothing.
  5. The WebGL renderer draws no captions. Use 'canvas' when labels matter, or html / icon overlays.
  6. If the hierarchical layout never finishes under the Vite dev server, add optimizeDeps: { include: ['bin-pack'] }. Vite 7.3 pre-bundles it on its own, so only apply it when the symptom appears.
  7. nvlResultTransformer returns bare { id } elements; labels and properties are in recordObjectMap.
  8. React: nvlCallbacks are captured once; use refs or stable functions. interactionOptions replaces the defaults, so pass every option you need.
  9. Destroy interaction handlers, then nvl.destroy(), on teardown. The React wrappers do this for you.
  10. 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

SymptomCauseFix
Graph invisible / blankContainer has no heightExplicit width and height on the container
Wheel does not zoom (React)Zoom handler only wired from onZoomAndPanmouseEventCallbacks={{ onZoomAndPan: true }} → react-wrappers
Hierarchical layout never finishes (Vite dev)Layout SharedWorker imports CJS bin-pack; seen on older Vite, not on 7.3optimizeDeps: { include: ['bin-pack'] } → vite-and-bundlers
No text on nodes with WebGLCaptions are Canvas-onlyhtml / icon, own overlay, or setRenderer('canvas') → labels-and-overlays
fit([]) does nothingEmpty array = no nodesfit(nvl.getNodes().map((n) => n.id))
fit() stops zoomed in on a huge graphminZoom clamp (default 0.075)fit(ids, { minZoom }) or lower the minZoom option
Clicking a cluster selects all its nodesselectOnClick selects cluster.nodeIdsselectOnClick: false and select in onNodeClick → clustering
No cluster outlines / halosNot force-directed, or mixed colours (halo)Force-directed with layoutOptions.clustering; one colour per cluster → clustering
Pinned nodes move when clustering is onCluster forces ignore pinsDo not combine → clustering
Changing circle options does nothingLayout is not re-run on option changeBounce via setLayout('free') → layouts-and-positions
Un-pinned nodes stay frozenSettled simulation is not restartedsetNodePositions(current, true) → layouts-and-positions
Node x/y are ignoredPositions are owned by the layout; never set x/y on node datasetNodePositions(nodes) or the React positions prop → layouts-and-positions
Callbacks see stale state (React)nvlCallbacks captured at creationRefs or stable functions → react-wrappers
Minimap empty (React)Container did not exist at creationKeep the element in state → react-wrappers
Hover / shadow defaults lostinteractionOptions replaces defaultsPass every option → react-wrappers
Many icons not drawn (WebGL)More than 256 distinct icon imagesFewer distinct icons, or 'canvas' → labels-and-overlays
Layout looks hung in headless ChromeSoftware WebGLHardware-GL flags → verifying-nvl-apps
Raw executeQuery result passed to NVLRecords are not graph elementsresultTransformer: nvlResultTransformer → data-from-neo4j

Choose

NVL or Needle? Default Neo4j styling and no custom interaction → GraphVisualization from @neo4j-ndl/react. Anything custom → NVL.

NeedUse
React, default interactions<InteractiveNvlWrapper> from @neo4j-nvl/react
React, custom interaction logic<BasicNvlWrapper> + ref to the NVL instance
Vanilla, standard interactionsNVL + @neo4j-nvl/interaction-handlers
Vanilla, custom eventsNVL + container.addEventListener + nvl.getHits()
Static PNG / SVG<StaticPictureWrapper> or nvl.saveToFile() / nvl.saveToSvg()
RendererNodesNotes
'canvas' (default)up to ~1,000Captions, 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.

Install

bash
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

Minimal examples

javascript
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()
tsx
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>
  )
}

Topic guides

Read the one that matches the task before writing code.

API reference

Generated from the installed version's type declarations. Open the page for the symbol you need; do not load all of them.

@neo4j-nvl/base

NVL class, options, callbacks, graph element types, hit testing, nvlResultTransformer.

Classes

  • NVL — Class for a NVL instance.

Functions

Interfaces

  • CircularOptions — The options for the circular layout.
  • ClusteringOptions — Options that control physical clustering and cluster decorations for the force-directed layout.
  • ExternalCallbacks — An object specifying the required callback functions for certain actions
  • ForceDirectedOptions — The options for the force directed layout
  • HierarchicalOptions — The options for the hierarchical layout
  • HitTargetCluster — A ClusteringOptions.clusterBy cluster hull that has been hit by a pointer event
  • HitTargetNode — A node that has been hit by a pointer event
  • HitTargetRelationship — A relationship that has been hit by a pointer event
  • Node — A node inside the graph visualization.
  • NvlMouseEvent — The result of a NVL.getHits call.
  • NvlOptions — Configurations for a NVL instance
  • NvlWindow — Read-only debugging hooks that every NVL instance registers on window, for tests and tooling
  • Point — An object representing a point in 2D space.
  • Relationship — A relationship inside the graph visualization.

Types

  • CanvasRendererType — A renderer using canvas.
  • Cluster — A physical cluster produced by ClusteringOptions.clusterBy.
  • ClusterByFn — Function that maps a node id to a ClusterId for force-directed clustering.
  • ClusterId — Identifier returned by ClusterByFn to group nodes into physical clusters.
  • HitTargets — A collection of nodes, relationships and clusters that have been hit by a pointer event
  • HitTestTarget — The kinds of element NVL.getHits can test for.
  • Layout — The different types of layouts available
  • LayoutOptions — The options for the layout.
  • NodeWithClientPosition — A node returned by NVL.getNodes with layout coordinates and screen position.
  • PartialNode — A node with only a subset of its properties.
  • PartialRelationship — A relationship with only a subset of its properties.
  • Renderer — The different types of renderers available
  • StyledCaption — The caption text and its text style.
  • WebGLRendererType — A WebGL2 renderer that uses the GPU for rendering.
  • ZoomOptions — Options that influence how fit-to-zoom should behave

Variables

@neo4j-nvl/interaction-handlers

Zoom, pan, drag, click, hover, box/lasso select, keyboard handlers and their callbacks.

Classes

  • BoxSelectInteraction — An interaction handler for multi-selecting nodes and relationships.
  • ClickInteraction — Click interaction handler that handles click, double click and right click events on
  • DragNodeInteraction — Interaction handler for dragging nodes,
  • HoverInteraction — Interaction handler for hovering nodes and relationships.
  • KeyboardInteraction — Opinionated interaction handler for keyboard-driven focus navigation
  • LassoInteraction — An interaction handler that lets you select nodes and relationships by drawing a lasso around them.
  • PanInteraction — Interaction handler for panning the scene, which is achieved by clicking and moving the scene.
  • ZoomInteraction — Interaction handler for zooming the canvas, which is achieved by:

Types

@neo4j-nvl/react

InteractiveNvlWrapper, BasicNvlWrapper, StaticPictureWrapper and their props.

Functions

Interfaces

Types

Variables

  • BasicNvlWrapper — A basic React wrapper that wraps the NVL base library within a React component.
  • InteractiveNvlWrapper — The interactive React wrapper component contains a collection of interaction handlers by default

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

and 25 more files.

Frequently asked questions

What does the Neo4j Nvl Skill AI skill do?

Neo4j Visualization Library (NVL) — framework-agnostic graph rendering for the browser. Covers @neo4j-nvl/base (NVL class, nodes/relationships, Canvas vs WebGL renderer), @neo4j-nvl/interaction-handlers (zoom, pan, drag, click, hover, box/lasso select, keyboard) and @neo4j-nvl/react (InteractiveNvlWrapper, BasicNvlWrapper, StaticPictureWrapper). Use when rendering a Neo4j graph in a browser, feeding driver results through nvlResultTransformer, choosing Canvas vs WebGL, clustering or laying out nodes, wiring node/relationship/cluster interactions, or embedding NVL in React, Vite or vanilla J...

Why use Neo4j Nvl Skill on TypingMind?

Because you install it once and use it with any model. Neo4j Nvl Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Neo4j Nvl Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/neo4j/agent-skills/tree/main/neo4j-nvl-skill. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Neo4j Nvl Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Neo4j Nvl Skill?

As many as you like. As long as a model supports skills, you can use Neo4j Nvl Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Neo4j Nvl Skill AI skill free?

Yes. It is published on GitHub by neo4j under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇