FP-pack
Functional pipelines in TypeScript without monads
Details
- External ID
- 46477439
- Source
- HN
- Company
- —
- Product
- FP-pack
- Website domain
- github.com
- Launched
- Jan. 3, 2026
- Cohort
- —
- Upvotes
- 14
- Upvotes percentile
- 0.5961791831357048
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
Hi HN,I built fp-pack, a small TypeScript functional utility library focused on pipe-first composition.The goal is to keep pipelines simple and readable, while still supporting early exits and side effects — without introducing monads like Option or Either.Most code uses plain pipe/pipeAsync. For the few cases that need early termination, fp-pack provides a SideEffect-based pipeline that short-circuits safely.I also wrote an “AI agent skills” document to help LLMs generate consistent fp-pack-style code.Feedback, criticism, or questions are very welcome.
Enrichment
- Theme
- Claude integrations and coding agents
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- functional pipeline library for typescript
- Manually corrected
- False
Could you build this?
Yes It is a compact TypeScript utility library implementing function composition (`pipe`, `pipeAsync`), which is easily generated and unit-tested with an AI assistant.
Discussion
16 comments analyzed.
Competitors mentioned: Rx/RxJS, Option/Either types, Monads and effect systems, Full monad implementations
Concerns raised: No clear advantage over proper monads for solving this problem, Adding effect handling abstractions to an already side-effectful language, Default `any` return type creates type safety footgun, SideEffect pattern unfamiliar and difficult for average developers to understand, Steep cognitive load compared to simpler pipe-based code
Feature requests: Better language-level syntax for early-exit/control-flow patterns, Stricter type safety by default instead of requiring `pipeSideEffectStrict`, More examples of side effects beyond early termination
Competitors
Other products that read as similar to this one — 63 launches clear the similarity bar, closest 8 shown.
Attention rank: #33 of 64 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 63 days after the earliest competitor.
- mcp-tada · github · 2026-09-10 · 23 upvotes · similarity 0.46
- Think Turing Complete, but you write the circuits in TypeScript (WIP) · hn · 2026-09-02 · 22 upvotes · similarity 0.43
- SharpTS · hn · 2026-01-09 · 6 upvotes · similarity 0.43
- LemmaScript, a verification toolchain for TypeScript via Dafny · hn · 2026-04-21 · 5 upvotes · similarity 0.42
- Algorithms and Data Structures in TypeScript · hn · 2026-03-13 · 65 upvotes · similarity 0.42
- Crust · hn · 2026-03-17 · 95 upvotes · similarity 0.41
- Typical is TypeScript with type-safety at runtime · hn · 2026-01-11 · 8 upvotes · similarity 0.41
- TypeScript 6.0 · ph · 2026-03-24 · 156 upvotes · similarity 0.40
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.