fp-ts
Keep, but not for new work. 9th of 9 typed errors and functional programming.
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
Overall3.7
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 3.0, likely 2.0 to 4.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.
- effect.website/docs/additional-resources/effect-vs-fp-ts: Effect is effectively fp-ts v3
- github commitsLastYear: Near-zero activity
- npm downloadsSame4WeeksYearAgo: Growth well below the median
- pkgpulse.com/guides/effect-ts-vs-fp-ts-vs-neverthrow-2026: Recommends fp-ts only for existing codebases
GPT-6.2 Sol: 4.4, likely 3.4 to 5.6
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.
- dev.to/effect/a-bright-future-for-effect-455m: Establishes Effect as the direction of development.
- thoughtworks.com/radar/languages-and-frameworks/effect: Reports practical advantages after using both libraries.
- true-myth.dev/api/task/classes/Task: Documents a peer's awaitable typed result API.
- github.com/gcanti/io-ts: Shows a concrete reason to retain fp-ts for compatibility.
- evidence.npm.versionsLastYear, evidence.npm.downloadsLast4Weeks, evidence.npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: No npm releases in a year and slower growth than the catalog baseline.
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 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.
- category scope: Typed-error libraries serve a clear but limited share of TS projects
- pkgpulse.com/guides/effect-ts-vs-fp-ts-vs-neverthrow-2026: Positions fp-ts as the heavy FP option, unlike the lighter neverthrow
GPT-6.2 Sol: 4.5, likely 3.3 to 5.9
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.
- 2025.stateofjs.com/en-US/usage: Measures TypeScript use among survey respondents.
- gcanti.github.io/fp-ts/modules/Either.ts.html: Documents framework-independent typed error composition.
- medium.com/inato/how-we-migrated-our-codebase-from-fp-ts-to-effect-b71acd0c5640: Reports onboarding friction in a production TypeScript team.
Helps a lot6.0
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- dev.to/laurerc/how-we-migrated-our-codebase-from-fp-ts-to-effect-5bbk: Inato reports a steep learning curve and missing docs; the same feature took far less code in Effect
- effect.website/docs/additional-resources/effect-vs-fp-ts: Effect presents itself as an expanded successor to fp-ts v2
- npm hasTypes: Written in TypeScript with full types
GPT-6.2 Sol: 7.0, likely 5.9 to 8.1
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.
- evidence.npm.latestVersion: Stable version 2.16.11.
- gcanti.github.io/fp-ts/modules/TaskEither.ts.html: Documents typed Promise wrapping, recovery, and parallel traversal.
- effect.website/docs/v3/additional-resources/effect-vs-fp-ts: Documents differences in cancellation and retries.
- medium.com/inato/how-we-migrated-our-codebase-from-fp-ts-to-effect-b71acd0c5640: Reports that newcomers struggled with the docs and learning curve.
- reddit.com/r/functionalprogramming/comments/1p61zrq/ai_driven_functional_programming_with_typescript: One experienced user reports inconsistent agent output.
- oofp.js.org/reference/benchmarks: A competing library's Node microbenchmarks compare error pipelines.
Holds up over time2.9
Will it still be a good choice in two years?
Claude Opus 5.5: 2.5, likely 1.5 to 4.0
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.
- github commitsLastYear: 2 commits, 0 releases in the last year
- npm latestPublishedAt: Last publish 2025-08-18
- github.com/gcanti/fp-ts: README announces the merge into Effect and calls Effect the successor
- scorecard Maintained: Maintained check scores 0
GPT-6.2 Sol: 3.2, likely 2.2 to 4.5
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.
- evidence.github.commitsLastYear: Two commits in the past year.
- evidence.npm.latestPublishedAt: Version 2.16.11 published in August 2025.
- dev.to/effect/a-bright-future-for-effect-455m: Announces the move to Effect and links to the maintainer's sponsorship.
- github.com/gcanti/fp-ts/blob/master/CHANGELOG.md: Recent v2 patches contain small fixes and additions.
- github.com/gcanti/fp-ts/issues/1966: Open report about a documented import failing in Node ESM.
Used widely5.9
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- npm downloadsLast4Weeks: 22.5M now vs 13.3M a year ago (ratio 1.69, below the 4.1 median)
- dependents repos: 48,975 repos and 2,289 packages, the highest among peers
- peers Effect downloads: Effect at 277.6M and growing fast
- bluesky posts: Only 3 posts, little current attention
GPT-6.2 Sol: 5.8, likely 4.7 to 7.0
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.
- evidence.dependents: 48,975 indexed repositories and 2,289 indexed packages.
- evidence.npm.downloadsLast4Weeks, evidence.npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: 1.69× year-over-year growth versus the 4.1× catalog median.
- peers, evidence.bluesky.posts: Effect and neverthrow grew faster and had more Bluesky links.
- evidence.github.stars: 11,557 stars reflect long-running interest.
- github.com/gcanti/io-ts: io-ts declares fp-ts as a peer dependency.
Vouched for4.8
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 3.0 to 5.5
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.
- pkgpulse.com/guides/effect-ts-vs-fp-ts-vs-neverthrow-2026: Calls fp-ts maintenance mode; recommends Effect for new projects
- dev.to/laurerc/how-we-migrated-our-codebase-from-fp-ts-to-effect-5bbk: Production user with 500k lines of code migrated away
- dev.to/royce_fabbd83cb268312e928/effect-ts-vs-fp-ts-vs-neverthrow-ts-errors-2026-3li0: 2026 comparison favours Effect or neverthrow for new work
GPT-6.2 Sol: 5.5, likely 4.2 to 6.8
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.
- medium.com/inato/how-we-migrated-our-codebase-from-fp-ts-to-effect-b71acd0c5640: Describes years of use and migration across a large TypeScript codebase.
- thoughtworks.com/radar/languages-and-frameworks/effect: A former fp-ts team reports easier composition and testing with Effect.
- reddit.com/r/node/comments/1tyk5f7/ddd_and_fp_fpts: A 2026 user reports continued production use.
Safe6.7
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.0 to 7.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.
- npm dependencies: 0 runtime dependencies
- advisories total: No known advisories
- scorecard score: 3.9; Branch-Protection, Security-Policy and Maintained all score 0
GPT-6.2 Sol: 6.8, likely 5.5 to 8.0
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.
- evidence.npm.dependencies, evidence.npm.license, evidence.advisories: Zero runtime dependencies, MIT licence, and zero OSV advisories.
- evidence.scorecard: 3.9 overall, including zeroes for branch protection and token permissions.
- github.com/gcanti/fp-ts/security: GitHub shows no published security policy or advisories.
- github.com/gcanti/fp-ts/blob/master/scripts/release.ts: The release script publishes the built package to npm.
- security.snyk.io/package/npm/fp-ts: Lists one maintainer and no direct vulnerabilities.
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
- npm downloads, 4 weeks
- 22M +69% in a year
- GitHub stars
- 12k
- Commits, 12 months
- 2
- npm version
- 2.16.11 Aug 2025
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.9 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (gcanti/fp-ts), npm (fp-ts), OSV and the OpenSSF Scorecard.