Express VS json-server

Compare Express vs json-server and see what are their differences.

Express

Fast, unopinionated, minimalist web framework for node. (by expressjs)

json-server

Get a full fake REST API with zero coding in less than 30 seconds (seriously) (by typicode)
Our great sponsors
  • Appwrite - The open-source backend cloud platform
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • Revelo Payroll - Free Global Payroll designed for tech teams
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Sonar - Write Clean JavaScript Code. Always.
Express json-server
624 73
61,968 68,586
0.4% -
7.1 7.0
8 days ago 6 days ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Express

Posts with mentions or reviews of Express. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-30.

json-server

Posts with mentions or reviews of json-server. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-14.
  • Full Stack To Do list, a step-by-step tutorial
    7 projects | dev.to | 14 Jul 2023
    Our backend will be little more than a two-way translation layer between the database and the user interface (UI). Later in this post we will identify other responsibilities of a backend but our implementation will be kept simple to demonstrate the fundamental machinery and concepts. It is worth noting the backend comes in two parts, web server and application server. Both json-server and Express are able to facilitate these roles from the same URL. This is very useful for our tutorial because we do not have to configure the server to manage Cross-Origin Resource Sharing (CORS). It is quite typical for production systems to separate these server roles for all sorts of good reasons but for now it would just create an additional complication.
  • Improve Frontend-Backend development harmony with JSON-Server
    2 projects | dev.to | 12 Jun 2023
    JSON-Server creates fake REST API with a minimum amount of configuration, it provides a simple way to create mock RESTful APIs and easily define the required endpoints, allows easy definition of the data schema in a JSON file and can serve as a reference for each figure in the project.
  • Dictionary app
    2 projects | /r/FlutterDev | 9 Jun 2023
    I thought about usingJson Server (hosting the repo with the words on Github to begin with), Googlesheets, or maybe Firestore (i would prefer not to use it ,to avoid extra costs just in case it gets a reasonable amount of users). It isnt a big app so i just want a simple solution for storing the words and fetching them.
  • You can serve static data over HTTP
    4 projects | news.ycombinator.com | 29 May 2023
    There is https://github.com/typicode/json-server that is really useful for that matter
  • which backend technology do you see having the brightest future? (for jobs)
    4 projects | /r/webdev | 9 Apr 2023
    JSON server https://github.com/typicode/json-server
  • What part of Frontend you don't like doing, but have to do it?
    4 projects | /r/Frontend | 7 Mar 2023
  • Playwright - Mock API
    2 projects | dev.to | 25 Jan 2023
    The API server is built using json-server. You can find all the steps to reproduce the feature in this commit.
  • 📚 RTK Query Tutorial (CRUD)
    3 projects | dev.to | 29 Nov 2022
    json-server will serve in http://localhost:8000
  • API-first development maturity framework
    3 projects | dev.to | 6 Sep 2022
    In this approach, you manually create mocks to build the API client. The most traditional version of this approach involves creating mock responses in the form of JSON examples, while recent frameworks allow you to run mock servers based on those JSON examples and some additional custom configuration. This is the most traditional approach to building API clients, but also the most common to this date, and sadly also the most error-prone. As we discussed earlier, JSON Examples tend to be incomplete and often wrong. They’re also a maintenance burden and become deprecated as soon as the API changes. The biggest limitation of this approach is that it doesn’t take advantage of a full API specification, and as the API design changes, there’s a potentially growing drift between JSON examples and the actual API.
  • Do tests without seeing the code!
    3 projects | dev.to | 4 Sep 2022
    The best case scenario you would be using something like MirageJS, MSW, or even JSON Server, but mocking fetch is always an option.

What are some alternatives?

When comparing Express and json-server you can also consider the following projects:

Next.js - The React Framework

SvelteKit - web development, streamlined

Nuxt.js - Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3. [Moved to: https://github.com/nuxt/nuxt]

AdonisJs Application

fastify - Fast and low overhead web framework, for Node.js

Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀

loopback-next - LoopBack makes it easy to build modern API applications that require complex integrations.

Restify - The future of Node.js REST development

Meteor JS - Meteor, the JavaScript App Platform

Koa - Expressive middleware for node.js using ES2017 async functions

oak - A middleware framework for handling HTTP with Deno 🐿️ 🦕

feathers - The API and real-time application framework