Fishery vs RandomUser
Fishery
github.comRandomUser
randomuser.meSide by side
| Figure | Fishery | RandomUser |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | Yes |
| Web | — | Yes |
| API | — | Yes |
| Self-hosted | — | Yes |
| Plans published | 1 | 2 |
| Spec score · Test Data Generation Tools | 7.7 (#11) | 8.3 (#3) |
| Purpose | Fishery is a JavaScript library for setting up objects for tests and other data needs. | The API generates random user data for application testing. |
Plans
In their own words
Fishery
Fishery is a free JavaScript library for preparing objects as test data and for other situations where JavaScript data needs setup. Its factories define defaults, and build() creates objects with supplied parameters layered over those defaults. TypeScript users can obtain typed factory parameters and return objects, while the library also works without TypeScript. Factories may define onCreate behavior for asynchronous work; create() then performs that work and returns a promise. Additional factory capabilities include sequences, transient parameters, associations, and hooks that run after building or creating objects. Developers can extend factories with reusable builder methods by subclassing Factory. The documentation describes using factories alongside other factories to build associated objects. Installation instructions cover npm and Yarn as development dependencies. The repository identifies Fishery as free software under the MIT license and says thoughtbot, inc. maintains and funds it. GitHub Issues is the listed channel for bug reports and change requests.
RandomUser
RandomUser is a free, open-source API that generates synthetic user records for application testing. Results are available as JSON, PrettyJSON, CSV, YAML, or XML, with fields including names, locations, emails, login details, birth and registration information, phone numbers, photos, and nationality. Requests can filter by gender or nationality, set a seed, paginate results, and include or exclude fields. Password generation supports selectable character sets and configurable length, with a default range of 8–64 characters. The API uses its latest version by default, while callers can request a specific version such as 1.4. Documentation demonstrates browser requests with AJAX and jQuery. The service is available through both web and API access, with up to 5,000 generated users per request. A free Photoshop extension has a CC 2017 limitation, and the Sketch extension remains in development.