How sugan-developerinnooryze-stack/leadryze_backend works
LeadRyze Backend is a multi-tenant CRM platform with marketing, messaging, analytics, and a substantial native CRM/field-service domain. The main user workflow enters through the API, authenticates and authorizes a tenant-scoped request, then uses a product module to manage records or operations. The tree also shows public-widget, automation, document, and integration capabilities. Relationships are limited to those visible in excerpts or the source index; unsampled modules are represented as subsystems without guessed call paths.
Main entry points: app.ts HTTP API · native-crm.router.ts Native CRM API · database.ts MongoDB · pipeline-config.controller.ts Pipeline configuration
Components 21
API and identity
- HTTP API
src/app.ts - Authentication
src/modules/auth/auth.service.ts - Access control
src/middlewares/auth.middleware.ts - Tenant management
src/modules/tenants/tenant.service.ts
Native CRM
- Native CRM API
src/modules/native-crm/native-crm.router.ts - Sales records
src/modules/native-crm/leads/lead.service.ts - Field service
src/modules/native-crm/workorders/workorder.service.ts - CRM automation
src/modules/native-crm/automation-flows/automation-flow.service.ts - Knowledge datasets
src/modules/native-crm/datasets/dataset-query.service.ts - Pipeline configuration
src/modules/native-crm/pipeline-config/pipeline-config.controller.ts
Customer engagement
- Customer records
src/modules/customers/customer.service.ts - Campaigns
src/modules/campaigns/campaign.service.ts - Messaging
src/modules/messages/message.service.ts - Public widget
src/modules/public-widget/public-widget.controller.ts
Platform services
- MongoDB
src/config/database.ts - CRM search index
src/services/meilisearch.service.ts - S3 storage
src/services/s3.service.ts - Webhook integrations
src/modules/webhooks/webhook.controller.ts - Analytics
src/modules/analytics/analytics.service.ts
Other components
- CRM user
- AI service
Connections 21
- CRM user → HTTP API: uses
src/app.ts - HTTP API → Authentication: routes
src/app.ts - HTTP API → Tenant management: routes
src/app.ts - HTTP API → Customer records: routes
src/app.ts - HTTP API → Campaigns: routes
src/app.ts - HTTP API → Messaging: routes
src/app.ts - Authentication → Access control: checks permissions
src/modules/auth/auth.service.ts - Access control → MongoDB: checks roles
- HTTP API → Native CRM API: routes
src/app.ts - Native CRM API → Sales records: dispatches
- Native CRM API → Field service: dispatches
- Native CRM API → CRM automation: dispatches
- Native CRM API → Pipeline configuration: dispatches
- Pipeline configuration → MongoDB: reads and updates
- Pipeline configuration → Tenant management: validates custom modules
src/modules/native-crm/pipeline-config/pipeline-config.controller.ts - Knowledge datasets → AI service: searches semantically
src/modules/native-crm/datasets/dataset-query.service.ts - Knowledge datasets → MongoDB: queries records
src/modules/native-crm/datasets/dataset-query.service.ts - Public widget → MongoDB: uses sessions
src/modules/public-widget/public-widget.controller.ts - Public widget → Tenant management: loads tenant
src/modules/public-widget/public-widget.controller.ts - CRM search index → MongoDB: indexes CRM records
- HTTP API → S3 storage: serves file proxy