Repository navigation
Contributor Guide and Good First Issues
Whether you are an aspiring open-source contributor, a computer vision researcher, a backend engineer, or a technical writer, SafaiOS is built for you:
- β‘ Zero-Database Friction: Run the full application test suite and all 151 automated tests locally in under 10 seconds without needing a cloud account or local database.
- π― Scored Micro-Contributions: Our beginner issues are intentionally scoped into tiny, single-file tasks (5 to 30 minutes of work) with exact file pointers and step-by-step acceptance criteria.
- π Fast Maintainer Turnaround: First-time contributor pull requests receive priority review from core maintainers (target turnaround under 48 hours).
- ποΈ Permanent Attribution: Every merged pull request is permanently acknowledged in the repository and celebrated in release notes.
- π Civic & Social Good: Your contributions directly power software that keeps urban streets clean, safe, and transparent.
Follow this streamlined workflow to submit your first contribution:
Look for issues labeled good first issue or help wanted.
Leave a short comment on the issue (e.g., "I'd like to work on this issue! Please assign it to me."). A maintainer will assign it to you so work isn't duplicated.
Fork the repository to your own GitHub account and clone it to your local machine:
git clone https://github.com/<your-username>/Safai_OS.git
cd Safai_OSCreate a descriptive branch pointing to your issue:
git checkout -b fix/issue-14-bounding-box-docSet up your virtual environment and verify existing tests:
python -m venv .venv
# Windows (PowerShell):
.\.venv\Scripts\Activate.ps1
# Linux / macOS:
source .venv/bin/activate
pip install -e ".[dev]"
pytest tests/ -vMake the minimal, clean code or documentation edits required by your issue.
Ensure the test suite passes with zero regressions:
pytest tests/ -vCommit your changes using Conventional Commits and push to your fork:
git commit -m "docs(taxonomy): clarify glass bottle container boundary examples"
git push origin fix/issue-14-bounding-box-docThen visit GitHub and click Compare & pull request! Link your issue in the description (e.g., Closes #14).
Below are example self-contained micro-contributions ideal for first-time contributors:
| Issue ID | Area | Target File | Scope of Work | Difficulty |
|---|---|---|---|---|
| GFI-01 | Documentation | docs/API.md |
Add JSON schema example for /api/v1/detect with 5 sample output boxes. |
Easy (15 min) |
| GFI-02 | Test Utilities | tests/test_detection_boxes.py |
Add unit test verifying that bounding boxes with zero width raise a clean ValueError. | Easy (20 min) |
| GFI-03 | Python Package | src/safaios/utils.py |
Add a helper function format_confidence_percentage(conf: float) -> str. |
Easy (15 min) |
| GFI-04 | Documentation | docs/DEPLOYMENT.md |
Add hardware requirement table comparing Raspberry Pi 5 vs Jetson Orin Nano. | Easy (20 min) |
| GFI-05 | Python Logging | src/safaios/logger.py |
Add ISO-8601 UTC timestamp formatting in standard JSON log output. | Easy (25 min) |
| GFI-06 | Test Coverage | tests/test_dataset_validator.py |
Add test asserting invalid class IDs (> 4) trigger immediate rejection. | Easy (20 min) |
| GFI-07 | Documentation | docs/ARCHITECTURE.md |
Add latency benchmark comparison table across CPU vs GPU vs TensorRT. | Easy (25 min) |
| GFI-08 | SQL / Database | supabase/tests/ |
Add pgTAP test asserting notification read timestamps cannot be set in the future. | Medium (35 min) |
SafaiOS is committed to providing a welcoming, inclusive, and harassment-free environment for everyone. All contributors and participants are expected to adhere to our Code of Conduct.
- π¬ Ask in Discussions: Have questions or need guidance? Open a thread on GitHub Discussions.
- π·οΈ Labels: Check our issue labels to find tasks matching your skillset (
good first issue,documentation,python,computer-vision,sql).
- π 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