DummyJSON asks for no key and ships no lock file
DummyJSON.com provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend.
At a glance
- What is it?
- DummyJSON is a hosted REST API for placeholder JSON, covering eight resource families, filtering, pagination, nested resources and an artificial delay, plus a separate image generator and a custom response builder. The repository behind it is a small Express service that runs on Node 24, resolves its dependencies at image build time, and has no test script.
- Who is it for?
- DummyJSON is the right tool for a frontend that needs records shaped like real ones today and a different shape next week, since the resource families, the query knobs and the custom response builder cover most of what a mock layer has to do. Three things to check before you point production traffic at it.
- Can I use it commercially?
- Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
- Is it still maintained?
- Yes. The repository last received commits 39 days ago.
- What is it written in?
- Mainly EJS, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- Ovi/DummyJSON2,989 ★ · +59
| Repository | 2026-09-24 | 2026-11-22 |
|---|---|---|
| Ovi/DummyJSON | 2.9k | 3k |
59 Stars in the last 59 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The pitch is that there is nothing to do
The whole product is stated in one line: a free REST API for generating placeholder JSON data, no setup and no auth, just use it. Everything else on the page is a consequence of that.
The reasons list says it plainly. Skip building a backend just to test a user interface. Avoid unreliable or rate-limited public APIs. Get consistent, structured data instantly. No configuration required. Works with any framework. Supports all HTTP methods. And it closes by naming the three jobs it is for: prototyping, testing and learning.
The fetching section then declines to pick a client. Use any method you prefer, the fetch API, Axios, jQuery AJAX, and it all works. Two examples are given, one with the fetch API and one with an HTTP client, both against the products endpoint:
const res = await fetch('https://dummyjson.com/products');
const json = await res.json();
console.log(json);The note under them is one word long, pagination is supported, and the section on features shows exactly how.
Supporting every HTTP method matters more than it sounds for a mock service: a frontend under test needs to issue the create, update and delete calls it will issue against a real backend, and a read-only fixture cannot exercise those paths.
Eight resource families, with counts that read as minimums
The resource list is the inventory of the service, and every entry carries a count with a plus sign, which makes them floors rather than exact totals.
Products at 190 or more, users at 200 or more, carts at 200 or more, posts at 250 or more, comments at 340 or more, quotes at 1400 or more, recipes at 50 or more and to-dos at 250 or more. Adding the stated minimums gives a little under three thousand records across the eight families, with the quote collection alone accounting for nearly half.
The shape of those families is what makes the service useful rather than merely large. Users have carts, carts have products, posts have comments and a user, so a frontend with a detail page and a list page can be wired to real relationships instead of three unrelated arrays.
Five more entries are services rather than collections: an authentication section, the custom HTTP response builder, the placeholder image generator, identicon generation, and a mock HTTP response tool. Four of the five are tools for testing rather than for data, which is the same direction as the reasons list above.
Four query knobs do all the work
The features section is four links, and each one is a capability that most hand-rolled mock layers have to build.
Filtering and search is a search endpoint on a collection with a query parameter, so a product search for a term is one request rather than a client-side filter over a page of results. Pagination is two parameters on the collection endpoint, a limit and a skip, which is the same pair the list of records needs.
Nested resources are the third, and it is the one that saves the most wiring: a request for the posts of user number one returns that user's posts, so a detail view does not need to fetch a user and then guess which posts belong to them.
The fourth is delay responses, a delay parameter that holds the answer back. That is a testing tool rather than a data tool, and it is the feature that makes the service useful for exercising spinners, skeletons and retry logic, which are the states that break when every fixture responds instantly.
Four parameters, all query strings, no configuration file. That is the entire control surface described on the page.
The image generator is a second service with its own font list
The placeholder image generator is described separately from the data API, as a simple Node.js service for generating placeholder images with customizable options, used by making HTTP requests to an image endpoint.
The examples show how much is controllable from the URL. A bare size is the simplest case. The longer example carries a size, two colour values, and three text parameters at once: a text string, a font family and a font size. So the generator is a URL-shaped drawing API rather than a static set of placeholder files.
Fourteen font families are listed by name, from Bitter through Ubuntu, and that list has a counterpart in the build. The manifest depends on a library that draws identicon-style images, and the repository carries a fonts directory. The container image installs the font configuration package, copies that directory into the system font path, and rebuilds the font cache before installing anything else, which is what makes those family names resolve rather than silently fall back.
The identicon generator is a separate URL pattern taking a hash and a size, with an example of a hash followed by 150, and it also has its own entry in the documentation list.
The example environment file is the feature list
The repository carries an example environment file, and it is the most revealing document in the project because it names every external system the service talks to.
There is a MongoDB connection string and a database name, which is what the authentication endpoints run against, and a JSON web token secret, whose example value is a placeholder string that anyone who copies the file unchanged will sign their tokens with. Then a block of optional integrations, each commented out: Google tag and ads text file contents, Amazon object storage credentials and a bucket name, Pushover user key and API token for notifications, Cloudflare API token and zone identifier, and banner content for the site itself.
Two entries are content rather than configuration. One is a stats value, a bare string reading 500 million, which is a claim rendered somewhere in the interface. The other is a sponsors blob written as inline JSON, with a featured entry carrying a name, a logo URL and a tagline, plus a call to action labelled as an invitation to sponsor, pointing at the author's own sponsors page.
So the public service is running with a placeholder secret, a hardcoded request count and a sponsor list in its environment, which tells you how much of the site is configured rather than built.
Two MongoDB clients, one of them many majors behind
The dependency list is where a project of this age shows, and the sharpest item is a pair. The object modelling library is at version 8.4 or newer, while the raw database driver beside it is at 3.3 or newer.
Those two are not alternatives to each other in practice: the modelling library has carried its own driver for several major versions, so a 3.x driver in the list is either vestigial or used directly somewhere. Either way it is the oldest dependency in the file by a wide margin, and the wide gap between 3.x and 8.x is the kind of thing that decides whether a fork still installs cleanly against a current database.
Two other pins are worth naming. The security headers middleware is pinned to one exact version in the 3.x line, several majors behind. The colouring library is at version 4, which is the last of its line.
The development side has the same shape in reverse: the formatter is at 1.18 or newer, which is a much older major than the linter it is configured to sit alongside, since the linter is at 8.57 with the Airbnb base config and the prettier plugins on their current lines. A formatter and a linter that disagree about configuration format is a common way for a lint run to pass for the wrong reason.
Node 24 twice, no lock file, and no test script
Three facts about the build sit next to each other.
The manifest requires Node 24 or newer, and the container image is built from a Node 24 Alpine base pinned to a patch version. Those agree, which is rarer than it sounds for a service whose engine requirement was raised recently.
The image has no lock file. The Dockerfile copies only the package manifest before installing, with dev dependencies omitted and the cache cleaned afterwards, and there is no lock file in the repository to copy. So every image build resolves dependency versions fresh, which means two builds of the same commit can contain different code, and a breaking release in a transitive dependency becomes your build failure rather than a reviewable diff.
The scripts are three: start the entry file, run it under a file watcher with the environment loaded from a dotenv file, and a third that minifies the public JavaScript in production mode and watches for changes. There is no test script. The page does link to a test page on the hosted service, which suggests the tests are exercised against the deployment rather than as part of the build.
Two smaller details in the image: the port is declared with the older two-word environment syntax rather than the JSON form, and the image runs as root with no user directive.
A server-rendered front end around a JSON API
The repository layout explains why the project's language is recorded as a template language rather than as JavaScript. Alongside the entry file and the manifest there is a views directory, a public directory, a source directory, a database directory, a raw directory and a scripts directory.
A views directory next to an Express service means the documentation and landing pages are rendered on the server, and the template engine is a runtime dependency rather than a build step. So the project that exists to hand you JSON over HTTP serves its own pages as HTML from the same process.
The raw and database directories are the other two that carry information. One holds source material for the generated records, the other the persistence used by the authentication endpoints, which is the MongoDB instance named in the environment example.
The licence is MIT in both the readme and the manifest, while the licence attached to the repository is not asserted, so the two statements agree with each other and the repository's own metadata says nothing. Contributors are credited through a link to the repository's contributor graph rather than a list.
Editorial conclusion
DummyJSON is the right tool for a frontend that needs records shaped like real ones today and a different shape next week, since the resource families, the query knobs and the custom response builder cover most of what a mock layer has to do. Three things to check before you point production traffic at it. Nothing authenticates you, which is the feature and also the reason a rate limit exists. The data is generated, so anything you persist from it will not exist next week. And if you fork it, note that the image has no lock file and the dependency list contains one client library many majors behind the other.
Frequently asked questions
how to use dummyjson
Request any of the resource endpoints over HTTPS with any HTTP client; the page shows a fetch example and an Axios example against the products endpoint, and notes that pagination is supported. Filtering, pagination, nested resources and an artificial delay are all query parameters.
what is dummyjson api
It is a free REST API for generating placeholder JSON data, with no setup and no authentication. The resources it serves are products, users, carts, posts, comments, quotes, recipes and to-dos, plus an authentication section, a custom response builder, an image generator, identicons and a mock response tool.
Does DummyJSON need an API key or authentication?
No. The page says no setup and no auth, just use it. The authentication section in the resource list is one of the fake endpoints the service serves so a frontend can exercise a login flow, which is a different thing from authenticating against the API.
How do I paginate, search, nest or delay a DummyJSON request?
Four query parameters do all of it. Pagination takes a limit and a skip, search uses a search endpoint with a query parameter, nested resources are fetched by appending a child collection to a single resource, and a delay parameter holds the response back to exercise loading states.
What is the DummyJSON image generator and how do I call it?
It is described as a simple Node.js service for generating placeholder images with customizable options, called over HTTP. Size, two colour values, text, font family and font size are all query parameters, and fourteen font families are listed.
How do I run DummyJSON myself?
The manifest's start script runs the entry file with node, the development script runs it under a file watcher with the environment loaded from a dotenv file, and the engine requirement is Node 24 or newer. The container image is built from a Node 24 Alpine base and installs the system font tools before installing production dependencies only.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/ovi-dummyjson)Star history chart for your README
[](https://hysenlabs.com/projects/ovi-dummyjson)Was this useful?