
Llamatik - Kotlin Multiplatform library for local AI (LLMs, speech, images) on Android, iOS, JVM & WASM
Hi all,
I’ve been working on Llamatik, an open source Kotlin Multiplatform library that brings local AI models (LLMs, speech, and image generation) to multiple platforms using a shared API.
### 🌍 Supported platforms
- Android
- iOS (arm64 + simulator)
- JVM (desktop/server)
- Web (WASM, experimental)
### 🧠 What it supports
- llama.cpp → local LLM inference
- whisper.cpp → speech-to-text
- stable-diffusion.cpp → image generation
### 🔧 What it does
- Provides a Kotlin-first multiplatform API
- Runs models fully on-device / offline
- Lets you share AI logic across mobile, desktop, and web
### 💡 Why I built it
Most local AI tooling is:
- Python-first
- Hard to integrate into mobile apps
- Not designed for shared codebases
I wanted something that:
- Works in real apps (Android + iOS + Desktop + Web)
- Feels natural for Kotlin developers
- Doesn’t require a backend
### ⚙️ Technical highlights
- Kotlin Multiplatform + C++ interop
- Integration with llama.cpp, whisper.cpp, stable-diffusion.cpp
- CMake + Gradle build pipeline
- Static linking for iOS
- Early WASM support
### 📦 Current status
- Core functionality working across platforms
- API and DX still evolving
- Some rough edges in native builds
### 🙌 Looking for
- Feedback on API design
- Ideas for real-world use cases
### 🔗 Repo
https://github.com/ferranpons/Llamatik
Curious to hear how people would use local AI like this in real apps.