现代化的 API 文档界面解决方案
基于 Vue 3 + TypeScript + Vite 构建,深度整合 SpringDoc,替代 Swagger UI,
提供更美观、更强大的开发体验,让 API 文档焕然一新。
🌐 在线演示 | 📘 官方文档 | 🧩 更新日志 | ❓ 常见问题
| 平台 | 仓库地址 |
|---|---|
| GitCode | https://gitcode.com/QAQ_Z/nextdoc4j-ui |
| Gitee | https://gitee.com/nextdoc4j/nextdoc4j-ui |
| GitHub | https://github.com/NextDoc4j/nextdoc4j-ui |
Nextdoc4j UI 是一个现代化的 API 文档前端界面,专为 Nextdoc4j 后端项目打造。它基于优秀的 Vue Vben Admin 框架进行二次开发,提供了比传统 Swagger UI 更加美观、易用的 API 文档浏览体验。
- 🎨 现代化设计 - 基于最新设计规范,提供优雅的用户体验
- ⚡ 性能优异 - 基于 Vue 3 + Vite,构建快速,运行流畅
- 🔧 深度整合 - 与 SpringDoc 深度集成,完美替代 Swagger UI
- 🎯 TypeScript - 全面的类型安全保障
- Node.js: >= 18.0.0
- pnpm: >= 9.12.0 (推荐)
# 克隆项目(选择任一平台)
git clone https://gitcode.com/QAQ_Z/nextdoc4j-ui.git
# 或
git clone https://gitee.com/nextdoc4j/nextdoc4j-ui.git
# 或
git clone https://github.com/NextDoc4j/nextdoc4j-ui.git
# 进入项目目录
cd nextdoc4j-ui
# 安装依赖
pnpm install# 启动开发服务器
pnpm dev
# 访问 http://localhost:5777# 构建生产版本
pnpm build更多配置和使用方式请参考 官方文档。
nextdoc4j-ui/
├── apps/
│ └── web-ele/ # 主应用
├── packages/
│ ├── @core/ # 核心功能包
│ ├── constants/ # 常量定义
│ ├── effects/ # 副作用处理
│ ├── icons/ # 图标组件库
│ ├── locales/ # 国际化资源
│ ├── preferences/ # 用户偏好设置
│ ├── stores/ # 状态管理 (Pinia)
│ ├── styles/ # 全局样式
│ ├── types/ # TypeScript 类型定义
│ └── utils/ # 通用工具函数
├── internal/
│ ├── lint-configs/ # ESLint/Prettier 配置
│ ├── node-utils/ # Node.js 工具函数
│ ├── tailwind-config/ # TailwindCSS 配置
│ ├── tsconfig/ # TypeScript 配置
│ └── vite-config/ # Vite 构建配置
└── ...
- 框架: Vue 3 + TypeScript
- 构建工具: Vite
- 包管理: pnpm + Monorepo (Turbo)
- UI 组件: 基于 Vben Admin
- 状态管理: Pinia
- 路由: Vue Router 4
- 样式: TailwindCSS
- 代码规范: ESLint + Prettier + Stylelint
- 测试: Vitest
本项目专为 Nextdoc4j 后端设计,提供无缝集成体验:
- 自动 API 发现: 自动读取 SpringDoc 生成的 OpenAPI 规范
- 实时文档同步: 后端 API 变更时前端文档自动更新
- 在线接口测试: 内置接口测试工具,支持各种认证方式
- 类型安全: 基于 OpenAPI 规范自动生成 TypeScript 类型
| 平台 | 仓库地址 |
|---|---|
| GitCode | https://gitcode.com/QAQ_Z/nextdoc4j |
| Gitee | https://gitee.com/nextdoc4j/nextdoc4j |
| GitHub | https://github.com/NextDoc4j/nextdoc4j |
我们欢迎所有形式的贡献!包括但不限于:
- 🐛 提交 Bug 反馈
- 💡 提供功能建议
- 📝 改进文档
- 💻 贡献代码
详细的贡献指南请访问:贡献指南
- 官方文档: https://nextdoc4j.top
- 贡献指南: https://nextdoc4j.top/more/contribute.html
- 更新日志: https://nextdoc4j.top/more/changelog.html
- 常见问题: https://nextdoc4j.top/more/faq.html
- 团队介绍: https://nextdoc4j.top/more/team/team.html
本项目基于以下许可证发布:
- 主项目: Apache-2.0 License
- Vben Admin 部分: MIT License
- Vue Vben Admin - 优秀的 Vue 3 管理后台框架
- Vue.js - 渐进式 JavaScript 框架
- Vite - 下一代前端构建工具
如果这个项目对你有帮助,请给它一个 ⭐️



