4 ms·
Recommendation: https://github.com/Nanonid/rison https://github.com/Nanonid/rison Super old but still a very functional library for saving state as JSON in th
by dzhar11 1y ago
Recommendation:
https://github.com/Nanonid/rison https://github.com/Nanonid/rison
Super old but still a very functional library for saving state as JSON in the URL, but without all the usual JSON clutter.
I first saw it used in Elastic's Kibana.
I used it on a fancy internal React dashboard project around 2016, and it worked like a charm.
Sample:
http://example.com/service?query=q:'*',start:10,count:10 http://example.com/service?query=q:'*',start:10,count:10
- callumgare 1y agoThank you!! There’s a tone of projects where I’ve wanted something like that. I’ve previously cobbling together something ad hoc myself but this looks way more thought out and (slightly) more standard than me making up my own thing.
- Natfan 1y agoRQL[0][1] or FIQL[2] might be of interest to you as well, Callum. [0]: https://github.com/persvr/rql https://github.com/persvr/rql [1]: https://github.com/jirutka/rsql-parser https://github.com/jirutka/rsql-parser [2]: https://datatracker.ietf.org/doc/html/draft-nottingham-atompub-fiql-00 https://datatracker.ietf.org/doc/html/draft-nottingham-atomp...