{"id":47599166,"url":"https://github.com/ahaodev/shadmin","last_synced_at":"2026-04-16T05:06:19.305Z","repository":{"id":345424333,"uuid":"1185826649","full_name":"ahaodev/shadmin","owner":"ahaodev","description":"An Enterprise-Grade Full-Stack RBAC Permission Management System Built with Go + React","archived":false,"fork":false,"pushed_at":"2026-04-09T02:36:01.000Z","size":1772,"stargazers_count":131,"open_issues_count":0,"forks_count":17,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-09T04:18:34.007Z","etag":null,"topics":["ai","clean-architecture","ddd","go","react","shadcn-ui","skill","tailwindcss-v4","tanstack","typescript","vite","zod"],"latest_commit_sha":null,"homepage":"https://shadmin.ahaodev.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahaodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2026-03-19T01:28:03.000Z","updated_at":"2026-04-09T02:32:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ahaodev/shadmin","commit_stats":null,"previous_names":["ahaodev/shadmin"],"tags_count":9,"template":true,"template_full_name":null,"purl":"pkg:github/ahaodev/shadmin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahaodev%2Fshadmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahaodev%2Fshadmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahaodev%2Fshadmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahaodev%2Fshadmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahaodev","download_url":"https://codeload.github.com/ahaodev/shadmin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahaodev%2Fshadmin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31872053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ai","clean-architecture","ddd","go","react","shadcn-ui","skill","tailwindcss-v4","tanstack","typescript","vite","zod"],"created_at":"2026-04-01T18:36:31.828Z","updated_at":"2026-04-16T05:06:19.299Z","avatar_url":"https://github.com/ahaodev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Shadmin\n\n**An Enterprise-Grade Full-Stack RBAC Permission Management System Built with Go + React**\n\n[简体中文](./README.zh.md) · English\n\n![Shadmin Showcase](docs/images/showcase-dark-en.jpg)\n\n[![Go](https://img.shields.io/badge/Go-1.25+-00ADD8?logo=go\u0026logoColor=white)](https://go.dev/)\n[![React](https://img.shields.io/badge/React-19-61DAFB?logo=react\u0026logoColor=white)](https://react.dev/)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5-3178C6?logo=typescript\u0026logoColor=white)](https://www.typescriptlang.org/)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n\n`Gin` · `Ent ORM` · `Casbin` · `Shadcn UI` · `TanStack Router` · `Tailwind CSS`\n\n\u003c/div\u003e\n\n---\n\n## ✨ Features\n\n- 🏗️ **Clean Architecture** — Domain‑driven layered design (Controller → Usecase → Repository)\n- 🔐 **RBAC with Casbin** — Fine‑grained role‑based access control for APIs and menus\n- 🌗 **Light \u0026 Dark Themes** — Seamless theme switching with system preference detection\n- 📱 **Responsive Design** — Optimized for desktop, tablet, and mobile\n- 🔍 **Global Search** — Quick navigation across menus and resources\n- 📊 **Dashboard** — Data visualization with charts and statistics\n- 🗂️ **Dynamic Menus** — Backend‑driven menu tree with permission‑aware rendering\n- 🗄️ **Multi‑Database** — SQLite (default), PostgreSQL, MySQL out of the box\n\n## 🚀 Get Running\n\n### Prerequisites\n\n- Go 1.25+\n- Node.js 18+ \u0026 pnpm (or npm)\n\n### Run\n\n```bash\n# Clone the repository\ngit clone https://github.com/ahaodev/shadmin.git\ncd shadmin\n\n# Install \u0026 build frontend\ncd web \u0026\u0026 pnpm install \u0026\u0026 pnpm build\n\n# Start backend (from project root)\n# Generates Ent code, embeds web/dist/, listens on :55667\n# .env auto‑generated on first run\ncd ..\ngo generate ./ent\ngo run .\n```\n\n\u003e **Default login:** `admin` / `123`\n\n## 🔐 Auth \u0026 Permissions\n\n- **Authentication**: JWT access + refresh tokens via `Authorization: Bearer \u003ctoken\u003e`\n- **API Authorization**: Casbin middleware checks `(userID, path, method)` on protected routes\n- **Frontend Guards**: Permission‑aware components (`PermissionButton`, `PermissionGuard`)\n- **Menu System**: Dynamic menus from `/api/v1/resources`, auto‑adapted to user permissions\n\n\u003cdetails\u003e\n\u003csummary\u003e📁 \u003cb\u003eProject Structure\u003c/b\u003e\u003c/summary\u003e\n\n```\nshadmin/\n├── api/            # Controllers \u0026 routes (Gin)\n├── bootstarp/      # App bootstrap, DB, Casbin, seed\n├── domain/         # Entities, DTOs, interfaces\n├── ent/schema/     # Ent ORM schemas\n├── repository/     # Data access layer\n├── usecase/        # Business logic\n├── internal/       # Internal utilities\n├── pkg/            # Shared packages\n├── web/            # React frontend (Vite + shadcn/ui)\n│   └── src/\n│       ├── routes/       # TanStack file‑based routing\n│       ├── features/     # Feature modules\n│       ├── services/     # API wrappers (Axios)\n│       └── stores/       # Zustand state management\n├── docs/           # Documentation \u0026 images\n└── main.go         # Entry point\n```\n\n\u003c/details\u003e\n\n## 📚 Documentation\n\n- [Architecture (EN)](docs/getting-started/architecture.en.md) · [架构 (中文)](docs/getting-started/architecture.zh.md)\n- [Quick Start (EN)](docs/getting-started/quickstart.en.md) · [快速开始 (中文)](docs/getting-started/quickstart.zh.md)\n- [Development (EN)](docs/getting-started/development.en.md) · [开发指南 (中文)](docs/getting-started/development.zh.md)\n- [Deployment (EN)](docs/getting-started/deployment.en.md) · [部署 (中文)](docs/getting-started/deployment.zh.md)\n\n## 📄 License\n\n[MIT](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahaodev%2Fshadmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahaodev%2Fshadmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahaodev%2Fshadmin/lists"}