Description — Using Couchbase Lite with Javascript applications
      Abstract — If you are building mobile or desktop applications using web technologies such as JavaScript/HTML/CSS, there are options for using Couchbase Lite as an embedded database within your app.
      Related Content — Ionic | React Native

      Couchbase Lite for Cordova is a community-driven project without official support from Couchbase.


      To use Couchbase Lite as an embedded database within your Cordova-based app, you need a way to access Couchbase Lite’s iOS and Android native APIs from within your Cordova web application.

      Native Functionality

      Cordova Native Plugins allow web-based apps running in a Cordova webview to access native platform functionality through a Javascript interface.

      Ionic supports both Capacitor and Cordova, with Ionic recommending use of Capacitor.

      To use Couchbase Lite within your Cordova apps, you should implement a Cordova native plugin, which exports the Couchbase Lite Android and iOS APIs to Javascript. It is typical to start with exporting the minimal subset of APIs that your app needs and extend as needed.

      A reference implementation of a Cordova plugin will be available shortly.