PouchDB adapter that uses Node.js-based SQLite (via node-websql) as its data store. Latest stable version is 7.0.0. This package is part of the PouchDB monorepo and targets Node.js environments only, providing a WebSQL-compatible backend. It is designed for use with PouchDB's plugin system and requires explicit registration. Not recommended for new projects; consider using pouchdb-adapter-leveldb or pouchdb-adapter-node-websql as part of PouchDB’s custom builds for better performance and modern SQLite bindings. The adapter name is 'websql'. Maintained by the PouchDB team.
npm install pouchdb-adapter-node-websqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates PouchDB plugin registration and creating a database using the WebSQL adapter in Node.js.
Switch to pouchdb-adapter-leveldb or use PouchDB's default adapter for Node.
Use {adapter: 'websql'} when creating a PouchDB instance.Call PouchDB.plugin(require('pouchdb-adapter-node-websql')) before creating any database instances.Use pouchdb-adapter-websql for browser environments.
Install pouchdb-adapter-node-websql and register via plugin as shown.
const PouchDB = require('pouchdb-core'); require('pouchdb-adapter-node-websql')(PouchDB);Install 'pouchdb-core' and import/require it, then use PouchDB.plugin(adapter).
npm install pouchdb-adapter-node-websql