chancejs/chancejs
Chance - Random generator helper for JavaScript observed · 2026-08-28
Health v2 · maintenance only
42/100
- Activity 22
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4822
- days_rel: n/a
- days_push: 472
- n_releases_24m: 0
Adoption not part of the score
6540 stars · 462 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Chance is a minimalist JavaScript library for generating random strings, numbers, names, addresses, dates, and other data, built on a seedable Mersenne Twister for reproducibility. It is primarily used to reduce monotony when writing automated tests or generating mock data.
Use cases
- generate fake user data for tests
- seed random data generator for reproducible tests
- generate random names and addresses in javascript
- mock api response data
- generate random strings and numbers in node
- populate json schema with sample data
When to choose
- you need random test or mock data in JavaScript with optional seeding for repeatability
- you want a lightweight, dependency-free generator covering names, addresses, finance, web, and time data
- you need browser and Node support from a single library
When to avoid
- you need cryptographically secure randomness
- you need locale-specific fake data beyond what Chance provides
- you are not working in JavaScript
Facets
library · maturity maintenance
data-generation sdk developer-tools testing browser cross-platform fake-data random-generator mock-data seeded-random mersenne-twister test-data automation nodejs javascript
2 sources
- readme: https://github.com/chancejs/chancejs · fetched 2026-08-28 · bd8d5f410296
- homepage: http://chancejs.com · fetched 2026-08-29 · 42755ed76138
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| chancejs/chancejs | main | 42 |
For agents
markdown · JSON · MCP: product_card(name="chancejs/chancejs")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem