How delok-dev/delok works
Delok is a hosted application-log platform: users organize work into organizations and projects, create ingestion keys, send logs, then search and monitor project logs. The map covers the documented collection and search capabilities, the workspace-management UI, backend ingestion and querying, and realtime updates. Several frontend-to-API links and unsampled backend internals are not visible in the excerpts, so those relationships are marked unverified or omitted.
Main entry points: ingestion.service.ts Ingestion service · useLogExplorer.ts Log explorer · app.ts HTTP application · OrganizationsPage.tsx Organization workspace
Components 23
Workspace management
- Organization workspace
frontend/src/views/orgs/OrganizationsPage.tsx - Organization API
backend/src/modules/organization/organization.controller.ts - Project workspace
frontend/src/views/orgs/organization/projects/ProjectsPage.tsx - Project API
backend/src/modules/project/project.controller.ts - API key settings
frontend/src/domains/api-key/components/ApiKeyList.tsx
Log collection and exploration
- Log explorer
frontend/src/domains/log-explorer/hooks/useLogExplorer.ts - Log presentation
frontend/src/domains/log/components/LogEventRow.tsx - Ingestion endpoint
backend/src/modules/ingestion/ingestion.controller.ts - Ingestion service
backend/src/modules/ingestion/ingestion.service.ts
Backend services
- API key management
backend/src/modules/api-key/api-key.controller.ts - Key service
backend/src/modules/api-key/api-key.service.ts - Log query API
backend/src/modules/log-event/log-event.controller.ts - Log query service
backend/src/modules/log-event/log-event.service.ts - Ingestion persistence
backend/src/modules/ingestion/ingestion.repository.ts - Application database
backend/src/lib/prisma.ts - HTTP application
backend/src/app.ts
Identity and realtime
- Authentication
backend/src/lib/auth.ts - Realtime service
backend/src/infrastructure/realtime/realtime.service.ts - WebSocket transport
backend/src/infrastructure/realtime/websocket.ts - Realtime client
frontend/src/lib/websocket/websocket.ts - Delok telemetry client
backend/src/lib/delok.ts
Other components
- User
- Delok SDK
Connections 21
- User → Organization workspace: manages
- Organization workspace → Organization API: requests data
- User → Project workspace: organizes projects
- Project workspace → Project API: requests data
- User → API key settings: manages keys
- API key settings → API key management: requests keys
- API key management → Key service: calls
backend/src/modules/api-key/api-key.controller.ts - User → Log explorer: explores logs
- Log explorer → Log presentation: renders logs
- Log explorer → Log query API: queries logs
- Log query API → Log query service: calls
backend/src/modules/log-event/log-event.controller.ts - Delok SDK → HTTP application: submits logs
backend/src/app.ts - HTTP application → Ingestion endpoint: routes requests
backend/src/app.ts - Ingestion endpoint → Ingestion service: calls
backend/src/modules/ingestion/ingestion.controller.ts - Ingestion service → Ingestion persistence: reads and writes
backend/src/modules/ingestion/ingestion.service.ts - Ingestion persistence → Application database: persists events
backend/src/modules/ingestion/ingestion.repository.ts - HTTP application → Authentication: registers auth
backend/src/app.ts - Ingestion service → Realtime service: emits updates
backend/src/modules/ingestion/ingestion.service.ts - Realtime service → WebSocket transport: uses transport
backend/src/infrastructure/realtime/realtime.service.ts - Realtime client → WebSocket transport: connects
- Ingestion service → Delok telemetry client: logs failures
backend/src/modules/ingestion/ingestion.service.ts