Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
CouchJS is a command-line Node.js program. It is 100% compatible with Apache CouchDB's built-in JavaScript system.
By using CouchJS, you will get 100% CouchDB compatibility (the test suite completely passes) but your JavaScript environment is V8, or Node.js.
CouchJS is available as an npm module.
$ npm install -g couchjs
Install CouchDB. Install this package with npm. Confirm your couchjs
install location.
$ which couchjs # Note, your path will be different from mine.
/home/jhs/node/bin/couchjs
Look at the CouchDB config for the JavaScript query server.
$ curl http://localhost:5984/_config/query_servers/javascript
"/home/jhs/couchdb/bin/couchjs /home/jhs/couchdb/share/couchdb/server/main.js"
Change that to this couchjs
. Leave the second argument the same.
$ curl -X PUT http://localhost:5984/_config/query_servers/javascript \
-H content-type:application/json \
-d "\"`which couchjs` /home/jhs/couchdb/share/couchdb/server/main.js\""
Done!
JavaScript is decoupled from the CouchDB core. To do JavaScript stuff, CouchDB runs a normal Unix subprocess, couchjs
. This subprocess is just a read-eval-print loop on standard i/o. CouchDB passes couchjs
a file name, and that file contains the view server implementation.
This tool duplicates the "REPL" look and feel of couchjs
and supports the exact same view server implementation.
I have no idea. I would not trust it for production use.
If you create a file, /tmp/couchjs.log
then couchjs will output debugging messages there.
Apache 2.0
See the Apache 2.0 license.
FAQs
Drop-in replacement for CouchDB JavaScript view server
The npm package couchjs receives a total of 0 weekly downloads. As such, couchjs popularity was classified as not popular.
We found that couchjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.