forsgren
Measure the five DORA metrics for a set of GitHub repositories, from GitHub data, and publish them as a small static status page.
Named after Dr. Nicole Forsgren, whose research with DORA (and the book Accelerate, with Jez Humble and Gene Kim) defined the first four of these metrics.
The five DORA metrics
forsgren shows each metric as its DORA band next to the figures it comes from,
for every project. The definitions, with the rulings behind them, are in
Pages and views. The numbers count back over the
last 30 days, or over 90 or 180 days when dora_days in the config says so.
Deployment frequency answers how often you ship to users. The page shows its band with the number of successful deployments of the last 30 days: "Between once per day and once per week · 12".
Lead time for changes answers how long a commit takes to reach users. The page shows its band with the median and the number of commits of the last 30 days: "Less than one hour · 17 min (37)".
Failed deployment recovery time answers how long it takes, when a deployment fails and needs immediate intervention, until a successful one recovers it. The page shows its band with the median and the number of recoveries: "Less than one day · 3 h (2)".
Change fail rate answers what share of deployments causes a failure users hit. The page shows its band with the rate and the failed changes: "20% · 15% (2 of 13)".
Deployment rework rate answers what share of deployments is unplanned, made to fix a problem users hit. The page shows its band with the rate and the rework deployments: "20% · 14% (1 of 7)".
Two TBD metrics
Mainline Lead Time answers how long a commit takes to reach the main branch: the time from its author date until it lands on main, over every commit that reached main, pushed directly or merged through a pull request.
Mainline Interval answers how often changes land on the main branch: the time between one commit pushed to the main branch and the next on the main line, deployed or not.
What it produces
- the current value of each metric, per service
- the history in
data/(deployments, commits, failure issues and issue events), which the metrics are calculated from - a static page with the metrics table in three views (standard, numbers,
scoring), a Numbers and scoring page (each metric's number and score in
one cell), the Issues and Daily pages with their Lead time and Bugs lead
time columns and their Open and Open bugs columns with trend arrows, a History page in beta (each metric's number
and score per half-year and for the last 6 months, with a trend chart per
row), a Week page (the deployments, failed deployments and fail rate of each weekday, and the commits when
week_commitsis true), and the Settings, Legend and Dictionary pages, safe to publish: numbers and dates only, no issue titles, no links into private repositories. Each of the four optional pages has a key that takestrue(in the menu),unlisted(generated, no menu entry, noindex) orfalse(not generated); by default Issues is listed, Daily is not generated, and Numbers and scoring and History are unlisted
A live example
forsgren measures itself, and publishes the page at https://forsgren.forsgren.be.
This README is also the project page, forsgren.be: it is rendered to one page and published on every change to it; see CI.
Installing
An installation is a data repository of your own (private when it measures
private repositories), made from the
forsgren-template
repository. It keeps your forsgren.config.yml and its data/, runs forsgren
once a day from a one-line workflow pin, and publishes the page on GitHub Pages.
Its README.md is forsgren's: the daily run rewrites it for the version it
runs, so a hand edit there is overwritten.
Create it from the template and follow the template's own README, or point an AI
coding agent at agent-installer.md: it asks what only you
can decide and creates your data repository from the template step by step.
Each new forsgren release then arrives as a Dependabot pull request.
For an existing installation that is behind the latest release, or has
automatic updates switched off, point a coding agent at
agent-upgrade.md: you give it the address of your current
report, and it finds the rest, reads what each release asks of you, and asks
only what is yours to decide. To remove an installation, its page, its custom
domain and its history, point a coding agent at
agent-delete.md: it shows you what will go and deletes
nothing before you reply with the go it asks for.
Configuration
Every forsgren.config.yml key is described in docs/configuration.md.
Documentation
- Getting started: a short page for a new contributor.
- Configuration: every
forsgren.config.ymlkey, and running forsgren from an installation's workflow. - Pages and views: the five metrics in full, the page and its views, what each cell means, and privacy.
- Dictionary: what each term and each number on the pages means, and where it comes from.
- Data files: how forsgren gets its data, the
data/*.csvformats, and collecting deployments. - Hand-off pipelines: measuring deployments when a workflow only hands off to a system outside GitHub (a CD tool, a mobile pipeline).
- iOS releases: recording an iOS app's App Store releases as production deployments, with TestFlight uploads kept out.
- Dependabot merge policy: a reusable workflow that merges the Dependabot updates a repository allows, once its checks are green.
- Updating and releases: the setup issue, auto-update, Dependabot and installing a new version.
- Agents: three files a coding agent follows with you, installing (agent-installer.md), upgrading, including new settings (agent-upgrade.md), and deleting an installation (agent-delete.md).
- Development: working on forsgren, the tools and their pins, the data guard.
- Quality gates: every gate FBP and CI run, and what each one checks.
- Gate classification: each gate required, not applicable or a documented exception.
- CI: what runs on GitHub, the metrics workflow for installations, and how a red row maps to a local run.
Status
The bootstrap is done (forsgren#1, 2026-10-02): the build, the gates, CI
and these docs. Since then collect reads GitHub into the history file:
the deployments of the configured projects and the commits they shipped.
The page shows each project's deployment frequency, lead time for
changes, failed deployment recovery time, change fail rate and deployment
rework rate. Installations start from the forsgren-template
repository and take each new release as a Dependabot pull request. forsgren
is open source, under EUPL-1.2 (see Licence).
Licence
forsgren is licensed under the European Union Public Licence v. 1.2 (EUPL-1.2): see LICENSE. Contributions are accepted under the same licence, with a Developer Certificate of Origin sign-off on every commit by a person and no CLA; a registered automation identity is exempt and signs nothing: see CONTRIBUTING.md.
Security
Report a vulnerability privately, never in a public issue: see SECURITY.md.
This project follows the Code of Conduct.