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-on- Download couchapp.py (or something that supports the CouchApp File System Mapping)
couchapp push . http://localhost:5984/annotator
- Add this (or similar) code to an HTML page hosted form that database (or that can write to it ...see CORS)
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