https://github.com/leggetter/github-stars-to-posthog
Send GitHub Star webhook events to PostHog via Hookdeck
https://github.com/leggetter/github-stars-to-posthog
github hookdeck posthog webhooks
Last synced: about 2 months ago
JSON representation
Send GitHub Star webhook events to PostHog via Hookdeck
- Host: GitHub
- URL: https://github.com/leggetter/github-stars-to-posthog
- Owner: leggetter
- License: mit
- Created: 2025-03-06T21:49:15.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-06T22:14:18.000Z (about 2 months ago)
- Last Synced: 2025-03-06T22:29:19.486Z (about 2 months ago)
- Topics: github, hookdeck, posthog, webhooks
- Language: TypeScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Stars ⭐ to PostHog 🦔 via Hookdeck 🪝
A TypeScript application that sets up [GitHub stars webhooks](https://docs.github.com/en/webhooks/webhook-events-and-payloads#star) and sends them via [Hookdeck](https://hookdeck.com?ref=github-github-stars-to-posthog). Hookdeck transforms the webhook payload into a [PostHog](https://posthog.com) capture event payload and sends the data to the PostHog API.
## Requirements
- Node.js >= 20.6.0 (for native TypeScript support)
## Setup
1. Clone this repository
2. Install dependencies:
```
npm install
```
3. Create a `.env` file based on the `.env.example` template and fill in your credentials:
- `GITHUB_TOKEN`: Your GitHub personal access token
- `GITHUB_WEBHOOK_SECRET`: A secret key for GitHub webhook security
- `POSTHOG_HOST`: Your PostHog API host. For the US this is https://us.i.posthog.com
- `POSTHOG_API_KEY`: Your PostHog API key
- `HOOKDECK_API_KEY`: Your Hookdeck API key
- `REPO_OWNER`: Owner of the repository to track
- `REPO_NAME`: Name of the repository to track## Usage
Run the application directly with Node.js native TypeScript support:
```
npm run start
```## Screenshots
### Event in Hookdeck

### Event in PostHog

## License
MIT