<script src="https://cdn.jsdelivr.net/npm/pouchdb@9.0.0/dist/pouchdb.min.js"></script>
<script>
  const db = new PouchDB('my_database');
</script>PouchDB can also be directly downloaded:
- pouchdb-9.0.0.min.js (compressed for production)
- pouchdb-9.0.0.js (uncompressed for debugging)
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 pouchdbAfter installing, call require() to use it:
const PouchDB = require('pouchdb');
const 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-browserconst PouchDB = require('pouchdb-browser');
const db = new PouchDB('my_database');See custom builds for more options.
PouchDB is hosted at these CDNs:
bower install --save pouchdbFor 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.