Sovereign Legal Intelligence Platform for the Kenya Data Protection Act.
# Sheria AI
> **Offline-First Legal AI Assistant for Kenyan Law**
Sheria AI is a privacy-focused, offline-first legal intelligence platform designed specifically for Kenyan legal practitioners. Built with complete data sovereignty and DPA 2019 compliance at its core.
## π Key Features
- π **100% Offline Operation** - No internet required, complete data sovereignty
- π‘οΈ **DPA 2019 Compliant** - Automatic PII redaction and compliance assessment
- β‘ **High Performance** - FastAPI backend with async processing
- π¨ **Modern UI** - Beautiful React interface with Tailwind CSS
- π³ **Docker Ready** - Easy deployment with Docker Compose
- π°πͺ **Kenya-Focused** - Specialized for Kenyan legal system
- π **Compliance Assessment** - Automated DPA 2019 compliance evaluation
## π Quick Start
### Prerequisites
- Docker & Docker Compose (recommended)
- OR Python 3.11+ and Node.js 20+ (for local development)
### Using Docker (Recommended)
1. Clone the repository:
```bash
git clone
cd Sheria_AI
```
2. Start all services:
```bash
docker-compose up
```
3. Access the application:
- **Frontend**:
localhost
- **Backend API**:
localhost
- **API Documentation**:
localhost
### Local Development
#### Backend Setup
```bash
cd backend
pip install -r requirements.txt
uvicorn main:app --reload
```
#### Frontend Setup
```bash
cd frontend
npm install
npm run dev
```
## π Project Structure
```
Sheria_AI/
βββ backend/ # FastAPI backend
β βββ app/
β β βββ api/
β β β βββ routes/ # API endpoints
β β β βββ health.py # Health monitoring
β β β βββ compliance.py # DPA 2019 assessment
β β βββ schemas/ # Pydantic v2 models
β β βββ health.py # Health check schemas
β β βββ compliance.py # Legal entity & compliance models
β βββ test_examples/ # Example API requests
β βββ main.py # Application entry point
β βββ requirements.txt # β¦