Logo di Neo4j Nvl Skill

Neo4j Nvl Skill

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

Panoramica

Pubblicato daneo4j
Repositoryagent-skills
Nome della skillneo4j-nvl-skill
Stelle
127
Fork
44
File inclusi
85
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 85

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da neo4j su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Neo4j Nvl Skill in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/neo4j/agent-skills/tree/main/neo4j-nvl-skill
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Neo4j Nvl Skill in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Neo4j Nvl Skill non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Neo4j Nvl Skill non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

e 25 file in più.

Domande frequenti

Cosa fa la skill IA 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...

Perché usare Neo4j Nvl Skill su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Neo4j Nvl Skill è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Neo4j Nvl Skill in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/neo4j/agent-skills/tree/main/neo4j-nvl-skill. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Neo4j Nvl Skill?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Neo4j Nvl Skill?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Neo4j Nvl Skill: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Neo4j Nvl Skill è gratuita?

Sì. È pubblicata su GitHub da neo4j con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇