CouchDB and Node.js - What module do you recommend?

cllpse picture cllpse · Apr 3, 2011 · Viewed 35.9k times · Source

What modules are you using to connect to your CouchDB server, in your Node.js applications? And why would you recommend whatever module you are using?

Answer

JasonSmith picture JasonSmith · Apr 4, 2011

When getting started, do not use CouchDB libraries in NodeJS!

There several, however they are largely thin layers wrapping the HTTP API. But Node has very strong HTTP support. It's no more trouble to make simple HTTP queries. It's simpler. It's less prone to errors. When CouchDB adds a feature, you won't need to wait for library support. You will learn and understand CouchDB better. It's well worth avoiding a library at first.

I use the built-in querystring module, and also Mikeal Rogers's request library, which is a super thin HTTP convenience library.