skip to content

Embed

Run Sofuu inside a mobile app.

libsofuu is the embeddable version of the runtime. iOS and Android apps can use it for local memory and embeddings without a daemon or a localhost bridge.

Small enough to link.

The C ABI is the boundary. Swift and Kotlin wrappers sit on top.

C ABI

Link libsofuu into your app.

Swift and Kotlin

Use the wrappers on iOS, macOS, and Android.

On-device memory

Open a brain and keep it in the app's data directory.

Swift

Remember something on iOS.

Open a brain and save a preference. The calls stay in the app process.

App.swiftswift

import Sofuu let sofuu = try Sofuu()let brain = try Brain.openDefault(sofuu: sofuu)try brain.remember("user prefers dark mode")let matches = try brain.recall("theme", k: 1)

FAQ

Common questions.

The SDK and what runs on the device.

Is there a daemon?

No. The runtime runs in the app process.

Does it work offline?

Local memory and embeddings do. Model calls need a local model or a provider.

Are the packages ready?

The C ABI and Swift sources exist. Check the current release before you integrate.

Embed it

Keep it on the device.

Link the runtime and open a brain inside your app.

$ curl -fsSL https://sofuu.xyz/install | sh