Logo van Neo4j Nvl Skill

Neo4j Nvl Skill

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

Overzicht

Uitgeverneo4j
Repositoryagent-skills
Skillnaamneo4j-nvl-skill
Sterren
127
Forks
44
Meegeleverde bestanden
85
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 85

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door neo4j op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Neo4j Nvl Skill in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/neo4j/agent-skills/tree/main/neo4j-nvl-skill
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Neo4j Nvl Skill in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Neo4j Nvl Skill automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Neo4j Nvl Skill niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Aantal overige bestanden: 25.

Veelgestelde vragen

Wat doet de AI-skill 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 J...

Waarom Neo4j Nvl Skill gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Neo4j Nvl Skill bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Neo4j Nvl Skill in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/neo4j/agent-skills/tree/main/neo4j-nvl-skill. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Neo4j Nvl Skill gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Neo4j Nvl Skill gebruiken?

Zoveel als je wilt. Je kunt Neo4j Nvl Skill gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Neo4j Nvl Skill gratis?

Ja. Deze skill is door neo4j op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇