浏览器里的客户端存储

PouchDB

概念上类似于客户端的 Apache CouchDB

var db = new PouchDB('dbname');

db.put({
  _id: '[email protected]',
  name: 'David',
  age: 69
});

db.changes().on('change', function() {
  console.log('Ch-Ch-Changes');
});

db.replicate.to('http://example.com/mydb');

ZangoDB

ZangoDB is a MongoDB-like interface for HTML5 IndexedDB.