Skip to content
SPECIFICTION
Get listed

Bogus vs Chance.js

Bogus

github.com

Chance.js

chancejs.com

Side by side

FigureBogusChance.js
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Web—Yes
WindowsYes—
macOSYes—
LinuxYes—
API—Yes
Self-hostedYes—
Plans published11
Spec score · Test Data Generation Tools8.1 (#4)8.3 (#2)
Founded20152013
LicenseThe repository includes a license file for the project.Chance is open source and released under the MIT License.
PurposeBogus is a fake data generator for C#, F#, and VB.NET, ported from faker.js.Chance generates pseudo-random strings, numbers, and other values for automated tests and other uses that need random data.

Plans

Bogus

  • BogusFree

Bogus pricing →

Chance.js

  • Chance.jsFree

Chance.js pricing →

In their own words

Bogus

Bogus is a fake data generator for C#, F#, and VB.NET, adapted from faker.js. It creates synthetic data for loading databases, user interfaces, and applications during testing. Its documented data generators cover addresses, commerce, companies, databases, dates, finance, names, and internet data; JSON is listed as a supported format. Multiple locales are available, with English used when a locale-specific data set is missing. Developers can seed the randomizer for repeatable output and define object-generation rules with `Faker`, including strict mode, custom instantiation, and completion callbacks. The project also documents a Faker facade and direct use of DataSets. Bogus is distributed as a NuGet package, installed with `Install-Package Bogus`. Minimum requirements are .NET Standard 1.3, .NET Standard 2.0, or .NET Framework 4.0. The package is free, and deployment is self-hosted. Its page offers a Premium license as a way to support the project but gives no price for it.

Visit github.com

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