JavaScript

    +

    If you are building mobile or desktop applications using web technologies such as JavaScript/HTML/CSS, here are some options for using Couchbase Lite as an embedded database within your app.

    Cordova/PhoneGap

    You can build your own Cordova plugin on top of Couchbase Lite’s native API for iOS and Android.

    We have a couple of tutorials that describe how you can build your own plugin for Android and iOS respectively.

    You can use the samples in the tutorials as a starting point and expand it to suit your application requirements. As described in the tutorials, it is recommended that your plugin implements a subset of native APIs that is relevant to your application.

    Ionic

    You can build your own Cordova plugin on top of Couchbase Lite’s native API for iOS and Android.

    The Cordova plugin is independent of the application’s UI layer and can be used to access native functionality from within your Ionic apps.

    We have a couple of tutorials that describe how you can build your own plugin for Android and iOS respectively.

    You can use the samples in the tutorials as a starting point and expand it to suit your application requirements. As described in the tutorials, it is recommended that your plugin implement a subset of native APIs that is relevant to your application.

    React Native

    React Native Modules make it easy to access native platform functionality from within your JavaScript based React Native apps. You can leverage this to build your own React Native plugin on top of Couchbase Lite’s native API for iOS and Android. We have a couple of tutorials that describe how you can build your plugin for Android and iOS respectively. You can use the samples as a starting point and expand it to suit your application requirements. As described in the tutorials, it is recommended that your plugin implement a subset of native APIs that is relevant to your application.

    Electron

    You can develop your own Electron.js wrapper on top of Couchbase Lite’s C#.NET API.