ahaodev/shadmin
ahaodev/shadmin has 175 GitHub stars and 23 forks. GitHot measured +1 stars in 24 hours and +2 in 7 days. Last checked 2026-11-08 22:59 UTC. Last push 2026-10-30.
An Enterprise-Grade Full-Stack RBAC Permission Management System Built with Go + React
What you can do
- 🏗️ Clean Architecture — Domain‑driven layered design (Controller → Usecase → Repository)
- 🔐 RBAC with Casbin — Fine‑grained role‑based access control for APIs and menus
- 🌗 Light & Dark Themes — Seamless theme switching with system preference detection
- 📱 Responsive Design — Optimized for desktop, tablet, and mobile
Measured star growth
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalShadmin
An Enterprise-Grade Full-Stack RBAC Permission Management System Built with Go + React
简体中文 · English

Gin · Ent ORM · Casbin · Shadcn UI · TanStack Router · Tailwind CSS
✨ Features
- 🏗️ Clean Architecture — Domain‑driven layered design (Controller → Usecase → Repository)
- 🔐 RBAC with Casbin — Fine‑grained role‑based access control for APIs and menus
- 🌗 Light & Dark Themes — Seamless theme switching with system preference detection
- 📱 Responsive Design — Optimized for desktop, tablet, and mobile
- 🔍 Global Search — Quick navigation across menus and resources
- 📊 Dashboard — Data visualization with charts and statistics
- 🗂️ Dynamic Menus — Backend‑driven menu tree with permission‑aware rendering
- ⚡ Cacher — Supports Redis or go-cache, flexible and optional
- 🗄️ Multi‑Database — SQLite (default), PostgreSQL, MySQL out of the box
🚀 Get Running
Prerequisites
- Go 1.27.1+
- Node.js 22+ & pnpm 11+
Run
# Clone the repository
git clone https://github.com/ahaodev/shadmin.git
cd shadmin
go install github.com/swaggo/swag/cmd/swag@latest
go install entgo.io/ent/cmd/ent@latest
# Install & build frontend
cd frontend && pnpm install && pnpm build
# Start backend (from project root)
# Generates Ent code, embeds frontend/dist/, listens on :55667
# .env auto‑generated on first run
cd ..
swag init
go run -mod=mod entgo.io/ent/cmd/ent generate ./ent/schema
go run .
Default login:
admin/123
🔐 Auth & Permissions
- Authentication: JWT access + refresh tokens via
Authorization: Bearer <token> - API Authorization: Casbin middleware checks
(userID, path, method)on protected routes - Frontend Guards: Permission‑aware UI via the
usePermission()hook andauth-storechecks (hasPermission()/hasRole()) - Menu System: Dynamic menus from
/api/v1/resources, auto‑adapted to user permissions
📁 Project Structure
shadmin/
├── api/ # Controllers & routes (Gin)
├── bootstrap/ # App bootstrap, DB, Casbin, seed
├── domain/ # Entities, DTOs, interfaces
├── ent/schema/ # Ent ORM schemas
├── repository/ # Data access layer
├── usecase/ # Business logic
├── internal/ # Internal utilities
├── pkg/ # Shared packages
├── frontend/ # React frontend (Vite + shadcn/ui)
│ └── src/
│ ├── routes/ # TanStack file‑based routing
│ ├── features/ # Feature modules
│ ├── services/ # API wrappers (Axios)
│ └── stores/ # Zustand state management
├── docs/ # Documentation & images
└── main.go # Entry point
📚 Documentation
- Architecture (EN) · 架构 (中文)
- Quick Start (EN) · 快速开始 (中文)
- Development (EN) · 开发指南 (中文)
- Deployment (EN) · 部署 (中文)
- CLI for AI agents · 面向 AI Agent 的 CLI(中文)
📄 License
Explore related projects
affaan-m/ECC
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
300,119 starsNousResearch/hermes-agent
The agent that grows with you
262,012 starsmultica-ai/andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
231,275 starsfirecrawl/firecrawl
Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
199,847 stars