Registry / database / node-red-contrib-couchdb

node-red-contrib-couchdb

JSON →
library0.0.1jsnpmunverified

This package provides Node-RED nodes to access Apache CouchDB for inserting, updating, and querying documents. Version 0.0.1 is the initial release dated 2015-03-04, with no subsequent updates; it is effectively abandoned. It relies on Node-RED and an HTTP library for CouchDB communication, but does not specify external npm dependencies. As a very early release, it lacks modern features like TypeScript support and is not actively maintained.

npm install node-red-contrib-couchdb
INSTALL
IMPORT
SIG · NODE-RED-CONTRIB-C
N
node-red-contrib-couchdb
databasejavascriptv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Node-RED node type 'couchdb'
Install via npm and use in Node-RED flow editor
import or require() in code (nodes are loaded by Node-RED runtime)
This is a Node-RED plugin, not a library. It is used within Node-RED flows, not imported in scripts.

Demonstrates installation and basic usage of the CouchDB nodes in Node-RED flow editor.

// Install Node-RED first: npm install -g node-red // Then install this package: npm install node-red-contrib-couchdb // Start Node-RED: node-red // In the flow editor, add a 'couchdb' node, configure URL and database name. // Connect input to inject node with msg.payload containing document or _id. // Example payload for insert: { "_id": "test", "name": "Test Document" }
Debug
Known issues
gotchaPackage is very old (2015) and incompatible with modern Node-RED versions (>=1.0).
fix
Use an alternative package like node-red-contrib-couchdb-plus or node-red-contrib-couchdb-put.
affects: *
gotchaNo authentication support; can only connect to unauthenticated CouchDB instances.
fix
Use a different node that supports authentication or set up a proxy.
affects: 0.0.1
gotchaNo error handling; failed requests may silently fail or crash the flow.
fix
Wrap in a catch node or use a more robust alternative.
affects: 0.0.1
deprecatedThe repository is archived and no longer maintained.
fix
Switch to actively maintained alternatives.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'node-red-contrib-couchdb'
Package not installed or Node-RED cannot find it.
fix
Ensure you run 'npm install node-red-contrib-couchdb' in your Node-RED user directory (usually ~/.node-red).
TypeError: Cannot read property 'payload' of undefined
Input message does not contain payload property.
fix
Ensure the input node (e.g., inject) sets msg.payload before connecting to CouchDB node.
Failed to connect to CouchDB server
Incorrect URL or CouchDB not running.
fix
Verify the CouchDB URL in the node configuration (e.g., http://localhost:5984) and ensure CouchDB is accessible.
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies
node-redoptionalRequired to load and run the custom nodes
Agent activity
5 hits · last 30 days
node
4
Resources
node-red-contrib-couchdb — npm install node-red-contrib-couchdb · libregistry