{"id":48597898,"url":"https://github.com/cntm-labs/chorus","last_synced_at":"2026-04-13T22:00:59.643Z","repository":{"id":348886382,"uuid":"1198567655","full_name":"cntm-labs/chorus","owner":"cntm-labs","description":"Open-source Communications Platform as a Service (CPaaS) — SMS, Email, OTP delivery with smart routing, multi-provider failover, and cost optimization. Built in Rust.","archived":false,"fork":false,"pushed_at":"2026-04-06T13:32:46.000Z","size":192,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T21:34:13.296Z","etag":null,"topics":["api","communication","cpaas","email","failover","multi-provider","open-source","otp","rust","sms","telnyx","twilio"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/cntm-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2026-04-01T14:45:36.000Z","updated_at":"2026-04-06T13:32:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cntm-labs/chorus","commit_stats":null,"previous_names":["cntm-labs/chorus"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cntm-labs/chorus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cntm-labs%2Fchorus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cntm-labs%2Fchorus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cntm-labs%2Fchorus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cntm-labs%2Fchorus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cntm-labs","download_url":"https://codeload.github.com/cntm-labs/chorus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cntm-labs%2Fchorus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31772642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"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":["api","communication","cpaas","email","failover","multi-provider","open-source","otp","rust","sms","telnyx","twilio"],"created_at":"2026-04-08T21:02:25.245Z","updated_at":"2026-04-13T22:00:59.628Z","avatar_url":"https://github.com/cntm-labs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# chorus\n\n**Open-source Communications Platform as a Service (CPaaS) — SMS, Email, OTP with smart routing and multi-provider failover.**\n\n[![CI](https://github.com/cntm-labs/chorus/actions/workflows/ci.yml/badge.svg)](https://github.com/cntm-labs/chorus/actions/workflows/ci.yml)\n[![Security](https://github.com/cntm-labs/chorus/actions/workflows/security.yml/badge.svg)](https://github.com/cntm-labs/chorus/actions/workflows/security.yml)\n[![Release](https://github.com/cntm-labs/chorus/actions/workflows/release-please.yml/badge.svg)](https://github.com/cntm-labs/chorus/actions/workflows/release-please.yml)\n[![codecov](https://codecov.io/gh/cntm-labs/chorus/branch/main/graph/badge.svg)](https://codecov.io/gh/cntm-labs/chorus)\n\n[![crates.io chorus-rs](https://img.shields.io/crates/v/chorus-rs?label=chorus-rs\u0026color=fc8d62)](https://crates.io/crates/chorus-rs)\n[![crates.io chorus-core](https://img.shields.io/crates/v/chorus-core?label=chorus-core\u0026color=fc8d62)](https://crates.io/crates/chorus-core)\n[![crates.io chorus-providers](https://img.shields.io/crates/v/chorus-providers?label=chorus-providers\u0026color=fc8d62)](https://crates.io/crates/chorus-providers)\n[![npm @cntm-labs/chorus](https://img.shields.io/npm/v/@cntm-labs/chorus?label=@cntm-labs/chorus\u0026color=cb3837)](https://www.npmjs.com/package/@cntm-labs/chorus)\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.cntm-labs/chorus?label=io.github.cntm-labs:chorus\u0026color=C71A36)](https://central.sonatype.com/artifact/io.github.cntm-labs/chorus)\n[![docs.rs](https://img.shields.io/docsrs/chorus-rs?label=docs.rs)](https://docs.rs/chorus-rs)\n\n[![Rust](https://img.shields.io/badge/Rust-2k_LOC-dea584?logo=rust\u0026logoColor=white)](crates/)\n[![Total Lines](https://img.shields.io/badge/Total-2k+_LOC-blue)](./)\n\n[![Rust](https://img.shields.io/badge/Rust-dea584?logo=rust\u0026logoColor=white)](https://www.rust-lang.org/)\n[![Axum](https://img.shields.io/badge/Axum-dea584?logo=rust\u0026logoColor=white)](https://github.com/tokio-rs/axum)\n[![PostgreSQL](https://img.shields.io/badge/PostgreSQL-4169E1?logo=postgresql\u0026logoColor=white)](https://www.postgresql.org/)\n[![Redis](https://img.shields.io/badge/Redis-DC382D?logo=redis\u0026logoColor=white)](https://redis.io/)\n[![Docker](https://img.shields.io/badge/Docker-2496ED?logo=docker\u0026logoColor=white)](https://www.docker.com/)\n[![Stripe](https://img.shields.io/badge/Stripe-635BFF?logo=stripe\u0026logoColor=white)](https://stripe.com/)\n\n\u003c/div\u003e\n\n---\n\nRust backend (Axum) with waterfall routing — OTP and notifications via email first (cheap/free), SMS fallback only when needed (paid) — saving 60-80% cost. Supports 7 providers with automatic failover.\n\n## Features\n\n- **Waterfall routing** — send OTP/notifications via email first (Resend, free tier), fall back to SMS only when no email available — saving 60-80% cost\n- **Multi-provider failover** — auto-retry with next provider on failure\n- **7 providers** — Telnyx, Twilio, Plivo (SMS) + Resend, AWS SES, Mailgun, SMTP (Email)\n- **Batch send** — send SMS or Email to multiple recipients in one call\n- **Webhooks** — real-time delivery status notifications with HMAC-SHA256 signatures\n- **Template engine** — `{{variable}}` syntax with OTP generation\n- **SDKs** — Rust, TypeScript, Java (Go, Python, C coming soon)\n- **Test mode** — `ch_test_` API keys log only, never send real messages\n- **Self-hosted free** — MIT license, no billing when self-hosted\n\n## Quick Start\n\n```rust\nuse chorus::client::Chorus;\nuse chorus::types::SmsMessage;\nuse std::sync::Arc;\n\nlet chorus = Chorus::builder()\n    .add_sms_provider(Arc::new(telnyx))\n    .add_email_provider(Arc::new(resend))\n    .default_from_sms(\"+1234567890\".into())\n    .build();\n\n// Send SMS\nlet msg = SmsMessage {\n    to: \"+0987654321\".into(),\n    body: \"Hello from Chorus!\".into(),\n    from: None,\n};\nchorus.send_sms(\u0026msg).await?;\n\n// Send OTP via email with SMS fallback\nchorus.send_otp(\"user@example.com\", \"123456\", \"MyApp\").await?;\n```\n\n## Architecture\n\n```\ncrates/                  # Publishable libraries\n├── chorus-core          # Traits, routing engine, types, errors (leaf crate)\n└── chorus-providers     # Telnyx, Twilio, Plivo, Resend, SES, Mailgun, SMTP adapters\nservices/                # Internal binaries (not published)\n└── chorus-server        # Axum REST API, billing, dashboard\nsdks/\n├── rust/                # Native SDK (chorus-rs, re-exports chorus-core + providers)\n├── typescript/          # Node.js + Browser (@cntm-labs/chorus)\n├── java/                # Java 11+ (com.cntm-labs:chorus)\n├── go/                  # Coming soon\n├── python/              # Coming soon\n└── c/                   # Coming soon\n```\n\n## Development\n\n```sh\ncargo check --workspace          # Type check\ncargo test --workspace           # Run all tests\ncargo clippy --workspace -- -D warnings  # Lint\ncargo fmt --all                  # Format\n\n# Setup pre-commit hook\ngit config core.hooksPath .githooks\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcntm-labs%2Fchorus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcntm-labs%2Fchorus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcntm-labs%2Fchorus/lists"}