This is awesome!
It’s not really all that fancy, but I’d started putting together a node.js client side implementation of the REST bootstrapping to get a configuration, needed to then do hashing and work with server changes. I’d imagine it’s nowhere near useful yet, but it gave me a chance to start working with node.js and Couchbase.
There is some existing code out there which implements memcached binary protocol, so I was hoping to leverage that underneath.
I think the steps you lay out are good, but I wouldn’t get too hung up on the vbuckets if you don’t understand them at first. It’s important material, but it can be a bit involved. I’d instead read it over then look at the REST/JSON parts.
SASL authentication is very straightforward. It’s really just specific operations that need to be done before allowing other operations to flow through a given connection. It is through SASL auth that a bucket is identified on the server. No SASL auth means use the default bucket.
You can see my REST bootstrap here: