FastAPI Factory
2026-3-02
Overview
FastAPI Factory is an opinionated project template I use to bootstrap new FastAPI APIs with a consistent folder structure and development workflow.
What I Built
- A baseline minimal API structure with common concerns (routing, config, testing, and logging utilities).
- A few templates for different use cases depending on the type of work the API do: instant I/O bound work, long-running CPU bound work...etc
- Extensibility through modules that add features to the API as needed. Defined with a yaml manifest and patch files
The Goal
The plan is to keep adding templates and modules to cover almost all patterns, so that future API projects are reduced to writing the pure logic of the API itself without wasting time writing boilerplate code.