Gemfinder

HTTP API

Versioned JSON for Gemfinder data. Reads are public. The stdio MCP wraps the same RPCs; this is the HTTP contract for agents that cannot run Go.

Auth

GET is unauthenticated. PUT (save/hide) is open until you set GEMFINDER_API_KEY, then send Authorization: Bearer <key> or X-Api-Key. The browser UI still writes flags through Supabase RLS so a key does not lock the app.

GET/api/v1/gems

Ranked collector gems. Filters: q, lang, period_days, min_score, sort_by (score, stars, growth, velocity, …), flag_filter, stars, page, page_size. Each gem already has stars_growth, velocity_badge, first_seen_at.

GET/api/v1/gems/{githubId}/history

Star and fork snapshots from archive runs.

PUT/api/v1/gems/{githubId}/flags

Body `{ "flag": "saved" | "hidden", "on": true }`. Requires an API key when GEMFINDER_API_KEY is set.

GET/api/v1/status

last_run_at and last_scanned_at (same MAX(last_scanned_at)), live_count, and distinct languages.

GET/api/v1/search?q=

Live GitHub repository search (same proxy as /api/github/search).

GET/api/v1/repos

Collector search for bots. Filters: q, country, tags (payments, fintech, dev-tool, cinetpay, …), owner_type (organization|individual), payment_gap, since, min_score, limit. Each item has github_id, source_url, why_it_matters, country_signal, velocity_badge, first_seen_at, last_seen_at.

GET/api/v1/repos/{owner}/{name}

One collector repo: license, last_commit, created_at, stars/forks over time, owner_type, country_signal, velocity_badge, first_seen_at/last_seen_at, why_it_matters. Gemfinder never emails anyone.

GET/api/v1/openapi.json

Machine-readable OpenAPI 3.1 document.

Example

curl -sS "$ORIGIN/api/v1/status"
curl -sS "$ORIGIN/api/v1/gems?lang=Go&sort=velocity&page_size=10"
curl -sS "$ORIGIN/api/v1/repos?tags=payments&owner_type=organization"