# PreFlight Checker – GitHub Repo Health

> PreFlight Checker – GitHub Repo Health is a paid API for AI agents from x402-api-catalog.onrender.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Audits a GitHub repository and returns a health score with verdict, covering stars, forks, open issues, last commit age, archived status, and license.

## Facts

- Endpoint: GET https://x402-api-catalog.onrender.com/api/repo-health
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/preflight-checker-github-repo-health-63911285
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X0DDy-fXowbCugsBtDm1M

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 preflight-checker-github-repo-health-63911285
```

Example prompt: Can you run a health check on the openai/openai-python GitHub repo and tell me if it's actively maintained, what its score is, and whether it has a proper license?

## When to prefer this

Use this endpoint when you need a quick, scored health summary of a GitHub repository — especially for dependency vetting, open source due diligence, or automated checks before integrating a library. It saves you from manually inspecting multiple GitHub pages and aggregates key signals into a single score and verdict. Prefer this over raw GitHub API calls when you want an opinionated health verdict rather than raw metadata.

## Known failure modes

- Invalid or non-existent repo format returns an error (repo must be owner/repo)
- Private repositories may not be accessible and return an error
- Rate limiting from GitHub's API could cause intermittent failures
- Repos with no commits or newly created repos may produce incomplete metrics
- Payment failure (insufficient USDC balance) returns 402 before the check runs

## How this service works

GitHub repo health check / audit / verify: stars, forks, open issues, last commit age, archived status, license.

## Output

Returns a JSON object with the repository identifier, a numeric health score, a human-readable verdict, and underlying metrics including stars, forks, open issue count, last commit age, archived status, and license information.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "repo"
     ],
     "properties": {
      "repo": {
       "type": "string",
       "description": "GitHub repo in owner/repo format"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "repo": {
       "type": "string"
      },
      "score": {
       "type": "number"
      },
      "verdict": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "repo": "facebook/react",
  "score": 85,
  "reasons": [],
  "signals": {},
  "verdict": "healthy"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/preflight-checker-github-repo-health-63911285/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api-catalog.onrender.com](https://www.zero.xyz/host/x402-api-catalog.onrender.com/llms.txt)
