AnnotatorJS provides a Store plugin which inturn uses a simple Storage API that (thankfully!) maps quite nicely to Apache CouchDB's.
So...I built a CouchApp to fill in the missing bits.
npm i
to install dependenciesnpm run anno
to build annotatornpm run dev
to build the annotator-pouchdb add-oncouchapp push . http://localhost:5984/annotator
var annotator = $('#content').annotator();
annotator.annotator('addPlugin', 'Store', {
prefix: 'http://localhost:5984/annotator/_design/annotator/_rewrite'
});
AnnotatorJS has plugins for Auth, Permissions, and a few other Storage-facing things. It'd be super to add support for them here.
Patches welcome!
Apache License 2.0