Knowledge Base updated: 2026-11-22
Karakeep knowledge base
Karakeep is a monorepo for a self-hostable bookmark and saved-content system. Its main parts are the Next.js web application, Astro marketing site, mobile and browser clients, API/server packages, asynchronous workers, and shared service abstractions.
Critical state lives in the database and persisted assets; the server exposes application capabilities through HTTP and tRPC, while workers enrich saved content and operate asynchronous maintenance flows. Search, queues, storage, inference, and vector retrieval are selected through shared plugin contracts.
flowchart LR
U[Users and agents] --> L[Astro landing site]
U --> W[Next.js web app]
U --> M[Expo mobile app]
U --> E[Browser extension]
U --> C[CLI / MCP / SDK]
W --> A[HTTP API and tRPC]
M --> A
E --> A
C --> A
A --> D[(Database)]
A --> S[Asset storage]
A --> Q[Queue backend]
Q --> K[Worker service]
K --> D
K --> X[Search, vector, inference plugins]
K --> S
Glossary
- Bookmark: A saved item and its associated metadata, content, assets, and organization state.
- Karakeep server: The application service exposing HTTP and tRPC capabilities to clients.
- Worker: The asynchronous processing service for ingestion, enrichment, automation, and maintenance jobs.
- Asset store: The abstraction and provider implementations used to persist captured files and derived assets.
- MCP server: The Model Context Protocol integration that exposes Karakeep tools to compatible agents.
Codebase-wide invariants
- Client-facing application operations cross the server boundary through the HTTP API or tRPC routers; see
apps/web/**,apps/mobile/**, and server API routing patterns. - Persistent application state is modeled through the database schema and migrations; see database schema and migration directories covered by the data-model page.
- Long-running capture, enrichment, and maintenance work is dispatched through queue contracts and executed by workers; see worker job and queue-backend patterns.
- Captured and derived files are persisted through asset-storage contracts rather than being owned by individual clients; see shared asset-store provider patterns.
- Search, vector retrieval, inference, and queue implementations are selected behind shared abstractions; see shared plugin contracts and concrete providers.
Routing table
apps/web/**-> docs/web-application.mdapps/web/app/**,apps/web/components/**/dashboard/**,apps/web/components/**/reader/**-> docs/web-dashboard-reader.mdapps/web/app/**/auth/**,apps/web/app/**/settings/**,apps/web/app/**/admin/**-> docs/web-account-administration.mdapps/landing/**-> docs/landing-website.mdapps/server/**,packages/**/trpc/**,packages/**/api/**-> docs/api-and-trpc.mdapps/server/**/bookmark/**,apps/server/**/tag/**,apps/server/**/list/**,apps/server/**/search/**-> docs/bookmark-organization-apis.mdapps/server/**/user/**,apps/server/**/subscription/**,apps/server/**/webhook/**,apps/server/**/backup/**-> docs/integration-operations-apis.mdapps/workers/**,apps/worker/**-> docs/background-processing.mdapps/workers/**/crawler/**,apps/workers/**/embedding/**,apps/workers/**/inference/**,apps/workers/**/feed/**-> docs/content-ingestion-enrichment-jobs.mdapps/workers/**/rule/**,apps/workers/**/import/**,apps/workers/**/backup/**,apps/workers/**/webhook/**-> docs/automation-operations-jobs.mdpackages/db/**,apps/server/**/db/**,**/migrations/**-> docs/data-model-and-persistence.mdpackages/**/plugins/**,packages/**/search/**,packages/**/queue/**,packages/**/inference/**-> docs/search-inference-and-plugins.mdpackages/**/asset-store/**,packages/**/assets/**-> docs/asset-storage-backends.mdpackages/**/search/**,packages/**/vector/**,**/meilisearch/**-> docs/search-and-vector-retrieval.mdpackages/**/queue/**,**/liteque/**,**/restate/**-> docs/queue-execution-backends.mdapps/cli/**,apps/mcp/**,apps/mobile/**,apps/extension/**,packages/sdk/**-> docs/client-integrations.mdapps/extension/**,apps/browser-extension/**-> docs/browser-extension-capture.mdapps/mobile/**-> docs/mobile-application.mdapps/cli/**,apps/mcp/**,packages/sdk/**,**/openapi/**-> docs/developer-tool-integrations.mddocker/**,k8s/**,helm/**, docker-compose*.yml,apps/**/Dockerfile-> docs/deployment-and-runtime-operations.md