#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
Stars, last 29 weeks+463
21 Apr 2026: 8,084 stars28 Apr 2026: 8,100 stars5 May 2026: 8,119 stars12 May 2026: 8,140 stars19 May 2026: 8,151 stars26 May 2026: 8,172 stars2 Jun 2026: 8,189 stars9 Jun 2026: 8,211 stars16 Jun 2026: 8,233 stars23 Jun 2026: 8,248 stars30 Jun 2026: 8,260 stars7 Jul 2026: 8,270 stars14 Jul 2026: 8,283 stars21 Jul 2026: 8,303 stars28 Jul 2026: 8,321 stars4 Aug 2026: 8,335 stars11 Aug 2026: 8,346 stars18 Aug 2026: 8,364 stars25 Aug 2026: 8,377 stars1 Sept 2026: 8,407 stars8 Sept 2026: 8,420 stars15 Sept 2026: 8,434 stars22 Sept 2026: 8,453 stars29 Sept 2026: 8,464 stars6 Oct 2026: 8,476 stars13 Oct 2026: 8,495 stars20 Oct 2026: 8,505 stars27 Oct 2026: 8,519 stars3 Nov 2026: 8,528 stars10 Nov 2026: 8,547 stars

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
Also in Backend and cloud templates
RankProjectScore
1fastapiPython web framework for typed REST APIs with automatic OpenAPI docs104.6k starsMIT90 out of 100
2fiberExpress-style HTTP web framework for Go, built on fasthttp40.3k stars+130 (+0.3%) in 30 daysMIT90 out of 100
3generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends22.5k starsApache-2.090 out of 100
#4serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml46.9k starscustom license88 out of 100
#5echoMinimalist Go web framework with a radix-tree router and middleware32.8k stars+73 (+0.2%) in 30 daysMIT86 out of 100