How diamonddavesibs/thermoform-pwa works
Thermoform Layout Optimizer is a browser-based PWA for planning thermoforming mold cavities and estimating material use and part costs. Users enter part, mold, material, and spacing parameters; the app produces a cavity layout, SVG visualization, weight and scrap figures, and optional per-part cost analysis. DXF dimension extraction and embedded FRED PPI trends are documented capabilities, but their implementation details are not shown in the excerpts. The sampled code is concentrated in App.jsx, so several domain responsibilities share that path; no frontend-to-FRED endpoint call is evidenced.
Main entry points: App.jsx Optimizer UI · fred.js FRED proxy · main.jsx React entry
Components 13
Layout workflow
- Optimizer UI
src/App.jsx - Part parameters
src/App.jsx - DXF dimensions
src/App.jsx - Cavity optimizer
src/App.jsx - Layout visualization
src/App.jsx
Material analysis
- Material database
src/App.jsx - Weight and scrap
src/App.jsx - Part cost analysis
src/App.jsx
Data integrations
- Embedded PPI trends
src/App.jsx - FRED proxy
api/fred.js
App runtime
- React entry
src/main.jsx
Other components
- Planner
- FRED service
Connections 11
- Planner → Optimizer UI: enters inputs
README.md - Optimizer UI → Part parameters: collects
README.md - Optimizer UI → DXF dimensions: extracts dimensions
README.md - Optimizer UI → Cavity optimizer: optimizes cavities
README.md - Optimizer UI → Layout visualization: shows layout
README.md - Optimizer UI → Material database: selects material
README.md - Optimizer UI → Weight and scrap: calculates weights
README.md - Optimizer UI → Part cost analysis: estimates cost
README.md - Optimizer UI → Embedded PPI trends: displays trends
README.md - React entry → Optimizer UI: renders
src/main.jsx - FRED proxy → FRED service: fetches observations
api/fred.js