How arun-232007/gram-biz-ai works
SIH-PS-9 is a guided business and credit-readiness platform for entrepreneurs. Users move through business assessment and financial planning, then access matched loan schemes and supporting reports, guides, roadmaps, and monthly tracking. The repository contains duplicate frontend and backend trees; this map uses the fuller frontend/ client and the documented app/ API tree. The assessment route’s calls are visible, but most page-to-API and route-to-service wiring is unsampled, so those relationships are omitted or marked unverified.
Main entry points: App.jsx Web workspace · main.py FastAPI service · assessment.py Assessment endpoint · Assessment.jsx Assessment
Components 28
Entrepreneur workspace
- Web workspace
frontend/src/App.jsx - Assessment
frontend/src/pages/Assessment.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Loan schemes
frontend/src/pages/LoanSchemes.jsx - Reports
frontend/src/pages/Reports.jsx - Business plan
frontend/src/pages/BusinessPlan.jsx - Business guide
frontend/src/pages/BusinessGuide.jsx - Marketing plan
frontend/src/pages/MarketingPlan.jsx - Growth roadmap
frontend/src/pages/Roadmap.jsx - Monthly tracker
frontend/src/pages/MonthlyTracker.jsx
API and assessment
- FastAPI service
app/main.py - Assessment endpoint
app/routes/assessment.py - Chat endpoint
app/routes/chatbot.py - Business endpoint
app/routes/business.py - Financial endpoint
app/routes/financial.py - Monthly endpoint
app/routes/monthly_plan.py
Business analysis
- Financial calculation
app/services/financial_engine.py - Scheme matching
app/services/scheme_router.py - Business report
app/services/report_service.py - Market insights
app/services/market_service.py - AI service
app/services/ai_service.py
Planning support
- Monthly planning
app/services/monthly_plan_service.py - Cost analysis
backend/app/services/ai_engine/cost_engine.py - Loan calculations
backend/app/services/ai_engine/loan_engine.py - Revenue estimates
backend/app/services/ai_engine/revenue_engine.py - Scenario analysis
backend/app/services/ai_engine/scenario_engine.py - Database
app/database/database.py
Other components
- Entrepreneur
Connections 21
- Entrepreneur → Web workspace: uses
frontend/src/App.jsx - Web workspace → Assessment: renders
frontend/src/App.jsx - Web workspace → Dashboard: renders
frontend/src/App.jsx - Web workspace → Loan schemes: renders
frontend/src/App.jsx - Web workspace → Reports: renders
frontend/src/App.jsx - Web workspace → Business plan: renders
frontend/src/App.jsx - Web workspace → Business guide: renders
frontend/src/App.jsx - Web workspace → Marketing plan: renders
frontend/src/App.jsx - Web workspace → Growth roadmap: renders
frontend/src/App.jsx - Web workspace → Monthly tracker: renders
frontend/src/App.jsx - FastAPI service → Assessment endpoint: registers
app/main.py - FastAPI service → Chat endpoint: registers
app/main.py - FastAPI service → Business endpoint: registers
app/main.py - FastAPI service → Financial endpoint: registers
app/main.py - FastAPI service → Monthly endpoint: registers
app/main.py - Assessment endpoint → Financial calculation: calculates
app/routes/assessment.py - Assessment endpoint → Scheme matching: matches scheme
app/routes/assessment.py - Assessment endpoint → Business report: builds report
app/routes/assessment.py - Assessment → Assessment endpoint: submits assessment
- Loan schemes → Assessment endpoint: uses assessment results
- FastAPI service → Database: accesses