zuiidea /antd-admin

AI-friendly enterprise front-end best practices

★ 9,770⑂ 2,465👁 288⑃ 183● 994▤ 12
TypeScriptMITCreated 2016-01-25antd-admin.zuiidea.top
下载:6.0.06.0.0 ↓6.0.02026-03-14
+1
日增长
9,770
stars
2,465
forks
288
watchers
183
prs
994
issues
12
releases

README

Antd Admin

 Introduction

Antd Admin provides production-style admin templates with modern frontend tooling, mock-first development, and practical testing coverage.

Available templates:

- basic: Admin template with plain-string UI copy (default English; no bundled Lingui)
- with-lingui: Lingui i18n workflow (en + zh) with locale switching

Scaffolding CLI:

- init-antd-admin (from packages/create)

 Key Features

- JWT login with access/refresh flow
- Backend-driven menu and permission guards
- URL-synced table state (pagination, sorting, search)
- Dark mode theme switching
- Mock-first local development (no backend required)
- Modular API layer (defineApi per domain, Zod schemas, shared API_PREFIX)
- Typed API boundaries and reusable CRUD patterns
- React 19 + Ant Design 6 + TanStack Router/Query + Zustand + Zod
- Optional Lingui-based i18n workflow (with-lingui)
- E2E coverage with Playwright

 Quick Start

Use init-antd-admin to scaffold a standalone app from official templates.

 Interactive

bash
npx init-antd-admin@latest
pnpm dlx init-antd-admin@latest
yarn dlx init-antd-admin@latest
bunx init-antd-admin@latest


 Non-interactive examples

bash
pnpm dlx init-antd-admin@latest my-app --example basic -m pnpm
pnpm dlx init-antd-admin@latest my-app --example with-lingui --skip-install


 Common options


| Option                       | Description                                |
| ---------------------------- | ------------------------------------------ |
| [project-directory]        | Target folder                              |
| -e, --example   | Template name (basic, with-lingui) or URL |
| --example-path       | Subpath inside remote repository           |
| -m, --package-manager  | npm / pnpm / yarn / bun            |
| --skip-install             | Skip dependency install                    |
| --skip-transforms          | Skip rewrite transforms                    |
| --no-git                   | Skip git initialization                    |


For detailed CLI behavior, see packages/create/README.md.

 AI / agent guidance

Each template app keeps AGENTS.md as the single source of truth (Cursor, Claude Code, Codex, etc.). Monorepo overview: AGENTS.md at the repo root.

Production docs: https://antd-admin-doc.zuiidea.top

 Links

- Ant Design
- React
- Vite+
- TypeScript
- Issues
- Stars
- PRs Welcome

 License

MIT

Top issues

Latest release

6.0.0 6.0.0 2026-03-14
Ai time, feel free to use ai

1. upgrade umi to v4
2. use umi locale instead of lingui
3. use zustand instead of dva
4. add @ant-design/x to run gpt dialog, for production you may need @ant-design/x-markdown
5. remove axios to keep it simple
6. remove echart and highcharts, since it's easy to import with ai
7. add page sys/menu back so it's easy to modify layout's menu

Just keep it simple with limited dependencies.
Have fun😊

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON