How pvbgeek/ai-based-system-design-builder works
This is a browser-based system-design builder with a Flask-backed AI generation path. Users describe requirements by typing or speaking, request a generated design, and see its components and connections on the canvas; they can also build or edit a design manually. The README additionally documents deletion and predefined architecture components. The excerpts support the API and canvas interactions shown below; template wiring and some UI details are not sampled, so those relationships are omitted.
Main entry points: api.js Generation client · main.py Generate endpoint · mic.js Speech input · graph.js Component palette
Components 12
Design authoring
- Speech input
static/scripts/mic.js - Requirement input
static/scripts/api.js - Component palette
static/scripts/graph.js
AI generation
- Generation client
static/scripts/api.js - Generate endpoint
code/main.py - Design generator
code/main.py - Design JSON
code/main.py
Graph canvas
- Graph processor
static/scripts/api.js - Graph canvas
static/scripts/graph.js - Connection editor
static/components/build_path.js
Other components
- User
- OpenAI service
Connections 15
- User → Speech input: speaks into
README.md - Speech input → Requirement input: fills
static/scripts/mic.js - User → Requirement input: enters requirements
README.md - User → Component palette: selects components
README.md - Requirement input → Generation client: submits
static/scripts/api.js - Generation client → Generate endpoint: posts JSON
static/scripts/api.js - Generate endpoint → Design generator: calls
code/main.py - Design generator → OpenAI service: requests design
code/main.py - Design generator → Design JSON: produces JSON
code/main.py - Generate endpoint → Generation client: returns JSON
code/main.py - Generation client → Graph processor: passes response
static/scripts/api.js - Graph processor → Graph canvas: creates components
static/scripts/api.js - Graph processor → Connection editor: creates arrows
static/scripts/api.js - User → Connection editor: builds or deletes
README.md - Component palette → Graph canvas: adds components
static/scripts/graph.js