How duresh-tech/my-streams works
My Streams is a multi-tenant SaaS for managing live-stream businesses on Flussonic servers. Tenants manage customers, servers, streams, plans and billing in the Tenant Portal; customers use a separate portal to view their assigned streams and invoices; system administrators manage tenants and platform configuration. The backend also handles stream events, alerts, dashboards and public stream sharing. The graph reflects README-described capabilities and sampled controller behavior; unsampled frontend-to-endpoint wiring and internal service calls are kept general or omitted.
Main entry points: prisma.service.ts Application database · dashboard/page.tsx Tenant Portal · dashboard/page.tsx System Console · servers/page.tsx Customer Portal
Components 25
User portals
- System Console
frontend/src/app/system/dashboard/page.tsx - Tenant Portal
frontend/src/app/tenant/dashboard/page.tsx - Customer Portal
frontend/src/app/customer/servers/page.tsx
Identity and access
- System auth
backend/src/auth/auth.controller.ts - Tenant auth
backend/src/tenant-auth/tenant-auth.controller.ts - Customer auth
backend/src/customer-auth/customer-auth.controller.ts - RBAC administration
backend/src/permissions/permissions.controller.ts
Tenant operations
- Customer management
backend/src/tenant-customers/tenant-customers-self.controller.ts - Server management
backend/src/tenant-flussonic-servers/tenant-flussonic-servers-self.controller.ts - Stream management
backend/src/tenant-streams/tenant-streams-self.controller.ts - Customer services
backend/src/customer-portal/customer-portal.controller.ts - Invoices and billing
backend/src/tenant-billing/tenant-invoices-self.controller.ts - Ledger and plans
backend/src/tenant-income-expenses/tenant-income-expenses.service.ts - Events and alerts
backend/src/tenant-stream-events/tenant-stream-events-self.controller.ts - Insights dashboards
backend/src/tenant-dashboard/tenant-dashboard.controller.ts - Business settings
backend/src/tenant-business/tenant-business.controller.ts - Public stream sharing
backend/src/public-share/public-share.controller.ts
Platform services
- App configuration
backend/src/app-settings/app-settings.controller.ts - Application database
backend/src/prisma/prisma.service.ts - File storage
backend/src/storage/storage.service.ts
External systems
- Flussonic servers
- Email service
Other components
- System admin
- Tenant team
- Customer
Connections 40
- System admin → System Console: uses
- Tenant team → Tenant Portal: uses
- Customer → Customer Portal: uses
- System Console → System auth: authenticates via
- Tenant Portal → Tenant auth: authenticates via
- Customer Portal → Customer auth: authenticates via
- System Console → RBAC administration: administers access
- System Console → App configuration: manages settings
- System Console → Insights dashboards: requests insights
- Tenant Portal → Customer management: manages customers
- Tenant Portal → Server management: manages servers
- Tenant Portal → Stream management: manages streams
- Tenant Portal → Invoices and billing: manages invoices
- Tenant Portal → Ledger and plans: tracks finances
- Tenant Portal → Events and alerts: views events
- Tenant Portal → Business settings: configures business
- Tenant Portal → Insights dashboards: requests insights
- Customer Portal → Customer services: views account
- Customer Portal → Invoices and billing: views invoices
- Customer services → Flussonic servers: reads live status
- Server management → Flussonic servers: checks server
- Stream management → Flussonic servers: reconciles streams
- Events and alerts → Email service: sends alerts
- Invoices and billing → Ledger and plans: books payments
- App configuration → File storage: uploads files
- Customer services → File storage: uploads pictures
- RBAC administration → Application database: reads and writes
- System auth → Application database: reads and writes
- Tenant auth → Application database: reads and writes
- Customer auth → Application database: reads and writes
- Customer management → Application database: reads and writes
- Server management → Application database: reads and writes
- Stream management → Application database: reads and writes
- Customer services → Application database: reads and writes
- Invoices and billing → Application database: reads and writes
- Ledger and plans → Application database: reads and writes
- Events and alerts → Application database: reads and writes
- Insights dashboards → Application database: queries insights
- Business settings → Application database: reads and writes
- Public stream sharing → Application database: reads share data