Diagram Reading Companion
Help an educator turn an authored SVG diagram and an explicit node-edge manifest into a keyboard-navigable explanation. Check that referenced nodes exist, expose branches and cycles, let the author review the reading order, and export an accessible HTML walkthrough plus graph JSON.
A navigable HTML diagram walkthrough and a reviewed graph manifest
- TypeScript Typed local transformations and portable browser interfaces run with Node standard libraries.
Diagram Reading Companion in 4 stages
Give a diagram an inspectable reading order and explanation.
Load an SVG and validate declared nodes and edges
loadDiagram(svg: string, value: unknown): {svg:string;graph:Graph}
starter · ~2 hours · TypeScript
Load an SVG and validate declared nodes and edgesCompute branches, cycles and candidate reading order
analyzeGraph(graph: Graph): Analysis
core · ~2 hours · TypeScript
Compute branches, cycles and candidate reading orderReview explanations and reading order
reviewGraph(graph: Graph, value?: unknown): {schemaVersion:1;graph:Graph;order:string[];reviewed:boolean}
core · ~2 hours · TypeScript
Review explanations and reading orderExport the navigable walkthrough and graph data
renderWalkthrough(svg:string, review:ReturnType<typeof reviewGraph>):string
stretch · ~2 hours · TypeScript
Export the navigable walkthrough and graph data