https://github.com/lezdcs/kick-push-key-checker
A tool for automatically extracting Pusher configuration from Kick.com and updating Firebase Remote Config.
https://github.com/lezdcs/kick-push-key-checker
deno firebase firebase-remote-config kick preact puppeteer pusher
Last synced: 2 months ago
JSON representation
A tool for automatically extracting Pusher configuration from Kick.com and updating Firebase Remote Config.
- Host: GitHub
- URL: https://github.com/lezdcs/kick-push-key-checker
- Owner: LezdCS
- Created: 2024-12-10T13:50:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-08T06:26:27.000Z (over 1 year ago)
- Last Synced: 2025-02-18T01:42:00.890Z (over 1 year ago)
- Topics: deno, firebase, firebase-remote-config, kick, preact, puppeteer, pusher
- Language: TypeScript
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kick.com Pusher Config Extractor
A tool for automatically extracting Pusher configuration from Kick.com and
updating Firebase Remote Config.
## Purpose
This tool helps maintain up-to-date Pusher configuration for Kick.com by:
1. Automatically scraping Kick.com to extract their Pusher app key and cluster
information
2. Updating Firebase Remote Config with the latest values
3. Enabling automated monitoring of Kick.com's WebSocket configuration changes
## Features
- Automated scraping of Kick.com using stealth browser automation
- WebSocket connection monitoring to capture Pusher configuration
- Firebase Remote Config integration for configuration management
- Built with TypeScript and Deno for modern, type-safe development
## Prerequisites
- Deno runtime
- Firebase project with Remote Config enabled
- Environment variables configured (see `.env.sample`):
- `FIREBASE_CLIENT_EMAIL`
- `FIREBASE_PRIVATE_KEY`
- `FIREBASE_PROJECT_ID`
- `REMOTE_CONFIG_KEY`
## Setup
1. Clone the repository
2. Copy `.env.sample` to `.env` and configure your Firebase credentials
3. Set up pre-commit hooks by running:
```bash
chmod +x scripts/*.bash && ./scripts/install-hooks.bash
```
4. Run development server:
```bash
docker compose up -d --remove-orphans
```
5. Stop the server:
```bash
docker compose down --remove-orphans
```