hey-api /
hey-api
👨🚀 Turn API specifications into production-ready SDKs, validators, mocks, and more. 20+ plugins. Millions of weekly npm downloads. Used by Vercel, OpenCode, PayPal, AWS, Autodesk, and many more.
86/100 healthLoading repository data…
rongguanhui / repository
🚀 A production-ready SaaS backend starter kit based on FastAPI, Async SQLAlchemy, Celery & Docker. Features RBAC, Multi-tenancy, AI-readiness, and Enterprise modules.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Build your next SaaS product in days, not months.
这是一个现代化的、基于 Python 的后端脚手架,专为构建跨境电商平台、企业级 SaaS 或 AI 应用而设计。它集成了异步高性能架构、后台任务队列、多租户权限管理以及常见的 SaaS 业务模块(支付、邮件、审计、Excel 处理)。
不再重复造轮子,专注于你的核心业务逻辑。
FastAPI + Uvicorn + AsyncPG,全链路异步 IO,轻松应对高并发。SQLAlchemy 2.0 (Async) + Alembic,现代化的数据库操作与版本迁移。Celery + Redis,支持异步任务(如 AI 生成、发送邮件)和 Cron 定时任务。FastAPI-Cache2,支持 Redis 缓存装饰器,大幅降低 DB 压力。pytest-asyncio,提供 API 与 业务逻辑的自动化测试范例。| 模块 | 技术选型 |
|---|---|
| Web Framework | FastAPI |
| Language | Python 3.9+ |
| Database | PostgreSQL 15 |
| ORM | SQLAlchemy 2.0 (Async) |
| Async Task | Celery + Redis |
| Validation | Pydantic V2 |
| Migration | Alembic |
| Testing | Pytest |
| Container | Docker |
使用此模板
点击右上角的 Use this template 按钮,或 Clone 项目。
配置环境变量
cp .env.example .env
# 编辑 .env 文件,修改数据库密码、Secret Key 等
启动服务
docker-compose up --build
等待几秒后,访问:
http://localhost:8000/docshttp://localhost:8080 (如果在 docker-compose 中配置了)创建虚拟环境
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
安装依赖
pip install -r requirements.txt
启动基础设施 (DB & Redis) 建议使用 Docker 启动基础设施,本地跑代码:
docker-compose up -d db redis
数据库迁移
alembic upgrade head
启动服务
# 启动 API
uvicorn app.main:app --reload
# 启动 Worker (另开终端)
celery -A app.workers.celery_app worker --loglevel=info
# 启动 定时任务 Beat (另开终端)
celery -A app.workers.celery_app beat --loglevel=info
├── app/
│ ├── api/ # API 路由 (Endpoints & Deps)
│ ├── core/ # 核心配置 (Config, Security, Logger)
│ ├── db/ # 数据库连接与 Base 类
│ ├── models/ # SQLAlchemy 模型 (User, Product, Audit...)
│ ├── schemas/ # Pydantic 模型 (Request/Response)
│ ├── services/ # 业务逻辑层 (Email, Stripe, Excel...)
│ ├── workers/ # Celery 任务与定时配置
│ └── main.py # FastAPI 入口
├── alembic/ # 迁移脚本
├── tests/ # 测试用例
├── .env.example # 环境变量模版
├── docker-compose.yml # 容器编排
└── requirements.txt # 依赖列表
Selected from shared topics, language and repository description—not editorial ratings.
hey-api /
👨🚀 Turn API specifications into production-ready SDKs, validators, mocks, and more. 20+ plugins. Millions of weekly npm downloads. Used by Vercel, OpenCode, PayPal, AWS, Autodesk, and many more.
86/100 healthGiorgioMedico /
🚀 InterpolatePy: A fast and precise Python library for production-ready trajectory planning, offering 20+ algorithms for C² continuous splines, jerk-limited S-curves, and quaternion interpolation for robotics, animation, and scientific computing.
71/100 healthalefeans /
Production-ready modern Python template featuring Clean Architecture, DDD, and FastAPI 🚀
78/100 healthakhil2308 /
🚀 Production-grade FastAPI template • JWT auth • Rate limiting • Async PostgreSQL & Redis • OpenTelemetry observability (Prometheus, Grafana, Tempo) • Alembic • Docker • Gunicorn + Uvicorn • Async Ready • RFC-Compliant API Responses • Enterprise Security Patterns
74/100 healthMERakram /
🚀 Production-ready modular RAG monorepo: Local LLM inference (vLLM) • Hybrid retrieval with Qdrant • Semantic caching • Docling document parsing • Cross-encoder reranking • DeepEval evaluation • Full observability with Langfuse • Open WebUI chat interface • OpenAI-compatible API • Fully Dockerized
76/100 healthBrucewaynehatake /
🚀 Transform your skills with 70 hands-on projects in Generative AI, guiding you from beginner to production-ready architect with real-world applications.
75/100 health