# Falcon — repository for **Dash** > **Dash** — *Dori Application Service Hive.* A multi-tenant, Kafka-driven > microservice platform for the Dori AI video-intelligence stack. ## Layout ``` falcon/ ├── common/ Shared Python library (dori_model + dori_utils) ├── services/ │ ├── config_app/ Auth + admin config (/config/*) │ ├── job_app/ Job lifecycle + uploads (/jobs/*) │ ├── analytics_app/ Event ingest + dashboard queries (/analytics/*) │ ├── cim/ Customer Interface Module (/cim/*) │ ├── dmf/ Data Management Framework (/dmf/*) │ ├── monitor/ MLC health + system events (/monitor/*) │ └── edge_simulator/ Test producer of synthetic ML events (/sim/*) ├── alembic/ DB migration scaffolding ├── nginx.conf Reverse-proxy config for the gateway ├── docker-compose.yml Local + EC2 dev stack ``` ## The dashboard (customer-facing surface) One React app (`smartvision_va`, built from the sibling `../icd` repo as `fe-icd-react`) serves both experiences from a single build — the mount path picks the mode: | URL prefix | Experience | Who | |---|---|---| | `/icd/` | Infrastructure Configuration (platform) | DORI_ADMIN only | | `/cod/` | Customer Operations (per-tenant) | tenant admins/users (and DORI_ADMIN) | | `/icd-react/` | Legacy alias — user role picks the mode | — | `/` redirects to `/icd/`. Both experiences share the `/common/*` APIs (login, password, user management). ## Services + Kafka topology ``` edge / sim ──► dori.inference.events ──┬──► analytics_app ──► dori.incidents.created ──► cim ──► dori.alerts.dispatch └──► monitor (pass-rate window) ───────────────► dori.alerts.dispatch ▲ job_app ──► dori.jobs.lifecycle │ │ external ERP ──► dori.orders.inbound ──► job_app ``` ## Backbone - **PostgreSQL + TimescaleDB**: canonical [dori_db] schema, multi-tenant via `d_company_id`. - **Redpanda** (Kafka API): 5 topics for the inference + incident + alert pipeline. - **JWT** auth, tenant context extracted on every request. - **S3** access scoped per-company via `d_auth_aws` credentials. ## Local development ```sh docker compose up --build docker compose exec config_app alembic -c /app/alembic.ini upgrade head docker compose exec config_app python -m dori_utils.seed # Browser: http://localhost/icd/ (platform) · http://localhost/cod/ (customer) # Login: dori@doriai.com / ChangeMe123! ``` ## Branding - **Brand name**: Dash - **Full meaning**: Dori Application Service Hive - **Repo name**: Falcon (this repo) - Design system: see `Dori_AI_Design_System.md` in the design-system project. - FE accent: Fountain Blue `#4DB8AC`. Inter typeface. Sentence-case copy.