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 libcouchbase library to handle communicating with the cluster over the Couchbase binary protocol.

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

Couchbase Node.js SDK 3.1

Getting Started

Dive right in with a quick install and Hello World. Try out our Travel Sample Application. And take a look at the developer preview of 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?

The Couchbase Node.js SDK 3.0 is a complete rewrite of the API, reducing the number of overloads to present a simplified surface area — and introducing a promises API to reduce the complexity of asynchronous JavaScript in client apps. From SDK 3.0.6, improved TypeScript support.


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


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.