{"id":51197211,"url":"https://github.com/nazarli-shabnam/clevis","last_synced_at":"2026-06-27T21:31:23.546Z","repository":{"id":348227303,"uuid":"1190534712","full_name":"nazarli-shabnam/clevis","owner":"nazarli-shabnam","description":"Open-source github security and maintenance tool","archived":false,"fork":false,"pushed_at":"2026-06-08T14:04:30.000Z","size":365,"stargazers_count":100,"open_issues_count":3,"forks_count":6,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-08T15:24:23.852Z","etag":null,"topics":["github","github-maintenance","github-management","github-management-tool","github-security"],"latest_commit_sha":null,"homepage":"https://clevis.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nazarli-shabnam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-24T11:29:48.000Z","updated_at":"2026-06-08T13:35:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a3230bd-c4cb-4354-b6ea-0ba1e35d0719","html_url":"https://github.com/nazarli-shabnam/clevis","commit_stats":null,"previous_names":["devlaner/clevis","nazarli-shabnam/clevis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nazarli-shabnam/clevis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazarli-shabnam%2Fclevis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazarli-shabnam%2Fclevis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazarli-shabnam%2Fclevis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazarli-shabnam%2Fclevis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nazarli-shabnam","download_url":"https://codeload.github.com/nazarli-shabnam/clevis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazarli-shabnam%2Fclevis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34869004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","github-maintenance","github-management","github-management-tool","github-security"],"created_at":"2026-06-27T21:31:22.307Z","updated_at":"2026-06-27T21:31:23.534Z","avatar_url":"https://github.com/nazarli-shabnam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Clevis\n\n### Analytics and security insight for GitHub repositories and organizations.\n\n\u003cbr/\u003e\n\n[![CI](https://img.shields.io/github/actions/workflow/status/nazarli-shabnam/clevis/ci.yml?style=for-the-badge\u0026logo=githubactions\u0026logoColor=white\u0026label=CI)](https://github.com/nazarli-shabnam/clevis/actions/workflows/ci.yml)\n[![CodeQL](https://img.shields.io/github/actions/workflow/status/nazarli-shabnam/clevis/codeql.yml?style=for-the-badge\u0026logo=github\u0026logoColor=white\u0026label=CodeQL)](https://github.com/nazarli-shabnam/clevis/actions/workflows/codeql.yml)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-a855f7?style=for-the-badge)](LICENSE)\n[![Self-host](https://img.shields.io/badge/Self--host-Docker_Compose-2496ED?style=for-the-badge\u0026logo=docker\u0026logoColor=white)](#self-host)\n\n\u003cbr/\u003e\n\n**Clevis turns the GitHub API into a dashboard.** Track repository activity, audit organization security posture, and run privileged maintenance jobs — from a single, dense, self-hosted control panel.\n\n\u003c/div\u003e\n\n---\n\n## What it does\n\n| Area | Description |\n|------|-------------|\n| **Overview** | At-a-glance stats across your repositories and organization. |\n| **Activity** | Repository and org event streams pulled from the GitHub API. |\n| **Repositories** | Browse and inspect repositories with their key signals in one place. |\n| **Health \u0026 Security** | A computed **security score** backed by automated checks — **MFA enforcement**, **branch protection**, and **secret scanning** — each with pass/fail status and remediation guidance. |\n| **Collaborators** | See who has access across the surface you manage. |\n| **Automation** | Run privileged maintenance jobs (e.g. clearing GitHub Actions caches) with **dry-run** support and a full **audit trail**. |\n\nEvery privileged action is recorded in an immutable audit log, and long-running work is dispatched to a background worker through a Postgres-backed job queue.\n\n---\n\n## Architecture\n\nClevis is three independently deployable services around one shared check library:\n\n| Component | Stack | Responsibility |\n|-----------|-------|----------------|\n| **`apps/api`** | FastAPI · SQLAlchemy 2 · Alembic | REST backend — auth, analytics, RBAC, and job enqueueing. |\n| **`apps/worker`** | Python · psycopg3 | Polls the job queue (`SELECT … FOR UPDATE SKIP LOCKED`) and executes GitHub API tasks. Scales to multiple replicas safely. |\n| **`apps/ui`** | Next.js 15 · React 19 · TanStack Query | The dashboard — dense, dark, keyboard-friendly. |\n| **`packages/checks`** | `clevis-checks` (Python) | The security-check engine (MFA, branch protection, secret scanning) with built-in GitHub pagination. |\n\n**Security model:** RBAC is enforced per route (`viewer` / `analyst` / `admin`). GitHub tokens are **never stored persistently** — they are Fernet-encrypted when a job is enqueued and decrypted only at processing time. Every request carries a propagated `X-Request-ID` for traceability.\n\n---\n\n## Built with\n\n\u003cdiv align=\"center\"\u003e\n\n![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge\u0026logo=python\u0026logoColor=white)\n![FastAPI](https://img.shields.io/badge/FastAPI-009688?style=for-the-badge\u0026logo=fastapi\u0026logoColor=white)\n![PostgreSQL](https://img.shields.io/badge/PostgreSQL-4169E1?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white)\n![SQLAlchemy](https://img.shields.io/badge/SQLAlchemy-D71F00?style=for-the-badge\u0026logo=sqlalchemy\u0026logoColor=white)\n\u003cbr/\u003e\n![Next.js](https://img.shields.io/badge/Next.js_15-000000?style=for-the-badge\u0026logo=next.js\u0026logoColor=white)\n![React](https://img.shields.io/badge/React_19-20232A?style=for-the-badge\u0026logo=react\u0026logoColor=61DAFB)\n![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?style=for-the-badge\u0026logo=typescript\u0026logoColor=white)\n![Tailwind CSS](https://img.shields.io/badge/Tailwind_v4-38B2AC?style=for-the-badge\u0026logo=tailwind-css\u0026logoColor=white)\n![Docker](https://img.shields.io/badge/Docker-2496ED?style=for-the-badge\u0026logo=docker\u0026logoColor=white)\n\n\u003c/div\u003e\n\n---\n\n## Self-host\n\n**Prerequisites:** Docker + Docker Compose.\n\n```bash\ngit clone https://github.com/nazarli-shabnam/clevis\ncd clevis\ncp .env.example .env        # fill in every variable — none have defaults\ndocker compose up --build -d\n```\n\nThen open the UI at **`http://localhost:3000`**.\n\n\u003e [!IMPORTANT]\n\u003e **CI secret required.** The Python test job needs a `JOB_SECRET_KEY` repository secret\n\u003e (*GitHub → Settings → Secrets and variables → Actions*). Generate one with `openssl rand -hex 32`.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eLocal development (without Docker)\u003c/b\u003e\u003c/summary\u003e\n\n```bash\n# One-time setup\ncp .env.example .env\npip install -r apps/api/requirements.txt\npip install -r requirements-test.txt\npip install -e packages/checks\ncd apps/ui \u0026\u0026 npm install\n```\n\nRun each service in its own terminal:\n\n```bash\ndocker compose up db                              # Postgres\ncd apps/api \u0026\u0026 alembic upgrade head \u0026\u0026 uvicorn src.main:app --reload   # API  → :8080\ncd apps/ui \u0026\u0026 npm run dev                          # UI   → :3000\ncd apps/worker \u0026\u0026 python src/worker.py             # worker (optional)\n```\n\nRun the tests:\n\n```bash\npytest -q                 # Python (hits a real Postgres; transaction-isolated)\ncd apps/ui \u0026\u0026 npm run check   # UI: typecheck + lint + build\n```\n\nSee [`CLAUDE.md`](CLAUDE.md) for full architecture and configuration notes.\n\n\u003c/details\u003e\n\n---\n\n## CI / CD\n\nCI runs on **every pull request** and on **pushes to any branch**, verifying:\n\n- UI TypeScript typecheck + production build\n- Python source compilation\n- Docker image builds for `api`, `worker`, and `ui`\n\nOn version tags (`v*`), images are published to the GitHub Container Registry so others can self-host without building from source:\n\n```\nghcr.io/\u003cowner\u003e/clevis-api\nghcr.io/\u003cowner\u003e/clevis-worker\nghcr.io/\u003cowner\u003e/clevis-ui\n```\n\n[CodeQL](https://github.com/nazarli-shabnam/clevis/actions/workflows/codeql.yml) scans the codebase for security issues on a schedule.\n\n---\n\n## Contributing\n\nContributions are welcome. Please read [`CONTRIBUTING.md`](CONTRIBUTING.md) first — commits follow [Conventional Commits](https://www.conventionalcommits.org/) (enforced via commitlint), and the design language for any UI work is documented in [`DESIGN.md`](DESIGN.md).\n\nFound a security issue? Please follow the [security policy](SECURITY.md) rather than opening a public issue.\n\n## License\n\nReleased under the [GNU General Public License v3.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazarli-shabnam%2Fclevis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnazarli-shabnam%2Fclevis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazarli-shabnam%2Fclevis/lists"}