Official SDKs.
Client libraries for JavaScript/TypeScript and Python. Full type safety, automatic retries, and built-in webhook verification. Maintained by the Lemma team.
Install
npm install @lemma/sdkQuick example
import { LemmaClient } from '@lemma/sdk';
const lemma = new LemmaClient({
apiKey: process.env.LEMMA_API_KEY,
});
const passport = await lemma.verify.passport(userId);
console.log(passport.skills[0].sci); // 78.4Install
pip install lemma-sdkQuick example
from lemma import LemmaClient lemma = LemmaClient(api_key=os.environ["LEMMA_API_KEY"]) passport = lemma.verify.passport(user_id) print(passport.skills[0].sci) # 78.4
Open source on GitHub
github.com/getlemma/lemma-sdk — MIT license
Built for production from day one.
Every SDK ships with the features you'd otherwise have to build yourself.
Full type safety
Every request and response is fully typed. TypeScript generics propagate through the entire call chain — no casting, no any.
Auto-retry with backoff
Transient errors (5xx, rate limits) are retried automatically with exponential backoff. Configure max attempts and timeout per request.
Webhook signature verification
Built-in HMAC-SHA256 verification for incoming webhook payloads. Call sdk.webhooks.verify() and you're protected against spoofed events.
Minimal dependencies
The JS SDK has zero runtime dependencies and works in Node.js, Deno, Bun, and edge runtimes. Tree-shakeable by default.