How koushik0404/ag-prototype works
Godam is a storage-discovery and booking application, with a web client and FastAPI backend. The user journey covers finding a warehouse or cold store, preparing and confirming a reservation, paying its advance, and obtaining a receipt; an AI assistant supports the booking journey. The graph includes documented backend calls and frontend screens, while links whose wiring was not shown are marked dashed or omitted. Several listed capabilities, including voice, loans, and authentication, are represented from the repository tree but their runtime connections were not sampled.
Main entry points: main.py FastAPI app · router.tsx Storage workflow UI · payments/service.py Payment service · bookings/service.py Booking service
Components 32
Web client
- Storage workflow UI
frontend/src/app/router.tsx - Home screen
frontend/src/features/home/home.screen.tsx - Store search screen
frontend/src/features/stores/stores.screen.tsx - Booking screen
frontend/src/features/booking/booking.screen.tsx - PIN screen
frontend/src/features/pin/pin.screen.tsx - Receipt screen
frontend/src/features/receipt/receipt.screen.tsx - Voice assistant UI
frontend/src/features/ai-voice/ai-voice.screen.tsx - API client
frontend/src/lib/api.ts
API platform
- FastAPI app
backend/app/main.py - SQL database
backend/app/core/database.py - Database dependency
backend/app/core/deps.py - Authentication
backend/app/modules/auth
Storage discovery
- Store service
backend/app/modules/stores/service.py - Store repository
backend/app/modules/stores/repository.py - Store records
backend/app/modules/stores/models.py - Store API
backend/app/modules/stores/router.py
Booking transactions
- Booking API
backend/app/modules/bookings/router.py - Booking service
backend/app/modules/bookings/service.py - Booking repository
backend/app/modules/bookings/repository.py - Payment service
backend/app/modules/payments/service.py - Payment API
backend/app/modules/payments/router.py - Payment provider
backend/app/modules/payments/provider.py - Receipt service
backend/app/modules/receipts/service.py - Receipt API
backend/app/modules/receipts/router.py - Receipt repository
backend/app/modules/receipts/repository.py - Loans
backend/app/modules/loans
Assistant and voice
- Agent API
backend/app/modules/agent/router.py - Agent conversation
backend/app/modules/agent/service.py - Confirmation session
backend/app/modules/agent/session.py - Agent tools
backend/app/modules/agent/tools.py - Voice processing
backend/app/modules/voice/service.py
Other components
- Farmer
Connections 35
- Farmer → Storage workflow UI: uses
frontend/src/app/router.tsx - Storage workflow UI → Home screen: shows
- Storage workflow UI → Store search screen: shows
- Storage workflow UI → Booking screen: shows
- Storage workflow UI → Receipt screen: shows
- Storage workflow UI → API client: requests
- Voice assistant UI → API client: requests
- FastAPI app → Store API: registers
backend/app/main.py - FastAPI app → Booking API: registers
backend/app/main.py - FastAPI app → Payment API: registers
backend/app/main.py - FastAPI app → Receipt API: registers
backend/app/main.py - FastAPI app → Agent API: registers
backend/app/main.py - FastAPI app → SQL database: initializes
backend/app/main.py - FastAPI app → Store service: seeds
backend/app/main.py - Store API → Store service: calls
backend/app/modules/stores/router.py - Store service → Store repository: queries
backend/app/modules/stores/service.py - Store repository → Store records: reads
backend/app/modules/stores/repository.py - Booking API → Booking service: calls
backend/app/modules/bookings/router.py - Booking service → Booking repository: persists
backend/app/modules/bookings/service.py - Booking service → Store service: reserves space
backend/app/modules/bookings/service.py - Payment API → Payment service: calls
backend/app/modules/payments/router.py - Payment service → Booking service: gets booking
backend/app/modules/payments/service.py - Payment service → Payment provider: charges
backend/app/modules/payments/service.py - Payment service → SQL database: stores payment
- Receipt API → Receipt service: calls
backend/app/modules/receipts/router.py - Receipt service → Booking service: gets booking
backend/app/modules/receipts/service.py - Receipt service → Store service: gets store
backend/app/modules/receipts/service.py - Receipt service → Receipt repository: persists
backend/app/modules/receipts/service.py - Agent API → Agent conversation: calls
backend/app/modules/agent/router.py - Agent conversation → Confirmation session: tracks confirmation
backend/app/modules/agent/service.py - Agent conversation → Agent tools: dispatches tools
backend/app/modules/agent/service.py - Booking screen → PIN screen: continues to
- PIN screen → Payment API: submits payment
- Receipt API → Payment service: payment prerequisite
- Voice assistant UI → Voice processing: voice API