Monitor GitHub activity across multiple organizations and use AI to qualify leads. Each company gets its own custom prompt, dashboard, and email digest.
OPENAI_API_KEY and GITHUB_TOKEN to Environment Variables| Path | Description |
|---|---|
/ | Home - lists all companies |
/c/{slug} | Company dashboard |
/c/{slug}/lead/{id} | Lead detail page |
/c/{slug}/export | Export company data as JSON |
/admin | Manage companies |
/admin/new | Add a company |
/admin/{id} | Edit a company |
/webhook/{slug} | POST endpoint for external lead sources |
Cron Job (github.cron.ts)
AI Agent (agent.ts)
{name, match, score, leadTypes, reasoning}Storage (db.ts)
github_leads_companies_v1 - company configurationsgithub_leads_v4 - leads with company_id foreign keyDashboard (dashboard.tsx)
Digest (digest.ts)
When you want to give a company their own standalone val:
/c/{slug}/export to download the JSON| Variable | Description |
|---|---|
OPENAI_API_KEY | Required for AI lead qualification |
GITHUB_TOKEN | Required for GitHub API access |
| File | Description |
|---|---|
main.ts | HTTP entry point, routes |
db.ts | Companies + leads SQLite operations |
agent.ts | AI lead qualification |
github.cron.ts | Scheduled GitHub monitoring |
digest.ts | Daily email digest per company |
dashboard.tsx | Multi-company dashboard UI |
admin.tsx | Company management UI |