How kumardhananjaya/pulsetrace works
PulseTrace collects browser telemetry through its SDK, validates and queues it at the API, then processes events into issues and persisted records. A separate worker checks configured endpoints for uptime. Users access issues, performance, logs, realtime data, and project settings through the dashboard; authentication supports password and OAuth flows. The graph includes the SDK capture layers and the API’s key processing stages. Some dashboard data-fetching and route internals were not sampled, so those links rely only on documented architecture or are omitted.
Main entry points: index.ts Express API · App.tsx Dashboard Routes · db.ts PostgreSQL Data · eventWorker.ts Event Processor
Components 31
Telemetry SDK
- SDK Capture
sdk/src/core.ts - Capture Handlers
sdk/src/handlers - Web Vitals
sdk/src/vitals.ts - Event Transport
sdk/src/transport.ts
Ingestion Pipeline
- Express API
api/src/index.ts - Event Validation
api/src/validators/event.ts - Event Queue
api/src/queues/eventQueue.ts - Event Processor
api/src/workers/eventWorker.ts - Event Enrichment
api/src/utils - PostgreSQL Data
api/src/db.ts
Identity and Projects
- Auth Routes
api/src/routes/auth.ts - OAuth Identity Service
api/src/services/AuthService.ts - Session Service
api/src/services/SessionService.ts - OAuth Providers
api/src/providers - Project Routes
api/src/routes/projects.ts
Monitoring Services
- Log Routes
api/src/routes/logs.ts - Uptime Routes
api/src/routes/uptime.ts - Uptime Checker
api/src/workers/uptimeWorker.ts - Artifacts and Maps
api/src/routes/artifacts.ts
Dashboard
- Dashboard Routes
dashboard/src/App.tsx - Auth Context
dashboard/src/context/AuthContext.tsx - Issue Views
dashboard/src/pages/IssuesList.tsx - Performance View
dashboard/src/pages/Performance.tsx - Log Explorer
dashboard/src/pages/Logs.tsx - Realtime Feed
dashboard/src/pages/Realtime.tsx - Project Settings
dashboard/src/pages/ProjectSettings.tsx - Uptime View
dashboard/src/pages/Uptime.tsx
Other components
- Instrumented App
- Redis
- Dashboard User
- Monitored Endpoint
Connections 35
- Instrumented App → SDK Capture: initializes
- SDK Capture → Capture Handlers: registers handlers
sdk/src/core.ts - SDK Capture → Web Vitals: starts capture
sdk/src/core.ts - SDK Capture → Event Transport: sends events
sdk/src/core.ts - Event Transport → Express API: posts events
- Express API → Event Validation: validates batch
api/src/index.ts - Express API → Event Queue: enqueues events
api/src/index.ts - Event Queue → Redis: uses queue backend
api/src/queues/eventQueue.ts - Event Processor → Event Queue: consumes jobs
api/src/workers/eventWorker.ts - Event Processor → Redis: connects worker
api/src/workers/eventWorker.ts - Event Processor → Event Enrichment: scrubs and enriches
api/src/workers/eventWorker.ts - Event Processor → PostgreSQL Data: stores events and issues
api/src/workers/eventWorker.ts - Dashboard User → Dashboard Routes: uses dashboard
dashboard/src/App.tsx - Dashboard Routes → Auth Context: provides auth
dashboard/src/App.tsx - Dashboard Routes → Issue Views: routes to issues
dashboard/src/App.tsx - Dashboard Routes → Performance View: routes to performance
dashboard/src/App.tsx - Dashboard Routes → Log Explorer: routes to logs
dashboard/src/App.tsx - Dashboard Routes → Realtime Feed: routes to realtime
dashboard/src/App.tsx - Dashboard Routes → Project Settings: routes to settings
dashboard/src/App.tsx - Dashboard Routes → Uptime View: routes to uptime
dashboard/src/App.tsx - PostgreSQL Data → Dashboard Routes: serves dashboard data
- Express API → Auth Routes: mounts auth routes
api/src/index.ts - Auth Routes → OAuth Identity Service: handles identity
api/src/routes/auth.ts - Auth Routes → Session Service: creates sessions
api/src/routes/auth.ts - Auth Routes → OAuth Providers: delegates OAuth
api/src/routes/auth.ts - OAuth Identity Service → PostgreSQL Data: reads and writes users
api/src/services/AuthService.ts - Session Service → PostgreSQL Data: persists sessions
api/src/services/SessionService.ts - Express API → Project Routes: mounts project routes
api/src/index.ts - Project Routes → PostgreSQL Data: manages projects
- Express API → Log Routes: mounts log routes
api/src/index.ts - Express API → Uptime Routes: mounts uptime routes
api/src/index.ts - Uptime Checker → PostgreSQL Data: reads monitors and records checks
api/src/workers/uptimeWorker.ts - Uptime Checker → Monitored Endpoint: checks endpoint
api/src/workers/uptimeWorker.ts - Express API → Uptime Checker: starts checker
api/src/index.ts - Express API → Artifacts and Maps: artifact API