System Architecture
The three-layer design that balances trust and speed.
Decarbonize uses a hybrid, three-layer architecture: blockchain for trust, a database for speed, and a React application layer that ties them together.
Frontend (React/Vite) → Hooks & Contexts → API layer → Supabase DB → Blockchain
Three-layer flow
- Blockchain layer: asset tokenization (ERC-3643), permissioning, escrow attestation, governance pools, order book / AMM.
- Database layer (Supabase): off-chain state, preferences, compliance logs, document metadata, and cached chain events.
- Application layer: React components driven by custom hooks and contexts; a DB-backed config service loads contract addresses at runtime.