Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including annotator-pouchdb with all npm packages installed. Try it out:

var annotatorPouchdb = require("annotator-pouchdb")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

annotator-pouchdb v0.2.0

Annotator Storage with PouchDB (and/or CouchDB)

Annotator PouchDB Storage Plugin

npm version license

PouchDB provides a fabulous offline-first storage option with the power to replicate between Apache CouchDB , IBM Cloudant, and others.

Annotator + PouchDB

Annotations are often personal things that you may want to share later. This plugin allows you to add offline-first storage into your Annotator-based extension, app, or UI.


$ npm install
$ npm run anno # builds annotator.js
$ npm run dev # builds annotator-pouchdb.js

You can then open the included index.html file and annotate it, or run it inside a local web server (try python -m SimpleHTTPServer if you have python handy and are in a hurry).

Use index.html as a reference for your project.


Obviously, there comes a time where you might want these annotations to live in at least one other place. PouchDB supports the Apache CouchDB Replication Protocol and you can use the .sync() method to keep your offline-first copy in sync with a remote Apache CouchDB or IBM Cloudant database.


Apache 2.0


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free