What problem does it solve?
Establishes a scalable, maintainable backend pattern for FastAPI projects by enforcing a three-layer architecture (Router → Service → Repository) and Domain-Driven Design, enabling robust validation, asynchronous data access, and consistent project structure.
Core Features & Use Cases
- Layered Architecture with clear responsibilities (Router → Service → Repository) to prevent leakage of concerns and improve testability.
- Domain-Driven Design guidance that organizes code by domain modules (e.g., user, auth, admin) for better maintainability and evolution.
- Async/Await Patterns throughout the stack to maximize performance and scalability in FastAPI environments.
- Read/Write Session Split guidance to optimize database interactions and transactional safety.
- ULID-based ID generation with domain prefixes for readable, sortable identifiers.
- DTOs and Validation using Pydantic with field_validator to enforce data integrity and business rules.
Quick Start
Initialize a FastAPI project with the three-layer structure and adopt the provided domain patterns to start building scalable APIs.