Generate enterprise-grade full-stack applications with AI agents, authentication, real-time streaming, and observability in minutes.
Quick Start • Features • Documentation • Examples
- Overview
- Key Features
- Quick Start
- Architecture
- AI Agent Support
- Enterprise Integrations
- Configuration Options
- Documentation
- Contributing
FastAPI Fullstack Generator is a powerful CLI tool that scaffolds production-ready full-stack applications with AI capabilities. Built for developers who need enterprise-grade infrastructure without the boilerplate.
The generator creates a complete full-stack application with a modern, professional UI:
API Documentation & Observability
| FastAPI Swagger UI | Logfire Dashboard | LangSmith Dashboard |
|---|---|---|
![]() |
![]() |
![]() |
Chat Interface (AI Agent)
| Light Mode | Dark Mode |
|---|---|
![]() |
![]() |
Admin Panel & Monitoring
| SQLAdmin Panel | Celery Flower |
|---|---|
![]() |
![]() |
Authentication Pages
| Register | Login |
|---|---|
![]() |
![]() |
Startups - Ship MVPs fast with production-ready infrastructure
Enterprise Teams - Standardized project structure and best practices
AI Developers - Pre-configured AI agent frameworks and tooling
Full-Stack Developers - Complete frontend + backend in one command
Features:
- ✅ Real-time WebSocket streaming
- ✅ Conversation persistence
- ✅ Custom tool/function calling
- ✅ Multi-provider LLM support
- ✅ Built-in observability
┌─────────────────────────────────────────┐
│ FastAPI Application │
├─────────────────────────────────────────┤
│ • Async-first architecture │
│ • Repository + Service pattern │
│ • Django-style CLI commands │
│ • Auto-generated API documentation │
└─────────────────────────────────────────┘
Tech Stack:
FastAPI - High-performance async API framework
Pydantic v2 - Data validation and settings
SQLAlchemy/SQLModel - Database ORM
Alembic - Database migrations
JWT + OAuth2 - Authentication & authorization
┌─────────────────────────────────────────┐
│ Next.js 15 Application │
├─────────────────────────────────────────┤
│ • React 19 + TypeScript │
│ • Tailwind CSS v4 │
│ • Dark/Light mode │
│ • Real-time WebSocket chat │
│ • Responsive design │
└─────────────────────────────────────────┘
Highlights:
Type-Safe - Full TypeScript coverage
Modern UI - Beautiful, accessible components
Real-Time - WebSocket streaming for AI responses
Responsive - Mobile-first design
Themes - Dark/light mode support
# Using uv (recommended - fastest)
uv tool install fastapi-fullstack
# Or using pip
pip install fastapi-fullstack
# Or using pipx
pipx install fastapi-fullstack# Interactive wizard (recommended for first-time users)
fastapi-fullstack new
# Quick mode with presets
fastapi-fullstack create my_ai_app --preset ai-agent --frontend nextjs
# Production-ready setup
fastapi-fullstack create my_ai_app --preset production
# Minimal setup (no extras)
fastapi-fullstack create my_ai_app --minimalcd my_ai_app
# Install dependencies
make install
# Start database (Docker)
make docker-db
# Run migrations
make db-migrate
make db-upgrade
# Create admin user
make create-admin
# Start backend
make run
# In another terminal - start frontend
cd frontend
bun install && bun devAccess your application:
Frontend: http://localhost:3000
API Docs: http://localhost:8000/docs
Admin Panel: http://localhost:8000/admin
graph TB
subgraph Client["Client Layer"]
Browser[Web Browser]
Mobile[Mobile App]
end
subgraph Frontend["Frontend - Next.js 15"]
UI[React Components]
WS[WebSocket Client]
State[Zustand Store]
end
subgraph Backend["Backend - FastAPI"]
API[REST API]
WS_Server[WebSocket Server]
Services[Business Logic]
Repos[Data Access]
Agents[AI Agents]
end
subgraph Infrastructure["Infrastructure"]
DB[(PostgreSQL/MongoDB)]
Cache[(Redis)]
Queue[Task Queue]
end
subgraph External["External Services"]
LLM[LLM Providers]
Webhooks[Webhook Endpoints]
end
Browser --> UI
UI --> API
UI --> WS
WS <--> WS_Server
API --> Services
WS_Server --> Agents
Services --> Repos
Agents --> LLM
Repos --> DB
Services --> Cache
Services --> Queue
Services --> Webhooks
generated_project/
├── backend/
│ ├── app/
│ │ ├── api/ # REST endpoints
│ │ ├── agents/ # AI agent implementations
│ │ ├── core/ # Configuration & security
│ │ ├── db/ # Database models
│ │ ├── repositories/ # Data access layer
│ │ ├── services/ # Business logic
│ │ └── schemas/ # Pydantic models
│ ├── cli/ # Management commands
│ └── tests/ # Test suite
└── frontend/
├── src/
│ ├── app/ # Next.js App Router
│ ├── components/ # React components
│ ├── hooks/ # Custom React hooks
│ ├── stores/ # State management
│ └── lib/ # Utilities
└── e2e/ # End-to-end tests
# Generated agent code (PydanticAI example)
from pydantic_ai import Agent
from app.agents.tools import get_current_datetime
agent = Agent(
model="openai:gpt-4o-mini",
system_prompt="You are a helpful assistant.",
)
@agent.tool
async def current_time() -> str:
"""Get the current date and time."""
return get_current_datetime()
# WebSocket streaming endpoint included
@router.websocket("/ws")
async def agent_ws(websocket: WebSocket):
async for event in agent.iter(user_input):
await websocket.send_json({"type": "token", "content": event.content})# Enable specific integrations
fastapi-fullstack create my_app \
--redis \
--rate-limiting \
--admin-panel \
--sentry \
--prometheus \
--webhooks# Production preset - everything enabled
fastapi-fullstack create my_app --preset production
# AI Agent preset - optimized for AI applications
fastapi-fullstack create my_app --preset ai-agent
# Minimal preset - bare bones
fastapi-fullstack create my_app --minimal| Document | Description |
|---|---|
| System design and patterns | |
| Next.js setup and components | |
| Agent frameworks and tools | |
| Monitoring and tracing | |
| Production deployment | |
| Local development setup | |
| Version history |
View Interface Guide - See the generated app in action
Repository Review - Detailed repository analysis
Contributing Guide - How to contribute
fastapi-fullstack create chatbot_app \
--preset ai-agent \
--ai-framework pydantic_ai \
--llm-provider openai \
--frontend nextjs \
--database postgresql \
--auth jwt \
--websocketsResult: Full-stack chatbot with real-time streaming, conversation history, and user authentication.
fastapi-fullstack create saas_platform \
--preset production \
--database postgresql \
--auth jwt \
--oauth-google \
--redis \
--admin-panel \
--sentry \
--prometheus \
--kubernetesResult: Production-ready SaaS with admin panel, monitoring, and Kubernetes deployment configs.
fastapi-fullstack create api_service \
--minimal \
--database postgresql \
--auth api_key \
--frontend noneResult: Lightweight API service with authentication and database support.
We welcome contributions! Please see our Contributing Guide for details.
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Make your changes
Run tests (
uv run pytest)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
Generating production-ready AI applications since 2025









