🚀 Beta: All Pro and Team features are free. Install on GitHub →

API Stability Badges

Show your API's stability grade in your README. Communicate breaking change frequency and governance health to consumers at a glance.

Example Badges

CodeRifts generates a stability grade (A through F) based on how frequently your API introduces breaking changes and how well it follows governance policies. The badge updates automatically on every pull request.

API StabilityA — Excellent
API StabilityB — Good
API StabilityC — Fair
API StabilityD — Poor
API StabilityF — Unstable

What the grades mean

Grade Meaning Breaking Changes (last 30 days)
AExcellent stability. Safe to depend on.0
BGood stability. Minor changes only.1–2
CFair. Some breaking changes detected.3–5
DPoor. Frequent breaking changes.6–10
FUnstable. High risk for consumers.10+

How to Embed

Once CodeRifts is installed on your repository, the stability badge is automatically generated. Add it to your README with one of the following formats:

Markdown

![API Stability](https://app.coderifts.com/badge/{owner}/{repo}.svg)

HTML

<img src="https://app.coderifts.com/badge/{owner}/{repo}.svg" alt="API Stability" />

With link to report

[![API Stability](https://app.coderifts.com/badge/{owner}/{repo}.svg)](https://app.coderifts.com/report/{owner}/{repo})

Replace {owner} and {repo} with your GitHub organization and repository name.

Agent Readiness Badge

A Shields-style SVG badge that reports an OpenAPI document’s agent-readiness heuristic score from 0 to 100. It measures spec structure for agent readiness; it is not a correctness or security assessment.

90–100green
70–89yellow
Below 70red

Markdown

![Agent Readiness](https://app.coderifts.com/api/v1/badge/agent-readiness?url=https%3A%2F%2Fexample.com%2Fopenapi.json)

Replace the URL-encoded https://example.com/openapi.json placeholder with your public spec URL.

No authentication is required. The endpoint is SSRF-guarded and rate-limited. View the live Petstore3 example.

If the spec cannot be reached, the endpoint returns a gray unavailable badge with HTTP 200 and puts the reason in the SVG title, so the README image never breaks.

How It Works

1

Install CodeRifts

Add the CodeRifts GitHub App to your repository. No configuration needed.

2

Open pull requests

CodeRifts analyzes every PR that modifies your API spec and tracks breaking changes over time.

3

Badge updates automatically

The stability grade recalculates after each merged PR. Your README always reflects the current state.

Get your stability badge

Install CodeRifts and your badge will be ready in minutes. Free during beta.

Install on GitHub