monocle-ts VS optics-ts

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


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


Type-safe, ergonomic, polymorphic optics for TypeScript (by akheron)
Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Klotho - AWS Cloud-aware infrastructure-from-code toolbox [NEW]
  • InfluxDB - Access the most powerful time series database as a service
  • Sonar - Write Clean JavaScript Code. Always.
monocle-ts optics-ts
6 3
982 536
- -
0.0 5.6
6 months ago 1 day 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.


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-05-23.


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 | | 12 Apr 2023
  • Jotai, now with Optics
    6 projects | | 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

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

fp-ts - Functional programming in TypeScript

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

jotai - 👻 Primitive and flexible state management for React

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

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

reatom - Reatom - the ultimate state manager

dinero.js - Create, calculate, and format money in JavaScript and TypeScript.

focal - Program user interfaces the FRP way.