How runtz-dev/runtz works
Runtz is a DevSecOps security platform: scanner clients submit results to a Go engine, and users review findings, assets, trends, and cloud-security checks in a Next.js platform. The engine also handles identity, workspaces, API keys, billing, and cloud integrations. The README documents the major scan families and platform capabilities; sampled excerpts show server startup, the frontend API proxy, MongoDB setup, and cloud-ingestion validation. Several feature-specific backend implementations were not sampled, so their internal calls are not expanded.
Main entry points: route.ts API proxy · server.go HTTP engine · cloud_ingest.go Scan ingestion and queries · (platform) Web platform
Components 23
Platform experience
- Web platform
frontend/src/app/(platform) - API proxy
frontend/src/app/api/[...path]/route.ts - Overview dashboard
frontend/src/app/(platform)/overview/page.tsx - Scan dashboards
frontend/src/app/(platform) - Cloud setup and views
frontend/src/components/runtz/cloud-pages.tsx - Workspace settings
frontend/src/app/(platform)/settings/page.tsx - First-run setup
frontend/src/app/(platform)/onboarding/page.tsx
Engine and identity
- HTTP engine
engine/internal/api/server.go - Authentication
engine/internal/api/auth_email.go - Workspace and API keys
engine/internal/api/api_keys.go - Plans and billing
engine/internal/api/billing.go
Scan results
- Scan ingestion and queries
engine/internal/api/cloud_ingest.go - SCA results
frontend/src/app/(platform)/sca/page.tsx - SAST results
frontend/src/app/(platform)/sast/page.tsx - Host, container, Kubernetes
frontend/src/app/(platform)/hosts/page.tsx
Cloud security
- Cloud scan ingestion
engine/internal/api/cloud_ingest.go - GCP credential validation
engine/internal/cloudgcp/client.go - Security service client
engine/internal/securityclient/client.go
State and integrations
- MongoDB
- Runtz Security service
- Stripe
Other components
- Platform user
- Scanner CLI
Connections 23
- Platform user → Web platform: uses
README.md - Scanner CLI → Scan ingestion and queries: uploads scans
README.md - Web platform → API proxy: requests API
frontend/src/app/api/[...path]/route.ts - API proxy → HTTP engine: forwards requests
frontend/src/app/api/[...path]/route.ts - HTTP engine → MongoDB: connects and queries
engine/internal/api/server.go - HTTP engine → Authentication: handles identity
- HTTP engine → Workspace and API keys: handles workspace access
- HTTP engine → Plans and billing: handles billing
- Scan ingestion and queries → MongoDB: stores scan data
- Overview dashboard → API proxy: loads dashboard data
- Scan dashboards → API proxy: loads scan data
- Web platform → Overview dashboard: presents trends
README.md - Web platform → Scan dashboards: presents findings
README.md - Workspace settings → API proxy: manages workspaces
frontend/src/app/(platform)/settings/page.tsx - First-run setup → API proxy: creates workspace
frontend/src/app/(platform)/onboarding/page.tsx - Cloud setup and views → API proxy: manages cloud scans
- Cloud scan ingestion → Security service client: delegates security operations
engine/internal/api/cloud_ingest.go - Cloud scan ingestion → GCP credential validation: validates credentials
- Security service client → Runtz Security service: sends tenant requests
engine/internal/securityclient/client.go - Scan ingestion and queries → SCA results: serves scan results
- Scan ingestion and queries → SAST results: serves scan results
- Scan ingestion and queries → Host, container, Kubernetes: serves scan results
- Plans and billing → Stripe: creates checkout