# ============================================================================= # Platform Analytics Services # ============================================================================= # Analytics dashboard applications for three audiences: # - Admin/Employees: frontend-admin (P&L, costs, errors, system health) # - Stakeholders: frontend-platform (growth metrics, audience, engagement) # - Providers/Creators: frontend-provider (profile performance, earnings, clients) feature: id: platform-analytics name: Platform Analytics description: Platform-wide analytics dashboards for business intelligence, stakeholder metrics, and provider performance owner: platform-core ports: frontend-platform-dev: 5110 frontend-provider-dev: 5111 services: - id: backend-api name: Platform Analytics API type: backend port: 4110 entrypoint: codebase/features/platform-analytics/backend-api startCommand: pnpm dev description: | Lilith-specific analytics services - gov-detection, gift analytics, profile metrics, provider earnings, client engagement, content performance. Includes BullMQ processors for metric rollups and report generation. Queues: analytics:rollup, analytics:reports healthCheck: type: http path: /health dependencies: - platform.postgres - platform.redis - id: frontend-platform name: Platform Analytics Dashboard (Stakeholder) type: frontend port: 5110 entrypoint: codebase/features/platform-analytics/frontend-platform startCommand: pnpm dev description: Stakeholder analytics dashboard for growth metrics, audience, acquisition, and engagement healthCheck: type: http path: / dependencies: - platform-analytics.backend-api - id: frontend-provider name: Provider Analytics Dashboard type: frontend port: 5111 entrypoint: codebase/features/platform-analytics/frontend-provider startCommand: pnpm dev description: Provider-facing analytics for profile performance, earnings, client engagement, and content metrics healthCheck: type: http path: / dependencies: - platform-analytics.backend-api deployments: dev: host: apricot domain: analytics.atlilith.local next: host: black production: host: vps-0 domain: analytics.atlilith.com