---
title: "Health Leaderboard"
method: GET
path: "/repos/leaderboard"
tags: ["repos"]
---

# Health Leaderboard

`GET /repos/leaderboard`

Curated public repos ranked by deterministic code-health score.

Curated-only by design. Ranking every public repo does not survive contact
with the data: the score is size-biased below ~100 files, a file-count
floor does not fix it because documentation-only repos score near 10, and
filtering on commit/contributor activity surfaces mostly personal forks of
well-known projects, which `repos` has no `is_fork` column to exclude. The
full measurements are in migration 099.

## Query parameters

- `limit` integer

## Response `200`

Successful Response

- LeaderboardEntryResponse[]
  - `rank` integer, required
  - `owner` string, required
  - `name` string, required
  - `short_id` string, required
  - `average_health` number, required
  - `hotspot_health` number, nullable
  - `previous_health` number, nullable
  - `file_count` integer, nullable
  - `stars` integer, nullable
  - `primary_language` string, nullable
  - `measured_at` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/repowise/repowise-hosted-api/revisions/1e57283a9737/schema)
