Logo: Neo4j Nvl Skill

Neo4j Nvl Skill

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

Iwwersiicht

Editeurneo4j
Repositoryagent-skills
Skill-Nummneo4j-nvl-skill
Stären
127
Forks
44
Matgeliwwert Dateien
85
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 85 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    neo4j huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Neo4j Nvl Skill an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/neo4j/agent-skills/tree/main/neo4j-nvl-skill
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-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 nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Neo4j Nvl Skill an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Neo4j Nvl Skill automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Neo4j Nvl Skill net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

An nach 25 weider Dateien.

Heefeg gestallte Froen

Wat mécht de KI-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...

Firwat Neo4j Nvl Skill op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Neo4j Nvl Skill besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Neo4j Nvl Skill an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/neo4j/agent-skills/tree/main/neo4j-nvl-skill an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Neo4j Nvl Skill benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Neo4j Nvl Skill benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Neo4j Nvl Skill domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Neo4j Nvl Skill gratis?

Jo. neo4j huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇