Quickly spin up mock HTTP/WebSocket APIs using Chimera, a blazing-fast mock server built with Rust
β‘ What is Chimera?
Chimera is a high-performance, configurable mock server built in Rust with Axum. It allows developers to serve JSON or CSV files as fully functional mock APIs via HTTP or WebSockets.
Ideal for:
- Frontend / mobile API development
- IoT simulations
- Prototyping microservices
- and much more
π Features
- Serve mock HTTP + WebSocket endpoints
- Full CRUD support (GET, POST, PUT, PATCH, DELETE)
- Auto data generation from schema files
- CORS control, form submission, simulated latency
- Ultra-fast startup, built in Rust π¦
π¦ Install Chimera
Install via Cargo:
cargo install chimera-cli
Or download prebuilt binaries from the GitHub Releases page.
π οΈ Start a Mock Server in Seconds
1. Create a data.json
file:
{
"products": [
{ "id": 1, "name": "Potion of Healing" },
{ "id": 2, "name": "Invisibility Cloak" }
]
}
2. Start the HTTP Server
chimera-cli --path data.json http
Now visit http://localhost:8080/products
to see your mock API in action π
βοΈ Extra CLI Options
-
--port 4000
: Custom port -
--latency 100
: Simulate 100ms latency -
--sort products desc id
: Sort records -
--page 5
: Paginate with 5 records per page -
--cors
: Enable CORS viachimera.cors
-
-X
: Enable auto data generation via schema
π Docs & Links
- π Docs: chimera-docs.vercel.app
- π§° GitHub: github.com/AMS003010/Chimera
Let me know what features you'd like to see next: gRPC, GraphQL, MQTT? Feedback is welcome!
Top comments (0)