Skip to content

Tech Stack

This document provides a comprehensive overview of the technologies, tools, and infrastructure powering the FastAPI Enterprise Backend Template.

๐Ÿ—๏ธ Core Architecture

  • ๐Ÿ Python 3.12+ โ€” High-performance interpreter with advanced language features.
  • โšก FastAPI โ€” High-performance, production-ready web framework for building APIs.
  • ๐Ÿ“ Pydantic v2 โ€” Modern data validation and settings management using type hints.
  • ๐Ÿ”ข FastAPI-Pagination โ€” Uniform pagination support for clean and consistent list responses.

๐Ÿ—„๏ธ Persistence & Data

  • ๐Ÿ˜ PostgreSQL 18 โ€” The world's most advanced open-source relational database.
  • ๐Ÿงฌ SQLModel โ€” Elegant unification of SQLAlchemy and Pydantic for data modeling.
  • ๐Ÿ› ๏ธ Alembic โ€” Robust database migration management for versioned schema updates.
  • ๐Ÿ”Œ psycopg3 โ€” Modern, high-performance PostgreSQL adapter for Python.

๐Ÿ›ก๏ธ Security & Health

  • ๐Ÿ”‘ OAuth2 + JWT โ€” Industry-standard secure authentication and authorization.
  • ๐Ÿ”’ Argon2 โ€” State-of-the-art password hashing for maximum credential security.
  • ๐Ÿšฆ SlowAPI โ€” Advanced rate limiting to protect endpoints from automated abuse.
  • ๐Ÿ›ก๏ธ Bandit โ€” Automated security linting to identify and mitigate vulnerabilities.

๐Ÿ“Š Observability

  • ๐Ÿชต Structlog โ€” High-performance structured logging for deep system visibility.
  • ๐Ÿ“ˆ Prometheus โ€” Real-time metrics instrumentation for monitoring system health.
  • ๐ŸŽฏ Sentry SDK โ€” Proactive error tracking and performance monitoring with native FastAPI integration.
  • ๐Ÿ”ญ OpenTelemetry โ€” Distributed tracing for requests and SQL queries, exported over OTLP.
  • โœจ Rich โ€” Beautiful console formatting and traceback visualization for local development.
  • ๐Ÿ–ฅ๏ธ psutil โ€” Host CPU, memory, disk and uptime figures for the SUPER dashboard.

๐Ÿ“ง Email & Templating

  • โœ‰๏ธ Emails โ€” Simplifies sending emails with custom headers and attachments.
  • ๐ŸŽจ Jinja2 โ€” Modern and designer-friendly templating engine for Python.
  • ๐Ÿ” Email-Validator โ€” Robust validation for email addresses to ensure data integrity.

๐Ÿ› ๏ธ Tooling & Infrastructure

  • ๐Ÿ“ฆ uv โ€” Next-generation, lightning-fast Python package and project manager.
  • ๐Ÿณ Docker & Compose โ€” Full-stack container orchestration for environmental parity.
  • ๐Ÿงญ Traefik โ€” Reverse proxy with health-checked routing (stable .test URLs locally).
  • ๐Ÿ“ฅ Mailpit โ€” SMTP server and web UI for capturing and inspecting emails during development.
  • ๐Ÿฆ€ Zensical โ€” Ultra-fast, Rust-powered documentation generator for this project.
  • ๐Ÿค– AI coding assistants โ€” Gemini CLI, Google Antigravity, Claude Code, Codex, Copilot and others, all following AGENTS.md.

โ˜๏ธ AWS Deployment (Optional)

Used only by the AWS free-tier deployment; the Docker Compose stack needs none of them.

  • โš™๏ธ AWS Lambda + Lambda Web Adapter โ€” Runs the API and the worker with the normal Uvicorn server.
  • ๐ŸŒ CloudFront + S3 โ€” One address for the React app and the API.
  • ๐Ÿ“ฌ SQS (boto3) โ€” Email queue with a dead-letter queue.
  • โฐ EventBridge Scheduler โ€” Daily audit-record purge.
  • ๐Ÿ˜ Neon โ€” Hosted PostgreSQL.
  • ๐Ÿ—๏ธ Terraform โ€” Infrastructure as code (infra/aws).

๐Ÿงช Quality Assurance

  • ๐Ÿงช Pytest & Coverage โ€” Mature testing framework with detailed coverage reporting.
  • ๐Ÿณ Testcontainers โ€” Isolated, containerized integration testing against real PostgreSQL and real migrations.
  • ๐Ÿงช Schemathesis โ€” Property-based API fuzzing from the OpenAPI schema (CI).
  • ๐Ÿง  Hypothesis โ€” Advanced property-based testing for edge-case identification.
  • ๐Ÿš€ py-spy & Scalene โ€” Advanced performance profiling for CPU and memory optimization.
  • ๐Ÿงน Ruff โ€” Extremely fast, all-in-one Python linter and code formatter.
  • ๐Ÿ” Mypy โ€” Strict static type checking to eliminate runtime type errors.
  • โš“ Prek โ€” Ultra-fast, Rust-powered Git hook manager for automated code quality checks.