This repository hosts the functype family of TypeScript functional programming libraries.
| Package | Description | npm |
|---|---|---|
functype |
Core FP library: Option, Either, Try, List, Set, Map, IO, Match, Cond, and more | functype |
functype-os |
OS utilities (env vars, paths, file ops, platform detection) | functype-os |
functype-log |
IO-native logging with Tag/Layer DI and a one-function sink | functype-log |
functype-kysely |
Kysely queries as typed IO, and transactions that roll back on typed failures | functype-kysely |
functype-hono |
Hono responses from IO, and RPC client calls as IO | functype-hono |
functype-react |
React bindings (in progress) | functype-react |
functype-mcp-server |
MCP server for functype documentation lookup and code validation | functype-mcp-server |
The Astro documentation site lives in site/.
pnpm install
pnpm validate # format + lint + test + build across all packages
pnpm -F functype test # run tests for a single package
pnpm -F functype-react devSee each package's own README and CLAUDE.md for package-specific guidance.
MIT — see LICENSE.