Channel-agnostic outbound messaging for Elixir: one call surface, one policy model across Discord, Slack, Telegram and WhatsApp.

Noizu.Comms.send("ops-alerts", "deploy finished", level: :success)
Noizu.Comms.send("discord://channel/123456789012345678", "**hey**")
Noizu.Comms.broadcast(["ops-alerts", "releases"], "build ok")

How it works

  • Targets are URIs (discord://channel/…, slack://webhook/…, telegram://chat/…, whatsapp://phone/…, test://…) or named aliases resolved from a YAML targets file (COMMS_TARGETS_FILE, default ~/.config/noizu-comms/targets.yaml).
  • Adapters live in Noizu.Comms.Adapters and compile-guard against their channel SDK — every SDK is an optional dependency, so a service pulls in only the channels it uses.
  • Policy (Noizu.Comms.Policy) gates writes per target key (alias:<name> / <channel>:<kind>:<id>), with raw-target and window/send-window rules.
  • Errors are structured %Noizu.Comms.Error{} — they never carry tokens, auth headers or full request URLs with secrets; webhook URLs and phone numbers stay masked in the SDKs and in this facade.

Installation

{:noizu_comms, "~> 0.1"}

Channels are opt-in: add the SDK packages you need (noizu_discord, noizu_slack are on hex; noizu_telegram, noizu_whatsapp are monorepo-only until published).

Documentation

Contract and architecture: docs/arch/comms-channels.md in the trl-infra monorepo. API docs are generated from the moduledocs (mix docs).

License

MIT — see LICENSE.