litellm/docs/architecture/img/README.md
narmstrong-berry 624a80b59b
Some checks failed
LiteLLM Rust DB / db-queries (push) Has been cancelled
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Terraform Modules / fmt, validate, test (gcp) (push) Has been cancelled
docs(router): concept-led architecture docs for the Rust router core
Diataxis-style docs under docs/architecture/router describing the router as the Rust core
litellm-router-core runs it on nate_router_step6_rust_core_v2: deployments and model groups,
name resolution, teams and access, the filter chain, strategies, routing groups and
sub-routers, retries, fallbacks and cooldowns, shared state, and the core and its host.

Claude-Session: https://claude.ai/code/session_013FDwtmdtKxVdjQX8WK43iK
2026-11-05 13:53:56 -08:00

931 B

Diagrams

The architecture docs use hand-laid-out SVGs instead of Mermaid, so each diagram fits a docs column without wasted space.

  • Every SVG embeds diagram-style.css verbatim in one <style> element. The stylesheet is based on the litellm-docs theme (Geist and Geist Mono, the accent #0117be and its greys) and switches to the dark palette with prefers-color-scheme
  • Use only its classes, with no inline styles or hard-coded colors. The box classes mean: box core the Rust router core, box host the host and Python side, box store caches and Redis, box warn errors, box ok results, and box decision a question
  • Keep the viewBox at most 880 wide and as short as the content allows. Start with the canvas rect, and give the root element role="img" and a <title>
  • Edit a diagram by changing its SVG directly. A page's diagrams live in an img/ folder next to it