Skip to main content

Badge Endpoint

Generate SVG compatibility badges for your README, documentation, or website. Badges update automatically with the latest compatibility data.

Endpoint

The badge endpoint uses a slug-based URL format - no query parameters required.

URL Format

The slug combines two technology names with a separator:

Format

Supported Separators

You can use any of these separators between technology names: The dash (-) separator is recommended for best compatibility.

Path vs Query Parameters

Important: This endpoint uses path parameters, NOT query parameters.

Examples

Response

Content Type

Response Body

SVG image data (rendered as a badge).

Badge Colors

Badges use GitHub-style colors:

Badge Styles

Default Badge

Classic flat badge design:

Usage Examples

Markdown (GitHub, GitLab, etc.)

HTML

reStructuredText (ReadTheDocs)

AsciiDoc

Example README Section

Linking to Full Details

Wrap badges in links to detailed compatibility information:
This creates a clickable badge that takes users to the full compatibility report.

Caching

Badge responses are cached for 24 hours by default. Cache-Control header:
This ensures fast loading and reduces API load while keeping badges reasonably fresh.

Error Responses

When the slug format is invalid or technologies cannot be parsed, a generic “Unknown” badge is returned:

Unknown Badge

The endpoint always returns valid SVG (even for errors):
This ensures your README never breaks due to missing compatibility data.

Hybrid Lookup

The badge endpoint uses intelligent fallback:
  1. Slug Match - First tries to find a pre-computed compatibility slug
  2. Pair Match - Falls back to parsing the slug and finding a matching pair
This means badges work even without explicit slugs in the database.

Example: Parsed Slug

Rate Limiting

  • Limit: 120 requests per minute
  • Headers: X-RateLimit-Remaining, X-RateLimit-Reset
Badges are cached, so rate limits are rarely hit in normal usage. See Rate Limits for details.

Best Practices

1. Use in Project READMEs

Add badges for your key technology pairs to help contributors understand your stack at a glance. Always wrap badges in links to detailed compatibility information:

3. Consider Your Audience

For internal docs, badges provide quick verification. For public READMEs, they signal compatibility awareness. The dash (-) separator is most reliable:

5. Update When Stacks Change

When you add or change technologies, update your badges accordingly.

What’s Next


Generate badges: Badge Generator