$ show zuiidea/antd-admin
The antd-admin repository is a monorepo providing two production-ready admin application templates (basic and with-lingui) and a CLI tool for scaffolding new projects from these templates. Built with React 19, Ant Design 6, TanStack Router & Query, Zustand, Zod, Vite+, MSW, and Playwright, it includes features like JWT authentication, role-based access control, CRUD operations with optimistic updates, URL-synchronized table state, dark theming, and optional i18n via Lingui. The architecture emphasizes modularity, with reusable hooks, components, and mocking utilities that encapsulate complex patterns such as data fetching mutations, schema-aware API mocking, and persistent state management.
The LLM identified 3 files worth highlighting for reuse:
Encapsulates full CRUD lifecycle with optimistic updates, invalidation, and toast integration. Reusable in any React Query + Zustand project, reducing boilerplate and ensuring consistent data mutation handling.
Provides schema-aware MSW request handlers that validate request/response bodies against Zod schemas, preventing contract drift between mocks and real API. Extractable to any MSW + Zod project for reliable API mocking.
Factory function for creating Zustand stores with built-in persistence middleware (localStorage/sessionStorage). Abstracts persistence boilerplate, enabling reusable client-side state that survives page reloads.