# Kludex/starlette

The little ASGI framework that shines. 🌟

Repository: https://github.com/Kludex/starlette
Canonical: https://ross.abutalabs.com/products/starlette
Homepage: https://starlette.dev
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: python, async, websockets, http, asgi
Last push: 2026-08-26T10:51:06+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 2991, "days_push": 7, "days_rel": 25, "gap_med": 7, "n_releases_24m": 46}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12571, forks 1273 (observed 2026-08-28T04:10:59.351500+00:00)

## What it is
Starlette is a lightweight, production-ready ASGI framework and toolkit for building async web services in Python. It provides HTTP and WebSocket support, routing, middleware, background tasks, and a test client with minimal dependencies.

## Use cases
- build an async web API in Python
- serve websockets in a lightweight app
- build a microservice with minimal dependencies
- create a base framework for other Python web tools
- add CORS, GZip, and static file serving to an ASGI app
- write async HTTP endpoints compatible with asyncio and trio

## When to choose
- you want a lightweight async Python web framework with few dependencies
- you need WebSocket support alongside HTTP
- you are building FastAPI-like frameworks or want fine-grained control
- performance against benchmarks matters

## When to avoid
- you want batteries-included features like ORM, auth, and admin out of the box
- you prefer a synchronous WSGI stack
- you need a full-stack framework with built-in templating-heavy workflows

## Facets
- artifact type: framework
- maturity: stable
- function: web-framework, http-server, websocket, routing, middleware, templating, testing
- domain: web-development, backend, apis, developer-tools
- platform: python, cross-platform
- tags: asgi, asyncio, trio, http, websockets, lightweight, uvicorn, web-server

## Member repositories
- Kludex/starlette (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:59.351500+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:57.412825+00:00, confidence not recorded.
  - readme: https://github.com/Kludex/starlette (fetched 2026-08-28T04:10:59.351500+00:00, sha aa85730aca81)
  - homepage: https://starlette.dev (fetched 2026-08-29T08:10:28.646609+00:00, sha e8e9c9a4c0d3)
  - registry_pypi: https://pypi.org/pypi/starlette/json (fetched 2026-08-29T08:10:28.655892+00:00, sha 9cfd91feda6a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
