Hi Rebecca,
Welcome! :) It's cool to see folks building neat stuff on top of PouchDB. A few quick suggestions:
1. The asynchronous style of your code seems reminiscent of the "promisey pyramid of doom," as I describe here:
http://pouchdb.com/2015/05/18/we-have-a-problem-with-promises.html. In particular, it seems that instead of returning promises from your functions, you are just doing .then().catch() inside of every callback.
2. It would be nice to add a package.json and do `module.exports =
ResFramework` in order to export it and make it easily shareable on npm. `npm init` can get you started!
3. We actually have a plugin API that you can use instead of asking users to manually pass in their PouchDB object. The API is described here: https://pouchdb.com/api.html#plugins
Hope that feedback helps! Looking forward to seeing where you go with this. :)
Cheers,
Nolan