{"id":29130832,"url":"https://github.com/v0id-user/hosewatcher","last_synced_at":"2026-04-10T22:49:08.160Z","repository":{"id":301642847,"uuid":"948142064","full_name":"v0id-user/HoseWatcher","owner":"v0id-user","description":"Relay-only implementation of Bluesky’s firehose over WebSocket — built on Cloudflare Workers.","archived":false,"fork":false,"pushed_at":"2025-06-27T23:22:44.000Z","size":223,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-28T00:25:32.310Z","etag":null,"topics":["atproto","bluesky","cloudflare","cloudflare-workers","firehose","typescript","websocket"],"latest_commit_sha":null,"homepage":"https://hose.watch","language":"TypeScript","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/v0id-user.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-03-13T20:23:36.000Z","updated_at":"2025-06-27T23:22:47.000Z","dependencies_parsed_at":"2025-06-28T00:25:34.412Z","dependency_job_id":"84d73c21-f8d8-489c-a20c-f9585b13d85d","html_url":"https://github.com/v0id-user/HoseWatcher","commit_stats":null,"previous_names":["v0id-user/hosewatcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/v0id-user/HoseWatcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0id-user%2FHoseWatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0id-user%2FHoseWatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0id-user%2FHoseWatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0id-user%2FHoseWatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v0id-user","download_url":"https://codeload.github.com/v0id-user/HoseWatcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v0id-user%2FHoseWatcher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262714470,"owners_count":23352462,"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","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":["atproto","bluesky","cloudflare","cloudflare-workers","firehose","typescript","websocket"],"created_at":"2025-06-30T05:00:43.260Z","updated_at":"2026-04-10T22:49:08.083Z","avatar_url":"https://github.com/v0id-user.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# HoseWatcher\n\nA real-time Bluesky firehose relay built on Cloudflare Workers. This service connects to the Bluesky firehose, processes the AtProto events, and relays them to clients via WebSockets.\n\u003cdiv align=\"center\"\u003e\n\n[![MADE BY #V0ID](https://img.shields.io/badge/MADE%20BY%20%23V0ID-F3EEE1.svg?style=for-the-badge)](https://github.com/v0id-user)\n\n\u003c/div\u003e\n## 🚰 What is HoseWatcher?\n\nHoseWatcher is a relay server that streams real-time data from the Bluesky firehose to connected clients. The Bluesky firehose provides a continuous stream of all activities happening on the Bluesky social network (posts, likes, follows, etc.).\n\nThis project was inspired by a similar concept that used the Twitter firehose (as mentioned in the code comments referencing a [YouTube video](https://www.youtube.com/watch?v=fxZSP85YcoE)).\n\n## 🛠️ Technical Overview\n\nHoseWatcher is built on:\n- Cloudflare Workers for serverless deployment\n- WebSockets for real-time communication\n- CBOR (Concise Binary Object Representation) for decoding the AtProto events\n\nThe service acts as a middleman between clients and the Bluesky firehose:\n1. Clients connect to HoseWatcher via WebSocket\n2. HoseWatcher maintains a connection to the Bluesky firehose\n4. Events from the firehose are decoded from CBOR format\n5. Processed events are relayed to clients as JSON\n\n## 🚀 Getting Started\n\n### Prerequisites\n- Cloudflare account\n- Node.js and npm installed\n\n### Installation\n\n1. Clone the repository\n```bash\ngit clone https://github.com/v0id-user/hosewatcher.git\ncd hosewatcher\n```\n\n2. Install dependencies\n```bash\nnpm install\n```\n\n3. Configure environment variables in your wrangler.jsonc:\n```json\n\"vars\": {\n  \"HOSER_ENDPOINT\": \"your-worker-endpoint\",\n  \"DEBUG\": false\n}\n```\n\n4. Deploy to Cloudflare\n```bash\nnpm run deploy\n```\n\n### Usage\n\n1. Connect to the WebSocket endpoint\n2. Start receiving real-time events from the Bluesky network\n\n## 🔍 How It Works\n\nThe server handles two main types of connections:\n- HTTP requests for basic info\n- WebSocket connections for streaming data\n\nWhen a client connects via WebSocket:\n1. The server establishes a connection to the Bluesky firehose\n2. The server decodes incoming CBOR-encoded events\n3. Decoded events are forwarded to the client in JSON format\n\n## 🙏 Credits \u0026 Inspiration\n\nThis project draws inspiration and code from:\n- The implementation of a Twitter firehose visualizer from a [YouTube video](https://www.youtube.com/watch?v=fxZSP85YcoE)\n- [ATProto Firehose implementation](https://github.com/kcchu/atproto-firehose) by kcchu\n- The [ATProto Documentation](https://docs.bsky.app/docs/advanced-guides/firehose) for understanding firehose handling\n- [CBOR specifications](https://cbor.io/) for handling the binary data format\n\n## 👤 Author\n\nMade with ❤️ by [@v0id_user](https://x.com/v0id_user)  \nGitHub: [https://github.com/v0id-user](https://github.com/v0id-user)  \nWebsite: [https://tree.v0id.me](https://tree.v0id.me)\n\n## 📝 License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv0id-user%2Fhosewatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv0id-user%2Fhosewatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv0id-user%2Fhosewatcher/lists"}