How mtperaya/torbidd works
TORBIDD is a Thai government software-procurement intelligence platform. Vendors browse and filter opportunities, inspect tender details and qualifications, compare historical prices, and receive targeted alerts; ingestion gathers public procurement records and TOR documents for analysis. The graph also preserves authentication, settings, bookmarks, and administration as product capabilities. Source excerpts verify the ingestion orchestrator’s client, extraction, and persistence calls, and several API-to-service calls; other feature wiring is documented at capability level only, so unsampled connections are omitted.
Main entry points: database Database Services · ingestion.service.ts Ingestion Service · projects/route.ts Project API · historical/route.ts Historical API
Components 25
Opportunity Discovery
- Opportunity Browser
torbidd-app/src/app/opportunities/page.tsx - Project API
torbidd-app/src/app/api/projects/route.ts - Procurement API
torbidd-app/src/app/api/procurements/route.ts - Procurement Search
torbidd-app/src/services/procurement-search.ts - Opportunity Details
torbidd-app/src/app/opportunities/[id]/page.tsx - Project Detail API
torbidd-app/src/app/api/projects/[id]/route.ts
Data Ingestion
- Ingestion Routes
torbidd-app/src/app/api/ingestion - Ingestion Service
torbidd-app/src/services/ingestion/ingestion.service.ts - e-GP Client
torbidd-app/src/services/ingestion/clients/egp-client.ts - Gov Data Client
torbidd-app/src/services/ingestion/clients/govspending-client.ts - TOR Document Extractor
torbidd-app/src/services/ingestion/document-extractor.ts - Government Data Sources
AI & Analytics
- AI Classification & Qualification
torbidd-app/src/services/ai - Historical Analytics
torbidd-app/src/app/historical/page.tsx - Historical API
torbidd-app/src/app/api/historical/route.ts - Historical Metrics
torbidd-app/src/lib/historicalAnalytics.ts
User & Alerts
- Authentication
torbidd-app/src/app/api/auth - Saved Opportunities
torbidd-app/src/app/api/bookmarks/route.ts - Notifications & Alerts
torbidd-app/src/app/api/notifications - User Settings
torbidd-app/src/app/api/settings/route.ts
Application Data
- Administration
torbidd-app/src/app/admin/page.tsx - Database Services
torbidd-app/src/services/database - Domain Models
torbidd-app/src/models - Offline Sample Data
torbidd-app/src/lib/initialData.ts
Other components
- Technology Vendor
Connections 30
- Technology Vendor → Opportunity Browser: browses
README.md - Opportunity Browser → Project API: requests projects
- Project API → Database Services: loads projects
torbidd-app/src/app/api/projects/route.ts - Project API → Procurement Search: filters fallback data
torbidd-app/src/app/api/projects/route.ts - Procurement API → Procurement Search: searches fallback data
torbidd-app/src/app/api/procurements/route.ts - Technology Vendor → Opportunity Details: inspects tenders
README.md - Opportunity Details → Project Detail API: requests details
- Project Detail API → Database Services: loads project data
torbidd-app/src/app/api/projects/[id]/route.ts - Technology Vendor → Historical Analytics: compares benchmarks
README.md - Historical Analytics → Historical API: requests history
- Historical API → Database Services: loads records
torbidd-app/src/app/api/historical/route.ts - Historical API → Historical Metrics: calculates metrics
torbidd-app/src/app/api/historical/route.ts - Ingestion Routes → Ingestion Service: dispatches ingestion
- Ingestion Service → e-GP Client: fetches archive data
torbidd-app/src/services/ingestion/ingestion.service.ts - Ingestion Service → Gov Data Client: searches tenders
torbidd-app/src/services/ingestion/ingestion.service.ts - Ingestion Service → TOR Document Extractor: extracts documents
torbidd-app/src/services/ingestion/ingestion.service.ts - Ingestion Service → Database Services: persists records
torbidd-app/src/services/ingestion/ingestion.service.ts - e-GP Client → Government Data Sources: queries e-GP
- Gov Data Client → Government Data Sources: queries open data
- Technology Vendor → AI Classification & Qualification: evaluates qualifications
README.md - Technology Vendor → Authentication: signs in
- Technology Vendor → Saved Opportunities: saves opportunities
- Technology Vendor → Notifications & Alerts: receives tender alerts
README.md - Notifications & Alerts → Database Services: reads notification data
torbidd-app/src/app/api/notifications/route.ts - Technology Vendor → User Settings: updates preferences
- User Settings → Database Services: reads and writes settings
torbidd-app/src/app/api/settings/route.ts - Database Services → Domain Models: uses schemas
- Project API → Offline Sample Data: uses offline fallback
torbidd-app/src/app/api/projects/route.ts - Historical API → Offline Sample Data: uses offline fallback
torbidd-app/src/app/api/historical/route.ts - Administration → Ingestion Routes: manages synchronization