AI-powered Legal Document Platform for Madagascar
# 🔐 Antoka
**AI-Powered Legal Document Platform for Madagascar**
Features • Tech Stack • Getting Started • Documentation • Contributing
---
## 📖 About
Antoka is a decentralized platform that combines **artificial intelligence** and **blockchain technology** to democratize access to legal documents in Madagascar. We automate legal document generation, detect abusive clauses, enable blockchain-backed electronic signatures, and provide instant verification—all while supporting offline functionality for low-connectivity areas.
### 🎯 Mission
Reduce fraud, accelerate administrative processes, and provide verifiable proof instantly to establish lasting trust between citizens, businesses, and administrations.
### 🌍 Context
In Madagascar, document falsification, identity theft, and lack of reliable proofs slow down contracts, recruitment, and public procedures, costing time and money while increasing inequalities in access to rights.
---
## ✨ Features
### 🤖 AI-Powered Document Generation
- Generate legal documents compliant with Malagasy law from natural language input
- Dual AI strategy: Ollama (local) + Gemini API (cloud fallback)
- Response time target:
---
## 🛠️ Tech Stack
### Backend Services
- **Runtime:** Node.js 18+ with TypeScript
- **Framework:** Express.js
- **Database:** Supabase (PostgreSQL) with Row Level Security
- **Authentication:** Supabase Auth with MFA support
### AI & ML
- **Local Generation:** Ollama (privacy-first, offline-capable)
- **Cloud Fallback:** Google Gemini API
- **Clause Detection:** TensorFlow.js with custom models
- **Translation:** Bilingual support (French/Malagasy)
### Blockchain
- **Primary:** Hedera Testnet (Consensus Service)
- **Fallback:** Polygon Testnet
- **SDKs:** @hashgraph/sdk, ethers.js
### Frontend
- **Framework:** React 18 with TypeScript
- **State:** Redux Toolkit / Zustand
- **UI:** Material-UI / TailwindCSS
- **PWA:** Workbox for offline support
- **Real-time:** Socket.io for WebSocket
## …