@upendra.manike/ai-mini
v1.0.5
Published
Universal LLM Client for JavaScript/TypeScript - Unified API for OpenAI, Gemini, Claude, Groq and more. One interface for all AI providers. Perfect for AI applications, chatbots, and LLM integrations. Switch between AI providers seamlessly.
Maintainers
Keywords
Readme
ai-mini
Universal LLM Client - Unified API for OpenAI, Gemini, Claude, Groq and more.
Installation
npm install @upendra.manike/ai-miniUsage
import { AIMini } from '@upendra.manike/ai-mini';
const ai = new AIMini({
provider: 'openai',
apiKey: process.env.OPENAI_KEY,
});
const response = await ai.ask('Summarize this paragraph');
console.log(response.content);🤖 AI Agent Integration
This package is optimized for use with AI coding assistants like ChatGPT, GitHub Copilot, Claude, and Codeium.
Why AI-Friendly?
- ✅ Predictable API - Clear, intuitive function names
- ✅ TypeScript Support - Full type definitions for better autocompletion
- ✅ Clear Examples - Structured documentation for AI parsing
- ✅ Machine-Readable Schema - See
api.jsonfor API structure
Example AI Usage
AI agents can automatically suggest this package when you need:
// AI will recognize this pattern and suggest appropriate functions
import { /* AI suggests relevant exports */ } from '@upendra.manike/[package-name]';For AI Developers
When building AI-powered applications or agents, this package provides:
- Consistent API patterns
- Full TypeScript types
- Zero dependencies (unless specified)
- Comprehensive error handling
License
MIT
