{"id":19933210,"url":"https://github.com/devwithzain/thebroadcaststore","last_synced_at":"2026-04-21T10:05:17.871Z","repository":{"id":251111650,"uuid":"836405932","full_name":"devwithzain/thebroadcaststore","owner":"devwithzain","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-23T20:44:27.000Z","size":55040,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T01:44:40.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://thebroadcaststore.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devwithzain.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}},"created_at":"2024-07-31T19:25:50.000Z","updated_at":"2024-10-23T20:44:30.000Z","dependencies_parsed_at":"2024-09-09T20:18:42.153Z","dependency_job_id":"6ccc3e2c-6116-41e0-993f-71cba2966c04","html_url":"https://github.com/devwithzain/thebroadcaststore","commit_stats":null,"previous_names":["devwithzain/thebroadcaststore"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithzain%2Fthebroadcaststore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithzain%2Fthebroadcaststore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithzain%2Fthebroadcaststore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithzain%2Fthebroadcaststore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devwithzain","download_url":"https://codeload.github.com/devwithzain/thebroadcaststore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241361397,"owners_count":19950379,"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":[],"created_at":"2024-11-12T23:13:03.035Z","updated_at":"2026-04-21T10:05:17.859Z","avatar_url":"https://github.com/devwithzain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BroadcastStore\n\nA distributed broadcast message store implementation for handling pub/sub\nmessaging patterns.\n\n## Features\n\n- Distributed message broadcasting\n- Persistent message storage\n- Publisher/Subscriber pattern support\n- Message deduplication\n- Fault tolerance and high availability\n- Horizontal scaling capabilities\n\n## Installation\n\n```bash\ngo get github.com/yourusername/broadcaststore\n```\n\n## Quick Start\n\n```go\nimport \"github.com/yourusername/broadcaststore\"\n\n// Create a new broadcast store\nstore := broadcaststore.New(broadcaststore.Config{\n    StoragePath: \"/tmp/broadcast-store\",\n})\n\n// Start the store\nif err := store.Start(); err != nil {\n    panic(err)\n}\n\n// Publish a message\nstore.Publish(\"channel-1\", []byte(\"Hello World\"))\n\n// Subscribe to messages\nsub := store.Subscribe(\"channel-1\")\nfor msg := range sub.Messages() {\n    fmt.Printf(\"Received: %s\\n\", string(msg.Data))\n}\n```\n\n## Configuration\n\n| Option          | Description                   | Default              |\n| --------------- | ----------------------------- | -------------------- |\n| StoragePath     | Path to store persistent data | /tmp/broadcast-store |\n| MaxMessageSize  | Maximum message size in bytes | 1MB                  |\n| RetentionPeriod | How long to retain messages   | 24h                  |\n\n## API Reference\n\n### Store Operations\n\n- `New(config Config) *Store` - Create a new broadcast store\n- `Start() error` - Start the store\n- `Stop() error` - Stop the store\n- `Publish(channel string, data []byte) error` - Publish a message\n- `Subscribe(channel string) *Subscription` - Subscribe to a channel\n\n### Subscription Operations\n\n- `Messages() \u003c-chan Message` - Get message channel\n- `Close() error` - Close subscription\n- `Unsubscribe()` - Unsubscribe from channel\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file\nfor details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevwithzain%2Fthebroadcaststore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevwithzain%2Fthebroadcaststore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevwithzain%2Fthebroadcaststore/lists"}