{"id":16229424,"url":"https://github.com/brandonxiang/vite-antd-starter","last_synced_at":"2026-01-24T11:35:55.731Z","repository":{"id":87907304,"uuid":"541100567","full_name":"brandonxiang/vite-antd-starter","owner":"brandonxiang","description":"A simplest template to build admin portal project with vite + react + antd","archived":false,"fork":false,"pushed_at":"2026-01-19T21:50:07.000Z","size":489,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-20T00:52:13.608Z","etag":null,"topics":["admin","antd","minimal","react","react-router","starter","template","templates","vite","website"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brandonxiang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-25T08:13:35.000Z","updated_at":"2025-12-29T11:23:18.000Z","dependencies_parsed_at":"2025-05-06T00:19:39.641Z","dependency_job_id":"988c6866-f745-4eb5-ac57-b096cd690641","html_url":"https://github.com/brandonxiang/vite-antd-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/brandonxiang/vite-antd-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonxiang%2Fvite-antd-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonxiang%2Fvite-antd-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonxiang%2Fvite-antd-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonxiang%2Fvite-antd-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonxiang","download_url":"https://codeload.github.com/brandonxiang/vite-antd-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonxiang%2Fvite-antd-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28726824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","antd","minimal","react","react-router","starter","template","templates","vite","website"],"created_at":"2024-10-10T12:58:17.710Z","updated_at":"2026-01-24T11:35:55.712Z","avatar_url":"https://github.com/brandonxiang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/brandonxiang/vite-antd-starter\"\u003e\n    \u003cimg src=\"https://brandonxiang.top/icon/vite-template.jpeg\" width=\"150px\" alt=\"Vite Template Logo\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# Vite Antd Starter 😄\n\n## Why do you use this template\n\nThis template is a simplest solution to start up an new SPA with modern React Router Data Mode.\n\n## What is the key web framework for this template\n\n- [React](https://react.dev/) - UI Library (v19)\n- [React Router](https://reactrouter.com/en/main) - Data Router Mode (v7)\n- [Antd](https://ant.design/index-cn) - UI Components (v5)\n- [Vite](https://vitejs.dev/) - Build Tool\n- [TypeScript](https://www.typescriptlang.org/) - Type Safety\n\n## Features\n\n✨ **Modern React Router Data Mode** - Using `createBrowserRouter` with data loading capabilities\n🎨 **Ant Design 5** - Beautiful and professional UI components\n⚡ **Vite** - Lightning fast HMR and build\n📦 **TypeScript** - Full type safety\n🎯 **Code Splitting** - Automatic lazy loading of routes\n🔄 **Data Loading** - Built-in loaders and actions support\n📱 **Responsive Layout** - Mobile-friendly admin layout\n\n## Start Up\n\nPlease use [degit](https://github.com/Rich-Harris/degit) to download template\n\n```bash\n#\nmkdir your-project-name\ncd your-project-name\nnpx degit brandonxiang/vite-antd-starter\n\n# or\n\nnpx degit brandonxiang/vite-antd-starter your-project-name\n```\n\n```shell\npnpm i\n```\n\n```shell\npnpm run dev\n\n# http://localhost:3000/\n```\n\n```shell\n# live\npnpm run build\n```\n\n## Router Configuration\n\nThis project uses React Router's **Data Mode** with `createBrowserRouter`. This provides:\n\n- **Data Loading**: Load data before components render using loaders\n- **Form Actions**: Handle mutations with actions\n- **Error Boundaries**: Built-in error handling per route\n- **Type Safety**: Better TypeScript integration\n\n### Adding a New Route\n\nEdit `src/router/menus.tsx`:\n\n```tsx\nexport const dataRoutes: DataRouteConfig[] = [\n  {\n    id: 'my-route',\n    path: '/my-route',\n    title: 'My Route',\n    icon: \u003cMyIcon /\u003e,\n    Component: MyComponent,\n    // Optional: Add data loading\n    loader: async ({ params }) =\u003e {\n      const data = await fetchData();\n      return data;\n    },\n  },\n];\n```\n\nSee [ROUTER_MIGRATION.md](./ROUTER_MIGRATION.md) for detailed documentation and examples.\n\n## Relevant Links\n\n- [vite-antd-starter](https://github.com/brandonxiang/vite-antd-starter)\n- [vite-antd-ssr-starter](https://github.com/brandonxiang/vite-antd-ssr-starter)\n- [vite-antd-mobile-starter](https://github.com/brandonxiang/vite-antd-mobile-starter)\n- [fastify-starter](https://github.com/brandonxiang/fastify-starter)\n- [ts-lib-starter](https://github.com/brandonxiang/ts-lib-starter)\n- [svelteup-starter](https://github.com/brandonxiang/svelteup-starter)\n- [reveal-svelte-starter](https://github.com/brandonxiang/reveal-svelte-starter)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonxiang%2Fvite-antd-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonxiang%2Fvite-antd-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonxiang%2Fvite-antd-starter/lists"}