Flowchart-Viewer

A browser-based viewport designed to read and display interactive, high-resolution structural diagrams. Version 2.0 also includes Text-to-Speech (TTS) to read contextual system stories. Markdown files (in the diagrams folder) store the graph layouts (Mermaid.js syntax) and system stories.

🔹 Version 1.0 — Static Interactive Canvas

flowchart-viewer-1.0

The initial foundational tier focused purely on micro-precision browser graphics and canvas manipulation layers.


🔸 Version 2.0 — Decoupled Story Viewport

flowchart-viewer-2.0

The architecture introduces an asynchronous content parser and a localised audio runtime engine to turn architectural models into accessible stories.

🛠️ File Structure & Labeled Properties

To feed data into the viewport matrix, your external text documents (stored inside the diagrams/ folder) must wrap configuration lines inside explicit delimiters. This keeps data assets readable by humans and cleanly sliceable by the computer.

The Standard Document Schema:

title: "Your Perspective Title Here",
text: `<p>First paragraph of your perspective story essay...</p>
<p>Second paragraph of your story context...</p>`,
code: `flowchart TD
  A[Your Structural Node] --> B[Your Next Connecting Layer]`


🚀 Setting Up Your Own Diagram Journey

1. Replicate the Structure

Fork or clone this repository to your local studio workplace environment, ensuring your file paths align with the template variables:

├── index.html
├── diagrams/
│   ├── system-overview.md
│   └── system-journey.md
└── assets/

2. Isolate Your Content

Open the diagrams/ folder, duplicate a template file, and format your specific metrics inside the title:, text:, and code: parameters shown in the schema above.

3. Align the Application Matrix

Open viewer-2.0.html, navigate to the perspectives data matrix inside the script tags, and link your file destination properties directly to the paths of the new documents:

const perspectives = {
  journey: {
    title: "Your Custom Journey View",
    file: "diagrams/your-custom-journey.md",
    text: "<p>Baseline fallback text for first-time loads...</p>"
  }
};

4. Deploy Your Viewport

Commit your changes and push the directory assets to a static hosting platform (such as GitHub Pages). The script engine will automatically execute its asynchronous lookups and serve your interactive diagram matrix globally.