How airis-nst-ru/newletter_service works
AIRIS Chronicle is a newsletter authoring and delivery product. Its frontend tree covers newsletter editing, review and preview, recipient management, comments, and subscriber actions; its backend exposes a newsletter-send endpoint that validates recipients, sends batched email, and streams progress. Frontend route and page implementations were not sampled, and the README is empty, so connections among those capabilities and their integration with the backend are not asserted. Backend edges shown below are supported by the sampled source and SOURCE INDEX.
Main entry points: send.controller.ts Send controller · app.ts Express application · healthcheck.controller.ts Health controller · mail.service.ts Bulk mail service
Components 27
Newsletter authoring
- Newsletter editor
frontend/components/editor/NewsletterEditor.tsx - Media manager
frontend/components/editor/MediaManager.tsx - Newsletter preview
frontend/components/preview/PreviewClient.tsx - HTML compiler
frontend/lib/htmlCompiler.ts
Review and audience
- Approver review
frontend/components/approver/ApproverReviewClient.tsx - Newsletter comments
frontend/components/comments/CommentThread.tsx - Newsletter blog
frontend/components/blog/BlogHomeClient.tsx - Recipient management
frontend/app/recipients/page.tsx - Subscriber actions
frontend/app/unsubscribe/UnsubscribeClient.tsx
Frontend API
- Newsletter API
frontend/app/api/v1/newsletters/route.ts - Newsletter state API
frontend/app/api/v1/newsletters/[id]/state/route.ts - Comments API
frontend/app/api/v1/newsletters/[id]/comments/route.ts - Recipients API
frontend/app/api/v1/email/recipients/route.ts - Subscriber API
frontend/app/api/v1/email/unsubscribe/route.ts - Newsletter send API
frontend/app/api/v1/email/send-newsletter/route.ts
Email delivery
- Bulk mail service
backend/src/service/mail.service.ts - Fallback template
backend/src/template/v2_readmore.ts
Backend platform
- Send endpoint route
backend/src/routes/send.routes.ts - Send controller
backend/src/controllers/send.controller.ts - Progress sockets
backend/src/socket.ts - Express application
backend/src/app.ts - Health route
backend/src/routes/healthcheck.routes.ts - Health controller
backend/src/controllers/healthcheck.controller.ts - API response helper
backend/src/utils/response.util.ts - Environment config
backend/src/config/envConfig.ts - Application logger
backend/src/logger/logger.ts
Other components
- Gmail SMTP
Connections 12
- Express application → Send endpoint route: mounts at
backend/src/app.ts - Express application → Health route: mounts at
backend/src/app.ts - Send endpoint route → Send controller: routes POST
backend/src/routes/send.routes.ts - Health route → Health controller: routes GET
backend/src/routes/healthcheck.routes.ts - Send controller → Bulk mail service: sends via
backend/src/controllers/send.controller.ts - Send controller → Fallback template: falls back to
backend/src/controllers/send.controller.ts - Bulk mail service → Gmail SMTP: sends mail
backend/src/service/mail.service.ts - Send controller → Progress sockets: emits progress
backend/src/controllers/send.controller.ts - Send controller → Application logger: logs
backend/src/controllers/send.controller.ts - Health controller → API response helper: formats response
backend/src/controllers/healthcheck.controller.ts - Health controller → Environment config: reads name
backend/src/controllers/healthcheck.controller.ts - Express application → Application logger: logs requests
backend/src/app.ts