fastapi-app-factory
CommunityBuild robust FastAPI apps with a factory.
Authoragusmdev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill reduces boilerplate when bootstrapping a FastAPI application by providing a factory-based pattern with lifespan management, middleware setup, pagination integration, and pre-wired router configuration.
Core Features & Use Cases
- Lifespan management via a dedicated lifespan context manager to handle startup and shutdown.
- Middleware registration (e.g., CorrelationIdMiddleware) and ordered execution.
- Pagination integration using add_pagination for consistent paging behavior.
- Router configuration and API structure with versioned routers and health checks.
- Use Case: Quickly scaffold a production-ready API service template with minimal boilerplate.
Quick Start
Create src/app/main.py with a create_app() function that configures lifespan, middleware, pagination, and routers. Expose a health endpoint and run the server with uvicorn.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: fastapi-app-factory Download link: https://github.com/agusmdev/burntop/archive/main.zip#fastapi-app-factory Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.