11st of 45 in Backend and cloud templates

fastapi

Python web framework for typed REST APIs with automatic OpenAPI docs

Stars
104.6k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 29 weeks+8,215
20 Apr 2026: 96,400 stars27 Apr 2026: 96,673 stars4 May 2026: 96,888 stars11 May 2026: 97,135 stars18 May 2026: 97,390 stars25 May 2026: 97,620 stars1 Jun 2026: 97,929 stars8 Jun 2026: 98,182 stars15 Jun 2026: 98,449 stars22 Jun 2026: 98,758 stars29 Jun 2026: 99,044 stars6 Jul 2026: 99,399 stars13 Jul 2026: 99,749 stars20 Jul 2026: 100,035 stars27 Jul 2026: 100,322 stars3 Aug 2026: 100,659 stars10 Aug 2026: 100,884 stars17 Aug 2026: 101,116 stars24 Aug 2026: 101,323 stars31 Aug 2026: 101,524 stars7 Sept 2026: 101,753 stars14 Sept 2026: 101,941 stars21 Sept 2026: 102,144 stars28 Sept 2026: 102,375 stars5 Oct 2026: 102,551 stars12 Oct 2026: 102,796 stars19 Oct 2026: 103,058 stars26 Oct 2026: 103,974 stars2 Nov 2026: 104,308 stars9 Nov 2026: 104,615 stars

96,400 on 20 Apr 2026104,615 on 9 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

FastAPI is a Python framework for building HTTP APIs from standard type hints. It uses Starlette for the web layer and Pydantic for validation and serialization, and generates OpenAPI and JSON Schema documentation with Swagger UI at /docs and ReDoc at /redoc. It is a general-purpose framework, not an AI-specific starter.

Who it is for: Python developers building API backends, including model-serving ones

Strengths

  • Validates path, query, header, cookie, form and JSON body data from type hints alone
  • Generates OpenAPI schema plus Swagger UI and ReDoc pages with no extra setup
  • Includes dependency injection, OAuth2/JWT, HTTP Basic auth, WebSockets and CORS
  • `fastapi dev` gives auto-reload; `fastapi run` is the production command

Weaknesses

  • No model, agent or other AI functionality included; you wire that in yourself
  • No ORM or database layer; persistence is left to other libraries
  • Relies on Starlette and Pydantic, so changes in either affect your app
  • Productivity figures come from an internal team's estimates, not reproducible benchmarks

What it needs

  • Python
  • Needs Starlette, Pydantic, Uvicorn

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Quick answers

Is fastapi open source?

Yes. Its code is on GitHub under the MIT license.

Head to head

Also in Backend and cloud templates

See all 45
Also in Backend and cloud templates
RankProjectScore
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
#6douyin_tiktok_download_apiSelf-hosted REST and MCP API for Douyin, TikTok and Bilibili data Live demo ↗ (opens in a new tab)21.4k stars+815 (+4.0%) in 30 daysApache-2.085 out of 100