Fast Vben Admin is a modular full-stack management platform for admin panels and multi-tenant SaaS, built with FastAPI and Vue Vben Admin using Edition YAML composition.

Stars

192

7-day growth

No data

Forks

18

Open issues

0

License

MIT

Last updated

2026-07-23

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It provides a production-ready modular monolith with comprehensive built-in features (multi-tenancy, RBAC, OIDC, MFA, audit, events, file storage) and a clear separation of concerns, backed by strong developer tooling and automated API client generation.

Who it is for

  • Backend developers building SaaS platforms with FastAPI
  • Frontend developers using Vue Vben Admin for admin interfaces
  • DevOps engineers needing a modular, deployable admin panel stack
  • Startups or enterprises requiring multi-tenant management systems with ERP modules

Use cases

  • Building a customizable multi-tenant SaaS admin dashboard
  • Developing an ERP or inventory management system with modular modules like Items and ERP
  • Rapidly prototyping a full-stack admin panel with authentication, RBAC, and audit logging
  • Creating a platform that can be composed per Edition for different client requirements

Strengths

  • Modular monolith with Edition YAML composition enables flexible deployment of feature sets
  • Comprehensive built-in modules: multi-tenancy, RBAC, OIDC SSO, TOTP MFA, audit, messaging, file storage with S3/MinIO
  • Clear architecture with separate backend and frontend, automatic TypeScript client generation from OpenAPI Schema
  • Strong developer experience: Docker Compose local environment, CLI commands for edition building, migration, and code generation

Considerations

  • Requires PostgreSQL and Redis, making minimal setup heavy
  • Uses very recent versions (Python 3.14, pnpm 11, Node.js 22), which may introduce compatibility or stability challenges
  • Complex modular architecture and extensive documentation (including Agent development rules) may have a steep learning curve for new contributors

README quick start

Fast Vben Admin

中文 | English

Fast Vben Admin 是一个面向中后台和多租户 SaaS 场景的模块化全栈管理平台。项目采用“模块化单体 + 构建期 Edition 组合”:FastAPI 提供 API、事务与安全边界,Vue Vben Admin 的 web-antd 应用负责管理界面,Platform 提供认证、租户、RBAC、系统管理和基础设施能力,Items、ERP 等业务模块通过统一契约按 Edition 组合交付。

在线演示

http://114.132.74.2:5173/auth/login

租户编码:default
邮箱:admin@example.com
密码:changethis

开发须知

  • 自动化编码模型和协作者开始修改前必须阅读仓库级 Agent 开发规范,并继续读取目标目录最近的 AGENTS.md
  • 前端接口类型由后端 OpenAPI Schema 生成。修改 API 后请执行 pnpm generate:api,不要手动修改 src/api/generated 中的文件。
  • Edition 模块集合以 editions/.yaml 为唯一事实源,Build Manifest、前端模块注册和镜像组合均由构建命令生成。
  • Docker Compose 的默认覆盖配置用于本地热更新,前端地址为 http://localhost:5174;生产组合配置使用 http://localhost:5173

平台简介

项目采用前后端分离的模块化单体架构。后端 API 统一挂载在 /api/v1,前端根据 Build Manifest、后端菜单和权限码装配页面、导航与按钮权限。Platform 是所有 Edition 的必选模块,业务模块拥有独立的后端实现、前端页面、数据库 Schema、迁移 namespace 和公开契约。

总体架构

架构由横向业务与技术分层、纵向安全和构建交付体系共同组成:

  • 业务应用层:Platform 应用与 Items、ERP 等可选业务模块并列;采购、销售、库存、财务和统计是 ERP 内部业务域。
  • 统一接入层:Vue、Nginx、FastAPI 和生成式 OpenAPI Client 构成访问通道,请求依次经过身份认证、可信租户解析、模块访问判定和 RBAC/数据权限。
  • 平台服务层:Platform 内部划分 Kernel、System 和 Infra 限界上下文;模块引擎统一处理 Edition、模块契约、权益、能力和生命周期。
  • 事件与任务:跨模块状态变化使用事务 Outbox,消费者通过 Inbox 回执实现幂等,并共享重试、租约、死信和逐租户调度机制。
  • 数据与安全:Platform 和业务模块拥有独立表所有权;Tenant UoW、ORM 自动过滤、PostgreSQL RLS 与受限运行角色共同构成租户隔离边界。
  • 构建交付:Edition YAML 生成 Build Manifest、迁移计划、OpenAPI Client 和前后端镜像,并接入扫描、SBOM、签名和发布审计。

图中的 IOA 表示按既定模块契约接入的扩展业务模块;当前仓库实际可用模块及组合始终以 editions/ 下的 YAML 为准。更完整的边界、状态和验收规则见模块化架构实施基线

内置能力

Platform 核心与系统能力

模块说明
登录与账户安全JWT 登录、密码找回与重置、登录限流和验证码、二维码登录、TOTP MFA 与恢复码、个人资料及密码管理。
企业身份接入可配置企业 OIDC 单点登录、账户映射、角色映射和账号有效状态同步。
RBAC用户、角色、菜单、权限码、后端权限校验和后端动态菜单。
组织管理部门、岗位、用户岗位关联,以及角色级的全部、部门、部门及下级、本人和自定义部门数据权限。
多租户共享表租户隔离、成员关系、租户切换与旧会话失效、租户套餐、配额和初始化模板。
模块治理Edition 装配、模块运行状态、套餐权益、合同例外、租户启用偏好和模块访问缓存。
审计与消息登录日志、操作日志、公告发布、站内消息和已读状态管理。

Platform Infra 与开发支撑

模块说明
参数与字典租户级系统参数、公开参数、字典类型和字典项管理。
文件服务文件管理、头像上传、扩展名及大小限制、本地存储和 S3/MinIO 兼容对象存储、私有文件预签名下载。
通信配置邮箱、短信渠道、模板和发送日志管理页。
代码生成按数据库表结构生成 FastAPI Schema、CRUD 路由骨架、Vben API 封装及列表页的 ZIP 起始模块。
OpenAPI 契约从当前后端导出 Schema,生成前端 TypeScript 类型和客户端代码。
事件与任务事务 Outbox、Inbox 幂等回执、消费

Description

FastAPI + Vue Vben Admin full-stack admin template with RBAC, dynamic menus, and Docker Compose support.

Related repositories

Similar projects matched by category, topics, and programming language.

TanStack
Featured
TanStack GitHub avatar

router

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.

Web DevelopmentFrontend Frameworks
14,861
makecindy
Featured
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI & Machine LearningLarge Language Models
958
mereyabdenbekuly-ctrl
Featured
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

AI & Machine LearningAI Agents
859