The Node.js SDK allows you to connect to a Couchbase Server cluster from Node.js. The Node.js SDK is a native Node.js module that uses the very fast Couchbase++ library to handle communicating with the cluster over the Couchbase binary protocol.

const queryResult = await cluster.query("SELECT * FROM `travel-sample`.inventory.hotel WHERE city=$1 LIMIT 10", { parameters: ['Paris']});
queryResult.rows.forEach((row)=>{
   console.log(row);
});

Couchbase Node.js SDK 4.1

Getting Started

Dive right in with a quick install and Hello World guide for Node.js SDK. Try out our Travel Sample Application. And take a look at the Scopes and Collections.

Practical Howto Docs

Connect to our services — data (KV); Query; Search; Analytics; Views — and the Sub-Document API.

Reference Guides

The documentation supplements the practical Howto docs with references and concept guides, for those who prefer a broader understanding before diving in and coding.

What’s Hot?

Multi-Document Distributed ACID Transactions from the Node.js SDK.

Leverage the new Couchbase Server Scopes and Collection features to build multi-tenant micro-service application.

About

Those useful nuts-and-bolts guides to compatibility tables; release notes; contribution guide; and the migration guide for moving to the 3.0 API.

Community

For community help, visit the Couchbase forums. The Node.js SDK can be combined with many other projects in the broader JavaScript ecosystem and beyond — in the Couchbase Blog there are examples covering everything from Apache OpenWhisk to Vue.js.

Older SDK Versions

Documentation on older, unsupported versions of the SDK — that have reached end-of-life — can be found in the archive.