Skip to content

Quality Badges

Embed live quality score badges in your repository README.


Quality Badges

Display live quality, security, or cost score badges in your repository READMEs using shields.io-compatible SVG badges.

Requirements

  • Plan: Cloud Pro or higher

Setup

  1. Go to Dashboard > Settings > Badges
  2. Configure your badge appearance and thresholds
  3. Toggle "Public" to make the badge accessible
  4. Copy the embed code

Badge Types

TypeShowsExample
QualityAverage quality scorequality: 85
SecuritySecurity posture scoresecurity: 92
CostCost efficiency scorecost: 78

Embedding

Markdown

markdown
![Quality](https://massu.ai/api/badge/your-org/quality)

HTML

html
<img src="https://massu.ai/api/badge/your-org/quality" alt="Quality Score" />

Configuration

Customize badge appearance in the dashboard:

  • Label: Text shown on the left side of the badge
  • Thresholds: Score ranges for good (green), warning (yellow), and bad (red) colors
  • Colors: Custom color names (brightgreen, green, yellow, orange, red)
  • Public: Whether the badge is accessible without authentication

Color Thresholds

Score RangeDefault ColorMeaning
>= 80brightgreenGood
>= 50yellowWarning
< 50redBad

Thresholds are fully configurable per badge type.

Caching

Badge responses are cached for 5 minutes (max-age=300). Scores update as new sessions sync.