Features
Chimera is a blazing-fast mock API server written in Rust. It’s built to simulate real-world API behavior with flexible configuration and robust features.
🏀 Multi Protocol Support for Mocking
Section titled “🏀 Multi Protocol Support for Mocking”- HTTP
- Websocket
- Additional protocol support on the way
🧬 Dynamic JSON Mocking
Section titled “🧬 Dynamic JSON Mocking”- Serve mock data from any JSON file.
- Nested routes supported out-of-the-box.
- Dynamic value resolution using JSON path-like traversal.
🚦 Flexible Routing
Section titled “🚦 Flexible Routing”- Route matching with support for long and nested paths (e.g.
/api/v2/data
).
⚙️ HTTP Method Support
Section titled “⚙️ HTTP Method Support”- Full support for
GET
,POST
,PUT
,PATCH
, andDELETE
methods.
🔁 Request Simulation
Section titled “🔁 Request Simulation”- Simulate latency using the
--latency
flag. - Add pagination with
--page
to break large arrays into chunks.
🔄 Sorting
Section titled “🔄 Sorting”- Sort array responses via CLI or config using key-order combinations (e.g.,
--sort price asc
).
🧾 Schema-based Mock Generation
Section titled “🧾 Schema-based Mock Generation”- Generate random mock data using a
.sc
schema file with the--schema
and--random
flags.
🌐 CORS Support
Section titled “🌐 CORS Support”- CORS is fully enabled so Chimera can be used easily in browser-based applications.
📜 Logging
Section titled “📜 Logging”- Verbose, color-coded logs for requests and responses.
- Info, warning, and error messages are clearly distinguished.
📬 Form Handling
Section titled “📬 Form Handling”- Supports URL-encoded and
multipart/form-data
form submissions.
🔧 Custom CLI Flags
Section titled “🔧 Custom CLI Flags”- Customize data file location with
--path
. - Configure port, logging, and sort behavior with CLI options.
🛠️ Extensible
Section titled “🛠️ Extensible”- Easily scriptable.
- Designed with future plugin/webhook/GraphQL support in mind.
Whether you’re prototyping, testing frontends, or replacing real APIs during development, Chimera gives you the tools to create a reliable and highly customizable mock server.