Skip to content
Vicky Patel edited this page Nov 19, 2026 · 5 revisions

Welcome to the SafaiOS Official Wiki

The Intelligence Behind Cleaner Cities
Detect. Act. Verify.

License: MIT Python 3.11 YOLO11s PostgreSQL 17 Supabase Contributions Welcome


🌟 What is SafaiOS?

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.

🧭 Wiki Table of Contents

Navigate the complete SafaiOS technical and operational documentation below:

πŸ›οΈ Architecture & Core Philosophy

  1. Vision & Civic Impact - The urban sanitation crisis, municipal accountability, and civic tech vision.
  2. System Architecture - End-to-end component boundaries, client apps, server API, and database layer.
  3. Computer Vision & YOLO11s - Model evolution (E001-E004), 768px input pipeline, waste taxonomy, and evaluation.
  4. Database & Security Foundation - 16 relational entities, Row-Level Security (RLS), and private storage rules.
  5. Incident Lifecycle & Verification - State machine transitions, proof-of-work evidence, and anti-fraud enforcement.
  6. Safai Coins & Civic Ledger - Idempotent reward transaction architecture and municipal utility redemption.

πŸ› οΈ Developer & Contributor Hub

  1. Contributor Guide & Good First Issues - Start here! Zero-database micro-contributions, 5-30 min tasks, and PR guide.
  2. Local Development & Environment Setup - Complete setup runbook for Windows (WSL 2), macOS, and Linux.
  3. Testing & Quality Gates - Automated test matrix (151 Python suites, pgTAP database tests, db linting).
  4. Troubleshooting & FAQ - Solutions for Docker, WSL, Python environments, and database migrations.

πŸš€ Why Contribute to SafaiOS?

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 .venv without 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!


πŸ” Key Project Specifications

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

Clone this wiki locally