You may wish to look at the try-cb-xxx examples ( GitHub - couchbaselabs/try-cb-nodejs , try-cb-java etc). They use a separate application to call the SDK, which is called via REST from the actual application.
@ericatcorrio1 out of curiosity, how do you plan to solve the traditional security problem of calling databases directly from the frontend - e.g. having to store or pass credentials through the browser?