# Fishery: 6.5 out of 10

Reasonable, with limits. 6th of 10 in [Mocking and test data](https://elestia.ai/opensource/mocking/index.md).

Fishery is thoughtbot's small, typed factory library for building test objects, modelled on Ruby's factory_bot. It does that one job well and is a reasonable pick today, but development has slowed to about one release a year and several old typing bugs are still open.

**Best for:** TypeScript teams that want typed, overridable factories for test objects, usually used together with Faker.

## Scores

- **Overall: 6.5** (likely 5.4 to 7.5)
  - Claude Opus 5.5 (6.0): Fishery is a solid, typed factory library and still one of the better choices for building test objects in TypeScript. It is light and safe, but maintenance is slow, type bugs stay open and its share is shrinking. Pair it with Faker for values and MSW for network mocking. It is a reasonable pick with real limits rather than a category default.
  - GPT-6.2 Sol (7.0): Fishery is a strong pick for new TypeScript suites that need reusable factories for related objects. Faker has a broader set of realistic value generators, and Mock Service Worker handles API interception. Fishery's slow fixes and below-baseline adoption growth reduce confidence in it as a long-term choice.
- **Needed by many: 4.3** (likely 3.3 to 5.4)
  - Claude Opus 5.5 (4.0): Typed object factories are a clear niche inside test data and mocking. They are most useful for teams with larger domain models and many tests. Many developers use inline objects or Faker alone instead.
  - GPT-6.2 Sol (4.6): Mocking is a common testing pain point, and Fishery serves the narrower need for reusable object fixtures across frameworks and test runners. Its value grows when tests share models with nested data and many variations. The survey measures mocking broadly, so the share of teams that need dedicated factories is uncertain.
- **Helps a lot: 7.4** (likely 6.4 to 8.5)
  - Claude Opus 5.5 (7.0): Fishery does the factory job well. It has typed params, sequences, traits, associations, transient params and afterBuild/onCreate hooks. Open bugs about DeepPartial merging and return-type inference are real limits for strict TypeScript users. The API is small and stable, so AI agents write correct code for it easily.
  - GPT-6.2 Sol (7.8): Version 2.4.0 gives teams typed overrides, sequences, associations, lists, and hooks behind a small API. The examples give developers and coding agents a clear pattern for routine fixtures. Open reports show that deep overrides can produce objects that violate their declared types. The available evidence gives little basis for comparing speed or coding-agent accuracy.
- **Holds up over time: 5.2** (likely 3.5 to 6.4)
  - Claude Opus 5.5 (5.0): thoughtbot owns and funds the project, and the API has been stable since 2.0. Activity is low: 5 commits and one release (2.4.0, December 2025) in the last year, and nothing pushed since February 2026. Old issues sit without fixes. The library is mostly feature-complete, so low activity hurts less than it would for a bigger tool.
  - GPT-6.2 Sol (5.3): Thoughtbot says it funds Fishery, and the recent releases have stayed on version 2. Five commits and one release in the past year put it well behind Faker and Mock Service Worker for maintenance activity. The latest release closed a years-old fix, and other merge issues remain open. How quickly the project would handle a future compatibility break is uncertain.
- **Used widely: 3.8** (likely 2.6 to 5.1)
  - Claude Opus 5.5 (4.0): Downloads are 6.2M per 4 weeks, up 3.0x on a year ago. That is below the 4.1 median, so Fishery is losing ground. Only 230 dependent repos is low for that download count, which points to transitive or CI installs. Direct use is likely a few thousand to tens of thousands of projects.
  - GPT-6.2 Sol (3.5): Fishery reached 6.17 million npm installs in four weeks, about 3.0 times the prior year's count. That trails the catalog's 4.1 times baseline and suggests it lost relative ground. Ecosyste.ms found 230 dependent repositories, the lowest count among the listed peers, and 45 dependent npm packages. Repeat installs and incomplete repository coverage leave the number of teams choosing it uncertain.
- **Vouched for: 5.3** (likely 4.1 to 6.3)
  - Claude Opus 5.5 (4.0): thoughtbot, a well-known consultancy, backs it, and a few engineering teams have written about using it in production. It does not appear in developer surveys, and I found no independent benchmarks or current comparisons. Most of the evidence comes from the maintainer or from old posts.
  - GPT-6.2 Sol (6.5): Grafana and 1Password's VS Code extension list Fishery as a development dependency. The Danish public library platform documented why it chose Fishery for shared Cypress and Storybook fixtures. The public evidence is strongest for test-suite adoption, and there is little project-specific survey or benchmark data.
- **Safe: 7.6** (likely 6.4 to 8.7)
  - Claude Opus 5.5 (8.0): It has one runtime dependency, no advisories ever, and an MIT licence. It is a dev-only test dependency, which lowers the impact of any problem. The Scorecard is 4.8, with no branch protection, unpinned dependencies and few reviewed changes.
  - GPT-6.2 Sol (7.1): Fishery has a permissive MIT licence, one runtime dependency, a security reporting policy, and zero known OSV advisories. Its 4.8 OpenSSF Scorecard flags weak code review and gives zero for branch protection and dependency pinning. The documented release process uses manual npm publishing by thoughtbot staff with access. The number of active publishers and the strength of release verification remain uncertain.

## Good

- Factories are fully typed, both when you define them and when you call build, so test data matches your models.
- The API is small and clear, with sequences, traits, associations, transient params and async create hooks.
- It is light to install, with a single runtime dependency, no known advisories and an MIT licence.
- It works with any test runner and any runtime, and fits well with Faker for default values.

## Bad

- Maintenance is slow: 5 commits and 1 release in the last year, and bug reports from 2022-2023 are still open.
- Known type gaps remain, such as DeepPartial merges that can produce objects that do not match their type, and loosely inferred return types.
- It covers only object factories, so you still need Faker for values and MSW or Sinon for mocking.
- Few independent comparisons or survey data exist, so evidence of quality comes mainly from thoughtbot and a few team blog posts.

## The numbers

- Downloads, 4 weeks: 6.2M
- In a year: ×3.0
- GitHub stars: 1k
- Commits, 12 months: 5
- Last npm release: Dec 2025
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/thoughtbot/fishery
- npm: https://www.npmjs.com/package/fishery

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
