LEVEL 2 · BUILDER

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.

4 stages~8 hoursTypeScriptcore
YOU END UP WITH

A navigable HTML diagram walkthrough and a reviewed graph manifest

WHY THESE LANGUAGES
  • TypeScript Typed local transformations and portable browser interfaces run with Node standard libraries.
PROJECT OUTLINE

Diagram Reading Companion in 4 stages

Give a diagram an inspectable reading order and explanation.

  1. 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 edges
  2. Compute branches, cycles and candidate reading order

    analyzeGraph(graph: Graph): Analysis

    core · ~2 hours · TypeScript

    Compute branches, cycles and candidate reading order
  3. Review 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 order
  4. Export 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

Build these projects first

All projects · Course catalog · Source on GitHub