Properties3
Is BaseNo
Icon
Order
3The obsidian-graph module is responsible for the interactive graph visualization features.
Architecture
- Extraction: During build time,
obsidian-transformextracts all links from files and saves them to.nuxt/extracted-links.json. - API: This module adds a server route
/api/graphthat serves this JSON data. - Visualization: The frontend
ForceGraphcomponent fetches this data to render the D3-based graph.
API Endpoint
GET /api/graph
Returns a JSON object representing the graph:
{
"nodes": [
{ "id": "/page-1", "title": "Page 1" }
],
"links": [
{ "source": "/page-1", "target": "/page-2" }
]
}