Elestia Open Source Ratings
6.5

Fishery

Reasonable, with limits. 6th of 10 mocking and test data.

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.

GitHubnpm

Scores

Overall6.5

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.0, likely 5.0 to 7.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, likely 5.8 to 8.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 many4.3

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.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, likely 3.5 to 5.8

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 lot7.4

How well does it do the job for those who need it?

Claude Opus 5.5: 7.0, likely 6.0 to 8.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, likely 6.7 to 8.9

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 time5.2

Will it still be a good choice in two years?

Claude Opus 5.5: 5.0, likely 3.0 to 6.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.

  • github commitsLastYear: 5 commits and 1 release in the last year
  • github.com/thoughtbot/fishery/releases: Small, irregular releases; the last was 2.4.0 with a Buffer merge fix
  • scorecard Maintained: The Maintained check scores 0

GPT-6.2 Sol: 5.3, likely 3.9 to 6.7

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 widely3.8

How many use it, and is that growing?

Claude Opus 5.5: 4.0, likely 3.0 to 5.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.

  • npm downloadsLast4Weeks: 6.17M now against 2.06M a year ago, a ratio of about 3.0
  • medianDownloadsRatio: The median is 4.1, so its share is shrinking
  • dependents repos: 230, far below Faker's 17,617
  • bluesky posts: 0 posts and 0 HN stories

GPT-6.2 Sol: 3.5, likely 2.2 to 5.2

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.

  • npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: Installs rose from 2.06 million to 6.17 million, below the baseline growth rate.
  • dependents, peers: 230 observed repositories and 45 observed packages depend on Fishery.
  • github.stars, bluesky.posts, hackerNews.stories: 1,035 stars and zero matched Bluesky posts or Hacker News stories.
Vouched for5.3

Who stands behind it being good?

Claude Opus 5.5: 4.0, likely 3.0 to 5.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, likely 5.1 to 7.6

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.

Safe7.6

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.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.

  • advisories total: 0 advisories
  • npm dependencies: 1 dependency
  • scorecard score: 4.8; Branch-Protection, Pinned-Dependencies and SAST all score 0

GPT-6.2 Sol: 7.1, likely 5.8 to 8.4

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

npm downloads, 4 weeks
6.2M ×3.0 in a year
GitHub stars
1k
Commits, 12 months
5
npm version
2.4.0 Dec 2025
Versions, 12 months
1
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
4.8 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (thoughtbot/fishery), npm (fishery), OSV and the OpenSSF Scorecard.

Mocking and test data

  1. 8.5Mock Service Worker
  2. 8.1Faker
  3. 7.1Nock
  4. 6.9Mockttp
  5. 6.9Sinon.JS
  6. 6.5Fishery
  7. 5.7fetch-mock
  8. 5.6JSON Server
  9. 5.4testdouble.js
  10. 4.1Mirage JS
Compare all 10 on six scores