That's really neat! Thanks for sharing. It feels like this could cover
a larger number of cases where users don't really need the full JS
syntax for their views

Cheers,
-Nick

On Thu, Jul 22, 2021 at 3:28 PM Diana Thayer <[email protected]> wrote:
>
> Howdy folks,
>
> Inspired by Mango, I've written a plugin for PouchDB that adds a JSON-based
> map/reduce interface called *JsonViews*. This plugin, called
> PouchDB-JsonViews, allows you to build templated JavaScript views using a
> simple document property accessor syntax (ex: 'foo', 'foo.bar'), a small
> number of transforms, and a `splay` option for unrolling arrays.
>
> This interface works against PouchDB and CouchDB alike! Hopefully it will
> save you some headaches debugging unruly views by replacing them with
> descriptive JSON rather than programmatic JavaScript. Under the hood,
> PouchDB-JsonViews compiles JsonViews into JavaScript functions. This
> compilation process is well-tested, with 100% test coverage.
>
> You can read more about it on GitHub:
> https://github.com/garbados/pouchdb-jsonviews
>
> Let me know what you think :)
>
> Best regards,
> Diana

Reply via email to