AndroidPoet

Kotlin Multiplatform SDK and Worker gateway for Cloudflare D1, KV, R2, and realtime apps

10
0
89% credibility
Found May 23, 2026 at 11 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Kotlin
AI Summary

Cloudflare KMP is a Kotlin library that helps mobile app developers connect their Android, iOS, or web apps to Cloudflare's backend services (databases, storage, and file management). Instead of exposing sensitive credentials directly in the app, developers use a lightweight 'Worker gateway' that runs on Cloudflare's servers. The SDK provides simple, type-safe methods for querying databases, storing key-value data, handling file uploads/downloads, and even real-time communication. It's designed to be modular so developers only include the features they need.

How It Works

1
πŸ” Discovering a safer way to connect

A mobile developer learns about Cloudflare KMP as a way to safely connect their app to Cloudflare's powerful backend services without exposing sensitive credentials.

2
πŸ“¦ Adding the SDK to your project

The developer adds the Cloudflare KMP library to their app, choosing only the pieces they needβ€”databases, storage, or all of it.

3
πŸ”‘ Creating a safe connection

With just a Worker URL and a publishable key, the developer sets up a client that keeps all the sensitive stuff safely hidden on the server.

4
Working with your data
πŸ—ƒοΈ
Database operations

Query, add, update, and delete records in your D1 database using a familiar table-based approach.

πŸ“
Key-value storage

Store and retrieve text or JSON data in KV namespaces with simple get and put operations.

πŸ“
File storage

Generate signed URLs for uploading and downloading files from R2 buckets.

5
πŸ”„ Handling responses gracefully

Every operation returns a result object that makes it easy to handle both success and failure cases with clean, readable code.

πŸŽ‰ Your app is connected

Your mobile app now has safe, fast access to Cloudflare's backend services, with all the sensitive credentials staying safely on your server.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 11 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is cloudflare-kmp?

A Kotlin Multiplatform SDK that gives you a type-safe, coroutine-first way to talk to Cloudflare backend services from mobile, desktop, or web apps. Instead of calling Cloudflare APIs directly from client code, you deploy a lightweight Worker gateway that validates a publishable key and routes requests to D1 databases, KV storage, or R2 buckets. The SDK handles D1 tables with Supabase-style queries, KV text and JSON storage, signed R2 upload URLs, and WebSocket-based realtime channels. It runs on Android, iOS, JVM, and WasmJs using Ktor for HTTP transport.

Why is it gaining traction?

The security model is the hook. Apps receive only a Worker URL and a publishable key, keeping your Cloudflare account tokens server-side where they belong. This fills the gap Cloudflare left open compared to Supabase, which provides a clean anon key pattern out of the box. The SDK's type-safe Result monad with map, flatMap, and recover makes error handling feel natural. You can start with just D1 support and add KV, R2, or realtime later without pulling in dependencies you do not need.

Who should use this?

Mobile developers building Kotlin apps who want to use Cloudflare backends without exposing API tokens. Frontend teams interested in Kotlin multiplatform for web targeting WasmJs. Anyone building cross-platform apps that need D1, KV, R2, or Durable Object realtime features. Teams already on Kotlin who want one language across client and Worker.

Verdict

The architecture is solid and the API surface is well-designed, but with only 10 stars and alpha status, this is not production-ready for critical apps. The 0.8999999761581421% credibility score reflects the low visibility and community size. If you are experimenting with Kotlin and Cloudflare backends, it is worth a look. Wait for a stable release and broader adoption before trusting it with production traffic.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.