desert-ant-core
On-device AI SDKs for iOS, macOS, Android, and the web. Small, focused models that run fully offline in Swift, Kotlin, and JavaScript with Core ML, LiteRT, and
What is desert-ant-core?
On-device AI SDKs for iOS, macOS, Android, and the web. Small, focused models that run fully offline in Swift, Kotlin, and JavaScript with Core ML, LiteRT, and WebAssembly.
Overview of desert-ant-core
What it is
Desert Ant Core provides on-device AI SDKs for iOS, macOS, Android, and the web. It includes small, focused models that run fully offline in Swift, Kotlin, and JavaScript using Core ML, LiteRT, and WebAssembly. Text, audio, and images never leave the device when using these SDKs. The project includes models for speech recognition, audio cleanup, PII redaction, emoji suggestion, photo understanding, and more. Model weights are hosted on Hugging Face. Some models are in closed beta and not yet shipped in any SDK.
Key features
- On-device execution with no network required after model download.
- SDKs for Swift, Kotlin, and JavaScript/TypeScript.
- Separate model packages so apps include only needed models.
- Model downloads from Hugging Face with integrity verification.
- Command-line interface for macOS and Linux.
- Support for offline and airgapped environments via pre-downloaded models.
Use cases
- Adding on-device speech recognition with word-level timestamps to a mobile app.
- Redacting personally identifiable information (PII) from text or transcripts before sending them anywhere.
- Enhancing audio quality by denoising, dereverberating, or normalizing loudness on a device.
- Suggesting emoji based on user-typed text without sending keystrokes to a server.
- Detecting filler words like “uh” or “um” in real-time audio streams.
- Programming coding agents to use the command-line tool for model operations.
Getting started
To add the Swift package with Swift Package Manager: swift .package(url: “https://github.com/Desert-Ant-Labs/desert-ant-core.git”, from: “4.1.0”) For Android, add dependencies in build.gradle.kts: kotlin dependencies { implementation(“ai.desertant:emo:4.1.0”) implementation(“ai.desertant:redact:4.1.0”) } For JavaScript/TypeScript browser usage: bash npm i @desert-ant-labs/emo @litertjs/core To install the command-line tool on macOS or Linux: bash curl -fsSL https://raw.githubusercontent.com/Desert-Ant-Labs/desert-ant-cli/main/install.sh | sh
License and pricing
The license is not stated in the metadata (NOASSERTION). The project is listed as open source. Pricing is not specified in the repository or metadata.
Based on the project's public README and repository metadata.