monocle-ts VS optics-ts

Compare monocle-ts vs optics-ts and see what are their differences.

monocle-ts

Functional optics: a (partial) porting of Scala monocle (by gcanti)

optics-ts

Type-safe, ergonomic, polymorphic optics for TypeScript (by akheron)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
monocle-ts optics-ts
7 3
1,016 664
- -
0.0 8.3
over 1 year ago 7 days ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

monocle-ts

Posts with mentions or reviews of monocle-ts. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-21.

optics-ts

Posts with mentions or reviews of optics-ts. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-12.
  • JavaScript Object Notation (JSON) Pointer
    2 projects | news.ycombinator.com | 12 Apr 2023
  • Jotai, now with Optics
    6 projects | dev.to | 30 Oct 2020
    Fast forward to now and we are learning more about Jotai, a Recoil alternative from Poimandres ( creators of react-three-fiber, etc.). Needless to say, we were very excited when we stumbled upon Jotai Issue #44, a discussion concerning focusable atoms started by Meris Bahtijaragic and the compelling work that resulted, jotai-optics. This code wraps another library we have been very intrigued by as of late, optics-ts which provides a whole new level of typesafe, functional goodness.

What are some alternatives?

When comparing monocle-ts and optics-ts you can also consider the following projects:

zustand - 🐻 Bear necessities for state management in React

spectacles-ts - Practical Optics • Unfancy monocle-ts

immutability-helper - mutate a copy of data without changing the original source

fp-ts-contrib - A community driven utility package for fp-ts

valtio - 💊 Valtio makes proxy-state simple for React and Vanilla

fp-ts - Functional programming in TypeScript

reatom - Reatom - the ultimate state manager

shades - A lodash-inspired lens-like library for Javascript

jotai - 👻 Primitive and flexible state management for React

python-lenses - A python lens library for manipulating deeply nested immutable structures

jotai-optics - Jotai integration library for optics-ts

Immer - Create the next immutable state by mutating the current one