Live API calls using @lotta.supply/js-client
import { LottaClient } from '@lotta.supply/js-client'
const client = new LottaClient({
baseUrl: 'https://demo-api.lotta.supply',
token: 'demo-token'
})
// Select an endpoint to see the code exampleSelect an endpoint to see the response
Full TypeScript support with autocomplete and compile-time validation
Built with Bun for optimal performance and developer experience
Track materials from waste collection to final products
Secure organization isolation with cross-org tracking
Live tracking updates across the supply chain
Fully open source with permissive licensing
# Using Bun (recommended) bun add @lotta.supply/js-client # Using npm npm install @lotta.supply/js-client # Using yarn yarn add @lotta.supply/js-client
import { LottaClient } from '@lotta.supply/js-client'
const client = new LottaClient({
baseUrl: 'https://api.lotta.supply',
token: 'your-jwt-token'
})
// Create a lot
const lot = await client.createLot({
materialTypeId: 'uuid',
weight: 1000,
unit: 'kg'
})