optics-ts
jsonpath
optics-ts | jsonpath | |
---|---|---|
3 | 1 | |
680 | 82 | |
- | - | |
8.1 | 10.0 | |
21 days ago | over 5 years ago | |
TypeScript | Go | |
MIT License | BSD 3-clause "New" or "Revised" License |
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.
optics-ts
- JavaScript Object Notation (JSON) Pointer
-
Advanced Large Object Management with jotai
The trick lies within the optic-ts integration.
-
Jotai, now with Optics
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.
jsonpath
-
JavaScript Object Notation (JSON) Pointer
I was wondering how this differs from JSONPath, found some answers on google:
> jsonpointer just defines how to access to a single value inside a json document, whereas jsonpath has more powerful features like union (extract multiple values), filters and deep search (recursively match a path).
> But jsonpath is missing a proper specification, so some behaviors are implementation specific with some parts heavily depending on some javascript constructs (mainly filters).
https://github.com/yalp/jsonpath/issues/1#issuecomment-13708...
What are some alternatives?
monocle-ts - Functional optics: a (partial) porting of Scala monocle
python-lenses - A python lens library for manipulating deeply nested immutable structures
focal - Program user interfaces the FRP way.
jotai-optics - Jotai integration library for optics-ts
jotai-devtools - Redux Devtools integrations for jotai.
dinero.js - Create, calculate, and format money in JavaScript and TypeScript.
partial.lenses - Partial lenses is a comprehensive, high-performance optics library for JavaScript
joeflix - A Netflix clone using React, React Router, Recoil and React Query.