Skip to content

src/dazzle_ui/runtime/combined_server.py

Generated: 2026-03-30T04:38:48.924238+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_ui

Purpose

Dazzle Unified Server — runs a single FastAPI app with both API and UI.

Provides: 1. run_unified_server() — full app: FastAPI backend + page routes + site pages on one port 2. run_backend_only() — backend API only (for --backend-only flag)

Key Exports

  • UnifiedServerConfig
  • run_unified_server
  • run_backend_only

Dependencies

Imports

  • __future__.annotations
  • logging
  • os
  • dataclasses.dataclass
  • pathlib.Path
  • typing.TYPE_CHECKING
  • typing.Any
  • dazzle.core.ir.AppSpec
  • uvicorn
  • dazzle_back.runtime.app_factory.assemble_post_build_routes
  • dazzle_back.runtime.app_factory.build_server_config
  • dazzle_back.runtime.server.DazzleBackendApp
  • dazzle_back.runtime.logging.setup_logging
  • dazzle_ui.runtime.css_loader.get_bundled_css
  • dazzle_ui.themes.generate_theme_css
  • dazzle_ui.themes.resolve_theme
  • dazzle_ui.build_css.build_css
  • uvicorn
  • dazzle_back.runtime.app_factory.build_server_config
  • dazzle_back.runtime.server.DazzleBackendApp

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py
  • tests/unit/test_runtime_mcp_tools.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.