Architecture

A monorepo built for scale and low maintenance

Horizontally extensible workers, centralized configuration, and a single command to run the whole platform.

System layers

apps/
web (TanStack Start)api (FastAPI)docs
services/
parser-workerembedding-workerrag-workeranalytics-worker
python/
ingestionparsingragllmanalyticsrealtimefinancial
data/
PostgreSQL + pgvectorRedis Pub/SubObject storage

Repository structure

/
├── apps        → web · api · docs
├── services    → parser · embedding · rag · analytics workers
├── python      → common · ingestion · parsing · rag · llm · financial
├── packages    → ui · sdk · config · types
├── infrastructure → docker · compose · nginx · monitoring
└── docs        → architecture · deployment · api · prd

Technology stack

RuntimeBun · uv
FrontendTanStack Start · React · TypeScript · Tailwind · shadcn/ui
BackendFastAPI · PostgreSQL · pgvector · Redis · Socket.IO
QueueDramatiq
ModelsQwen3-VL-8B (layout) · Qwen Embedding
ObservabilityPrometheus · Grafana
DeploymentDocker Compose · VM · Bare metal · K8s (optional)