A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Full-stack admin system in Rust featuring JWT/RBAC auth, database sharding, multi-tenancy, AI gateway, MCP server and So
中文 | English
Full-stack Rust admin system · Database sharding, multi-tenant isolation, MCP service, declarative macros — all in one binary
Core Capabilities · Architecture · Project Structure · Frontend & Docs
summerrs-admin is a production-grade admin system written entirely in Rust, built on top of the Summer framework (a Spring-style application skeleton for Rust). It bundles capabilities that usually require a whole backend team to assemble — authentication, multi-tenancy, real-time messaging, object storage, declarative auditing — into a single binary via a plugin composition model. Use what you need, ignore what you don't.
It is not a demo, nor a showcase of any single component — it is a complete, self-contained, deployable backend foundation.
summerrs-admin leverages Rust's zero-cost abstractions, type safety, and compile-time guarantees to integrate capabilities that typically require multiple independent services into a single high-performance binary:
| Capability | Typical | This Project (Rust Advantages) |
|---|---|---|
| Database Sharding | Bolted on via ShardingSphere / Vitess | summer-sharding rewrites SQL transparently — zero runtime overhead, compile-time type safety |
| MCP Service | A standalone MCP server process | summer-mcp introspects business schema directly; AI assistants generate CRUD with type-safe guarantees |
| Declarative Audit & Rate Limiting | Middleware + handwritten code | #[login] #[has_perm] #[rate_limit] — procedural macros expand at compile time, no reflection overhead |
Core Rust Advantages:
The system is built around plugin composition. crates/app/src/main.rs is the assembly point — plugins fed into App::new() in order:
HTTP 8080
│
▼
┌──────────────────────────────────┐
│ Tower middleware (CORS / │
│ compression / panic guard / │
│ client IP extraction) │
└──────────────┬───────────────────┘
│
▼
/api/* (JWT)
summer-system
│
▼
┌──────────────────────────────────┐
│ Declarative macro layer │
│ #[login] #[has_perm] │
│ #[has_role] #[rate_limit] │
│ #[operation_log] │
└──────────────┬───────────────────┘
│
▼
┌──────────────────────────────────┐
│ Sharding / SQL rewrite layer │
│ Tenant context injection │
└──────┬─────────────┬─────────────┘
▼ ▼
PostgreSQL 17 Redis 7
(primary) (sessions / cache / rate limit)
│
▼
Socket.IO / background jobs / S3
#[login] #[has_perm("user:create")] #[has_role("admin")] #[public]Four isolation tiers
| Mode | Suited for | Mechanism |
|---|---|---|
shared_row | Most SaaS | SQL rewrite injects tenant_id filter |
separate_table | Mid isolation | Physical sharding (user_001 / user_002) |
separate_schema | Strong isolation | PostgreSQL schema-level separation |
separate_database | Full isolation | Each tenant gets its own physical database |
SQL rewrite engine — tenant context injected transparently, business code untouched
CDC pipeline — change data capture across tenants
tokio-cron-scheduler/docs, with Swagger UIsummerrs-admin/
├── crates/
│ ├── app/ # binary entry, assembles all plugins
│ ├── summer-admin-macros/ # declarative macros (#[login] / #[has_perm] etc.)
│ ├── summer-auth/ # JWT auth + path policy
│ ├── summer-common/ # shared types & utilities
│ ├── summer-domain/ # domain models (entities / VOs)
│ ├── summer-sharding/ # sharding / multi-tenancy middleware
│ ├── summer-mcp/ # MCP server
│ ├── summer-plugins/ # S3 / IP2Region / background jobs etc.
│ └── summer-system/ # system business (RBAC / users / menus / Socket.IO)
│ └── model/
├── config/ # multi-env configs (dev / prod / test)
├── sql/ # database source of truth
│ ├── sys/ # system domain (users / menus / perms / logs)
│ ├── tenant/ # tenant control plane
│ └── biz/ # B/C-side business
├── doc/ # deployment / migration / technical guides
├── docs/ # research, surveys, reference materials
├── locales/ # i18n resources
├── build-tools/ # fmt / clippy / pre-commit scripts
├── docker-compose.yml # one-shot stack: postgres + redis + rustfs + app
└── Dockerfile # multi-stage build
Frontend implementation based on Ant Design Pro:
Project documentation and guides: https://ouywm.github.io/summer-admin-site/
If this project helps you, a Star is appreciated.
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
MCP server integration for DaVinci Resolve Studio
A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codeba