jsvelox
v1.9.4
Published
Lightweight JS library for AI integration and developer utilities
Downloads
1,270
Maintainers
Readme
jsvelox 🦤
Codename: Dodo — v1.9.3
Lightweight JavaScript library for AI integration. Connect Claude, OpenAI and Gemini with just a few lines of code.
Install
npm install jsveloxUsage
import { VeloxAI } from 'jsvelox'
const ai = new VeloxAI({
provider: 'gemini', // 'claude', 'openai' or 'gemini'
apiKey: 'your-api-key',
memoryLimit: 10, // optional
timeout: 15000 // optional, ms
})
const reply = await ai.send('Hello!')
console.log(reply)
// Get memory
console.log(ai.getMemory())
// Clear memory
ai.clearMemory()Providers
claude— Anthropic Claudeopenai— OpenAI GPTgemini— Google Gemini
Methods
send(message)— Send a messagesendWithRetry(message, retries)— Send with auto retrygetMemory()— Get conversation historyclearMemory()— Clear conversation history
