PouchDB: The Swiss Army Knife of Databases

Use PouchDB in the browser, as a client for a remote database, or on the server side

Glynn Bird
May 4, 2017 · 4 min read
The PouchDB logo.

Many flavours of PouchDB

PouchDB — the in-browser database

var db = new PouchDB('mydb');
var doc = {
name: 'Glynn',
team: 'blue',
date: '2017-03-24',
verified: true
};
db.put(doc);
db.allDocs();

PouchDB — the server-side database

var PouchDB = require('pouchdb');
var db = new PouchDB('mydb');

PouchDB — the client library for CouchDB/Cloudant

var remotedb= new PouchDB('https://USER:PASS@HOST.cloudant.com/db');
remotedb.put(doc);

PouchDB — that syncing feeling

db.sync(remotedb);

PouchDB — the HTTP server

npm install -g pouchdb-server
pouchdb-server
PouchDB running on the server side.

PouchDB — the app data layer

PouchDB — plug in for extra functionality

PouchDB — where’s the catch?

Further reading

IBM CODAIT

Things we made with data at IBM’s Center for Open Source Data and AI Technologies.

Glynn Bird

Written by

Developer @ IBM. https://glynnbird.com

IBM CODAIT

Things we made with data at IBM’s Center for Open Source Data and AI Technologies.