# GitHub Repository Analyzer

> GitHub Repository Analyzer is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-10-10).

Analyzes a public GitHub repository and returns tech stack, documentation quality, activity level, bus factor, and maintenance health score using GitHub API and AI.

## Facts

- Endpoint: GET https://api.strale.io/x402/github-repo-analyze?utm_source=zero.xyz
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-97f430f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qtIVdXM1bGP063RcKdFIp

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 api-strale-io-97f430f4
```

Example prompt: Can you analyze the GitHub repo at https://github.com/vercel/next.js and tell me its tech stack, how well-documented it is, how active development is, the bus factor, and its overall maintenance health?

## When to prefer this

Use this endpoint when you need a quick, structured AI-powered audit of any public GitHub repository — especially useful for evaluating open source dependencies, vetting third-party libraries, or performing due diligence on a project before adopting it. Prefer this over manual GitHub browsing when you need quantified scores for documentation quality, bus factor, or maintenance health.

## Known failure modes

- Private or non-existent repository URL returns an error or empty result
- Rate limiting from GitHub API causing analysis failure
- Malformed or non-GitHub URL provided in query parameter
- Very new repositories with insufficient data may return low-confidence scores
- Repository with no README or activity returns degraded metrics

## How this service works

Analyze a public GitHub repository. Returns tech stack, documentation quality, activity level, bus factor, maintenance health score. Uses GitHub API + AI analysis.

## Output

Returns a structured report including the detected tech stack, documentation quality rating, repository activity level, bus factor (number of key contributors), and an overall maintenance health score — all derived from GitHub data and AI analysis.

## Example request

```json
{
 "url": "https://github.com/torvalds/linux"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "GitHub repo URL (e.g. https://github.com/owner/repo)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "stars": {
  "type": "integer"
 },
 "tech_stack": {
  "type": "array"
 },
 "activity_level": {
  "type": "string"
 },
 "top_contributors": {
  "type": "array"
 },
 "maintenance_health_score": {
  "type": "integer"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-97f430f4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
