Is there any equivalent to json-server that can just run directly in my frontend?

This page summarizes the projects mentioned and recommended in the original post on /r/webdev

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • json-server

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

  • I like using json-server for prototyping my frontend API calls without needing to code a backend with all the CRUD route logic. However it's a bit of a hassle needing a separate nodejs shell process to run it, and makes it hard to use it on things like codesandbox.

  • miragejs

    A client-side server to build, test and share your JavaScript app

  • The packages miragejs and msw provide API interception running directly on the frontend, but they don't seem to automatically generate CRUD routes from a single JSON object like json-server does. Is there any way to get json-server's automatic CRUD route logic running on the frontend like miragejs?

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • msw

    Seamless REST/GraphQL API mocking library for browser and Node.js.

  • The packages miragejs and msw provide API interception running directly on the frontend, but they don't seem to automatically generate CRUD routes from a single JSON object like json-server does. Is there any way to get json-server's automatic CRUD route logic running on the frontend like miragejs?

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts