# rosiejs/rosie

factory for building JavaScript objects, mostly useful for setting up test data. Inspired by factory_girl

Repository: https://github.com/rosiejs/rosie
Canonical: https://ross.abutalabs.com/products/rosiejs-rosie
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2024-03-25T21:12:54+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5619, "days_push": 891, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1057, forks 92 (observed 2026-08-28T04:03:24.758065+00:00)

## What it is
Rosie is a JavaScript library for defining factories that build test data objects, inspired by factory_bot (factory_girl). Factories support attributes, sequences, options, callbacks, and inheritance, making it easy to generate consistent test fixtures.

## Use cases
- generate test fixtures for unit tests
- build JavaScript objects with default attributes for testing
- create factory-based test data like factory_bot in JavaScript
- seed databases with realistic test objects
- define reusable object blueprints with sequences and overrides

## When to choose
- you need lightweight test data factories in JavaScript or Node.js
- you want factory_bot-style fixtures without a heavy framework
- your tests need repeatable objects with sequences and defaults

## When to avoid
- you need fake data generation like names or addresses (use faker instead)
- you are testing in another language with native factory libraries
- you need snapshot or mock-server tooling rather than object factories

## Facets
- artifact type: library
- maturity: stable
- function: testing, mocking, data-generation
- domain: testing, developer-tools
- platform: cross-platform
- tags: test-data, factory-pattern, fixtures, object-builder, nodejs, javascript

## Member repositories
- rosiejs/rosie (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.758065+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:57:59.951144+00:00, confidence not recorded.
  - readme: https://github.com/rosiejs/rosie (fetched 2026-08-28T04:03:24.758065+00:00, sha 005caee3d366)
  - registry_npm: https://registry.npmjs.org/rosie (fetched 2026-08-29T12:59:44.520012+00:00, sha fef12aabcf73)
- Data as of 2026-08-30T08:39:29.467469+00:00.
