
Graph Viewer
Copies a React hook and WebGL graph renderer into your Flows app so you can visualize CDF data model instances with their relations. You call useGraphViewer with a space, model ID, and instance, then drop the GraphCanvas component into a sized container. It fetches direct relations and optionally reverse relations through the Cognite SDK, rendering nodes and edges with reagraph. The main gotcha is cost: each expansion can fire multiple CDF queries, so the docs push you to whitelist only the relation properties you need and cap the connection limit. Good for embedding knowledge graphs in Dune apps, not for generic diagrams or non-CDF data.
- skills.sh installs
- 1.9K
- GitHub stars
- 6
- last updated
- Aug 21, 2026
Install
$ npx -y skills add cognitedata/builder-skills --skill graph-viewer --agent claude-codeInstalls into .claude/skills of the current project.
Files
Graph Viewer
Use This When
The user wants to embed an interactive graph of a CDF data model — nodes, direct relations, edges, and reverse relations — inside a Flows app.
Do not use this skill for static diagrams, pure dataflow visualizations, or non-CDF graphs.
Prerequisites
- The app is wrapped in
@cognite/dune's<DuneProvider>souseDune()returns an authenticated SDK. - The target data model exists in CDF and you know its
space,externalId, andversion. - The app uses React 18+ and TypeScript.
Integration Workflow
Follow these steps in order. Adapt to the target repo's conventions instead of inventing new ones.
Sponsors
Details
- Repository
- github.com/cognitedata/builder-skills
- Categories
- AI & Agent Building, Data Science & ML
- First seen
- Jun 3, 2026
More from cognitedata/builder-skills
All 26- Setup Flows Auth1.9K
- Performance1.9K
- Create Client Tool1.9K
- Pull Changes Resolve Conflicts1.9K
- Use Topbar1.9K
- Migrate App To Flows1.7K
- Integrate Fusion Agent1.7K
- Flows Code Review1.6K
- Flows Design Review1.1K
- Flows App Brief1.1K
- Flows External App Submit1.1K
- Flows App Review298
- Skill Creator2.5K
- Code Quality2K
- Test Coverage1.9K
- Dependencies Audit1.9K
- Design1.9K
- Reveal 3d1.9K
- Integrate Todo List1.9K
- Correctness And Error Handling1.9K
- Dm Limits And Best Practices1.9K
- Integrate Atlas Chat1.9K
- Integrate File Viewer1.9K
- Security1.9K