Knowledge Base updated: 2026-11-22
Unstract knowledge base
Orientation
Unstract is a document-processing platform: a Django backend manages organizations, configurations, APIs, workflows, and platform domains; a React browser application lets users configure and operate those capabilities.
Asynchronous document execution is performed by workers, queue infrastructure, connectors, tools, and standalone conversion/support services. Deployment assets compose these components for local, containerized, and end-to-end environments.
Critical durable state resides in backend domain storage and PostgreSQL-backed queue mechanisms; Redis provides cache- and coordination-oriented state where configured. Workers handle execution state and results through task, callback, and queue protocols.
System map
flowchart LR
UI[Frontend application] --> API[Django backend API]
API --> DB[(Platform database)]
API --> Cache[(Redis)]
UI --> V1[Frontend v1 foundation]
API --> WF[Workflow management]
WF --> Q[Queue orchestration]
Q --> Workers[Worker operations]
Workers --> Tools[Tool runtime]
Workers --> Conn[Connector platform]
Workers --> X2[X2Text service]
Workers --> SDK[SDK LLM runtime]
API --> MCP[MCP server]
API --> Metrics[Metrics and audit domains]
Deploy[Compose and test infrastructure] --> API
Deploy --> Workers
Deploy --> X2
Glossary
- Structure tool: a worker file-processing operation that prepares structured extraction inputs and outputs.
- X2Text: the standalone document-conversion service used to prepare files for extraction workflows.
- Tool sidecar: the service/runtime boundary for registered workflow tools.
- Inbox: organization-scoped backend records that surface execution failures and related operational events.
- MCP server: the backend Model Context Protocol surface that exposes platform-aware tools and information.
Codebase-wide invariants
- Browser navigation and shared top-bar behavior are implemented and tested together under
frontend/src/components/navigations/top-nav-bar/**. - Worker file-processing operations must preserve their execution and result-handling contract with the surrounding worker pipeline; see
workers/file_processing/**andworkers/tests/**. - Queue-backed execution must tolerate retries, recovery, idempotency, and result signaling; see
workers/**queue**/**and orchestration modules. - Backend API capabilities remain bounded by their owning Django domain applications under
backend/**and versioned API modules. - Container and end-to-end environments must compose service dependencies explicitly through Docker and test fixture configuration under
docker-compose*,docker/**, and test infrastructure paths.
Routing table
backend/**/api/**,backend/**/views/**, backend/…/urls.py -> Backend API platformbackend/api_v2/**,backend/**/serializers/**,backend/**/permissions/**-> Versioned backend APIs and domain modulesbackend/**/pipeline/**,backend/**/scheduler/**,backend/**/plugins/**,backend/**/deployments/**-> Backend workflow managementbackend/**/agent_kv_extraction/**,workers/**/agent_kv/**-> Agent key-value extractionbackend/**/api_key/**,backend/**/apikey/**-> API key usage and lifecyclebackend/**/audit/**-> Platform audit eventsbackend/**/inbox/**-> Inbox domainbackend/**/metrics/**-> Platform metricsfrontend/src/**, frontend/package.json,frontend/vite.config.*-> Frontend applicationfrontend/src/components/**,frontend/src/pages/**,frontend/src/routes/**,frontend/src/components/navigations/top-nav-bar/**-> Frontend UI architecturefrontend-v1/**,frontend/src-v1/**-> Frontend v1 interface foundationworkers/**,backend/**/workflow/**,backend/**/execution/**-> Workflow execution systemworkers/file_processing/**,workers/**/operations/**,workers/**/callbacks/**,workers/**/notifications/**-> Worker operations and execution pluginsworkers/**/queue/**,workers/**/scheduler/**,workers/**/reaper/**-> Queue-backed worker orchestrationconnectors/**,tools/**,sdk/**-> Connectors and tool ecosystemconnectors/**,workers/**/connectors/**-> Connector platformtools/**,tool-sidecar/**,workflow-execution/**-> Tool registry and execution runtimesdk/**/llm/**,sdk/**/providers/**,sdk/**/retry/**-> SDK LLM runtimex2text/**,document-processing/**-> Document processing servicesx2text/**-> X2Text document conversion serviceplatform-service/**,runner/**,services/**-> Platform support servicesplatform-service/**-> Platform servicerunner/**-> Runner service- docker-compose*.yml,
docker/**,tests/**,e2e/**-> Deployment and operations - docker-compose*.yml,
docker/**,tests/**,e2e/**,integration_tests/**-> Container composition and test infrastructure backend/**/resource_usage/**,backend/**/usage/**-> Resource usage trackingbackend/**/mcp/**-> Model Context Protocol server