Ospobox¶
OSPO in a Box. Know what is happening across the open source you depend on, ship on, and answer for.
In six slides¶
Three questions¶
Most engineering organizations cannot answer these without asking somebody:
- What did my team actually ship last week?
- Is the library we built on still maintained, or did its last maintainer leave in March?
- What did our competitor ship this month?
The work is all in public. The answers are spread across GitHub, GitLab and wherever else your code lives, over several hundred repositories, which makes collecting them no single person's job.
Why another tool¶
| Where you look today | What it will not tell you |
|---|---|
| Platform-native analytics (GitHub Insights) | Anything hosted somewhere else, or any project you do not own |
| Enterprise OSPO analytics (Bitergia, GrimoireLab) | It will tell you everything, once you have an analyst to run it and a cluster to put it on |
| Vulnerability scanners (Snyk, Dependabot) | Whether the project is still alive. A dependency with no advisory and no maintainer passes every check they run |
Ospobox sits in the gap. A fifty-person company should see its open source world as clearly as a fifty-thousand-person one. That takes a tool somebody can set up in an afternoon and then stop thinking about.
Two commitments follow from that, shaping the rest of the product.
The interesting subjects are the ones you do not control. Repositories you administer are table stakes. The dependency you did not write, the upstream that went quiet, the competitor investing in the thing you dismissed: GitHub will not report on those for you. So an organization you merely watch is a first-class subject here, scored by the same arithmetic as one you administer.
The answer should arrive without you. A digest in your inbox on Monday, read in a minute, is worth more than a dashboard you remember to open in March. The dashboard is for the question the digest provokes.
How it works¶
Ospobox reads the platforms your code lives on, scores what it finds, applies rules to the scores, and pushes the result somewhere that can act on it. That loop (collect โ score โ decide โ act) runs on a schedule, with signed delivery at the far end.
Two things about it are unusual.
Every score shows its arithmetic. A number between 0 and 100 is not an answer. Each component states what it counted and in what units, rendered as the scorer wrote it, so a score you disagree with can be argued with group by group. A measurement the platform cannot answer abstains and the rest are reweighted around it, which keeps a SourceHut project comparable with a GitHub one. A repository where nothing can be measured reads not enough data and fires no alert, because zero and unknown are different claims.
Every judgement about the domain is a plugin. Evidence sources, scorers and alert rules are interfaces, loadable from a third-party package's entry points, and the in-tree implementations load through the same registry with no privileges of their own. Read Extension points and check the claim.
What you get¶
| Where it reads | GitHub, GitLab, Codeberg and SourceHut, through one adapter interface, synced on a schedule or on demand |
| Health scores | Out of 100, from the metric groups CHAOSS publishes, with the arithmetic shown and stars counted nowhere |
| Alert rules | Inactivity, low health, a sharp health drop, an activity collapse, a PR backlog, an issue backlog. Filed once, until acknowledged |
| Trends | Week-over-week deltas on commits, PRs, issues and releases, at the overview, organization and repository level |
| A dashboard | Overview, organization and repository pages, comparison of up to four organizations, and search across the lot |
| Reports | Built from the sections you choose, exported as Markdown, HTML or PDF, scheduled daily, weekly or monthly to people who never log in |
| Briefings | What changed, in prose, written from the commit diffs. Needs an LLM configured; nothing else here does |
| Portfolio | Repositories group into projects, with the people, the effort and an optional cost per project. See where the effort goes |
| AI attribution | The share of commits crediting a coding agent, per project, read from co-authorship trailers. It is a floor, and says so |
| Supply chain | A CycloneDX SBOM scored against OSV or AboutCode's VulnerableCode, keyed by package URL, on append-only evidence |
| Webhooks and an API | Five signed event types with retries and a delivery log, plus a REST API over the same ground |
| Operations | /health, Prometheus metrics, structured logs, optional Sentry, Docker, and the security work listed in Configuration |
What it will not do¶
- It is not a security scanner. Snyk and Dependabot exist, and this complements them. They ask whether a version is vulnerable; Ospobox asks whether the project behind it is alive.
- It is not a code quality tool. SonarQube exists.
- It is not infinitely configurable. GrimoireLab exists, with thirty data sources and a cluster to run them. This one is opinionated, with a handful of platforms done well.
- It is not a developer performance tool. Ospobox assesses the work and names who did it. It does not score, rank or compare people, and that is a design boundary rather than an unbuilt feature. The reasoning is recorded in the repository's own planning notes, at
notes/plan-portfolio.mdยง4.
Quick start¶
git clone https://git.sr.ht/~sfermigier/ospobox
cd ospobox
make install # dependencies, via uv
cp .env.example .env # then edit it
make migrate # the app does not create tables
make run # web + worker
Then open http://localhost:8000, and First steps takes it from there.
Development mode
With DEBUG=true you can log in as admin@admin / admin. The backdoor is disabled whenever debug is off.
To watch the whole loop run end to end (collect, score, alert, signed delivery, actuation) the demo/ directory has a runbook, a receiver that verifies signatures, and a supply-chain script.
Reading these docs¶
Everything described in plain prose runs today. Anything not yet built is marked:
Planned
It is designed and specified, and awaits implementation. The roadmap says where it sits.
Research
It belongs to the Software Health Control Plane proposal, which is funded work with partners that this repository has not committed to. See Architecture.
Where to go next¶
| If you want to | Read |
|---|---|
| Run it | Installation, then Configuration |
| Get a first organization syncing | First steps |
| Do a particular job with it | Guides |
| Understand how it is built | Architecture |
| Integrate or extend it | API reference, Extension points |
| Know what is coming | Roadmap |
Stack¶
| Component | Technology |
|---|---|
| Web framework | Litestar |
| Database | PostgreSQL (prod), SQLite (dev and tests) |
| ORM | SQLAlchemy 2.x, async |
| Background jobs | SAQ |
| Plugins | Pluggy, over two surfaces: platform adapters and chassis extensions |
| Frontend | HTMX + Alpine.js + Tailwind CSS |
| Optional | Any OpenAI-compatible API for summaries, Sentry, WeasyPrint |
Built on¶
Ospobox keys every package fact by package URL, and parses them with packageurl-python, the reference implementation. Both come from AboutCode, whose tools sit on either side of the supply-chain loop:
| Project | Where it fits | License |
|---|---|---|
| packageurl-python | Parsing and normalizing purl subjects |
Apache-2.0 |
| VulnerableCode | An advisory evidence source beside OSV | Apache-2.0 (software), CC-BY-SA-4.0 (data) |
| PurlDB | Project health for a package, which Ospobox cannot compute without a credential for wherever it is hosted | Apache-2.0 (software), CC-BY-SA-4.0 (data) |
| ScanCode.io | Resolving a manifest into the SBOM this ingests | Apache-2.0 |
Advisory data comes with its own terms: VulnerableCode's is CC-BY-SA-4.0, so anything you redistribute from it needs attribution and the same license. Ospobox ships none of that data; queries fetch it into your own evidence store.
License¶
Open source. See the LICENSE file.