Commercial solar design platform for Egypt that turns rooftop inputs into optimized system scenarios, financial analysis, and proposal-ready designs.
# TaqatySolarDesign
Architecture scaffolding for:
- Phase 1: foundation auth, roles, and project lifecycle
- Phase 2: product catalog + pricing + compatibility
- Phase 3: geospatial intake + roof analysis
- Phase 4: layout, stringing, and feasibility scoring
- Phase 5: performance yield and financial evaluation
- Phase 6: proposal generation and PDF export orchestration
- Phase 7: AI advisor question flow and recommendation ranking
- Phase 8: QA, reliability, and cost governance
- Phase 9: continuous optimization, feedback loops, and localization
## MVP now available
The repo now includes an executable MVP workflow in src/lib/mvp.ts that:
- evaluates multiple panel and inverter scenarios against a roof polygon
- runs performance and finance modeling for each scenario
- ranks scenarios with the advisor scoring flow
- selects a recommended design
- generates proposal-ready HTML
- runs QA and budget governance checks on the selected output
Use the included sample runner in examples/mvp.ts.
## Web app now available
The repo now also includes a Vercel-ready Next.js App Router surface:
- src/app/page.tsx renders the internal design console
- src/components/design-console.tsx handles intake, result rendering, and proposal preview
- src/app/api/design/route.ts exposes a thin API over the shared MVP engine
- src/lib/designRequest.ts validates web intake payloads and maps them into the existing domain workflow
Current web scope:
- intake form for a commercial rooftop opportunity
- scenario ranking from predefined equipment options
- economics and proposal summary
- embedded proposal HTML preview
- local API surface suitable for future persistence and external clients
## Files
- `db/migrations/0000_phase1_foundation.sql`
- `db/migrations/0001_phase2_catalog.sql`
- `db/migrations/0002_phase3_geospatial.sql`
- `db/migrations/0003_phase4_design_engine.sql`
- `db/migrations/0004_phase5_performance_finance.sql`
- `db/migrations/0005_phase6_proposals.sql`
- `db/migrations/00 …