Skip to content

FastAPI Fullstack

Production-Ready AI/LLM Applications — In Minutes, Not Weeks

CI Coverage PyPI Python License


FastAPI Fullstack is a production-ready project generator for AI/LLM applications with 25+ enterprise integrations. Built with FastAPI, Next.js 15, and your choice of AI framework.

Generate complete, type-safe applications with authentication, WebSocket streaming, observability, and deployment configs — all in minutes.

Why FastAPI Fullstack?

  1. AI-First Design: Native support for PydanticAI, LangChain, LangGraph, CrewAI with WebSocket streaming and conversation persistence.

  2. Production Ready: 100% test coverage, strict typing, Docker/Kubernetes configs, and battle-tested in real applications.

  3. 25+ Integrations: PostgreSQL, MongoDB, Redis, Celery, Logfire, Sentry, Prometheus, S3, and more — all optional and configurable.

  4. AI-Agent Friendly: Generated projects include CLAUDE.md and AGENTS.md files optimized for AI coding assistants.

Quick Start

Bash
# Install
pip install fastapi-fullstack

# Create project with interactive wizard
fastapi-fullstack new

# Or use presets
fastapi-fullstack create my_app --preset ai-agent

Supported AI Frameworks

Framework Streaming Observability Providers
PydanticAI WebSocket Logfire OpenAI, Anthropic, OpenRouter
LangChain WebSocket LangSmith OpenAI, Anthropic
LangGraph WebSocket LangSmith OpenAI, Anthropic
CrewAI WebSocket Logfire OpenAI, Anthropic

Core Features

Feature Description
AI Agents PydanticAI, LangChain, LangGraph, CrewAI with tool calling
WebSocket Streaming Real-time responses with full event access
Authentication JWT + Refresh tokens, API Keys, OAuth2 (Google)
Databases PostgreSQL (async), MongoDB (async), SQLite
Background Tasks Celery, Taskiq, or ARQ
Observability Logfire, LangSmith, Sentry, Prometheus
Admin Panel SQLAdmin with authentication
Deployment Docker, Kubernetes, GitHub Actions, GitLab CI

Generated Project Structure

Text Only
my_project/
├── backend/
│   ├── app/
│   │   ├── main.py              # FastAPI app
│   │   ├── api/routes/v1/       # Versioned endpoints
│   │   ├── agents/              # AI agents
│   │   ├── services/            # Business logic
│   │   └── repositories/        # Data access
│   ├── cli/                     # Django-style commands
│   └── tests/
├── frontend/
│   ├── src/
│   │   ├── app/                 # Next.js App Router
│   │   ├── components/          # React components
│   │   └── hooks/               # useChat, useWebSocket
│   └── e2e/                     # Playwright tests
├── docker-compose.yml
└── Makefile

Building advanced AI agents? Check out pydantic-deep - a deep agent framework with planning, filesystem, and subagent capabilities.

Next Steps