A TypeScript application that sets up GitHub stars webhooks and sends them via Hookdeck. Hookdeck transforms the webhook payload into a PostHog capture event payload and sends the data to the PostHog API.
- Node.js >= 20.6.0 (for native TypeScript support)
- Clone this repository
- Install dependencies:
npm install
- Create a
.env
file based on the.env.example
template and fill in your credentials:GITHUB_TOKEN
: Your GitHub personal access tokenGITHUB_WEBHOOK_SECRET
: A secret key for GitHub webhook securityPOSTHOG_HOST
: Your PostHog API host. For the US this is https://us.i.posthog.comPOSTHOG_API_KEY
: Your PostHog API keyHOOKDECK_API_KEY
: Your Hookdeck API keyREPO_OWNER
: Owner of the repository to trackREPO_NAME
: Name of the repository to track
Run the application directly with Node.js native TypeScript support:
npm run start
MIT