Skapi is now on iOS, macOS, Android, Python and Java

Hello! Looks like we have a huge present for you before December. Finally, Skapi is available for iOS, macOS, Android, Python and Java!

HTML logoHTML JavaScript logoJavaScript TypeScript logoTypeScript Node.js logoNode.js Python logoPython Swift logoSwift Kotlin logoKotlin Java logoJava

The backend you've been using for your websites now runs your iPhone apps, your Android apps, your Python scripts and your Java servers too. It's the same project, the same database and the same users, so someone who signs up on your website can log in to your app right away. One backend for everything you build. We've wanted to say that for a long time, and we can't wait to see what you make with it.

Pick your platform

You can now build on your Skapi project from a Python script, an iPhone or Mac app, an Android app, or any Java or Kotlin program on the JVM, right alongside skapi-js in the browser and Node.js.

Platform Package Install Documentation
Python 3.9+ skapi on PyPI pip install skapi py.skapi.com
iOS 15+ and macOS 12+ skapi-swift, Swift Package Manager https://github.com/broadwayinc/skapi-swift.git ios.skapi.com
Android 7.0+ (API 24) com.skapi:skapi-android on Maven Central Gradle jvm.skapi.com
Kotlin and Java 8+ com.skapi:skapi-kotlin, com.skapi:skapi-java on Maven Central Gradle jvm.skapi.com

They all work against the same project, the same database and the same users as skapi-js. A user who signs up on your website can log in to your iPhone app, and a record a Python script writes is a record your web page reads. You don't need a migration, a second backend or a sync job.

The same API, in your language's style

Each SDK follows the habits of its own language while keeping the same method names and options as skapi-js:

# Python
from skapi import Skapi

skapi = Skapi("<Project ID>")
skapi.login("user@example.com", "password")
posts = skapi.get_records({"table": {"name": "posts", "access_group": "public"}})
// Swift, on iOS and macOS
import Skapi

let skapi = try Skapi(projectId: "<Project ID>")
try await skapi.login(email: "user@example.com", password: "password")
let posts = try await skapi.getRecords(["table": ["name": "posts", "access_group": "public"]])
// Kotlin, on Android and the JVM
val skapi = Skapi("<Project ID>")
skapi.login("user@example.com", "password")
val posts = skapi.getRecords(jsonOf("table" to jsonOf("name" to "posts", "access_group" to "public")))
// Java, with skapi-java
SkapiJava skapi = new SkapiJava("<Project ID>");
skapi.login("user@example.com", "password").get();
Map<String, Object> posts = skapi.getRecords(
    SkapiJson.obj("table", SkapiJson.obj("name", "posts", "access_group", "public"))
).get();

From Java, every method returns a CompletableFuture and works with plain Java maps and lists. From Kotlin, every method is a suspend function.

What every SDK can do

  • The same sign-in as skapi-js. The password never leaves the device: each SDK proves it knows the password with the same SRP exchange as skapi-js.
  • Two-step login with an authenticator app, file attachments, and every query form of skapi-js.
  • Realtime messages between users, in groups or one to one.
  • Optional encryption of private records, compatible across SDKs: a record encrypted in the browser opens in the Python, Swift or Kotlin SDK, and the other way round.
  • Very few dependencies. The Python SDK uses the standard library only. The Swift SDK uses only Apple's own frameworks. The Kotlin SDK uses coroutines, kotlinx-serialization and OkHttp.

Get started

Pick your platform and follow its guide:

All you need is the Project ID from your project's Settings page on skapi.com. If you don't have a project yet, create one for free.

skapi-js has a new version too, with free two-step login and a lighter package. Read about it in skapi-js 2.4.0.

We can't wait to see what you build. Your website and your apps, one backend. Show us what you make!

← Back to all articles