ReadWriteHack

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."


ReadWriteWeb encourages comments, but please remember: Keep it nice, keep it clean, and avoid promotional comments. We do pre-moderate some comments with links. For more information, please read our full comment policy.
blog comments powered by Disqus
Recommended Story
RWW SPONSORS



RWW PARTNERS