How srinath-205/structureai works
This is a browser-based structural steel base-plate design application. An engineer enters project, code, loading, column, plate, concrete, and anchor details through a staged workflow; optional text parsing can populate design inputs. The calculation step evaluates design checks, and the results step presents checks and a diagram and supports report export. The graph shows the workflow and sampled calculation calls; several input pages and calculation modules are represented from the tree and SOURCE INDEX, so their internal behavior is not inferred.
Main entry points: Index.tsx Workflow selector · designStore.ts Design state · index.ts Calculation dispatch · StepCalculate.tsx Run calculations
Components 27
Design workflow
- Workflow selector
src/pages/Index.tsx - Project setup
src/pages/StepProject.tsx - Design code
src/pages/StepDesignCode.tsx - Text input
src/pages/StepNLP.tsx - Input parser
src/lib/nlp/parser.ts - Load inputs
src/pages/StepLoads.tsx - Column inputs
src/pages/StepColumn.tsx - Base-plate inputs
src/pages/StepBasePlate.tsx - Concrete inputs
src/pages/StepConcrete.tsx - Anchor inputs
src/pages/StepAnchors.tsx - Design state
src/stores/designStore.ts - Run calculations
src/pages/StepCalculate.tsx
Engineering calculations
- Section library
src/lib/sections/aisc-sections.ts - Calculation dispatch
src/lib/calculations/index.ts - Load checks
src/lib/calculations/load.ts - Bearing checks
src/lib/calculations/bearing.ts - Plate checks
src/lib/calculations/baseplate.ts - Anchor checks
src/lib/calculations/anchors.ts - Weld checks
src/lib/calculations/weld.ts - Supplemental checks
src/lib/calculations
Results and records
- Design results
src/pages/StepResults.tsx - Plate diagram
src/components/features/BasePlateDiagram.tsx - Report generator
src/lib/report/generator.ts - Calculation history
src/components/features/CalculationHistory.tsx
Application interface
- App routing
src/App.tsx - App layout
src/components/layout/AppLayout.tsx
Other components
- Engineer
Connections 38
- Engineer → App routing: opens application
- App routing → Workflow selector: routes to
src/App.tsx - Workflow selector → Project setup: selects step
src/pages/Index.tsx - Workflow selector → Design code: selects step
src/pages/Index.tsx - Workflow selector → Text input: selects step
src/pages/Index.tsx - Workflow selector → Load inputs: selects step
src/pages/Index.tsx - Workflow selector → Column inputs: selects step
src/pages/Index.tsx - Workflow selector → Base-plate inputs: selects step
src/pages/Index.tsx - Workflow selector → Concrete inputs: selects step
src/pages/Index.tsx - Workflow selector → Anchor inputs: selects step
src/pages/Index.tsx - Workflow selector → Run calculations: selects step
src/pages/Index.tsx - Workflow selector → Design results: selects step
src/pages/Index.tsx - Text input → Input parser: parses text
src/pages/StepNLP.tsx - Input parser → Section library: looks up sections
src/lib/nlp/parser.ts - Column inputs → Section library: offers section library
src/pages/StepColumn.tsx - Project setup → Design state: updates inputs
- Design code → Design state: updates inputs
- Text input → Design state: updates inputs
src/pages/StepNLP.tsx - Load inputs → Design state: updates inputs
src/pages/StepLoads.tsx - Column inputs → Design state: updates inputs
src/pages/StepColumn.tsx - Base-plate inputs → Design state: updates inputs
- Concrete inputs → Design state: updates inputs
- Anchor inputs → Design state: updates inputs
src/pages/StepAnchors.tsx - Run calculations → Design state: reads inputs
src/pages/StepCalculate.tsx - Run calculations → Calculation dispatch: runs checks
src/pages/StepCalculate.tsx - Calculation dispatch → Load checks: calls checks
src/lib/calculations/index.ts - Calculation dispatch → Bearing checks: calls checks
src/lib/calculations/index.ts - Calculation dispatch → Plate checks: calls checks
src/lib/calculations/index.ts - Calculation dispatch → Anchor checks: calls checks
src/lib/calculations/index.ts - Calculation dispatch → Weld checks: dispatches checks
src/lib/calculations/index.ts - Calculation dispatch → Supplemental checks: dispatches checks
src/lib/calculations/index.ts - Run calculations → Design state: stores results
src/pages/StepCalculate.tsx - Design results → Design state: reads results
src/pages/StepResults.tsx - Design results → Plate diagram: renders diagram
src/pages/StepResults.tsx - Design results → Report generator: exports report
src/pages/StepResults.tsx - App layout → Calculation history: renders history
src/components/layout/AppLayout.tsx - Calculation history → Design state: reads history
src/components/features/CalculationHistory.tsx - Workflow selector → App layout: renders within
src/pages/Index.tsx