{"id":32815849,"url":"https://github.com/natsoman/youtube-chat-reader","last_synced_at":"2025-11-07T06:02:15.649Z","repository":{"id":320075806,"uuid":"1080416779","full_name":"natsoman/youtube-chat-reader","owner":"natsoman","description":"Real-time YouTube chat reader","archived":false,"fork":false,"pushed_at":"2025-11-03T07:02:43.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-03T08:23:51.226Z","etag":null,"topics":["etcd","golang","grpc","kafka","kubernetes","mongodb","monorepo","otel","streamlist","youtube-api-v3"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natsoman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-21T10:42:06.000Z","updated_at":"2025-11-03T06:42:52.000Z","dependencies_parsed_at":"2025-10-21T21:06:40.539Z","dependency_job_id":"0cf557ed-d3b8-4591-916a-927726a6a7fc","html_url":"https://github.com/natsoman/youtube-chat-reader","commit_stats":null,"previous_names":["natsoman/youtube-chat-reader"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/natsoman/youtube-chat-reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natsoman%2Fyoutube-chat-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natsoman%2Fyoutube-chat-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natsoman%2Fyoutube-chat-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natsoman%2Fyoutube-chat-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natsoman","download_url":"https://codeload.github.com/natsoman/youtube-chat-reader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natsoman%2Fyoutube-chat-reader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283136761,"owners_count":26785489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-07T02:00:06.343Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["etcd","golang","grpc","kafka","kubernetes","mongodb","monorepo","otel","streamlist","youtube-api-v3"],"created_at":"2025-11-07T06:01:13.466Z","updated_at":"2025-11-07T06:02:15.643Z","avatar_url":"https://github.com/natsoman.png","language":"Go","readme":"# YouTube Live Chat Reader\n\n[![CI](https://github.com/natsoman/youtube-chat-reader/actions/workflows/ci.yaml/badge.svg)](https://github.com/natsoman/youtube-chat-reader/actions/workflows/ci.yaml)\n[![codecov](https://codecov.io/gh/natsoman/youtube-chat-reader/graph/badge.svg?token=QXORZL6UE8)](https://codecov.io/gh/natsoman/youtube-chat-reader)\n[![Go Report Card](https://goreportcard.com/badge/github.com/natsoman/youtube-chat-reader/apps/reader)](https://goreportcard.com/report/github.com/natsoman/youtube-chat-reader/apps/reader)\n\nA high-performance system for efficiently reading YouTube Live Chat messages.\n\n## 🚀 Features\n\n- **Real-time Processing**: Reading YouTube Live Chat messages with the most efficient method, [streamList](https://developers.google.com/youtube/v3/live/docs/liveChatMessages/streamList)\n- **Scalable \u0026 High Available**: Horizontally scalable reading workers; if one fails, another one takes over almost immediately\n- **Observable**: Comprehensive metrics, tracing, and logging\n- **Kubernetes-Native**: Designed to run in containerized environments\n\n## 🏗️ Architecture\n\nThe system consists of two main components:\n\n### 1. Finder Service\n- Periodically checks configured YouTube channels for upcoming live streams\n- Emits events when new live streams are discovered\n- Runs as a Kubernetes CronJob for scheduled execution\n\n### 2. Reader Service\nA multi-binary service with the following components:\n\n#### Consumer\n- Listens for newly discovered live stream events\n- Creates the initial live stream progress state\n- Runs as a Kubernetes [Deployment](./deploy/local/k8s/youtube-chat-reader/reader/consumer/deployment.yaml)\n\n#### Worker\n- Reads and stores live chat messages using YouTube’s [streamList](https://developers.google.com/youtube/v3/live/docs/liveChatMessages/streamList)\n- Distributed locking with Etcd to ensure exactly-once live stream processing\n- Runs as a Kubernetes [Deployment](./deploy/local/k8s/youtube-chat-reader/reader/worker/deployment.yaml)\n\n## 🚀 Quick Start\n\n### Prerequisites\n\n- Kubernetes cluster (e.g., Docker Desktop)\n- Helm 3+\n- kubectl\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/natsoman/youtube-chat-reader.git\n   cd youtube-chat-reader\n   ```\n\n2. Deploy to your Kubernetes cluster:\n   ```bash\n   # Navigate to the deployment directory and follow instructions\n   cd deploy/local/k8s/\n   ```\n\n## ⚙️ Configuration\n\nConfiguration is managed through Kubernetes resources:\n\n### Common Configuration\n- [ConfigMap](./deploy/local/k8s/youtube-chat-reader/configmap.yaml)\n- [Secrets](./deploy/local/k8s/youtube-chat-reader/secret.yaml)\n\n### Component-Specific Configuration\n\n#### Finder\n- [CronJob](./deploy/local/k8s/youtube-chat-reader/finder/cronjob.yaml)\n- [Secrets](./deploy/local/k8s/youtube-chat-reader/finder/secret.yaml)\n\n#### Reader Worker\n- [Deployment](./deploy/local/k8s/youtube-chat-reader/reader/worker/deployment.yaml)\n- [Secrets](./deploy/local/k8s/youtube-chat-reader/reader/worker/secret.yaml)\n\n#### Reader Consumer\n- [Deployment](./deploy/local/k8s/youtube-chat-reader/reader/consumer/deployment.yaml)\n\n## Coverage\n\n![Coverage](https://codecov.io/gh/natsoman/youtube-chat-reader/graphs/icicle.svg?token=QXORZL6UE8)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatsoman%2Fyoutube-chat-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatsoman%2Fyoutube-chat-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatsoman%2Fyoutube-chat-reader/lists"}