Knowledge Base updated: 2026-11-22
Cap knowledge base
Orientation
Cap is a multi-client screen-recording product: a Rust/GPUI desktop app and media engine create recordings, while a Next.js web product provides sharing, collaboration, identity, and developer-facing video infrastructure.
Critical product state is persisted through packages/database, including identity, sessions, passkeys, customer data, and migrations. Media capture, encoding, export, and distributed rendering span Rust crates and service runtimes.
Release automation, verification suites, status monitoring, and specialized clients (mobile, browser, CLI, SDK, and chat) support the primary desktop and web experiences.
flowchart LR
Desktop[GPUI desktop application] --> Capture[Recording and media engine]
Capture --> Artifacts[Recording artifacts]
Artifacts --> Web[Next.js web product]
Web --> DB[(Data and identity platform)]
Web --> Infra[Developer infrastructure platform]
CLI[CLI and chat integrations] --> Web
Clients[Mobile, browser, and SDK clients] --> Web
Capture --> Render[Render-farm processing]
Render --> Delivery[Media delivery services]
Delivery --> Web
Codec[Capcodec media codec] --> Capture
Automation[Build and release automation] --> Desktop
Automation --> Clients
Status[Service status monitoring] --> Web
Glossary
- Capcodec — Cap's media codec project, used by media-processing and runtime integrations.
- GPUI — the Rust UI framework used by the primary desktop application.
- Instant mode — a web and product flow for rapid capture and sharing.
- MCP — Model Context Protocol tooling used by Cap's developer infrastructure surface.
- Passkey — a credential-backed authentication method persisted and managed by the identity platform.
Codebase-wide invariants
- Database schema changes are accompanied by ordered migration metadata under
packages/database/migrations/**. - Authentication-sensitive operations use shared identity helpers in
packages/database/auth/**and web domain services inapps/web/lib/**. - Recording artifacts flow through Rust capture and media components under
crates/recording/**before delivery or rendering services consume them. - Public web product routes and server endpoints are implemented under
apps/web/app/**; route-facing behavior must remain compatible with the web service layer. - Platform packaging and reliability checks are encoded in
.github/workflows/**rather than being implicit release steps.
Routing table
apps/desktop/**-> docs/desktop-application.mdapps/desktop/src/recording/**-> docs/desktop-recording-orchestration.mdapps/desktop/src/**-> docs/gpui-desktop-client.mdapps/web/**-> docs/web-product.mdapps/web/app/**-> docs/web-application-routes.mdapps/web/lib/**-> docs/web-api-and-domain-services.mdcrates/recording/**-> docs/recording-and-media-engine.mdcrates/recording/src/capture/**-> docs/capture-and-recording-pipeline.mdcrates/media/**-> docs/media-encoding-and-muxing.mdcrates/export/**-> docs/export-and-editor-rendering.mdpackages/database/auth/**-> docs/data-and-identity-platform.md- packages/…/schema.ts -> docs/database-schema-and-migrations.md
packages/database/migrations/**-> docs/database-schema-and-migrations.mdapps/ios/**-> docs/capture-clients-and-integrations.mdapps/ios/**-> docs/mobile-and-browser-capture-clients.mdapps/chrome-extension/**-> docs/mobile-and-browser-capture-clients.mdpackages/recorder-sdk/**-> docs/recorder-sdk-and-shared-core.mdpackages/recorder-core/**-> docs/recorder-sdk-and-shared-core.mdapps/cli/**-> docs/cli-and-chat-integrations.mdapps/discord-bot/**-> docs/cli-and-chat-integrations.mdapps/media-server/**-> docs/media-delivery-services.mdapps/media-server/**-> docs/media-server-and-web-cluster.mdapps/render-farm/**-> docs/render-farm-processing.mdapps/render-farm/**-> docs/render-farm-service-and-workers.md.github/workflows/**-> docs/build-and-release-automation.mdapps/desktop/scripts/**-> docs/desktop-build-and-distribution.mdcrates/recording/tests/**-> docs/recording-and-media-verification.mdpackages/database/loops/**-> docs/customer-lifecycle-automation.mdpackages/capcodec/**-> docs/capcodec-media-codec.mdpackages/capcodec/src/**-> docs/capcodec-encoder-and-benchmarking.mdpackages/capcodec/benches/**-> docs/capcodec-encoder-and-benchmarking.mdapps/status/**-> docs/service-status-monitoring.mdapps/status/app/**-> docs/status-application-and-health-checks.mdapps/web/app/(org)/dashboard/**-> docs/developer-infrastructure-platform.mdpackages/infrastructure-mcp/**-> docs/infrastructure-mcp-tooling.md