Vertebra
One runtime for Python and TypeScript — backend, frontend, web, gRPC, workers, and standalone apps.
Install¶
The @vertebra/client TypeScript SDK ships inside the Python wheel and is served directly by Vertebra, so you do not need npm to use it.
First Application¶
Define routes on App and run them with vtb:
from vertebra import App
app = App()
@app.get("/health")
def health() -> dict[str, str]:
return {"status": "ok"}
Run the server:
Explore Vertebra¶
| Section | What You Will Find |
|---|---|
| Getting Started | Installation, quickstart, configuration, CLI workflows, runnable examples, and changelog. |
| Usage | Guides for routing, workers, databases, object storage, frontend and SSR, and AI agents. |
| Architecture | How the HTTP server, shared-memory transport, worker lanes, and bundler work together. |
| Reference | API documentation for Python packages, native extensions, the TypeScript client, and the CLI. |
| Examples | Runnable Python examples covering routing, queues, live state, storage, databases, and agents. |
Core Capabilities¶
| Area | What's included |
|---|---|
| HTTP server | HTTP/1.1, HTTP/2, HTTP/3, gRPC, WebSockets, SSE, TLS, compression, and static files in Rust. |
| Existing apps & gradual adoption | Serve existing Litestar, FastAPI, Starlette, Flask, and Django apps via ASGI, WSGI, or RSGI with vtb run, offload routing and middleware to Rust, and mount apps side by side with --mount. |
| Cooperative multiprocessing | Runs in-process by default, scales across worker processes over shared memory with shared connection broker pools, statement caches, and pub/sub rings on standard Python, and scales across threads on free-threaded Python. |
| Databases & analytics | Sync and async drivers for PostgreSQL, MySQL, SQLite, Oracle, SQL Server, DuckDB, BigQuery, Spanner, Redis, and Valkey, with pipelining, cloud IAM dialers, change feeds, and Arrow/DataFusion support. |
| Object storage | One sync and async API for S3, GCS, Azure Blob, Cloudflare R2, OCI, HTTP, local files, and in-memory stores, with streaming, presigned URLs, and Parquet range reads. |
| Frontend & SSR | Built-in TypeScript/JSX bundler, QuickJS server-side rendering, Inertia, HTMX, and a bundled TypeScript client with schema codegen. |
| AI & agents | Built-in MCP and A2A servers, a stdio bridge, tool workflows, and vector embeddings. |
Runtime Overview¶