pig

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

What is pig?

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

Overview of pig

What it is

Pig is an RBAC permission management system based on Spring Cloud 2025, Spring Boot 4, and OAuth2. It supports both microservice and monolithic architectures. The authentication center uses Spring Authorization Server for production-grade OAuth2 practices, supporting authorization code, password, and refresh token flows. The open-source version retains core capabilities such as authentication, gateway, user permissions, monitoring, code generation, and scheduled tasks. It provides Docker Compose orchestration for local quick start with MySQL, Redis, Nacos, and business services.

Key features

  • RBAC permission management system based on Spring Cloud 2025, Spring Boot 4, and OAuth2.
  • Supports both microservice and monolithic architectures.
  • Authentication center using Spring Authorization Server with support for authorization code, password, and refresh token flows.
  • Includes core modules: authentication, gateway, user permissions, monitoring, code generation, and scheduled tasks.
  • Provides Docker Compose orchestration for local quick start with MySQL, Redis, Nacos, and business services.
  • Open-source version removes commercial extensions such as multi-tenancy, data permissions, dynamic routing, workflow, payment, WeChat official account, reports, and mobile services.

Use cases

Pig is suitable for enterprise-level rapid development scenarios requiring RBAC permission management. It can be used as a foundation for building internal management systems, SaaS platforms, or any application that needs role-based access control with OAuth2 authentication. The microservice mode is ideal for large-scale distributed systems, while the monolithic mode is suitable for smaller projects or teams that prefer a simpler deployment.

Getting started

Prerequisites: JDK 17+, Maven 3.9+, Docker and Docker Compose, Node.js 20.19.0+ (for pig-ui frontend).For microservice mode:bashmvn clean install -T 4 -Pclouddocker compose build && docker compose upFor monolithic mode:bashmvn clean install -T 4 -Pbootdocker compose -f docker-compose-boot.yml build && docker compose -f docker-compose-boot.yml up

License and pricing

Pig is open-source under the Apache 2.0 license. The license allows commercial use but requires retaining class author and copyright information. The open-source version is free; commercial extensions are available in a separate commercial version.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/pig-meshpig.svg)](https://yunodb.com/tools/pig-meshpig?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/pig-meshpig?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/pig-meshpig.svg" alt="Featured on YunoDB" height="20"></a>