How team-infiniity/buildcalc works
BuildCalc is a BIM-based construction planning platform; the README identifies IFC component extraction as the current implemented focus. The main workflow is a user creating or selecting a project, submitting an IFC model, extracting component and quantity data, persisting BIM results, and using project, estimation, BOQ, dashboard, advisory, and reporting areas. The graph also preserves these documented UI capabilities, though their implementation details were not all sampled. Frontend-to-backend submission is shown as unverified because the excerpts do not establish its HTTP wiring.
Main entry points: App.tsx Application routes · supabase.ts Frontend Supabase client · ifc.py IFC upload endpoint · ifc_job_processor.py Job processing
Components 28
Workspace and access
- Application routes
frontend/src/App.tsx - Authentication
frontend/src/context/AuthContext.tsx - Project workspace
frontend/src/pages/Projects.tsx - Project creation
frontend/src/components/dashboard/ProjectCreateFlow.tsx
IFC processing
- BIM models
frontend/src/pages/BIMModels.tsx - BIM processing UI
frontend/src/pages/BIMProcessing.tsx - FastAPI application
backend/app/main.py - IFC upload endpoint
backend/app/api/ifc.py - IFC job endpoints
backend/app/api/ifc_jobs.py - Job processing
backend/app/services/ifc_job_processor.py - IFC extraction
backend/app/services/ifc_extractor.py - Geometry quantities
backend/app/services/geometry_extractor.py - Material quantities
backend/app/services/material_quantity_engine.py
Planning and insights
- Dashboard
frontend/src/pages/Dashboard.tsx - Cost estimation
frontend/src/pages/Estimation.tsx - BOQ generation
frontend/src/pages/BOQ.tsx - Construction advisory
frontend/src/pages/Advisory.tsx - Reports
frontend/src/pages/Reports.tsx
Data services
- BIM persistence
backend/app/services/bim_persistence.py - Dashboard data
frontend/src/services/dashboardService.ts - Estimation data
frontend/src/services/estimationService.ts - BOQ data
frontend/src/services/boqService.ts - Advisory data
frontend/src/services/advisoryService.ts - Report data
frontend/src/services/reportService.ts - Backend Supabase client
backend/app/services/supabase_client.py - Frontend Supabase client
frontend/src/lib/supabase.ts
Other components
- Construction user
- Supabase
Connections 39
- Construction user → Application routes: uses
frontend/src/App.tsx - Application routes → Authentication: provides auth
frontend/src/App.tsx - Application routes → Project workspace: routes to
frontend/src/App.tsx - Application routes → BIM models: routes to
frontend/src/App.tsx - Application routes → BIM processing UI: routes to
frontend/src/App.tsx - Application routes → Dashboard: routes to
frontend/src/App.tsx - Application routes → Cost estimation: routes to
frontend/src/App.tsx - Application routes → BOQ generation: routes to
frontend/src/App.tsx - Application routes → Construction advisory: routes to
frontend/src/App.tsx - Application routes → Reports: routes to
frontend/src/App.tsx - Project workspace → Project creation: starts creation
- Project creation → BIM processing UI: opens flow
frontend/src/pages/BIMProcessing.tsx - BIM processing UI → IFC upload endpoint: submits IFC
- FastAPI application → IFC upload endpoint: registers router
backend/app/main.py - FastAPI application → IFC job endpoints: registers router
backend/app/main.py - IFC upload endpoint → IFC extraction: extracts components
backend/app/api/ifc.py - IFC upload endpoint → BIM persistence: persists results
backend/app/api/ifc.py - IFC job endpoints → Job processing: dispatches job
backend/app/api/ifc_jobs.py - Job processing → IFC extraction: extracts model
backend/app/services/ifc_job_processor.py - Job processing → BIM persistence: persists extraction
backend/app/services/ifc_job_processor.py - IFC extraction → Geometry quantities: extracts geometry
backend/app/services/ifc_extractor.py - BIM persistence → Material quantities: calculates quantities
backend/app/services/bim_persistence.py - IFC upload endpoint → Backend Supabase client: persists via
- BIM persistence → Backend Supabase client: uses client
backend/app/services/bim_persistence.py - Job processing → Backend Supabase client: uses client
backend/app/services/ifc_job_processor.py - Backend Supabase client → Supabase: connects to
backend/app/services/supabase_client.py - Authentication → Frontend Supabase client: uses client
frontend/src/context/AuthContext.tsx - Project creation → Frontend Supabase client: uses client
frontend/src/components/dashboard/ProjectCreateFlow.tsx - Frontend Supabase client → Supabase: connects to
frontend/src/lib/supabase.ts - Dashboard → Dashboard data: loads data
frontend/src/pages/Dashboard.tsx - Dashboard data → Frontend Supabase client: queries
frontend/src/services/dashboardService.ts - Cost estimation → Estimation data: uses service
- Estimation data → Frontend Supabase client: queries
frontend/src/services/estimationService.ts - BOQ generation → BOQ data: uses service
frontend/src/pages/BOQ.tsx - BOQ data → Frontend Supabase client: reads and writes
frontend/src/services/boqService.ts - Construction advisory → Advisory data: uses service
frontend/src/pages/Advisory.tsx - Advisory data → Frontend Supabase client: reads and writes
frontend/src/services/advisoryService.ts - Reports → Report data: uses service
- Report data → Frontend Supabase client: queries
frontend/src/services/reportService.ts