Skip to content
SPECIFICTION
Get listed

Chance.js vs DummyJSON

Chance.js

chancejs.com

DummyJSON

dummyjson.com

Side by side

FigureChance.jsDummyJSON
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WebYesYes
APIYesYes
Plans published11
Spec score · Test Data Generation Tools8.3 (#2)7.8 (#9)
PurposeChance generates pseudo-random strings, numbers, and other values for automated tests and other uses that need random data.DummyJSON provides fake REST API data for frontend development, building, and testing without backend setup.

Plans

Chance.js

  • Chance.jsFree

Chance.js pricing →

DummyJSON

  • DummyJSONFree

DummyJSON pricing →

In their own words

Chance.js

Chance.js is a free, MIT-licensed JavaScript library for generating pseudorandom data used in automated tests and other applications needing sample values. Generators cover basic values, text, people, mobile identifiers, web data, locations, dates, finance, helpers, and miscellaneous categories. Developers can install it with npm for Node.js, load it in a browser, or use the separate chance-cli package from the command line. Browser users may create a global instance or instantiate several instances. Supplying a seed makes output repeatable; instances given the same seed can produce the same sequence. Integer generation accepts inclusive minimum and maximum bounds, and the unique() helper builds arrays without repeated generated items. The documented name generator supports English and Italian nationality options. The site lists chance.js at 95KB uncompressed and chance.min.js at 55KB, or 17KB gzipped. Chance is not intended for cryptographic applications requiring true randomness. The site credits Victor Quinn as its writer.

Visit chancejs.com

DummyJSON

DummyJSON is a free hosted REST API that supplies fake JSON data for frontend development, building, and testing without backend setup. Its listed resources include products, carts, users, posts, comments, quotes, todos, recipes, images, and authentication. Requests can use limit, skip, and select parameters; a limit of zero returns all items. A delay parameter simulates responses from 0 to 5000 milliseconds. Developers can create a hosted mock endpoint with their own JSON response and select GET, POST, PUT, PATCH, or DELETE. These endpoints last 90 days and accept response bodies up to 300 KB. The webhook inspector captures incoming requests for debugging and supports all HTTP methods; endpoints remain live for 24 hours, store up to 100 requests, and accept payloads up to 300 KB. Authorization, cookie, and x-api-key headers are removed before storage. Additional tools include a TOTP generator for base32 secrets and otpauth URIs, plus authentication examples for login, access and refresh tokens, and authenticated resource access. Product changes simulate requests but do not alter stored server data.

Visit dummyjson.com