File-based routing · Zero decorators · Production ready

FastAPI Route

Build APIs with files and folders, not decorators. File-based routing for FastAPI.

Get Started
Target 10k Github Star
Active Development
MIT License
0
Decorators Needed
100%
File-Based
1
Command to Start
3.9+
Python Version
Features

Everything you need

A complete routing solution with all the features you expect from a modern framework

File-Based Routing

Routes defined by folder structure — no decorators needed

Dynamic Routes

[user_id] folders become {user_id} parameters automatically

Route Groups

(auth) folders organize code without affecting URLs

Hot Reload

Instant rebuild on file changes during development

Production Cache

Pre-compiled routes for lightning-fast startup

Custom Handlers

Bring your own docs.py and not-found.py

Custom Middleware

Intercept requests with middleware.py

Static Files

Drop files in /public — served automatically

Benchmarks & Comparison

How FastAPI Route compares

File-based routing without decorators — a fresh approach to building APIs

FeatureFastAPI RouteFastAPIFlaskDjango
File-Based RoutingPartial
No Decorators
Hot Reload
Dynamic Routes
Route Groups
Production Cache
Built-in Docs
CLI ToolsPartial
Quick Start

Get started in seconds

Create a routes directory, add files, and run — no boilerplate needed

terminal / bash
1# Create your first route
2mkdir -p routes/users
3echo 'from fastapi_route import Request
4
5def GET(request: Request):
6    return {"users": ["Alice", "Bob"]}' > routes/users/route.py
7
8# Start the development server
9fastapi-route dev
10
11# Build for production
12fastapi-route build
13fastapi-route run

Ready to build something great?

FastAPI Route is open source and free to use under the MIT license.