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
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| Rank | Project | Score |
|---|---|---|
| 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 |
| #6 | douyin_tiktok_download_apiSelf-hosted REST and MCP API for Douyin, TikTok and Bilibili data | 85 out of 100 |