# pig-mesh/pig

↥ ↥ ↥ Follow for updates An RBAC permission management system based on Spring Cloud 2025, Spring Boot 4, and OAuth2.

Repository: https://github.com/pig-mesh/pig
Canonical: https://ross.abutalabs.com/products/pig
Homepage: https://wiki.pig4cloud.com
Language: Java
License: Apache-2.0
License Family: permissive
Topics: oauth2, spring-boot, spring-cloud, spring-cloud-alibaba, docker, rbac-management, spring-authorization-server, spring-security, vue3, sa-token, openai, spring-ai
Last push: 2026-08-24T01:09:13+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 60, longevity 100
- inputs: {"age_days": 2564, "days_push": 10, "days_rel": 56, "gap_med": 217, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6675, forks 1100 (observed 2026-08-28T04:09:47.554758+00:00)

## What it is
Pig is an enterprise-grade RBAC rapid development platform built on Spring Cloud, Spring Boot 4, and OAuth2 (Spring Authorization Server), supporting both microservice and monolith deployment modes. It bundles an auth center, API gateway, user/permission management, monitoring, code generation, and scheduled task management, with a Vue 3 frontend.

## Use cases
- build an enterprise admin system with role-based access control
- set up OAuth2 authentication with Spring Authorization Server
- bootstrap a Spring Cloud microservices project quickly
- self-host a permission management backend with a Vue 3 UI
- generate CRUD code for a Java microservices app
- run a monolith or microservice architecture from one codebase

## When to choose
- you need a production-ready Java RBAC/auth foundation on the Spring stack
- you want both microservice and single-service deployment options
- you want batteries-included gateway, auth, UPMS, monitoring, and codegen modules
- you're building enterprise back-office systems in Java with Vue 3 frontends

## When to avoid
- you need multi-tenancy, data-level permissions, workflows, or payment modules (commercial-only)
- you're not working in the Java/Spring ecosystem
- you want a lightweight library rather than a full platform
- you prefer non-Docker-based local development

## Facets
- artifact type: framework
- maturity: active
- function: auth, authorization, api-gateway, microservices, web-framework, monitoring, workflow-automation
- domain: backend, web-development, developer-tools, security, microservices, self-hosted
- platform: jvm, self-hosted, cloud
- tags: rbac, spring-cloud, spring-boot, oauth2, spring-authorization-server, vue3, nacos, code-generation, admin-dashboard, microservices-platform, boilerplate, docker, web-server

## Member repositories
- pig-mesh/pig (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:47.554758+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-29T17:43:01.155974+00:00, confidence not recorded.
  - readme: https://github.com/pig-mesh/pig (fetched 2026-08-28T04:09:47.554758+00:00, sha 127abd2bdc6e)
  - homepage: https://wiki.pig4cloud.com (fetched 2026-08-29T08:39:13.735480+00:00, sha ebbb941fef94)
- Data as of 2026-08-30T08:39:29.467469+00:00.
