Modular, SRP-compliant, production-ready multi-channel notification service. SMS · Email · WhatsApp · Push · CLI · TypeScript · Bun · Turbo Repo · Tree-shakable
bun install
bun run build
bun test
bun run ./packages/cli/dist/index.js providers
bun run ./packages/cli/dist/index.js test sms --to +15551234567 --body "hello"@cognivyn/types— shared types@cognivyn/config— configuration (@cognivyn/config,@cognivyn/config/manager)@cognivyn/auth— ApiKey + ClientSecret, SecureStore (@cognivyn/auth,@cognivyn/auth/providers,@cognivyn/auth/store)@cognivyn/core— NotificationService, Builder, Queue (@cognivyn/core,@cognivyn/core/service,@cognivyn/core/builder,@cognivyn/core/queue)@cognivyn/channels— tree-shakable subpaths for channels:@cognivyn/channels/sms(Twilio, MSG91 Flow API v5 + Route SMS, Fast2SMS Quick/DLT SMS)@cognivyn/channels/email(Resend, AWS SESv2 SigV4)@cognivyn/channels/whatsapp(Meta WhatsApp Cloud API v21.0+, Twilio WhatsApp, Fast2SMS WhatsApp)@cognivyn/channels/push(FCM HTTP v1, FCM Legacy, Apple APNs)
@cognivyn/cli—notify auth/test/config/providers
All packages declare sideEffects: false and explicit exports maps. Consumers can import individual features without dragging in unused channels or dependencies:
import { SmsChannel, Msg91SmsProvider } from "@cognivyn/channels/sms";
import { WhatsAppChannel, WhatsAppCloudApiProvider } from "@cognivyn/channels/whatsapp";
import { PushChannel, FcmV1PushProvider } from "@cognivyn/channels/push";
import { EmailChannel, ResendEmailProvider } from "@cognivyn/channels/email";
import { NotificationService } from "@cognivyn/core/service";See docs/tree-shaking.md for full details.
See docs/ — getting started, architecture, auth, CLI, API, channel guides, tree-shaking, publishing, troubleshooting.
Examples in examples/basic.ts.
- All channels functional and tested (105+ tests)
- Modern APIs supported: Meta WhatsApp Cloud API v21.0, Google FCM HTTP v1, AWS SESv2, Resend, Twilio, MSG91 Flow API, Fast2SMS SMS and WhatsApp
- CLI fully operational with multi-channel testing and auth config
- Comprehensive documentation and AI Agent ready (
AGENTS.md,CLAUDE.md) - Zero unnecessary third-party dependencies, minimal deps, Bun 1.4.4+ tooling & Turbo
Cognivyn is not affiliated with, endorsed by, or sponsored by Twilio, Meta, Google, Amazon, Resend, MSG91, or Fast2SMS. All provider trademarks belong to their respective owners. This library implements their public APIs independently.
MIT — © 2026 Cognivyn