[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-70695":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},70695,"fp-ts","gcanti\u002Ffp-ts","gcanti","Functional programming in TypeScript","https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002F",null,"TypeScript",11519,513,96,156,0,4,5,11,12,43.13,"MIT License",false,"master",true,[27,28,29],"algebraic-data-types","functional-programming","typescript","2026-06-12 02:02:42","\u003Ch3 align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002F\">\n    \u003Cimg src=\".\u002Fdocs\u002Ffp-ts-logo.png\">\n  \u003C\u002Fa>\n\u003C\u002Fh3>\n\n\u003Cp align=\"center\">\nFunctional programming in TypeScript\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fgcanti\u002Ffp-ts\u002Factions\">\n    \u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fgcanti\u002Ffp-ts\u002Factions\u002Fworkflows\u002Fmain.yml\u002Fbadge.svg?branch=master\" alt=\"build status\" height=\"20\">\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Ffp-ts\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002Ffp-ts.svg\" alt=\"npm downloads\" height=\"20\">\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n**📢 Important Announcement: fp-ts is Joining the Effect-TS Ecosystem!**\n\nWe are excited to announce that the `fp-ts` project is officially merging with the Effect-TS ecosystem. This is a significant step forward in the functional programming landscape, bringing together two powerful libraries under one roof. Giulio Canti, the author of `fp-ts`, is being welcomed into the Effect organization, promising an exciting future with enhanced capabilities and support.\n\n**What This Means for New Users:**\n\nEffect-TS can be regarded as the successor to `fp-ts v2` and embodies what would be considered `fp-ts v3`. This merger marks a significant evolution in the library's capabilities, integrating more features and functionalities tailored towards robust, type-safe, and scalable functional programming.\n\nFor more details on this merger and what it entails, please refer to the official [announcement here](https:\u002F\u002Fdev.to\u002Feffect\u002Fa-bright-future-for-effect-455m). Additionally, you can explore more about Effect-TS and its offerings on our [website and documentation](https:\u002F\u002Feffect.website\u002F).\n\n# Introduction\n\n`fp-ts` is a library for _typed functional programming_ in TypeScript.\n\n`fp-ts` aims to allow developers to use _popular patterns and abstractions_ that are available in most functional languages. For this, it includes the most popular data types, type classes and abstractions such as [Option](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Fmodules\u002FOption.ts), [Either](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Fmodules\u002FEither.ts), [IO](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Fmodules\u002FIO.ts), [Task](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Fmodules\u002FTask.ts), [Functor](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Fmodules\u002FFunctor.ts), [Applicative](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Fmodules\u002FApplicative.ts), [Monad](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Fmodules\u002FMonad.ts) to empower users to write pure FP apps and libraries built atop higher order abstractions.\n\nA distinctive feature of `fp-ts` with respect to other functional libraries is its implementation of [Higher Kinded Types](\u003Chttps:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FKind_(type_theory)>), which TypeScript doesn't support natively.\n\n**Inspired by**\n\n- [Haskell](https:\u002F\u002Fwww.haskell.org)\n- [PureScript](https:\u002F\u002Fwww.purescript.org)\n- [Scala](https:\u002F\u002Fwww.scala-lang.org)\n\n# Sponsors\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd align=\"center\">\n      \u003Ca href=\"https:\u002F\u002Funsplash.com\u002F\">\n        \u003Cimg src=\"https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9951955?s=200&v=4\" width=\"200px;\" alt=\"Unsplash\" \u002F>\n      \u003C\u002Fa>\n      \u003Cbr \u002F>\n      \u003Cb>Unsplash\u003C\u002Fb>\n      \u003Cbr \u002F>\n      \u003Ca href=\"https:\u002F\u002Funsplash.com\u002F\">https:\u002F\u002Funsplash.com\u002F\u003C\u002Fa>\n      \u003Cbr \u002F>\n      \u003Cp width=\"200px\">\n        The internet’s source for visuals.\u003Cbr\u002F>\n        Powered by creators everywhere.\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n# Installation\n\nTo install the stable version:\n\n```\nnpm install fp-ts\n```\n\nMake sure to always have a single version of `fp-ts` installed in your project. Multiple versions are known to cause `tsc` to hang during compilation. You can check the versions currently installed using `npm ls fp-ts` (make sure there's a single version and all the others are marked as `deduped`).\n\n## TypeScript compatibility\n\n**Strictness** – This library is conceived, tested and is supposed to be consumed by TypeScript with the `strict` flag turned on.\n\n| `fp-ts` version | required `typescript` version |\n| --------------- | ----------------------------- |\n| 2.0.x+          | 3.5+                          |\n| 1.15.x+         | 3.1+                          |\n| \u003C= 1.14.4       | 2.8+ (\\*)                     |\n\n(\\*) If you are running `\u003C typescript@3.0.1` you have to polyfill the `unknown` type. You can use [unknown-ts](https:\u002F\u002Fgithub.com\u002Fgcanti\u002Funknown-ts) as a polyfill.\n\n# Documentation\n\n**Disclaimer**. Teaching functional programming is out of scope of this project, so the documentation assumes you already know what FP is.\n\n- [Docs](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts)\n- [Learning Resources](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Flearning-resources\u002F)\n- [Ecosystem](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Fecosystem\u002F)\n- API Reference\n  - [version 2.x (current)](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Fmodules\u002F)\n  - [version 1.x](https:\u002F\u002Fgithub.com\u002Fgcanti\u002Ffp-ts\u002Ftree\u002F1.x\u002Fdocs\u002Fmodules\u002F)\n\n# Help\n\nIf you need help with `fp-ts` check out:\n\n- this [Discord server](https:\u002F\u002Fdiscord.gg\u002FHVWmBBXM8A)\n- the `#fp-ts` channel on [FP slack](https:\u002F\u002Ffpslack.com\u002F).\n\n# Development\n\n- [Code conventions](https:\u002F\u002Fgcanti.github.io\u002Ffp-ts\u002Fguides\u002Fcode-conventions)\n\n# License\n\nThe MIT License (MIT)\n","`fp-ts` 是一个用于 TypeScript 中的函数式编程库。它提供了诸如 Option、Either、IO、Task 等常用数据类型以及 Functor、Applicative 和 Monad 等抽象，使开发者能够使用在大多数函数式语言中流行的模式和抽象来编写纯函数式应用程序和库。特别地，`fp-ts` 通过实现 TypeScript 原生不支持的高阶类型（Higher Kinded Types），为用户提供了一种强大的方式来构建类型安全且可扩展的应用程序。该库非常适合需要利用函数式编程特性来增强代码可读性、可维护性和健壮性的场景，特别是在处理复杂的业务逻辑或构建大型应用时。",2,"2026-06-11 03:33:39","high_star"]