DEV Community

nabbisen
nabbisen

Posted on • Edited on

I pre-released my project "apimock-rs" (former json-responder) written in Rust

I pre-released my project "json-responder" ☺

GitHub logo apimokka / apimock-rs

HTTP(S) mock server. Drop JSON files into a folder and your API immediately exists.

apimock-rs (API Mock)

npm crates.io License
Rust Documentation Dependency Status Releases Workflow App Docs Workflow

logo

Build a working REST API in seconds — without a backend.
Frontend blocked by an unfinished backend Need stable API responses for UI tests or offline development ?
Drop JSON files into a folder and your API immediately exists.

Mock APIs easily 🎈 — just JSON and go

If you’re building or testing APIs, this tool makes mocking painless. It’s super fast, efficient, and flexible when you need it to be. All you have to do to start up is just use folders and JSON without any config set.

  • ❄️ Zero-config start.
  • 🌬️ Fast to boot, light on memory.
  • 🪄 File-based and rule-based matching. Scripting supported.

apimock-rs handles real project scale

As your project grows, your mock API grows, too. Large mock datasets often cause problems:

  • Slow startup
  • High memory usage
  • Crashes during UI testing
  • Unstable CI runs

When to use ?

  • The backend is not…

It is server written in Rust to generate JSON responses, aiming to help dev to easily get dummy API responses due to several paths.

Designed in mind with: fast speed, low memory consumption, easy usage.

Server startup:

server startup

curl result:

curl result

Top comments (1)

Collapse
 
nabbisen profile image
nabbisen

Renamed to apimock-rs. Now more than returning JSON data.

github.com/nabbisen/apimock-rs