gcanti/monocle-ts
Functional optics: a (partial) porting of Scala monocle observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3490
- days_rel: n/a
- days_push: 1363
- n_releases_24m: 0
Adoption not part of the score
1075 stars · 55 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
monocle-ts is a TypeScript library providing functional optics (Lenses, Prisms, Isos, Traversals, and more), ported from the Scala Monocle library. It enables concise, composable, and type-safe updates to deeply nested immutable data structures.
Use cases
- update nested immutable objects without verbose spread copies
- compose lenses to zoom into deeply nested fields
- modify immutable state in a type-safe functional style
- focus on optional or array elements with prisms and traversals
- reduce boilerplate when transforming deeply nested TypeScript data
When to choose
- you work with deeply nested immutable data in TypeScript
- you already use fp-ts and want a functional optics library
- you want composable, type-safe accessors instead of manual spread chains
When to avoid
- your data structures are shallow and simple spreads suffice
- you prefer mutable state or don't use functional programming patterns
- you need a library with frequent updates - the latest release is from late 2022
Facets
library · maturity maintenance
serialization developer-tools developer-tools web-development cross-platform optics lenses immutable-data functional-programming scala-monocle-port fp-ts nodejs typescript
3 sources
- readme: https://github.com/gcanti/monocle-ts · fetched 2026-08-28 · 9abf3f52c744
- homepage: https://gcanti.github.io/monocle-ts/ · fetched 2026-08-29 · 539aa2daa040
- registry_npm: https://registry.npmjs.org/monocle-ts · fetched 2026-08-29 · 0f3951c6e999
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| gcanti/monocle-ts | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="gcanti/monocle-ts")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem