How christ-mayala/dryapi works
DRY is a multi-tenant Node.js API framework hosting business applications. The principal workflow is a client request entering the server, being routed through shared middleware into a tenant application, then handled by a feature controller that returns a standardized response. The repository also documents billing, licensing, audit, health, monitoring, and operational support. App-specific capabilities include AI inference, media downloads, marketplace leads, and pilgrimage content. Edges reflect the sampled bootstrap and route code or explicit README statements; unsampled subsystems are represented at their existing directory paths, without assuming their internal call chains.
Main entry points: bootloader.js Tenant bootloader · routes.js Route bootstrap · features Media downloads · auth.middleware.js JWT authentication
Components 23
Shared API runtime
- HTTP server
server.js - Route bootstrap
dry/bootstrap/routes.js - Tenant bootloader
dry/core/application/bootloader.js - Tenant models
dry/core/factories/modelFactory.js - MongoDB
config/database.js - Response formatting
dry/utils/http/response.js
Security and operations
- Request middleware
dry/middlewares - JWT authentication
dry/middlewares/protection/auth.middleware.js - Input validation
dry/middlewares/validation/validation.middleware.js - Query pagination
dry/middlewares/query/queryBuilder.js - Health and metrics
dry/services/health/health.service.js - Audit and alerts
dry/services/alert/alert.service.js - Email delivery
dry/services/auth/email.service.js
AI platform
- AI inference platform
dryApp/FreeLLM/core/routes - AI providers
dryApp/FreeLLM/core/providers - AI keys and settings
dryApp/FreeLLM/features
Business applications
- Billing and licensing
dry/modules - Media downloads
dryApp/MediaDL/features - Marketplace leads
dryApp/LaStreet/features/leads/controller/leads.controller.js - Other tenant apps
dryApp
Content applications
- Pilgrimage content
dryApp/Pelerin/features - Podcast pipeline
dryApp/Pelerin/services/podcastPipeline.service.js
Other components
- API client
Connections 26
- API client → HTTP server: sends request
README.md - HTTP server → Route bootstrap: starts routes
README.md - Route bootstrap → Tenant bootloader: boots applications
dry/bootstrap/routes.js - API client → Request middleware: passes through
- Request middleware → JWT authentication: includes auth
- JWT authentication → Tenant models: loads user
dry/middlewares/protection/auth.middleware.js - JWT authentication → Response formatting: sends errors
dry/middlewares/protection/auth.middleware.js - Tenant models → MongoDB: uses database
- Tenant bootloader → AI inference platform: mounts tenant apps
README.md - Tenant bootloader → Media downloads: mounts tenant apps
- Tenant bootloader → Marketplace leads: mounts tenant apps
- Tenant bootloader → Pilgrimage content: mounts tenant apps
- Tenant bootloader → Other tenant apps: mounts tenant apps
- AI inference platform → AI providers: routes inference
- AI inference platform → AI keys and settings: exposes management
- Media downloads → JWT authentication: protects routes
dryApp/MediaDL/features/downloads/route/downloads.routes.js - Media downloads → Input validation: validates requests
dryApp/MediaDL/features/downloads/route/downloads.routes.js - Media downloads → Query pagination: uses query tools
dryApp/MediaDL/features/downloads/route/downloads.routes.js - Marketplace leads → Tenant models: loads tenant models
dryApp/LaStreet/features/leads/controller/leads.controller.js - Marketplace leads → Email delivery: sends email
dryApp/LaStreet/features/leads/controller/leads.controller.js - Pilgrimage content → Podcast pipeline: runs import pipeline
dryApp/Pelerin/features/podcastShow/controller/podcastShow.pipeline.controller.js - Podcast pipeline → Response formatting: returns result
dryApp/Pelerin/features/podcastShow/controller/podcastShow.pipeline.controller.js - Billing and licensing → Tenant models: uses tenant models
dry/modules/senepay/senepay.routes.js - Route bootstrap → Health and metrics: serves health status
dry/bootstrap/routes.js - Route bootstrap → Response formatting: formats not-found
dry/bootstrap/routes.js - Audit and alerts → MongoDB: stores audit data
dry/services/alert/alert.service.js