# Repo Health Scan + Vulnerability Watch

> Repo Health Scan + Vulnerability Watch is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.05/call, status down (last checked 2026-09-15).

Combines GitHub repository metadata (license, stars, maintenance state) with OSV vulnerability scanning for a package, returning a pinned-or-upgrade verdict and health score.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/repo-health-scan-vulnerability-watch
- Price: $0.05/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/repo-health-scan-vulnerability-watch-d9d7f9c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9mTIO7kMD2kKKlmvEVE9w

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 repo-health-scan-vulnerability-watch-d9d7f9c8
```

Example prompt: Can you scan the repo 'expressjs/express' and the 'express' npm package for known vulnerabilities and tell me whether I should pin or upgrade my dependency, along with the overall health score?

## When to prefer this

Choose this endpoint when you need a combined, cross-verified view of both repository health and package vulnerability status in a single call, rather than querying GitHub and OSV separately. Ideal for automated dependency review pipelines, pre-merge checks, or supply chain audits where you need a structured pinned-or-upgrade recommendation with a confidence score rather than raw data.

## Known failure modes

- Unknown or private repository returns an error in the result object with ok:false
- Package not found in OSV database results in empty vulnerability findings
- Missing required 'repo' or 'package' query parameters causes a 400-level error
- Payment not made results in a 402 response requiring USDC payment before data is returned
- Stale or rate-limited GitHub API data may reduce evidence completeness

## How this service works

Cross-verified: GitHub repo metadata: license, stars, maintenance state. Combined with osv vulnerability scan for a package with a pinned-or-upgrade verdict.

## Output

Returns a JSON object with an overall health score (0-1), a pinned-or-upgrade verdict, a plain-English summary, a confidence rating, a list of strengths, a list of risk factors, and raw evidence combining GitHub metadata (stars, license, maintenance state) and OSV vulnerability findings. Also includes an ISO-8601 generatedAt timestamp.

## 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",
     "properties": {
      "meta": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "Set to 1 for free metadata JSON (no payment required)"
      },
      "repo": {
       "type": "string",
       "description": "Composite input parameter"
      },
      "package": {
       "type": "string",
       "description": "Composite input parameter"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "Repo Health Scan + Vulnerability Watch paid response",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ok",
      "paid",
      "service",
      "provider",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "paid": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "ok",
        "service"
       ],
       "properties": {
        "ok": {
         "type": "boolean",
         "description": "Handler success"
        },
        "score": {
         "type": "number"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "summary": {
         "type": "string"
        },
        "evidence": {
         "type": "object"
        },
        "strengths": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "confidence": {
         "type": "string"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        },
        "riskFactors": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
    
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true,
  "result": {
   "ok": true,
   "service": "repo-health-scan-vulnerability-watch"
  },
  "service": "repo-health-scan-vulnerability-watch",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/repo-health-scan-vulnerability-watch-d9d7f9c8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.wrong.systems](https://www.zero.xyz/host/k2so.wrong.systems/llms.txt)
