CouchSet

CouchSet documentation

A typed Couchbase model layer with explicit operational primitives.

CouchSet is a Couchbase model layer for TypeScript and Node.js. It keeps key-value and SQL++ capabilities visible while adding model metadata, typed reads, validation, relationships, transactions, Search, Eventing, and operational planning.

Choose the entrypoint deliberately

The package root, couchset, is the compatibility-oriented legacy API. New applications should normally import from couchset/next, which contains the modern singleton API and client-owned primitives described here.

Start here

Capability map

NeedRead
Validation, dates, and transformsValidation and codecs
Typed relationships and document methodsRelationships and hydration
Collections, indexes, transactions, and CASProvisioning and transactions
Plugins, hooks, scopes, bulk, and instrumentationExtensions
Full-text, vector, hybrid, and geoSearch and geospatial
CLI, Eventing, and time seriesOperations, CLI, and Eventing
Exports and concise signaturesAPI reference

CouchSet does not create collections or indexes merely because a model was imported or bound. Provisioning, replacement, cleanup, and Eventing deployment are explicit.

On this page