MockServer is a highly sophisticated, multi-protocol HTTP(S) mock server and proxy for testing, written in Java with Netty. It supports HTTP/1.1, HTTP/2, HTTP/3 (QUIC), gRPC, WebSockets, DNS, TCP, and binary protocols on a single port. The core engine provides expectation-based request matching, response generation, forwarding, proxying, recording, verification, and chaos engineering (latency, connection drops, error injection). It also includes built-in LLM mocking (OpenAI, Anthropic, Gemini, etc.), OIDC/OAuth2/SAML identity providers, SCIM provisioning, WASM custom rules, and drift detection. The repository is a monorepo containing the Java server, multi-language client libraries (Java, Node, Python, Ruby, Go, .NET, Rust, PHP), a React dashboard UI, IDE plugins (JetBrains, VS Code), Helm charts, Docker images, and extensive CI/CD pipelines via Buildkite. The architecture is modular with clear separation of concerns: core model/matcher/serialization in `mockserver-core`, Netty transport in `mockserver-netty`, language-specific clients in `mockserver-client-*`, and a React UI in `mockserver-ui`. The codebase demonstrates strong engineering practices including DTO patterns with Jackson serializers, a matcher hierarchy with compiled-once validators, bounded caches, constant-time equality checks, and extensive test coverage with integration tests across multiple environments.
This is the official Elasticsearch Ruby client library, consisting of two main gems: `elastic-transport` (low-level HTTP transport) and `elasticsearch-api` (generated REST API methods). The codebase provides a comprehensive mapping of Elasticsearch operations (indices, cluster, security, ML, inference, etc.) through auto-generated action modules that follow a consistent pattern: argument validation, path building via `Utils.listify`, HTTP method selection, and returning a wrapper response object. The client supports advanced features like scroll helpers, ES|QL query parsing, bulk operations with callbacks, and OpenTelemetry integration. The library is not a standalone application but is designed for integration into Ruby projects that need to communicate with Elasticsearch clusters. The code is well-structured with clean abstractions, yet heavily auto-generated from the Elasticsearch specification, which introduces a risk of drift if not regenerated promptly. It is actively maintained with CI/CD pipelines, unit and integration tests, and regular releases.