What does HackerNews think of json-server?

Get a full fake REST API with zero coding in less than 30 seconds (seriously)

Language: JavaScript

This looks really cool. Is there a difference between this and json-server [0]?

0: https://github.com/typicode/json-server

I use JsonServer and that has seriously changed how I prototype web apps.

How's this better?

https://github.com/typicode/json-server

For early stage and hackathon-style API mocking, JSON Server is pretty cool. You implement a JSON file of objects that gets inferred as endpoints and served up as an API.

https://github.com/typicode/json-server

For a fancier solution, Swagger / OpenAPI spec is useful. It has a feature called API Auto Mocking which you can serve with SwaggerHub. [The free tier includes this feature by the way.]

https://app.swaggerhub.com/help/integrations/api-auto-mockin...

https://swagger.io/tools/swaggerhub/

You can also use Swagger Codegen to generate server stubs and API clients as code in various languages once you're ready to break out of the mock API.

https://github.com/swagger-api/swagger-codegen

That's the route I'd go personally as this tooling is available for free, is fairly mature, and has a strong community behind it at this point.

There are a few other similar alternatives that I know less about such as WireMock (http://wiremock.org/) and Stoplight (https://stoplight.io/). Postman also has a mock server feature if you happen to already use that.

I've been using json-server for quite a while,

https://github.com/typicode/json-server

Can someone explain what's the difference between Appize and JSON-Server [1]?

As far as I can see Appize doesn't support anything other than GET requests.

1 : https://github.com/typicode/json-server

If you're into node, you might want to check out json-server. A single json file with one sample entity is the basis of a full API. Check it out at https://github.com/typicode/json-server
Hi everyone,

First, thanks for all the interest, it’s quite sudden and unexpected.

Actually, LowDB is an extract from JSON Server, a mocking REST server based on plain JSON (https://github.com/typicode/json-server).

So, basically, it's not meant to be used in critical / intensive applications.

Instead, it's much more a new convenient way to store data in simple use cases.

Regarding file writing, if your database is small or if you don't run a cluster of Node processes, you should be fine.

Regarding benchmark, as someone pointed it out, it’s mainly to show that storing to JSON file is fast enough and to compare operations speed. I agree that it says nothing about other databases and LowDB doesn't try to be the fastest either, just fast enough.\nBy the way, 'npm run benchmark' lets you run it on your machine.

However, keep in mind too that LowDB official release is quite recent so it should be improved over time.

Anyway, thanks for all the feedbacks and I hope you’ll have fun with it :)