Knowledge Base updated: 2026-11-10
Redash knowledge base
Orientation
Redash is a self-hosted analytics platform: a Python backend manages organizations, identities, data sources, queries, results, dashboards, alerts, and HTTP APIs; a browser client provides the product interface.
Persistent application state is stored through the backend model and migration layers. Query results, scheduled work, and notification delivery are coordinated by worker processes and supporting services.
The repository also contains the reusable visualization library, visual-regression harness, build/test tooling, and an Astro-based public website.
flowchart LR
U[Users] --> WC[Web client]
WC --> API[Backend HTTP API]
API --> APP[Application runtime]
APP --> DB[(Application database)]
APP --> Q[Query lifecycle]
Q --> DS[Data sources / runners]
Q --> R[Query results]
APP --> D[Dashboards & visualizations]
D --> VL[Visualization library]
APP --> I[Identity & access]
APP --> A[Alerts]
A --> W[Workers & scheduler]
W --> DS
W --> N[Notification destinations]
T[Development tooling] --> APP
S[Public website] --> U
Glossary
- Organization — the tenant boundary used to scope users, data sources, queries, and other product resources.
- Query runner — a connector implementation that executes a query against a specific database, service, file, HTTP endpoint, or script-backed source.
- Query result — stored output produced by query execution and exposed to product and API consumers.
- Visualization — chart or presentation configuration associated with query-backed dashboard widgets.
- Destination — a configured notification endpoint used for alert delivery.
Codebase-wide invariants
- Tenant-aware resources must preserve organization scoping; evidence:
redash/models/**and request-handler organization resolution underredash/handlers/**. - Database-model changes require an accompanying migration when schema persistence changes; evidence:
redash/models/**andmigrations/**. - Query execution must go through the query-runner abstraction rather than embedding source-specific execution in handlers; evidence:
redash/query_runner/**andredash/tasks/**. - Browser-facing product changes must keep backend API contracts and client consumers compatible; evidence:
redash/handlers/**andclient/**. - JavaScript dependency and workspace changes must keep package.json and pnpm-lock.yaml consistent.
Routing table
redash/**, wsgi.py, manage.py,bin/**-> Application runtime and service compositionredash/settings/**, redash/organization.py, redash/…/organizations.py -> Configuration and organization settingsredash/models/**,migrations/**-> Data model and persistence lifecycleredash/tasks/**, redash/worker.py, redash/schedule.py -> Background jobs and scheduling- redash/…/queries.py,
redash/query_runner/**, redash/…/queries.py -> Querying and data source integration redash/query_runner/**-> Query runner platform- redash/…/query_results.py, redash/…/query_results.py,
redash/serializers/**-> Query results and serialization - redash/…/dashboards.py, redash/…/widgets.py, redash/…/visualizations.py,
client/app/pages/dashboards/**-> Dashboards and visualizations viz-lib/**-> Reusable visualization library- redash/…/alerts.py,
redash/destinations/**, redash/…/alerts.py -> Alerts and notification delivery - redash/…/users.py, redash/…/groups.py, redash/permissions.py,
redash/authentication/**-> Identity, access, and tenancy redash/authentication/**, redash/…/authentication.py -> Authentication providersredash/handlers/**,redash/serializers/**, redash/routes.py -> Backend HTTP API and request handlersclient/**-> Web client applicationclient/app/services/**,client/app/extensions/**,client/app/lib/**-> Frontend services and extensions- package.json, pnpm-lock.yaml,
Dockerfile, docker-compose*.yml,Makefile,tests/**-> Development, build, and test tooling viz-lib/tests/**,tests/visual/**,client/cypress/**-> Visual regression testingwebsite/**-> Public website platformwebsite/src/pages/**,website/src/content/**,website/scripts/**,website/public/**-> Website pages, content, and migration pipeline