#2424th of 45 in Backend and cloud templates
litestar
Typed Python ASGI framework for building APIs with OpenAPI generation
- Stars
- 8.5k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Python
8,084 on 21 Apr 20268,547 on 10 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Litestar is a Python ASGI framework for building HTTP APIs. It provides class-based controllers, dependency injection, layered middleware, route guards and OpenAPI 3.1 schema generation, with msgspec-based serialization. It is a general backend framework rather than an AI-specific starter, so it fits as the service layer behind a model or agent API.
Who it is for: Python developers building typed HTTP APIs, including model-serving backends
Strengths
- Generates OpenAPI 3.1 and serves Scalar, Redoc, Stoplight Elements and Swagger-UI docs
- Validates dataclasses, TypedDict, msgspec, pydantic v1/v2 and attrs models
- Ships middleware for CORS, CSRF, rate limiting, compression and sessions
- Built-in SQLAlchemy plugin and DTO support
Weaknesses
- No AI, LLM or agent features; you wire up model calls yourself
- Strictly typed: a route handler missing a return annotation raises an exception
- Performance claims are general; the README gives no concrete numbers
What it needs
- Python
- Needs Python, uvicorn (via litestar[standard])
Quick answers
Is litestar open source?
Yes. Its code is on GitHub under the MIT license.
Also in Backend and cloud templates
See all 45| Rank | Project | Score |
|---|---|---|
| 1 | fastapiPython web framework for typed REST APIs with automatic OpenAPI docs | 90 out of 100 |
| 2 | fiberExpress-style HTTP web framework for Go, built on fasthttp | 90 out of 100 |
| 3 | generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends | 90 out of 100 |
| #4 | serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml | 88 out of 100 |
| #5 | echoMinimalist Go web framework with a radix-tree router and middleware | 86 out of 100 |