Skip to main content
Lark supports two ways to connect: the Lark SDK (a lightweight, purpose-built client) and the Firebase SDKs (drop-in compatibility with your existing Firebase code). You can also use the REST API from any language or platform.

Client SDKs

PlatformLark SDKFirebase SDK
JavaScript / TypeScriptLark JS SDKFirebase JS SDK
Android (Kotlin / Java)Firebase Android SDK
iOS / Apple (Swift)Firebase iOS SDK
Flutter (Dart)Firebase Flutter SDK
C++Firebase C++ SDK
Unity (C#)Firebase Unity SDK

REST API

The REST API works from any language or platform that can make HTTP requests — Python, Ruby, Go, Java, shell scripts, serverless functions, or anything else. It’s 100% compatible with the Firebase Realtime Database REST API.

How to choose

  • JavaScript / TypeScript app? The Lark SDK is the best choice. It’s smaller (~20KB), supports WebTransport for lower latency, and has built-in support for volatile paths. If you’re migrating an existing Firebase app, the Firebase JS SDK works too — just change the URL.
  • Mobile or game engine? Use the Firebase SDK for your platform. Change the database URL and everything works.
  • Server-side or scripting? Use the REST API. No SDK needed.

What’s next