{"id":36985085,"url":"https://github.com/naufalhilmiaji/broadcastio","last_synced_at":"2026-01-13T23:00:58.515Z","repository":{"id":329064469,"uuid":"1117932188","full_name":"naufalhilmiaji/broadcastio","owner":"naufalhilmiaji","description":"Provider-agnostic outbound message orchestration with fallback delivery and clear failure semantics.","archived":false,"fork":false,"pushed_at":"2025-12-20T17:31:42.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-04T04:21:09.368Z","etag":null,"topics":["fallback","infrastructure","messaging","notifications","orchestration","python","whatsapp"],"latest_commit_sha":null,"homepage":"","language":"Python","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/naufalhilmiaji.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-17T02:58:20.000Z","updated_at":"2025-12-20T17:30:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/naufalhilmiaji/broadcastio","commit_stats":null,"previous_names":["naufalhilmiaji/broadcastio"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/naufalhilmiaji/broadcastio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naufalhilmiaji%2Fbroadcastio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naufalhilmiaji%2Fbroadcastio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naufalhilmiaji%2Fbroadcastio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naufalhilmiaji%2Fbroadcastio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naufalhilmiaji","download_url":"https://codeload.github.com/naufalhilmiaji/broadcastio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naufalhilmiaji%2Fbroadcastio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28399512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fallback","infrastructure","messaging","notifications","orchestration","python","whatsapp"],"created_at":"2026-01-13T23:00:37.223Z","updated_at":"2026-01-13T23:00:58.507Z","avatar_url":"https://github.com/naufalhilmiaji.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# broadcastio\n\n[![PyPI](https://img.shields.io/pypi/v/broadcastio)](https://pypi.org/project/broadcastio/)\n![Python Versions](https://img.shields.io/pypi/pyversions/broadcastio)\n![CI](https://github.com/naufalhilmiaji/broadcastio/actions/workflows/ci.yml/badge.svg)\n\n**broadcastio** is a provider-agnostic Python library for\n**outbound message broadcasting with fallback orchestration**.\n\nIt is designed for reliable notifications, alerts, and reports\nacross one or more delivery providers.\n\n---\n\n## Features\n\n- 🚦 Ordered provider fallback with configurable retries\n- 📦 Attachment support\n- 🧩 Provider abstraction (WhatsApp, Email, etc.)\n- ⚠️ Clear error classification\n- 🔍 Observability hooks and delivery tracing\n- 🧪 Tested core logic\n\n---\n\n## What it is / is not\n\n### ✅ It is\n- A Python **orchestration layer** for outbound messages\n- A way to attempt delivery across multiple providers\n- A library with explicit failure semantics\n\n### ❌ It is not\n- A chatbot framework\n- An inbound message handler\n- A WhatsApp automation tool by itself\n\n---\n\n## Installation\n\n```bash\npip install broadcastio\n````\n\nPython ≥ 3.10 required.\n\n---\n\n## Quick Start\n\n```python\nfrom broadcastio.core.orchestrator import Orchestrator\nfrom broadcastio.providers.whatsapp import WhatsAppProvider\nfrom broadcastio.core.message import Message\n\nwa = WhatsAppProvider(\"http://localhost:3000\")\norch = Orchestrator([wa])\n\nresult = orch.send(\n    Message(\n        recipient=\"6281234567890\",\n        content=\"Hello from broadcastio\"\n    )\n)\n\nprint(result)\n```\n\n---\n\n## Attachments\n\n```python\nfrom broadcastio.core.attachment import Attachment\n\nMessage(\n    recipient=\"6281234567890\",\n    content=\"Daily report\",\n    attachment=Attachment(\n        host_path=\"shared_files/report.xlsx\",\n        provider_path=\"/app/shared_files/report.xlsx\",\n        filename=\"report.xlsx\"\n    )\n)\n```\n\n---\n\n## Error Handling\n\n* **Exceptions** → misconfiguration or invalid input\n* **DeliveryResult** → delivery was attempted\n\n```python\nif not result.success:\n    print(result.error.code, result.error.message)\n```\n\n---\n\n## Observability Hooks\n\nHooks allow real-time observation without affecting delivery flow.\n\n```python\ndef log_attempt(attempt):\n    print(attempt.provider, attempt.success)\n\norch = Orchestrator([wa], on_attempt=log_attempt)\n```\n\n---\n\n## Advanced Topics\n\n* 📘 [Retries \u0026 Backoff](docs/retries.md)\n* 📘 [Delivery Tracing](docs/tracing.md)\n\n---\n\n## Providers\n\n### WhatsApp Provider\n\nWhatsApp delivery is supported via an **external Node.js service**\nbased on WhatsApp Web.\n\nThis service is **not included** in the Python package.\n\n📘 See full setup instructions in:\n\n* [`docs/providers.md`] (planned)\n\n---\n\n## Project Status\n\n* **Version:** 0.3.0a1\n* **Status:** Alpha\n* APIs may evolve before 1.0.0\n\n---\n\n## Links\n\n* GitHub: [https://github.com/naufalhilmiaji/broadcastio](https://github.com/naufalhilmiaji/broadcastio)\n* Issues: [https://github.com/naufalhilmiaji/broadcastio/issues](https://github.com/naufalhilmiaji/broadcastio/issues)\n\n---\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaufalhilmiaji%2Fbroadcastio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaufalhilmiaji%2Fbroadcastio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaufalhilmiaji%2Fbroadcastio/lists"}