Find potential customers from GitHub activity. Monitor your org's repos for stars, forks, issues, and PRs — then use AI to qualify leads automatically.
OPENAI_API_KEY — for AI lead qualificationGITHUB_TOKEN — for accessing GitHub API
(create one here)GITHUB_ORG in github.cron.tsRECIPIENTS in digest.tsPROMPT.txt with your ICP criteriamain.ts to view your dashboardNote: GitHub's Events API only returns the 300 most recent events per org.
This val supports importing and exporting lead data, making it easy to migrate leads when you remix the val or share data between instances.
GET /export returns all leads as JSONPOST /import — Import from JSON bodyPOST /import-from-url — Import from a remote URL (e.g., multi-company export)This val can import from:
GET /export)GET /c/{slug}/export)Duplicates are automatically skipped based on GitHub username or email.
# Export from multi-company val, import here curl -X POST "https://your-val.val.run/import-from-url" \ -H "Content-Type: application/json" \ -d '{"url": "https://dcm31--github-leads-multi-company.web.val.run/c/company-slug/export"}'
GitHub Monitoring (github.cron.ts)
AI Agent (agent.ts)
PROMPT.txt{name, match, score, leadTypes, reasoning}Storage (db.ts)
id — auto-incrementedtimestamp — when first seeninput_data — the GitHub event(s) that triggered itoutput_data — AI resultDashboard (main.ts)
Email Digest (digest.ts)
RECIPIENTS array to configure who receives themPROMPT.txt to define your ideal customer profilegithub.cron.ts
interval settings (default: hourly)digest.ts interval
settings (default: daily at 1pm UTC)Use the test bar in the dashboard to evaluate any GitHub username instantly.
| Endpoint | Method | Description |
|---|---|---|
/ | GET | Dashboard |
/ | POST | Webhook to add leads |
/export | GET | Download all leads as JSON |
/import | POST | Import leads from JSON body |
/import-from-url | POST | Import from remote URL |
/clear?confirm=yes | POST | Delete all leads (use with caution) |
/lead/:id | GET | View single lead |
/lead/:id/reanalyze | POST | Re-run AI analysis on a lead |