# fp-ts: 3.7 out of 10

Keep, but not for new work. 9th of 9 in [Typed errors and functional programming](https://elestia.ai/opensource/typed-errors/index.md).

fp-ts is the classic library for typed functional programming in TypeScript, with Either, TaskEither, Option and type classes. Its author now works on Effect, which presents itself as the successor to fp-ts ("effectively fp-ts v3"), and fp-ts gets almost no work any more. Keep it in codebases that already use it, but start new projects with Effect, or with neverthrow if all you need is a Result type.

**Best for:** Teams that keep an existing fp-ts codebase running and are not yet ready to migrate to Effect.

## Scores

- **Overall: 3.7** (likely 2.7 to 4.8)
  - Claude Opus 5.5 (3.0): fp-ts still works well and is safe to keep, but it is in maintenance mode, and Effect is officially its successor. For new projects, Effect covers the full FP case and neverthrow or better-result cover the simple Result case, so fp-ts belongs in the 'keep where it runs' tier.
  - GPT-6.2 Sol (4.4): fp-ts still does typed error composition well, especially when a team already uses its types. For new projects, Effect is the stronger choice for full functional workflows, and True Myth offers a simpler API for typed results with async support. Existing compatibility needs can justify choosing fp-ts, while its slow release cadence and below-baseline download growth weigh against adopting it from scratch.
- **Needed by many: 4.3** (likely 3.2 to 5.5)
  - Claude Opus 5.5 (4.0): Typed errors as values is a growing practice, but it is still a choice a minority of TS developers make. fp-ts's full Haskell-style FP approach narrows it further than a simple Result type would.
  - GPT-6.2 Sol (4.5): Typed failures are useful across frontend and backend TypeScript, and fp-ts works without tying code to a framework. Its strongest fit is teams that want functional pipelines and a broad set of composable types. Survey data shows how widely respondents use TypeScript, while the share that needs this style of error handling remains uncertain.
- **Helps a lot: 6.0** (likely 5.0 to 7.1)
  - Claude Opus 5.5 (5.0): The API is broad, sound and well typed, covering error handling and much more. But the documentation is sparse, the learning curve is steep and the code is verbose. Effect does the same job with a runtime, concurrency and better docs. AI agents know it well because it is old and stable.
  - GPT-6.2 Sol (7.0): The stable release has a strong typed API for composing and recovering from failures, including lazy async work and parallel traversal. Effect adds cancellation and retry policies, and Inato found fp-ts harder to learn from its documentation. A developer reported inconsistent AI-generated fp-ts code, and a third-party microbenchmark found slower results than several peers on simple error pipelines. Agent reliability and real application performance remain uncertain.
- **Holds up over time: 2.9** (likely 1.9 to 4.3)
  - Claude Opus 5.5 (2.5): There were 2 commits and no npm versions in the last year, and the last GitHub release was in December 2024. The author joined Effect, and the README sends new users there. It is not archived or deprecated, and its stability means existing code will keep working, but no new development is coming.
  - GPT-6.2 Sol (3.2): The repository had two commits in the past year, and the last npm release was in August 2025. Development moved to Effect, and a native ESM import issue remains open. The v2 API has had years to settle, but current release activity gives little basis for estimating how quickly future compatibility fixes will ship.
- **Used widely: 5.9** (likely 4.9 to 7.0)
  - Claude Opus 5.5 (6.0): About 22.5M downloads in 4 weeks and about 49k dependent repositories make for a large installed base. Much of it comes in transitively through io-ts and older tools. Downloads grew 1.7x in a year, far below the 4.1x median, while Effect grew 12x and neverthrow 4.9x, so fp-ts is losing share among new projects.
  - GPT-6.2 Sol (5.8): Ecosyste.ms found about 49,000 dependent repositories and 2,300 packages, a substantial installed base among these peers. Four-week npm downloads rose from 13.3 million to 22.5 million, or 1.69×, well below the 4.1× catalog median and the growth of Effect and neverthrow. CI installs and peer dependencies such as io-ts blur how many projects actively chose fp-ts. Three Bluesky posts also suggest limited recent attention in this sample.
- **Vouched for: 4.8** (likely 3.6 to 6.2)
  - Claude Opus 5.5 (4.0): It has years of production use and libraries such as io-ts built on it. But current independent write-ups recommend it only for existing codebases and describe teams migrating to Effect. Its own author's project names Effect as the replacement.
  - GPT-6.2 Sol (5.5): Inato used fp-ts extensively, and a more recent user reports success with it in production domain code. Inato later moved new work to Effect, and Thoughtworks found Effect easier to compose and test in its own work. The production experience is credible, but the evidence for current satisfaction is mostly anecdotal.
- **Safe: 6.7** (likely 5.3 to 7.8)
  - Claude Opus 5.5 (6.5): It has no dependencies, no advisories ever, and an MIT licence, so the attack surface is small. The OpenSSF Scorecard is 3.9, with no branch protection, no security policy and unpinned dependencies. If a security issue does appear, the slow maintenance makes a quick fix less certain.
  - GPT-6.2 Sol (6.8): The MIT licence, zero runtime dependencies, and clean public advisory record reduce risk. The OpenSSF Scorecard is 3.9, with gaps in branch protection, workflow token permissions, and security reporting. The repository has an npm publish script and the package has one listed maintainer, leaving uncertainty about release controls and response time if a problem is reported.

## Good

- It has a full, principled toolkit: Either, TaskEither, Option, Reader and pipe, with type-class abstractions.
- It has zero runtime dependencies, an MIT licence and no known security advisories.
- It is stable and mature: v2 has changed little for years, so existing code keeps working.
- It has a huge installed base, with about 49k dependent repositories and libraries such as io-ts built on it.

## Bad

- It is in maintenance mode: 2 commits and no versions published in the last year, and the author moved to Effect.
- The learning curve is steep and the documentation is thin, a point users raise often.
- Effect officially replaces it, so the ecosystem is moving away from it.
- Its import style and HKT encoding are verbose and heavy for frontend bundles, compared with simple Result libraries.

## The numbers

- Downloads, 4 weeks: 22M
- In a year: +69%
- GitHub stars: 12k
- Commits, 12 months: 2
- Last npm release: Aug 2025
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/gcanti/fp-ts
- npm: https://www.npmjs.com/package/fp-ts

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.
