# FastAPI-boilerplate (Fastro)

Async FastAPI backend starter with auth, caching, rate-limits and background jobs

https://topboilerplates.com/fastapi-boilerplate

Framework: FastAPI | Pricing: Free | GitHub stars: 2061

## Verdict

Best for: Teams who want a clean, hackable async FastAPI backend with auth, jobs, and caching already wired, without paying for a full SaaS bundle.

Skip if: You need Stripe billing, entitlements, or a bundled frontend out of the box - that's the paid FastroAI tier, not this repo.

## Description

Fastro is Benav Labs' open-source FastAPI foundation built on SQLAlchemy 2.0 and Pydantic v2. It ships server-side session auth with OAuth and API keys, FastCRUD-powered generics, a SQLAdmin panel, Taskiq background workers, and Redis/Memcached caching, all wired through a plugin-ready CLI for compose scaffolding and env audits. A paid sibling product, FastroAI, layers Stripe billing and an AI agent stack on top for teams that want a complete SaaS rather than just the backend foundation.

## Pros and cons

+ Fully async stack (FastAPI + SQLAlchemy 2.0 + Pydantic v2) with sensible, opt-out defaults

+ Background jobs (Taskiq), caching, and per-tier rate limiting included, not bolted on

+ Actively maintained with 2000+ GitHub stars and a plugin-ready CLI for scaffolding

- No payments, entitlements, or frontend - purely a backend foundation

- JWT auth isn't included in the free tier (only in the paid FastroAI variant)

- Requires uv workspace familiarity to get the most out of the CLI tooling

## Features

- auth-included
- social-login
- background-jobs
- caching
- rate-limiting
- migrations
- api-routes
- admin-dashboard
- open-source
- mit-licensed
- free-tier

## Stack

- Python
- Postgres
- Redis

## Links

- Website: https://topboilerplates.com/go/fastapi-boilerplate
- GitHub: https://github.com/benavlabs/FastAPI-boilerplate

## Alternatives

- [IndieKit](https://topboilerplates.com/indiekit)
- [Carrot Seed](https://topboilerplates.com/carrot-seed)
- [ShipFast](https://topboilerplates.com/shipfast)
