{"library":"pouchdb-http","title":"PouchDB HTTP-only Adapter","description":"PouchDB-http is a minimalist preset package designed to provide only the HTTP adapter for PouchDB. Its primary function is to allow applications to interact with a CouchDB-compatible server (like Apache CouchDB or Cloudant) without including any local storage adapters or map/reduce capabilities by default. This makes it suitable for scenarios where PouchDB is used purely as an interface to a remote database, reducing bundle size by omitting unnecessary features. The package is at version 6.0.2, which is significantly older than the current PouchDB core (8.x). As a result, its release cadence is effectively non-existent, and it lacks the continuous updates and features found in the main PouchDB project. Its key differentiator is its small footprint and specific focus on HTTP communication, but its age means it likely faces compatibility challenges with modern JavaScript environments and newer PouchDB plugins.","language":"javascript","status":"abandoned","last_verified":"Wed Apr 22","install":{"commands":["npm install pouchdb-http"],"cli":null},"imports":["const PouchDB = require('pouchdb-http');","const PouchDB = require('pouchdb-http').plugin(require('pouchdb-mapreduce'));"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const PouchDB = require('pouchdb-http');\n\n// Initialize PouchDB with a remote CouchDB URL\nconst db = new PouchDB('http://127.0.0.1:5984/mydb');\n\n// Example: Put a document\ndb.put({\n  _id: 'mydoc',\n  title: 'Hello PouchDB HTTP',\n  date: new Date().toISOString()\n}).then((response) => {\n  console.log('Document created:', response);\n  return db.get('mydoc');\n}).then((doc) => {\n  console.log('Document retrieved:', doc);\n}).catch((err) => {\n  console.error('Error:', err);\n});","lang":"javascript","description":"Demonstrates initializing PouchDB with an HTTP endpoint and performing basic `put` and `get` operations using CommonJS syntax.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}