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
