How charipramod/flare works
Flare is a self-hosted notification control plane. Users manage audiences, workflows, email, and operations through the dashboard or API; the API applies tenant and sending policies, while queued work is handled by workers and delivered through configured mail transports. The graph also preserves documented capabilities for inbound mail, automations, publication, and webhooks. Some subsystem links are documented in the README rather than shown in sampled source; unsampled implementation details are not inferred.
Main entry points: src/main.ts Control API · pipeline.ts Mail pipeline · src/main.ts Job workers · mail.ts Email API
Components 26
User interfaces
- Dashboard
apps/web/components/dashboard.tsx - API proxy
apps/web/app/api/[...path]/route.ts - CLI
apps/cli/src/main.ts - MCP server
apps/mcp/src/server.ts
Control plane
- Control API
apps/api/src/main.ts - Identity and access
apps/api/src/identity.ts - Audience management
apps/api/src/audience.ts - Workflow management
apps/api/src/workflows.ts - Contact automations
apps/api/src/automations.ts - Content publication
apps/api/src/publication.ts - Operations and recovery
apps/api/src/operations.ts
Messaging
- Inbound mail
apps/api/src/inbound.ts - Email API
apps/api/src/mail.ts - Mail pipeline
packages/mail/src/pipeline.ts - Transport routes
packages/mail/src/routes.ts - Sending policy
packages/mail/src/sending-policy.ts - SMTP relay
apps/smtp-relay/src/server.ts
Background execution
- Job workers
apps/worker/src/main.ts - Mail worker
apps/worker/src/mail.ts - Webhook worker
apps/worker/src/webhooks.ts
Shared services
- PostgreSQL
packages/db/src/schema.ts - Shared contracts
packages/shared/src/workflows.ts - Redis queues
Other components
- User or operator
- Mail transport
- Novu service
Connections 29
- User or operator → Dashboard: uses
README.md - Dashboard → API proxy: requests
- API proxy → Control API: proxies requests
- User or operator → CLI: uses
- CLI → Control API: calls API
- MCP server → Control API: calls API
- Control API → Identity and access: registers controller
apps/api/src/main.ts - Control API → Audience management: registers controller
apps/api/src/main.ts - Control API → Workflow management: registers controller
apps/api/src/main.ts - Control API → Contact automations: registers controller
apps/api/src/main.ts - Control API → Content publication: registers controller
apps/api/src/main.ts - Control API → Operations and recovery: registers controller
apps/api/src/main.ts - Control API → Inbound mail: registers controller
apps/api/src/main.ts - Control API → Email API: registers controller
apps/api/src/main.ts - Control API → PostgreSQL: queries
- Control API → Redis queues: connects
- Control API → Shared contracts: uses contracts
- Email API → Mail pipeline: submits mail
- Mail pipeline → Sending policy: checks policy
packages/mail/src/pipeline.ts - Mail pipeline → Transport routes: resolves route
packages/mail/src/pipeline.ts - Mail pipeline → PostgreSQL: writes message data
- Mail pipeline → Mail transport: delivers through
- SMTP relay → Email API: submits message
- Job workers → Mail worker: starts worker
apps/worker/src/main.ts - Job workers → Webhook worker: starts worker
apps/worker/src/main.ts - Job workers → Redis queues: connects
apps/worker/src/main.ts - Mail worker → Mail transport: delivers mail
- Webhook worker → PostgreSQL: reads deliveries
apps/worker/src/webhooks.ts - Workflow management → Novu service: integrates