# GitHub Repo Health Score Checker

> GitHub Repo Health Score Checker is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Analyzes a GitHub repository and returns a 0-100 health score with grade (abandoned/stale/okay/healthy/thriving) based on commit activity, contributors, license, CI, tests, and an LLM verdict.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/github-repo-health
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-40fe6801
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r4ujplWJOjmOaBh-Q4zTX

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-deployer-x402-deployer-workers-dev-40fe6801 -d '<json body>'
```

Example prompt: Can you check the health of the GitHub repo https://github.com/expressjs/express and tell me if it's still actively maintained — give me the score, grade, and the AI verdict?

## When to prefer this

Use this endpoint when you need a structured, scored assessment of a GitHub repository's health and maintainability, especially when deciding whether to adopt a dependency, audit an open-source library, or flag abandoned projects. It combines quantitative metrics (commits, contributors, CI, tests, license) with an LLM verdict in a single call, making it more comprehensive than manually inspecting GitHub stats.

## Known failure modes

- Repository not found or private — returns error if the repo URL is invalid or inaccessible
- GitHub API rate limit exceeded — may return error or degraded data
- Repo has no activity data — sparse repos may result in low confidence scores
- Invalid URL format — returns validation error if the repo URL is malformed
- Network timeout fetching GitHub data — returns timeout error

## How this service works

GitHub repo health score / open-source maintainability checker. 0-100 score + grade (abandoned/stale/okay/healthy/thriving). Commit activity, contributors, license, CI, tests. Plus LLM verdict.

## Output

Returns a 0-100 numeric health score, a categorical grade (abandoned, stale, okay, healthy, or thriving), metrics on commit activity, number of contributors, presence of a license, CI configuration, and tests, plus an LLM-generated verdict summarizing the overall maintainability of the repository.

## Example request

```json
{
 "input": {
  "body": {
   "repo": "expressjs/express"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "repo": {
       "type": "string",
       "description": "GitHub repository in 'owner/name' format, e.g. 'facebook/react'."
      }
     },
     "required": [
      "repo"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "score": {
       "type": "integer"
      },
      "grade": {
       "type": "string"
      },
      "verdict": {
       "type": "string"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-40fe6801/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
