A production-grade, offline-first medicine discovery platform for Egypt.
Sahla (سهلة)
A production-grade, offline-first medicine discovery platform for Egypt.
🚀 Quick Start •
📖 Documentation •
🏗 Architecture •
📚 Technical Decisions (ADR)
---
## 📖 The Story
In Egypt, finding a specific, critical medication during a shortage often turns into a desperate, hours-long journey. Patients and their families are forced to physically travel from one pharmacy to another, asking the same question over and over, hoping the next store has what they need. Meanwhile, pharmacies lack a centralized, low-friction way to broadcast their available stock without relying on complex, constantly connected enterprise systems that fail during internet outages.
**Sahla changes this.**
Sahla is an open-source health-tech infrastructure platform that acts as a real-time information layer. It connects patients searching for crucial medications with local pharmacies that currently have them in stock. By strictly omitting e-commerce, delivery, and Point-of-Sale (POS) features, Sahla's architecture is fiercely optimized for search speed, geo-spatial proximity, and offline resilience at the pharmacy counter.
---
## 📸 Platform
| Patient Search (Web/Mobile) | Pharmacy Stock Management (Desktop) |
| :---: | :---: |
| | |
---
## 🏗️ Architecture & Tech Stack
Sahla is built as a modern monorepo, sharing types and business logic across highly specialized clients.
```mermaid
graph TD
Client[Web/Mobile App] -->|REST / GraphQL| Supabase[(Supabase)]
Supabase -->|Sync| Desktop[Tauri Desktop App]
Desktop -->|Local SQLite| LocalDB[(Offline Stock)]
```
- **Frontend (Web):** Next.js 16 (App Router), React, Tailwind CSS
- **Frontend (Mobile):** Expo / React Native
- **Desktop Client:** Tauri (Rust), React, Vite, SQLite (`tauri-plugin-sql`)
- **Backend & Database:** Supabase (PostgreSQL), PostGIS, Row Level Security (RLS)
- **Monorepo Management:** `npm` workspaces
> **Dive Deeper:** Read our System Architecture and our Architecture Decision Records …