📈 GH Trending Explorer 🎲 Surprise me

← all repos

apache / shenyu

git clone https://github.com/apache/shenyu.git v2.7.1 · 3mo ago 🔥 on GitHub Trending today

Apache ShenYu is a Java native API Gateway for service proxy, protocol conversion and API governance.

—
stars, 24h
—
stars, 7 days
+69
stars, 30 days · #3,513
8.9k
★ total
3.1k
forks · 349 open issues

Star history starts 2026-10-20; the chart appears after the second daily snapshot.

LanguageJava
LicenseApache-2.0
Created2018-07-11 (8y ago)
Last pushtoday
Watchers295
OwnerOrganization

Seen on GitHub Trending

  • 2026-10-20 — #21 monthly in java · +69 ★

GitHub topics

Links

README excerpt
## Overview
Apache ShenYu is a Java-based gateway for service proxying, protocol conversion, and API governance. An extensible plugin chain processes requests, while ShenYu Admin manages and distributes configuration to gateway replicas.
## Core Capabilities
| Area | What ShenYu provides |
| --- | --- |
| Plugin routing and extensions | An ordered plugin chain for HTTP requests, with selector and rule matching where applicable. Spring Boot starters select plugins; custom Java plugins, SPI implementations, and WASM plugin APIs extend the gateway. |
| Protocols and upstreams | HTTP and Spring Cloud services, WebSocket connections, and Apache Dubbo and gRPC backends. Optional TCP and MQTT listeners provide additional ingress; SOFA and Tars gateway plugins are available as external plugin-store starters. |
| Registration and discovery | Client SDKs register service addresses and API metadata with Admin. Registry integrations support discovery; an optional Kubernetes controller reconciles Ingress and Endpoints resources. |
| Security and traffic control | WAF, signing, authentication plugins, load balancing, rate limiting, and fault tolerance through Resilience4j and Sentinel; deprecated Hystrix remains available as an external plugin (see plugin-store-hystrix). |
| Caching and transformation | In-memory or Redis-backed response caching, URL rewriting, redirection, and request/response transformation. |
| Dynamic configuration | Admin persists plugins, selectors, rules, metadata, and authentication data. WebSocket sync is the default; HTTP long polling, ZooKeeper, Nacos, and etcd are available. Apollo remains available during its deprecation release and is planned to move to an external extension (see Apollo migration). Consul sync is available as an external extension (see plugin-store-consul). Gateway replicas apply updates to their local caches. |
| Observability | Metrics and logging plugins, including Kafka and Elasticsearch destinations; email and DingTalk alerts from Admin. |
| AI and MCP | AI proxy, prompt processing, token limits, sensitive-word filtering, AI request/response transformation, and an MCP server plugin with SSE and Streamable HTTP. |
## Architecture
## Get Started
Start with the English documentation, 中文文档, or the official downloads.
### Docker quick start
Use Docker and OpenSSL to start ShenYu Admin, a gateway, and an example HTTP service. Run the commands below in the same shell.
#### Start the services
 [code] 
Admin listens on `http://localhost:9095`; the gateway listens on `http://localhost:9195`. Wait for both services to start, then check their health endpoints:
 [code] 
#### Configure a sample route
The following request configures the `divide` plugin on this gateway to forward `/index.html` to the example service:
 [code] 
This request updates only this gateway instance; it does not write the route to Admin. For centrally managed, durable routes, configure them in Admin with a persistent database instead of the default