How kanigai2005/ip_deploy works
ProtoStruc is an AI-assisted engineering design platform. Users authenticate, create a project from a problem statement, then progress through functional decomposition, morphological analysis, and risk analysis, reviewing or updating each phase. The backend routes phase runs through a LangGraph workflow and persists project and phase data in Supabase. The README also identifies Supabase, JWT authentication, and a responsive dashboard as product capabilities. Some frontend-to-backend wiring and unsampled agent details are not shown, so those links are omitted or marked unverified.
Main entry points: routes.py Project and phase endpoints · auth.py Authentication endpoints · graph.py LangGraph workflow · phase1_functional.py Functional decomposition
Components 28
Engineering dashboard
- Login and registration
frontend/src/app/login/page.tsx - Registration UI
frontend/src/app/register/page.tsx - Auth context
frontend/src/context/AuthContext.tsx - Phase dashboard
frontend/src/app/phases/all/PhasesContent.tsx - Phase page
frontend/src/app/phases/all/page.tsx - Responsive sidebar
frontend/src/components/ui/sidebar.tsx - Button primitive
frontend/src/components/ui/button.tsx - Sheet primitive
frontend/src/components/ui/sheet.tsx
API and identity
- FastAPI application
backend/app/main.py - Authentication endpoints
backend/app/api/auth.py - Project and phase endpoints
backend/app/api/routes.py
Phase orchestration
- Project persistence
backend/app/services/project_service.py - Phase service
backend/app/services/phase_service.py - LangGraph workflow
backend/app/ai/graph.py - Engineering state
backend/app/ai/state.py
Engineering analysis
- Functional decomposition
backend/app/ai/agents/phase1_functional.py - Morphological analysis
backend/app/ai/agents/phase2_morphology.py - Risk analysis
backend/app/ai/agents/phase3_risk.py - Agent validators
backend/app/ai/agents/validators.py - Functional taxonomies
backend/app/ai/tools/taxonomies.py - FMEA knowledge base
backend/app/ai/tools/risk_databases.py
Shared services
- JWT and password security
backend/app/core/security.py - Password reset email
backend/app/core/email.py - API schemas
backend/app/models/schemas.py - Service configuration
backend/app/core/config.py
Other components
- Engineer
- Supabase data store
- Groq language models
Connections 36
- Engineer → Login and registration: signs in
README.md - Engineer → Registration UI: registers
README.md - Engineer → Phase dashboard: reviews phases
README.md - Phase page → Phase dashboard: renders
frontend/src/app/phases/all/page.tsx - Phase dashboard → Project and phase endpoints: calls API
- Login and registration → Auth context: uses auth
- Registration UI → Auth context: uses auth
- Responsive sidebar → Sheet primitive: renders mobile
frontend/src/components/ui/sidebar.tsx - Responsive sidebar → Button primitive: renders toggle
frontend/src/components/ui/sidebar.tsx - FastAPI application → Authentication endpoints: registers router
backend/app/main.py - FastAPI application → Project and phase endpoints: registers router
backend/app/main.py - Authentication endpoints → JWT and password security: hashes and signs
backend/app/api/auth.py - Authentication endpoints → API schemas: validates requests
backend/app/api/auth.py - Authentication endpoints → Password reset email: sends reset email
backend/app/api/auth.py - Authentication endpoints → Supabase data store: reads and writes
backend/app/api/auth.py - Project and phase endpoints → Project persistence: manages projects
backend/app/api/routes.py - Project and phase endpoints → Phase service: runs and updates
backend/app/api/routes.py - Project and phase endpoints → Supabase data store: reads phase data
backend/app/api/routes.py - Project and phase endpoints → API schemas: validates requests
backend/app/api/routes.py - Project persistence → Supabase data store: reads and writes
backend/app/services/project_service.py - Phase service → LangGraph workflow: runs workflow
backend/app/services/phase_service.py - Phase service → Supabase data store: restores and saves
backend/app/services/phase_service.py - LangGraph workflow → Engineering state: uses state
backend/app/ai/graph.py - LangGraph workflow → Functional decomposition: dispatches phase one
backend/app/ai/graph.py - LangGraph workflow → Morphological analysis: dispatches phase two
backend/app/ai/graph.py - LangGraph workflow → Risk analysis: dispatches phase three
backend/app/ai/graph.py - Functional decomposition → Functional taxonomies: uses lookups
backend/app/ai/agents/phase1_functional.py - Functional decomposition → Agent validators: uses result schema
backend/app/ai/agents/phase1_functional.py - Morphological analysis → Agent validators: uses result schema
backend/app/ai/agents/phase2_morphology.py - Risk analysis → FMEA knowledge base: uses risk lookup
backend/app/ai/agents/phase3_risk.py - Risk analysis → Agent validators: uses result schema
backend/app/ai/agents/phase3_risk.py - Functional decomposition → Service configuration: loads model settings
backend/app/ai/agents/phase1_functional.py - Morphological analysis → Service configuration: loads model settings
backend/app/ai/agents/phase2_morphology.py - Risk analysis → Service configuration: loads model settings
backend/app/ai/agents/phase3_risk.py - Service configuration → Supabase data store: creates client
backend/app/core/config.py - Functional decomposition → Groq language models: invokes model
backend/app/ai/agents/phase1_functional.py