How rahataid/rahat-platform works
Rahat is a modular platform backend for managing projects, beneficiaries, and related services, with shared SDK and wallet libraries plus blockchain indexing/contracts. A typical workflow enters through the Rahat API, reaches project orchestration, and invokes project actions; beneficiary operations are handled by a separate message-driven service. The tree and index show major capabilities such as grievances, communications, notifications, OTP, off-ramping, vendors, queues, and wallet management, but their internal links are not all sampled. Arrows below use shown calls or indexed references; unsampled subsystem links are omitted.
Main entry points: beneficiary/beneficiary.controller.ts Beneficiary Handlers · beneficiary/beneficiary.controller.ts Beneficiary API · project.controller.ts Project API · project.service.ts Project Orchestration
Components 27
Platform Core
- Project API
apps/rahat/src/projects/project.controller.ts - Project Orchestration
apps/rahat/src/projects/project.service.ts - Project Actions
apps/rahat/src/projects/actions - App API
apps/rahat/src/app/app.controller.ts - App Settings
apps/rahat/src/app/app.service.ts
Beneficiary Management
- Beneficiary API
apps/rahat/src/beneficiary/beneficiary.controller.ts - Import Parser
apps/rahat/src/beneficiary/parser/index.ts - Beneficiary Service
apps/beneficiary/src/beneficiary/beneficiary.service.ts - Beneficiary Handlers
apps/beneficiary/src/beneficiary/beneficiary.controller.ts - Beneficiary Statistics
apps/beneficiary/src/beneficiary/beneficiaryStat.service.ts - Verification
apps/beneficiary/src/beneficiary/verification.service.ts
Platform Integrations
- Wallet Interceptor
apps/rahat/src/beneficiary/interceptor/wallet.interceptor.ts - Wallet Management
apps/rahat/src/wallet/wallet.service.ts - Grievances
apps/rahat/src/grievance/grievance.service.ts - Vendors
apps/rahat/src/vendors/vendors.service.ts - Communications
apps/rahat/src/comms/comms.service.ts - Notifications
apps/rahat/src/notification - OTP Claims
apps/rahat/src/otp - Off-ramp
apps/rahat/src/offramp - Queue Services
apps/rahat/src/queue/queue.service.ts - Graph Indexers
apps/graph/src - Token Contracts
libs/contracts/src/lib/contracts.ts
Shared Libraries
- Wallet Library
libs/wallet/src - API SDK Clients
libs/sdk/src/clients - Statistics Library
libs/stats/src - Subgraph Queries
libs/subgraph/src/lib
Other components
- Project Operator
Connections 16
- Project Operator → Project API: submits requests
README.md - Project API → Project Orchestration: delegates
apps/rahat/src/projects/project.controller.ts - Project Orchestration → Project Actions: dispatches actions
apps/rahat/src/projects/project.service.ts - Project Operator → Beneficiary API: manages beneficiaries
- Beneficiary API → Import Parser: parses imports
apps/rahat/src/beneficiary/beneficiary.controller.ts - Beneficiary API → Beneficiary Handlers: sends commands
apps/rahat/src/beneficiary/beneficiary.controller.ts - Beneficiary Handlers → Beneficiary Service: delegates operations
apps/beneficiary/src/beneficiary/beneficiary.controller.ts - Beneficiary Handlers → Beneficiary Statistics: requests statistics
apps/beneficiary/src/beneficiary/beneficiary.controller.ts - Beneficiary Handlers → Verification: requests links
apps/beneficiary/src/beneficiary/beneficiary.controller.ts - App API → App Settings: delegates
apps/rahat/src/app/app.controller.ts - Wallet Interceptor → Wallet Management: uses wallet service
apps/rahat/src/beneficiary/interceptor/wallet.interceptor.ts - Wallet Management → Wallet Library: uses wallet library
- API SDK Clients → App API: calls app endpoints
libs/sdk/src/clients/app.client.ts - Grievances → Project Operator: supports case handling
- Vendors → Project Operator: supports vendor workflows
- Communications → Project Operator: supports messaging