How tridibjena/pure-insights-command-center works
Pure Insights Command Center is a role-based operational analytics dashboard backed by an Express API, PostgreSQL and a Python data pipeline. Operators sign in, then use permission-gated views for report health, reports, orphaned ownership, costs, data quality and administration. Telemetry can be ingested or replayed; server-side rules create alerts that reach the dashboard over WebSockets, with REST resynchronization. The README also documents Snowflake ACCOUNT_USAGE cost attribution. Some routes and pipeline stages are represented by their exact enclosing directories because their implementations were not excerpted; the cost SQL suite is not present in the supplied tree.
Main entry points: app.js HTTP router · telemetryIngest.js Telemetry ingestion · server.js Server wiring · App.jsx Dashboard routes
Components 21
Dashboard
- Dashboard routes
client/src/App.jsx - Session context
client/src/auth/AuthContext.jsx - API client
client/src/api/client.js - Analytics views
client/src/pages - Live alert stream
client/src/realtime/AlertStream.jsx
API and access
- HTTP router
server/src/app.js - Sign-in routes
server/src/routes/auth.js - Authentication and RBAC
server/src/auth/middleware.js - Analytics API routes
server/src/routes - Server wiring
server/src/server.js
Telemetry and alerts
- Telemetry routes
server/src/routes/telemetry.js - Telemetry ingestion
server/src/services/telemetryIngest.js - Alert rules
server/src/services/alertRules.js - Alert lifecycle
server/src/services/alertService.js - WebSocket hub
server/src/services/wsHub.js - Telemetry replay
server/src/services/telemetryReplayer.js
Data pipeline
- CSV processing and quality
pipeline/pic_pipeline - Snowflake cost attribution
pipeline/pic_pipeline
Data stores
- PostgreSQL
Other components
- Operator
- Snowflake ACCOUNT_USAGE
Connections 32
- Operator → Dashboard routes: uses
README.md - Dashboard routes → Session context: checks session
client/src/App.jsx - Dashboard routes → Analytics views: routes to
client/src/App.jsx - Dashboard routes → Live alert stream: provides stream
client/src/App.jsx - Session context → API client: requests session
client/src/auth/AuthContext.jsx - Analytics views → API client: fetches data
client/src/pages/Alerts.jsx - Live alert stream → API client: resyncs alerts
client/src/realtime/AlertStream.jsx - API client → HTTP router: calls REST
- Live alert stream → WebSocket hub: opens WebSocket
client/src/realtime/AlertStream.jsx - HTTP router → Sign-in routes: mounts
server/src/app.js - HTTP router → Analytics API routes: mounts
server/src/app.js - HTTP router → Telemetry routes: mounts
server/src/app.js - HTTP router → Authentication and RBAC: guards routes
server/src/app.js - Sign-in routes → PostgreSQL: reads users
server/src/routes/auth.js - Sign-in routes → Authentication and RBAC: authenticates session
server/src/routes/auth.js - Authentication and RBAC → PostgreSQL: loads user
server/src/auth/middleware.js - Analytics API routes → PostgreSQL: serves analytics
- Server wiring → HTTP router: creates app
server/src/server.js - Server wiring → Telemetry ingestion: creates ingest
server/src/server.js - Server wiring → Telemetry replay: creates replayer
server/src/server.js - Server wiring → WebSocket hub: creates hub
server/src/server.js - Telemetry routes → Telemetry ingestion: accepts telemetry
- Telemetry replay → Telemetry ingestion: replays events
server/src/server.js - Telemetry ingestion → Alert rules: evaluates events
server/src/services/telemetryIngest.js - Telemetry ingestion → Alert lifecycle: updates incidents
server/src/services/telemetryIngest.js - Alert lifecycle → Alert rules: uses rules
server/src/services/alertService.js - Telemetry ingestion → PostgreSQL: writes telemetry
- WebSocket hub → Live alert stream: streams updates
client/src/realtime/AlertStream.jsx - CSV processing and quality → PostgreSQL: loads cleaned data
README.md - Snowflake ACCOUNT_USAGE → Snowflake cost attribution: provides usage records
README.md - Snowflake cost attribution → PostgreSQL: publishes attribution
- Analytics views → Analytics API routes: requests analytics