Installation
Multiple ways to add Lemma to your project
/
Installation Methods
Choose the installation method that fits your project:
CDN (Recommended)
The simplest way to get started - just add the script tag:
HTML
<script src="https://lemma.id/static/js/lemma-wallet.js"></script>
Benefits
Automatic updates, CDN caching, no build step required.
NPM Package
For projects using npm/yarn:
Terminal
npm install @lemma/wallet-sdk
# or
yarn add @lemma/wallet-sdk
Then import in your JavaScript:
JavaScript
import { LemmaWallet } from '@lemma/wallet-sdk';
const wallet = new LemmaWallet({
siteId: 'your-site-id',
apiKey: 'your-api-key'
});
Browser Requirements
Lemma requires modern browser features:
| Feature | Requirement | Notes |
|---|---|---|
| Web Crypto API | Required | For Ed25519 signature verification |
| IndexedDB | Required | For secure credential storage |
| WebAuthn | Recommended | For passkey-protected wallet |
Supported browsers: Chrome 67+, Firefox 60+, Safari 14+, Edge 79+