đ Architecture Overview¶
This document outlines the overall technical architecture of Darukaa.earth â our AIâpowered digital MRV platform for carbon, biodiversity, and natureârisk insight. It helps every team member visualise how the pieces fit together across environments, from data ingestion to credit issuance.
đ System Components¶
Darukaa is composed of the following major components:
| Component | Description | Tech Stack | Repository |
|---|---|---|---|
| Marketing Website | Publicâfacing brand site | Astro + Tailwind CSS | Darukaa.earth |
| Web Application | Main ESG & natureâdata dashboard for clients | React (Vite) + TypeScript | Product |
| Backend API | Core business logic, auth, and data services | FastAPIÂ +Â PostgreSQL | Product_backend |
| Credit Engine / EcoâAI Models | AI layer that converts raw signals to auditable credits & TNFD metrics | Python (PyTorch) + Vertex AI | Part of backend repo |
| Cloud Functions | Eventâdriven tasks (reports, email, ML batch jobs) | Python (GCF) | In backend repo |
| CI/CD Pipelines | Automated build & deploy via GCP | GitHub Actions + Cloud Build | GitHub |
đ Data Flow (Ingest â Analyse â Serve)¶
- Ingest â satellite, UAV imagery, bioacoustics, sensor & community data land in GCS buckets or Pub/Sub topics.
- Analyse â the Credit Engine runs species detection, habitat quality, carbon stock estimation, and natureârisk scoring.
- Serve â results are exposed via the Backend API to the Web App, TNFD/TCFD report generator, and creditâminting workflows.
đ Environments¶
| Layer | Staging | Production |
|---|---|---|
| Web App | https://staging.darukaa.com | https://app.darukaa.com |
| API | https://api.staging.darukaa.com | https://api.darukaa.com |
| Marketing | â | https://www.darukaa.earth |
| Assets (GCS) | gs://darukaaâstagingâassets | gs://darukaaâprodâassets |
| DB instance | darukaaâstaging (Cloud SQL) | darukaaâprod (Cloud SQL) |
Each environment has isolated services, databases, and secrets to avoid crossâenvironment interference.
đ§© High-Level Diagram¶
TBD
Hosting & Infrastructure¶
-
Cloud Provider: Google Cloud Platform (GCP)
-
Static Assets: Hosted via Cloud Storage + CDN
-
Compute: Cloud Run (API), Cloud Functions
-
Secrets Management: GCP Secret Manager
-
Database: Cloud SQL (PostgreSQL)
-
Monitoring: Cloud Monitoring, Cloud Logging