Updated

FastAPI vs NestJS

Of the 195 makers' products we know the backend framework of, 30 chose FastAPI (15%) and 21 NestJS (11%). Among the 44 launched in 2025, FastAPI is in 16% and NestJS in 20%. They're different kinds of tool, minimal router and structured TypeScript, so the counts don't measure the same choice. On GitHub, 3 public pull requests moved projects from FastAPI to NestJS, and 0 the other way.

Two sides of the backend framework decision: minimal router and structured TypeScript. When each fits, what it costs, who moves from one to the other, and what makers who chose it say.

Ask your AI about this, with this page as the source:ChatGPT ↗Claude ↗Perplexity ↗

Which fits you

Choose FastAPI if
  • Your backend needs Python for AI or data work

Use it whenYour backend needs Python for AI or data work.

Trade-offNo built-in ORM, admin or auth; you assemble those from separate libraries.

Choose NestJS if
  • Your TypeScript API will grow many domains and you want enforced structure

Use it whenYour API will grow many domains and you want Angular-style structure.

Trade-offMore boilerplate and ceremony than a solo project usually needs.

At a glance

FastAPINestJS
Used by30 makers' products · 397 open-source projects21 makers' products · 70 open-source projects
Moved to it on GitHubpull requests since Oct 2024fewer than 33 from FastAPI
Downloads85.8M/wk14.5M/wk−26% vs npm
PricingFree (open source).Free (open source); paid enterprise support and courses available separately.
Free tierYesYes
Open sourceYes · self-hostableYes · self-hostable

New launches vs older products

A tool that came first has products from every year since, so its total runs ahead. Here is what products launched each year chose, as a share of those that made the backend framework decision (by the year they launched on Product Hunt).

LaunchedFastAPINestJSProducts
202426% 189% 669
202516% 720% 944

Who moves from one to the other

Public pull requests on GitHub since Oct 2024 whose title says "FastAPI to NestJS" or the reverse — real code changes, by developers in general rather than makers only.

Fewer than 3 pull requests move from NestJS to FastAPI.
FastAPI → NestJS3 PRs
All matching pull requests on GitHub ↗

What makers say

Makers on using it for backend framework, from Product Hunt and Starter Story interviews, each linked to the source. Products with a page of their own and fuller notes first.

On FastAPI
We use FastAPI for our API written in Python. The tool is very easy to use and we believe this is part of the best combination for SaaS development.
Ranova, the makerSep 2026 ↗
As a Python-based product, FastAPI gave us the best capabilities to create an API-based low-code product.
Permit.io, the makerSep 2026 ↗
Making API's has never been so simple, FastAPI has definitely saved us plenty of hours of development!
Glazed, the makerSep 2026 ↗
18 more on the FastAPI page →
On NestJS
NestJS powers the Exstats backend. Crawlers for Chrome, Edge, and Firefox stores, the GraphQL API behind the dashboard, and the scheduled jobs for alerts and aggregations all run on it.
Exstats, the makerSep 2026 ↗
Nest.js helps us create structured and maintainable backend applications. It’s great for building APIs and handling data efficiently.
SalesPort, the makerSep 2026 ↗
Loved how structured and scalable it made our backend, especially for handling complex logic cleanly.
Overflow AI, the makerSep 2026 ↗
12 more on the NestJS page →

Loved and watch-outs

Themes that recur in makers' words and Hacker News comments, each linked to what it summarises.

FastAPI
Most loved
  • OpenAPI docs are generated automatically, so interactive documentation and typed client SDKs come almost for free. PHPH 2
  • Type hints with Pydantic validation catch bad input and bugs during development rather than in production. PHHN
  • It removes most API boilerplate, making it the fastest way to deliver a Python API or microservice. PHPH 2HN
Watch-outs
  • Its single-maintainer governance makes some teams weigh community-run alternatives like Litestar. HN
On Product Hunt: 5.0★, 32 reviews · mentioned most: ease of use, fast performance, automatic OpenAPI schema
NestJS
Most loved
  • Modules, decorators and TypeScript give the backend a clear structure that stays maintainable as features grow complex. PHPH 2
  • One NestJS codebase can host the API, crawlers and scheduled jobs together. PHPH 2
  • Its Swagger integration derives the OpenAPI spec from validation rules and decorators, so docs stay in sync with code. HN
Watch-outs
  • Module boilerplate is heavy, and some developers dislike the framework outright. HNHN 2
On Product Hunt: 5.0★, 26 reviews · mentioned most: scalable architecture, maintainable architecture, modular architecture

Who uses each

What makers pair each with

HonoMinimal routerSmall TypeScript APIs that run on Node, Bun, Deno or edge platforms like Cloudflare Workers.vs FastAPI →vs NestJS →
ExpressMinimal routerNode.js servers where you want a widely documented default and a huge middleware catalog.vs FastAPI →vs NestJS →
FastifyMinimal routerNode.js APIs that want low overhead, JSON-schema request validation and a structured plugin system.
DjangoBatteries includedPython apps that want an ORM, migrations, auth and an admin panel on day one.vs FastAPI →
Ruby on RailsBatteries includedFull-stack Ruby apps where one developer builds models, views, jobs and emails with strong conventions.
LaravelBatteries includedPHP apps with ORM, queues, auth scaffolding and an optional paid ecosystem for hosting and admin panels.

Questions

FastAPI or NestJS: which do makers choose?

Of the 195 makers' products we know the backend framework of, 30 chose FastAPI (15%) and 21 NestJS (11%). Among the 44 launched in 2025, FastAPI is in 16% and NestJS in 20%. They're different kinds of tool, minimal router and structured TypeScript, so the counts don't measure the same choice. On GitHub, 3 public pull requests moved projects from FastAPI to NestJS, and 0 the other way. Choose FastAPI if your backend needs Python for AI or data work; choose NestJS if your TypeScript API will grow many domains and you want enforced structure.

When should I pick FastAPI over NestJS?

Pick FastAPI if: Your backend needs Python for AI or data work.

When should I pick NestJS over FastAPI?

Pick NestJS if: Your TypeScript API will grow many domains and you want enforced structure.

Are people switching from FastAPI to NestJS?

Public GitHub pull requests since 2024-10-02: 3 from FastAPI to NestJS.