# thoughtbot/fishery

A library for setting up JavaScript objects as test data

Repository: https://github.com/thoughtbot/fishery
Canonical: https://ross.abutalabs.com/products/fishery
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-02-26T17:34:03+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 48, longevity 100
- inputs: {"age_days": 2791, "days_push": 188, "days_rel": 268, "gap_med": 88, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1027, forks 41 (observed 2026-08-28T04:03:17.241318+00:00)

## What it is
Fishery is a TypeScript-first library for defining factories that build JavaScript objects as test data, inspired by Ruby's factory_bot. It supports typed parameters, sequences, associations, and async object creation.

## Use cases
- generate test data for unit tests
- create typed factory objects in TypeScript tests
- set up mock objects with associations
- seed test fixtures with sequences
- replace factory_bot in JavaScript projects
- build test data with async database persistence

## When to choose
- you need typed, reusable test data factories in a TypeScript project
- you want a factory_bot-style API for JavaScript
- your tests need consistent, overridable object fixtures

## When to avoid
- you need full mock/stub functionality rather than plain data objects
- you want auto-generated fake data like names or emails (use faker instead)
- your project is not JavaScript/TypeScript

## Facets
- artifact type: library
- maturity: active
- function: testing, mocking, data-generation
- domain: testing, developer-tools, web-development
- platform: -
- tags: test-data, factories, factory-bot, typescript, nodejs, javascript

## Member repositories
- thoughtbot/fishery (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:17.241318+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-30T07:07:55.237780+00:00, confidence not recorded.
  - readme: https://github.com/thoughtbot/fishery (fetched 2026-08-28T04:03:17.241318+00:00, sha 90c8051f6353)
  - registry_npm: https://registry.npmjs.org/fishery (fetched 2026-08-29T13:08:01.358960+00:00, sha 5b7c6a9ee203)
- Data as of 2026-08-30T08:39:29.467469+00:00.
