Repository navigation
Home
SafaiOS is a next-generation open-source Civic Waste Intelligence & Municipal Operating System. It bridges the gap between citizens, municipal sanitation fleets, and urban administrators by pairing cutting-edge computer vision with a zero-trust, server-authoritative database foundation.
Unlike legacy municipal reporting portals where complaints disappear into bureaucratic black holes, SafaiOS introduces verifiable proof-of-work cleanup protocols:
- Real-Time AI Detection: Automated waste localization and material categorization powered by a customized YOLO11s backbone trained on 10,000+ audited images.
- Deterministic Fleet Dispatch: Automated dispatch and routing for sanitation drivers with single-active-assignment enforcement.
- Dual-Actor Visual Verification: Before-and-after photographic evidence verified directly by the reporting citizen, with automated 7-day administrative escalation.
- Anti-Fraud Security: Strict disqualification preventing cleanup performers from verifying their own work under any circumstance.
- Civic Incentives: Idempotent Safai Coins minted to citizens upon confirmed cleanup verification.
Navigate the complete SafaiOS technical and operational documentation below:
- Vision & Civic Impact - The urban sanitation crisis, municipal accountability, and civic tech vision.
- System Architecture - End-to-end component boundaries, client apps, server API, and database layer.
-
Computer Vision & YOLO11s - Model evolution (
E001-E004), 768px input pipeline, waste taxonomy, and evaluation. - Database & Security Foundation - 16 relational entities, Row-Level Security (RLS), and private storage rules.
- Incident Lifecycle & Verification - State machine transitions, proof-of-work evidence, and anti-fraud enforcement.
- Safai Coins & Civic Ledger - Idempotent reward transaction architecture and municipal utility redemption.
- Contributor Guide & Good First Issues - Start here! Zero-database micro-contributions, 5-30 min tasks, and PR guide.
- Local Development & Environment Setup - Complete setup runbook for Windows (WSL 2), macOS, and Linux.
- Testing & Quality Gates - Automated test matrix (151 Python suites, pgTAP database tests, db linting).
- Troubleshooting & FAQ - Solutions for Docker, WSL, Python environments, and database migrations.
SafaiOS is built with high engineering craft and is deliberately designed to be one of the most welcoming open-source projects on GitHub:
- β‘ Zero-Database Local Testing: Run the complete 151-suite Python regression matrix immediately in
.venvwithout needing a local database or cloud account. - π― Laser-Focused Micro-Issues: Contributor tasks are cleanly scoped to single files with concrete acceptance criteria and zero ambiguity.
- ποΈ Fast Review Turnaround: Core maintainers prioritize first-time contributor pull requests with a target turnaround under 48 hours.
- π Real Civic Impact: Your code contributes directly to cleaner streets, transparent governance, and environmental sustainability.
π Ready to get started? Head over to our Contributor Guide & Good First Issues to pick your first task!
| Attribute | Specification |
|---|---|
| Repository | TheVicky1/Safai_OS |
| Primary Languages | Python 3.11, PL/pgSQL, TypeScript / SQL |
| Vision Model | Ultralytics YOLO11s (768px, conf 0.25, NMS IoU 0.60) |
| Dataset Scale |
SafaiOS_Dataset_v10k (10,000+ curated street waste images) |
| Taxonomy Classes | Plastic Bottle, Wrapper/Bag, Paper/Cardboard, Glass, Metal Can |
| Database Engine | PostgreSQL 17 (Supabase local stack) |
| Security Coverage | Row-Level Security (RLS) enabled on 100% of tables |
| Automated Test Matrix | 151 Python unit tests + 24 pgTAP database authorization tests |
| License | MIT License |
SafaiOS - The Intelligence Behind Cleaner Cities.
Main Repository Β· Issue Tracker Β· Discussions
- π Vision & Civic Impact
- ποΈ System Architecture
- π€ Computer Vision & YOLO11s
- ποΈ Database & Security Foundation
- π Incident Lifecycle & Verification
- πͺ Safai Coins & Civic Ledger
- π± Contributor Guide & Issues
- π» Local Development Setup
- π§ͺ Testing & Quality Gates
- π§ Troubleshooting & FAQ