
FastAPI Radar
A debugging dashboard for FastAPI applications providing real-time request, database query, and exception monitoring.
Just one line to add powerful monitoring to your FastAPI app!
See it in Action
Installation
Or with your favorite package manager:
Note: The dashboard comes pre-built! No need to build anything - just install and use.
Quick Start
With SQL Database (Full Monitoring)
Without SQL Database (HTTP & Exception Monitoring)
Access your dashboard at: http://localhost:8000/\_\_radar/
Features
Zero Configuration - Works with any FastAPI app (SQL database optional)
Request Monitoring - Complete HTTP request/response capture with timing
Database Monitoring - SQL query logging with execution times (when using SQLAlchemy)
Exception Tracking - Automatic exception capture with stack traces
Real-time Updates - Live dashboard updates as requests happen
Flexible Integration - Use with SQL, NoSQL, or no database at all
Configuration
Custom Database Location
By default, FastAPI Radar stores its monitoring data in a
radar.duckdb file in your current working directory. You can customize this location using the db_path parameter:If the specified path cannot be created, FastAPI Radar will fallback to using the current directory with a warning.
Development Mode with Auto-Reload
When running your FastAPI application with
fastapi dev (which uses auto-reload), FastAPI Radar automatically switches to an in-memory database to avoid file locking issues. This means:No file locking errors - The dashboard will work seamlessly in development
Data doesn't persist between reloads - Each reload starts with a fresh database
Production behavior unchanged - When using
fastapi run or deploying, the normal file-based database is usedThis behavior only applies when using the development server with auto-reload (
fastapi dev). In production or when using fastapi run, the standard file-based DuckDB storage is used.What Gets Captured?
✅ HTTP requests and responses
✅ Response times and performance metrics
✅ SQL queries with execution times
✅ Query parameters and bindings
✅ Slow query detection
✅ Exceptions with stack traces
✅ Request/response bodies and headers
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
For contributors who want to modify the codebase:
Clone the repository:
Install development dependencies:
(Optional) If modifying the dashboard UI:
Run the example apps:
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Built with FastAPI
0 likes · 20 views · Oct 1, 2025
Developed FastAPI Radar, a real-time monitoring dashboard for FastAPI apps.