前端开发

neo4j-nvl-skill

neo4j-contrib/n…j-skills

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 (ZoomInteraction, PanInteraction, DragNodeInteraction, ClickInteraction, HoverInteraction, BoxSelectInteraction, LassoInteraction, KeyboardInteraction), 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, wiring node/relationship click/hover/drag handlers, or embedding NVL in React, Vite, or vanilla JS apps. Does NOT handle Cypher query authoring — use neo4j-cypher-skill. Does NOT handle driver lifecycle, sessions, or executeQuery setup — use neo4j-driver-javascript-skill. Does NOT handle GraphVisualization/Needle default embed — use @neo4j-ndl/react.

  • 736 次安装
  • 118 星标
  • 收录于

安装命令

npx skills add https://github.com/neo4j-contrib/neo4j-skills --skill neo4j-nvl-skill

SKILL.md

When to Use

  • Rendering a Neo4j graph in a browser (vanilla JS, React, Vite) with custom interactions, rendering, or data shapes
  • Visualizing driver.executeQuery results as an interactive graph
  • Wiring zoom, pan, drag, click, hover, lasso, or box-select interactions
  • Embedding NVL inside an existing app and synchronizing graph state

When NOT to Use

  • Pre-styled embedded graph view with default behavior, no custom interactions → GraphVisualization from @neo4j-ndl/react (Neo4j Needle / NDL design system) — wraps NVL with default Neo4j styling. See Use NVL or the Needle Component? below.
  • Python / Jupyter notebook graph visualization → neo4j/python-graph-visualization (the Python port of NVL)
  • Writing/optimizing Cypher → neo4j-cypher-skill
  • Driver setup / executeQuery / sessions → neo4j-driver-javascript-skill
  • Server-side data fetching with no rendering → neo4j-driver-javascript-skill
  • GDS algorithm execution → neo4j-gds-skill or neo4j-aura-graph-analytics-skill
  • GraphQL API → neo4j-graphql-skill

Use NVL or the Needle Component?