@lumina-ai/sdk
v0.1.0
Published
Official TypeScript SDK for Lumina Web3 localization and onchain error intelligence
Downloads
77
Readme
@lumina-ai/sdk
Official zero-runtime-dependency TypeScript client for Lumina. Supports ESM and CommonJS runtimes, including modern NestJS applications.
npm install @lumina-ai/sdkLocal publishing works with npm publish --access public. Provenance is added
by the GitHub release workflow, where npm can verify the build provider.
import { LuminaClient } from '@lumina-ai/sdk';
const lumina = new LuminaClient({ apiKey: process.env.LUMINA_API_KEY! });
const result = await lumina.translateText({
text: 'Swap {amount} ETH from {{wallet}}',
targetLanguage: 'pt-BR',
});Use the SDK from a trusted server or agent runtime. Never expose a long-lived Lumina API key in a browser bundle.
Publishing
Publish locally with npm publish --access public. Trusted provenance is added
only by Lumina's GitHub release workflow because npm cannot generate automatic
provenance from a local terminal.
