{"repo":"mahmoudsamy7729/fastapi-saas-starter","free":true,"listed":false,"github":"https://github.com/mahmoudsamy7729/fastapi-saas-starter","clone":"git clone https://github.com/mahmoudsamy7729/fastapi-saas-starter.git","description":"A complete FastAPI SaaS starter kit with authentication, social login, billing, Stripe subscriptions, email workflows, and Celery background jobs—built with clean architecture and async SQLAlchemy.","language":"Python","stars":25,"topics":["billing","fastapi","postgresql","python","saas","saas-boilerplate","starter-kit","stripe","template"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"FastAPI Authentication & Billing Service A FastAPI backend that provides login/registration, OAuth, OTP, email verification, and Stripe-based subscriptions. It runs async with PostgreSQL, Redis, and Celery so you can plug it into a SaaS dashboard or API-first product. Project Structure Technical Overview - FastAPI app with per-domain routers ( src/auth/router.py , src/billing/router.py ), CORS, structured logging, and slowapi rate limiting. - Service/repository layers over async SQLAlchemy 2.0 + asyncpg; sync engine for Celery tasks. - JWT access, refresh, and validation tokens with hashed refresh storage and rotation. - Stripe Checkout + webhook handling for plans, subscriptions, renewals, and cancellations. - SMTP email flows (verification, password reset, OTP, subscription notices) via FastAPI-Mail. - Celery worker and beat for subscription emails and expiry sweeps. Main Features - Local auth: register/login, email verification, password reset/change. - OTP login (email-delivered, single-use, 15-minute expiry). - Social auth: Google and GitHub with state validation and auto-provisioning. - Refresh token rotation with DB-backed JTI tracking and httpOnly cookies. - Plans: create/update/soft-delete, tiering, and Stripe product/price sync. - Subscriptions: checkout, upgrade, cancel-at-period-end, and access window enforcement. - Stripe webhooks: checkout completion, invoice success/failure, subscription deleted. - Payments recorded on invoice success; subscription emails dispa","default_branch":null,"files":null,"tree":[],"storefront":"/r/mahmoudsamy7729","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mahmoudsamy7729/fastapi-saas-starter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}