0.1.0 • Published 5 months ago
lm-calls v0.1.0
LM Calls
A lightweight TypeScript library for easy integration of Claude AI capabilities into any application.
Features
- 🚀 Simple, one-function API
- 💪 TypeScript support
- 🎨 Support for text, code, and image inputs
- ⚡ Promise-based async/await interface
- 🛡️ Built-in error handling
- 📝 Comprehensive type definitions
Quick Start
npm install lm-calls
import { lmCall } from 'lm-calls';
const response = await lmCall({
apiKey: 'your-anthropic-api-key',
query: {
type: 'text',
content: 'What is the capital of France?'
}
});
console.log(response.content);
Documentation
See our Integration Guide for detailed documentation, including:
- Complete API reference
- Framework integration examples
- Best practices
- Troubleshooting
- Common issues and solutions
Development
# Install dependencies
npm install
# Run development server with playground
npm run dev
# Build for production
npm run build
# Run tests
npm test
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please see our Contributing Guide for details.
0.1.0
5 months ago