Relmock

A hosted json-server alternative

Comparison · last checked November 2026

json-server turns a db.json file into a REST API on your laptop in one command, and it is free and open source. Relmock does the same job on a server: your mock gets a URL that teammates, testers, phones and deployed previews can reach, and it behaves like a database.

When json-server is the right tool

When a hosted mock helps

Side by side

json-serverRelmock
Where it runsYour machine (or a server you set up)Hosted; one HTTPS URL per project
DataA JSON fileA database, per project
RelationsBy naming convention (postId), with _embedDeclared foreign keys; a bad key answers 422
Deleting a parent_dependent to delete childrenDelete rules per relation: block, cascade or clear the link
Field validationNoTypes, required, min/max, length, regex, enums
Generated dataYou write itRealistic data generated from your schema
Errors, latency, offlineNoNetwork modes, added latency, forced status codes
Request logIn your terminalEvery call saved, with replay and cURL
Account and limitsNoneFree account, monthly call limit

Bring your db.json

In a new project, choose Import and drop your db.json. Each top-level key becomes a table, column types are worked out from the values, and userId or user_id columns are linked to the users table when it is in the file. Nested objects with an id become their own linked tables. You get a preview before anything is created (import guide).

The query parameters you already use carry over: field filters, _sort and _order, _page and _limit, _start and _end, and the _ne, _gte, _lte and _like operators in the json-server 0.17 style (full list).

GET /posts?userId=3&_sort=id&_order=desc&_page=1&_limit=10
POST /comments  { "postId": 999, "body": "hi" }
422  postId=999 does not match any record in 'posts'.

Relmock's free plan has no time limit and needs no card: 3 projects, 20 tables per project, 200 records per table and 2,000 mock calls a month (all limits). It is REST only; there is no GraphQL endpoint.

Create a free account Read the getting-started guide

json-server details from its README. Other comparisons: JSONPlaceholder, mockapi.io.