# LyricTian/gin-admin

A lightweight, flexible, elegant and full-featured RBAC scaffolding based on GIN + GORM 2.0 + Casbin 2.0 + Wire DI.基于 Golang + Gin + GORM 2.0 + Casbin 2.0 + Wire DI 的轻量级、灵活、优雅且功能齐全的 RBAC 脚手架。

Repository: https://github.com/LyricTian/gin-admin
Canonical: https://ross.abutalabs.com/products/gin-admin
Homepage: https://demo.ginadmin.top
Language: Go
License: Apache-2.0
License Family: permissive
Topics: gin-casbin, go-rbac, gin-admin, go-admin, rbac, gorm, gormv2, admin, casbin, gin, go, golang
Last push: 2025-06-16T01:47:51+00:00

## Health v2 (maintenance only)
Score: 34/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 26, release rhythm 8, longevity 100
- inputs: {"age_days": 2898, "days_push": 444, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2856, forks 545 (observed 2026-08-28T04:07:25.859061+00:00)

## What it is
A full-featured RBAC admin scaffolding framework for Go built on Gin, GORM 2.0, Casbin 2.0, and Wire dependency injection. It ships with JWT authentication, middleware for logging, rate limiting, and tracing, Swagger docs, and a companion CLI for code generation.

## Use cases
- build a go admin backend with rbac permissions
- scaffold a restful api service in golang
- casbin-based role and permission management
- bootstrap an enterprise web api with jwt auth
- generate crud code for a gin project
- self-hosted admin panel backend

## When to choose
- you want a batteries-included Go admin/RBAC starter with auth, permissions, and docs wired up
- you prefer Gin + GORM + Casbin and want a clean modular architecture with DI
- you need a companion CLI for rapid code generation

## When to avoid
- you need a lightweight microservice without admin/RBAC overhead
- your stack is not Go or you use a different web framework
- you want a fully maintained frontend out of the box (frontends live in separate repos)

## Facets
- artifact type: framework
- maturity: active
- function: auth, authorization, orm, web-framework, api-framework, middleware, logging, rate-limiting, tracing, cli, documentation
- domain: web-development, backend, developer-tools, apis, security
- platform: go, windows, self-hosted
- tags: rbac, scaffolding, boilerplate, casbin, gin, gorm, jwt, dependency-injection, admin-panel, rest-api, docker, linux, macos, web-server

## Member repositories
- LyricTian/gin-admin (main) score 34

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:25.859061+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:36:30.925805+00:00, confidence not recorded.
  - readme: https://github.com/LyricTian/gin-admin (fetched 2026-08-28T04:07:25.859061+00:00, sha d98aac738bc5)
  - homepage: https://demo.ginadmin.top (fetched 2026-08-29T09:52:14.486332+00:00, sha ed2bf54b5b2f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
