Product
NSG API
Add spatial graph visualization to any product. Generate, store, update, and embed lightweight 3D graph visualizations for nested data, software systems, workflows, and networks.
Use Cases
Show infrastructure topology
Render AI agent orchestration
Visualize trading DAGs
Map code dependencies
Display workflow automation
Explore business operations
Represent blockchain networks
Build custom knowledge graphs
Create live data observability maps
How It Works
Send NSG your graph, repo, or data structure. NSG returns a hosted interactive viewer, embeddable link, and portable .nsg.json representation.
Request
{
"name": "Trading DAG Runtime",
"mode": "nested",
"layers": {
"execution": {
"layoutMode": "flow",
"archetype": "execution_rails",
"nodes": [...],
"edges": [...]
}
}
}Response
{
"graphId": "gph_abc123",
"viewerUrl": "https://nsg.studio/v/abc123",
"embedUrl": "https://nsg.studio/embed/abc123",
"nsgJson": { ... }
}Endpoints
POST
/v1/graphsCreate a hosted NSG graph from a .nsg.json document or graph payload
POST
/v1/import/githubGenerate an NSG project graph from a connected GitHub repository
POST
/v1/repos/:id/refreshRefresh a repo snapshot and generate visual diff metadata
POST
/v1/embedsCreate an embeddable viewer for a graph
Features
Create graphs
Update nodes and edges
Create nested layers
Upload .nsg.json
Import GitHub repos
Refresh graph snapshots
Generate visual diffs
Create shareable links
Embed viewers in external apps
Ready to integrate?
Check out the API documentation to get started.
View API Docs