Home PouchDB: A Portable Implementation of CouchDB in JavaScript

PouchDB: A Portable Implementation of CouchDB in JavaScript

PouchDB is a new project from former CouchOne (now called Couchbase) employee Mikeal Rogers. It’s an attempt to create a full JavaScript implementation of the CouchDB storage and views API to enable peer-to-peer replication with “real” CouchDB instances.

The current version supports the HTML5 data store IndexedDB, and Rogers plans to support LevelDB in the future.

Here’s an explanation from the ReadMe as to the purpose of PouchDB:

Unlike the other current couch-like browser APIs built on WebStorage (http://dev.w3.org/html5/webstorage/) PouchDB’s goal is to maintain the same kinds of consistency guarantees Apache CouchDB provides across concurrent connections across the multiple-tabs a user might be using to concurrently access an PouchDB database. This is something that just isn’t possible with the BrowserStorage API previous libraries like BrowserCouch and lawnchair use.


BrowserCouch, created by Atul Varma, is a similar project. The PouchDB ReadMe notes that “After IndexedDatabase is more solidified it’s possible that BrowserCouch and PouchDB might merge to provide a simple fallback option for browsers the do not yet support IndexedDatabase.”

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the gambling and blockchain industries for major developments, new product and brand launches, game releases and other newsworthy events. Editors assign relevant stories to in-house staff writers with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.