A PouchDB adapter plugin that uses @capacitor-community/sqlite as its data store, enabling local-first, offline-capable apps built with Capacitor. Version 1.1.2 is current; it requires @capacitor-community/sqlite ^7.0.0 and ships TypeScript types. Key differentiator: bridges PouchDB's localStorage/CouchDB replication patterns with Capacitor's native SQLite for mobile, without needing WebSQL or IndexedDB. Provides a familiar PouchDB API for Capacitor apps targeting iOS and Android, with full replication support.
npm install pouchdb-adapter-capacitor-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to register the adapter with PouchDB and create a database using the Capacitor SQLite adapter.
Install @capacitor-community/sqlite@^7.0.0 and follow its migration guide.
Set iosDatabaseLocation and androidDatabaseLocation explicitly in PouchDB options.
Use 'pouchdb-browser' in Capacitor apps.
Pass adapter: 'capacitor-sqlite' in PouchDB constructor options.
Call PouchDB.plugin(PouchAdapterCapacitorSqlite) before new PouchDB().
Install pouchdb-browser and import PouchDB from 'pouchdb-browser'.
Call await SQLite.init() before creating the PouchDB instance.