Docs
JavaScript/TypeScript SDK

JavaScript/TypeScript SDK

JavaScript and TypeScript SDK for the Lumnis AI platform

JavaScript/TypeScript SDK

Coming Soon!

We're actively developing our JavaScript and TypeScript SDK to provide a seamless experience for web developers.

What to Expect

Our upcoming JavaScript/TypeScript SDK will include:

Core Features

  • Full TypeScript Support - Complete type definitions for a great developer experience
  • Async/Promise Based - Modern async patterns for all API calls
  • Browser & Node.js - Works in both browser and server environments
  • React Hooks - Custom hooks for React applications
  • Real-time Streaming - WebSocket support for streaming responses
  • Auto-retry Logic - Built-in exponential backoff and retry mechanisms

Framework Support

  • React - Custom hooks and components
  • Next.js - Server-side and edge runtime support
  • Vue.js - Composables for Vue 3
  • Angular - Services and observables
  • Vanilla JS - Framework-agnostic core

Developer Experience

  • IntelliSense Support - Full IDE autocomplete
  • Comprehensive Documentation - Detailed guides and examples
  • Tree-shakeable - Import only what you need
  • Small Bundle Size - Optimized for production

Get Notified

Want to be among the first to use our JavaScript SDK? Join our waitlist to get early access and updates.

Use the REST API Today

While we're building the SDK, you can start using our REST API directly:

// Example: Create a response
const response = await fetch('https://api.lumnis.ai/v1/responses', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': 'your-api-key'
  },
  body: JSON.stringify({
    messages: [{ role: 'user', content: 'Hello, Lumnis!' }],
    user_id: 'user-123'
  })
});
 
const data = await response.json();
console.log(data);

Preview

Here's a sneak peek at what the SDK will look like:

import { LumnisClient } from '@lumnis/sdk';
 
// Initialize the client
const lumnis = new LumnisClient({
  apiKey: process.env.LUMNIS_API_KEY
});
 
// Create a response
const response = await lumnis.responses.create({
  messages: [
    { role: 'user', content: 'Explain quantum computing' }
  ],
  userId: 'user-123',
  stream: true
});
 
// Handle streaming updates
for await (const update of response) {
  console.log(update.state, update.message);
}

Questions?

Have specific requirements or questions about the upcoming SDK? We'd love to hear from you!