<script src="//"></script>
  var db = new PouchDB('my_database');

PouchDB can also be directly downloaded:

If you are using PouchDB in Internet Explorer a Promise and Fetch polyfill will be needed.

PouchDB can be installed through npm:

npm install --save pouchdb

After installing, call require() to use it:

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

PouchDB can be used either in Node or in the browser. A bundler such as Browserify, Webpack, or Rollup is needed for browser usage.

Browser only

If you're only using PouchDB in the browser, you can use pouchdb-browser for faster install times:

npm install --save pouchdb-browser
var PouchDB = require('pouchdb-browser');
var db = new PouchDB('my_database');

See custom builds for more options.

PouchDB is hosted at these CDNs:

bower install --save pouchdb

For past releases and changelog, check out the Github releases page.

For third-party plugins, see the plugins page.

For custom builds and first-party plugins, see the custom builds page.