How elva-tech/notify-service works
ELVA Notify is a multi-tenant OTP and notification platform with a backend API and a Next.js documentation/operations portal. Its main customer workflow authenticates an application, sends or verifies an OTP, or submits a direct SMS/email notification; delivery uses Redis, messaging providers, and operational records. A separate onboarding and approval workflow provisions business access and credentials. The portal also exposes API documentation, playgrounds, business configuration, and delivery/OTP monitoring. Relationships below are limited to README statements and shown source-index references; portal-to-API wiring is not established by the sampled evidence.
Main entry points: notification.service.js Notification dispatch · app.js Express application · otp.controller.js OTP endpoints · notify.controller.js Notify endpoint
Components 21
API workflows
- Express application
backend/src/app.js - OTP endpoints
backend/src/controllers/otp.controller.js - Notify endpoint
backend/src/controllers/notify.controller.js - Integration requests
backend/src/controllers/integration.controller.js
Delivery and state
- Notification dispatch
backend/src/services/notification.service.js - OTP lifecycle
backend/src/services/otp.service.js - SMS providers
backend/src/services/sms/sms.service.js - Email delivery
backend/src/services/email/email.service.js - Redis OTP store
- MongoDB
- Message records
backend/src/services/messagePersistence.service.js
Business operations
- Business registry
backend/src/businesses/registry.js - Brand registry
backend/src/services/brandRegistry.service.js - Operations monitoring
backend/src/services/ops/opsNotify.service.js - Failure alerts
backend/src/services/alerts/failureAlert.service.js
Portal experiences
- Onboarding form
frontend/components/onboard/onboard-form.tsx - API documentation
frontend/app/api-reference/[...slug]/page.tsx - API playground
frontend/components/playground/api-playground.tsx - Platform console
frontend/app/platform/page.tsx
Other components
- API client
- SMS and email services
Connections 20
- API client → Express application: calls API
- Express application → OTP endpoints: routes requests
- Express application → Notify endpoint: routes requests
- OTP endpoints → OTP lifecycle: manages OTPs
backend/src/controllers/otp.controller.js - OTP endpoints → Notification dispatch: requests delivery
backend/src/controllers/otp.controller.js - Notify endpoint → Notification dispatch: dispatches
backend/src/controllers/notify.controller.js - OTP lifecycle → Redis OTP store: stores hashed codes
- Notification dispatch → SMS providers: sends SMS
backend/src/services/notification.service.js - Notification dispatch → Email delivery: sends email
backend/src/services/notification.service.js - SMS providers → SMS and email services: delivers SMS
- Email delivery → SMS and email services: delivers email
- Notification dispatch → Message records: records delivery
backend/src/services/notification.service.js - Message records → MongoDB: writes records
- Notification dispatch → Failure alerts: reports failures
backend/src/services/notification.service.js - Integration requests → Onboarding form: receives requests
backend/src/controllers/integration.controller.js - Business registry → Brand registry: validates registry
backend/src/businesses/index.js - Onboarding form → Integration requests: submits request
- API client → API documentation: consults docs
- API client → API playground: tests requests
- API client → Platform console: uses console