Badge Endpoint
Generate SVG compatibility badges for your README, documentation, or website. Badges update automatically with the latest compatibility data.Endpoint
URL Format
The slug combines two technology names with a separator:Format
Supported Separators
You can use any of these separators between technology names:| Separator | Example |
|---|---|
- (dash) | /api/v1/badge/nextjs-prisma.svg |
. (dot) | /api/v1/badge/nextjs.prisma.svg |
_ (underscore) | /api/v1/badge/nextjs_prisma.svg |
-) separator is recommended for best compatibility.
Path vs Query Parameters
Important: This endpoint uses path parameters, NOT query parameters.| Format | Example | Status |
|---|---|---|
| Slug-based (correct) | /api/v1/badge/nextjs-prisma.svg | ✅ Use this |
| Query params (incorrect) | /api/v1/badge?techA=nextjs&techB=prisma | ❌ Not supported |
Examples
Response
Content Type
Response Body
SVG image data (rendered as a badge).Badge Colors
Badges use GitHub-style colors:| Status | Color | Hex |
|---|---|---|
| Compatible | Green | #3FB950 |
| Partial | Amber | #D29922 |
| Incompatible | Red | #F85149 |
| Unknown | Gray | #8B949E |
| Deprecated | Gray | #8B949E |
Badge Styles
Default Badge
Classic flat badge design:Usage Examples
Markdown (GitHub, GitLab, etc.)
HTML
reStructuredText (ReadTheDocs)
AsciiDoc
Asciidoc with Link
Example README Section
Linking to Full Details
Wrap badges in links to detailed compatibility information:Caching
Badge responses are cached for 24 hours by default. Cache-Control header: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):Hybrid Lookup
The badge endpoint uses intelligent fallback:- Slug Match - First tries to find a pre-computed compatibility slug
- Pair Match - Falls back to parsing the slug and finding a matching pair
Example: Parsed Slug
Rate Limiting
- Limit: 120 requests per minute
- Headers:
X-RateLimit-Remaining,X-RateLimit-Reset
Best Practices
1. Use in Project READMEs
Add badges for your key technology pairs to help contributors understand your stack at a glance.2. Link to Full Details
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.4. Use Recommended Separator
The dash (-) separator is most reliable:
5. Update When Stacks Change
When you add or change technologies, update your badges accordingly.What’s Next
- Check Endpoint - Get detailed compatibility info
- Scan Endpoint - Analyze complete projects
- Rate Limits - Usage limits
Generate badges: Badge Generator →