Skip to main content
Moss ships official SDKs for six platforms. They share one conceptual API (create or load an index, then query) and one index format, so you can build in one and query from another.

Python

Async Python SDK. pip install moss

JavaScript

Node.js server-side SDK. npm install @moss-dev/moss

Swift (iOS)

On-device iOS SDK via Swift Package Manager.

Elixir

Elixir SDK on Hex. {:moss, "~> 1.0"}

Browser

In-browser / WebAssembly SDK. npm install @moss-dev/moss-web

C

Native C library (libmoss).

Capabilities

Everything the SDKs can do. Pick a language above for install and quickstart; follow a link below for the details. Links below go to the Python pages; each topic has a JavaScript equivalent under the JavaScript SDK.

Models

  • moss-minilm (default) - fast, lightweight, good for edge and offline
  • moss-mediumlm - higher accuracy with reasonable performance
  • moss-litelm - the on-device default on iOS
  • custom - bring your own embedding vectors

Samples

Runnable end-to-end examples live in the moss repo, with parallel JavaScript and Python projects you can adapt by swapping in your own data.