ποΈ Architecture Overview
The Rahat Platform is a modular and extensible foundation for building humanitarian aid and financial inclusion projects using blockchain. It provides a common infrastructure layer that handles identity, authorization, wallet provisioning, transaction coordination, and communicationsβallowing individual projects to focus solely on their domain-specific logic.
π Platform + Projects Modelβ
At a high level, the architecture follows a platform + projects model:
π’ Rahat Platform
- Provides core services and interfaces that power the ecosystem
- Manages fundamental infrastructure components
- Ensures security and reliability
π Projects
- Act like independent microservices
- Built on top of the platform
- Each represents a specific use case (e.g., cash assistance, anticipatory action, voucher distribution)
π€ Platform and Project Relationshipβ
Rahat is designed to support multiple types of projects running concurrently within the same environment. These projects share common infrastructure but can have different flows, rules, and modules.
π‘ Key Features
-
The platform handles:
- π Authentication
- π Wallet management
- βοΈ Blockchain orchestration
- π Data indexing
-
Projects capabilities:
- π Consume platform services
- π§© Inherit shared components
- βοΈ Implement custom logic
- π¨ Create unique interfaces
ποΈ Architecture Structure (WIP)β
The following diagram illustrates the high-level architecture of the Rahat platform and its core components.
The Platform Core acts as the central gateway and foundation for the entire Rahat ecosystem. All client applications (frontend, mobile) and external integrations connect through the Platform Core, which then coordinates with various microservices and smart contracts to fulfill requests.
π― Design Principlesβ
Principle | Description |
---|---|
π§© Modularity | Projects are plug-and-play; reuse or extend platform services |
π¨ Customizability | Build and deploy your own project types using Rahat SDK and APIs |
π Scalability | Onboard new projects without modifying the core platform |
π Separation of Concerns | Core platform manages infrastructure; projects manage business logic |
π» Technology Stackβ
π§ Backendβ
- Runtime: Node.js with Nest.js framework
- Database: Prisma ORM for efficient data operations
- API Style: RESTful + GraphQL endpoints
π¨ Frontendβ
- Framework: Next.js with Shadcn
- State Management: Zustand
- UI/UX: Modern, responsive design
ποΈ Data Layerβ
- Database: PostgreSQL
- Caching: Redis
- Message Queue: RabbitMQ
βοΈ Blockchainβ
- Networks:
- EVM-compatible chains
- Stellar
- Features: Smart contracts, wallets, transactions
π± Mobileβ
- Framework: Ionic
- Platform: Cross-platform support
- Integration: Native blockchain features
Want to learn more about implementing specific features or integrating with the platform? Check out our Development Guide.