RepoLens

Gallery · Architecture explained · Documents

FastAPI code health score

The score is the average RepoLens code-health number for the files in this gallery scan. Higher is healthier. The badge below links back to this page.

89/100

52 files analyzed · Average health: 89/100 · 41 A, 2 B, 9 C, 0 D, 0 F

README badge

shields.io fetches the endpoint JSON. The image uses style=flat-square.

[![FastAPI code health](https://img.shields.io/endpoint?url=https%3A%2F%2Fchapibunny.github.io%2Frepolens%2Ffastapi%2Fbadge.json&style=flat-square)](https://chapibunny.github.io/repolens/fastapi/score/)

The same score is also a square SVG at badge.svg:

[![FastAPI code health](https://chapibunny.github.io/repolens/fastapi/badge.svg)](https://chapibunny.github.io/repolens/fastapi/score/)

FastAPI code health

Grade distribution
GradeFiles
A41
B2
C9
D0
F0

Hotspots

Hotspots (score under 60)
FileScoreGrade
fastapi/encoders.py45C
fastapi/routing.py45C
fastapi/dependencies/utils.py45C
fastapi/openapi/utils.py45C
fastapi/telemetry/_asgi.py45C
fastapi/telemetry/_runtime.py45C
fastapi/_compat/v2.py46C
fastapi/dependencies/models.py54C
fastapi/_compat/shared.py58C

Badge for any repository

Run repolens badge --format all --out repolens-badge.json and publish the JSON where shields.io can fetch it (GitHub Pages or a workflow artifact you host). The GitHub Action command: badge writes those files without publishing npm. Point badge-url at the public JSON URL.