- HTML 37%
- JavaScript 31%
- Rust 20%
- Python 10%
- CSS 2%
- 2 more languages <1%
Badger #
SVG badges, generated with your project and committed with your README.
Badger combines a small Starlark configuration, an embedded Python plugin runtime, and native SVG renderers. Use static text, local test reports, or public provider data without making your readers depend on a live badge API.
Start small #
cargo install --path . --locked
badger badge --label build --status passing --icon badge:check --generator strata --output build.svg
For a project, run badger init, edit badger.star, then run badger run.
Commit the SVGs and README together. Static labels are your assertions; use a
report or provider plugin for measured data.
Call providers directly in configuration: get_edition(),
registry(registry = "npm", package = "react"), or junit(report = "junit.xml").
Badger discovers local providers and resolves matching badgerp-* packages
from PyPI automatically. simple() is the only built-in producer.
For interval-based regeneration, use badger live --interval 60. It updates
local files, not an HTTP server: host or publish those files however you choose.
See Running reliably for
scheduling, stopping and failure behavior.
How it fits together #
badger.star selects producers and styles. Producers return structured entries;
generators turn those entries into SVG. badger run writes owned assets and
updates a balanced <div badges="all"> README placeholder. badger bump ID
refreshes selected assets without editing the README.
Plugin Python is trusted code, not a sandbox. Remote providers can fail;
run and bump retain previous failed outputs while updating successful badges,
then exit nonzero. live logs refresh failures and retries on its next cycle.
Inspect errors and report freshness before publishing.
Develop and document #
uv run --locked --project plugins --group dev pytest plugins -m 'not network' -q
cargo test --workspace --all-targets
badger docs --out public --site-url https://philocalyst.tngl.io/Badger/
mdbook build public
The first Rust build is substantial because the interpreter is embedded.
The Rust toolchain is pinned in rust-toolchain.toml; native CI dependencies
are listed in .tangled/workflows/ci.yml. Edit docs/templates/ and plugin docstrings, not
generated book files. Declared plugin examples are renderable contracts;
fixture tests separately check provider responses.
MIT licensed. Embedded fonts have their own licenses in src/fonts/.