FastAPI Frontend v0.138.0
Open Source
Infrastructure
Testing
FastAPI Frontend is a built-in capability introduced in FastAPI (v0.138.0) that allows developers to natively serve compiled static frontend applications directly from their Python backend using the app.frontend() method. It automatically falls back to serving your index.html (or a custom 404.html page) for unrecognized browser paths, allowing your frontend framework to handle client-side routing seamlessly. Designed with zero API interference, the framework always checks your standard backend API routes first, ensuring your core server logic remains completely unaffected by the static files.
Serving frontend content with FastAPI
Client-side routing integration
Managing static files in FastAPI applications
PricingFree
Version0.138.0