<script src="//cdn.jsdelivr.net/pouchdb/6.3.4/pouchdb.min.js">
</script>
<script>
var db = new PouchDB('my_database');
</script>PouchDB can also be directly downloaded:
- pouchdb-6.3.4.min.js (compressed for production)
- pouchdb-6.3.4.js (uncompressed for debugging)
PouchDB can be installed through npm:
npm install --save pouchdbAfter 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-browservar PouchDB = require('pouchdb-browser');
var db = new PouchDB('my_database');See custom builds for more options.
PouchDB is hosted at these CDNs:
PouchDB can be installed through Bower.
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.