How michiod/knowledge-graph works
This is a browser-based knowledge-graph editor, rather than the generic React/Vite template described by the README. The principal workflow is to open the editor, create and connect typed math nodes, and save graph state through the Go API to SQLite. The frontend also supports node expansion, editing, erasing, undo/redo, and graph layout. Source excerpts show the save request and rendering relationship; the initial load behavior is not sufficiently visible to map confidently.
Main entry points: App.tsx Graph editor · main.tsx React entry point · main.go Graph API · MathNode.tsx Math node renderer
Components 6
Graph editor
- React entry point
src/main.tsx - Graph editor
src/App.tsx - Math node renderer
src/MathNode.tsx
Persistence API
- Graph API
backend/main.go
Graph storage
- SQLite graph state
backend/graph.db
Other components
- Editor user
Connections 5
- Editor user → React entry point: opens
src/main.tsx - React entry point → Graph editor: mounts
src/main.tsx - Graph editor → Math node renderer: renders
src/App.tsx - Graph editor → Graph API: saves graph
src/App.tsx - Graph API → SQLite graph state: reads and writes
backend/main.go