Official JavaScript/TypeScript SDK for the Brainus AI API - RAG-powered educational content queries with citations.
- TypeScript native - Full type safety with TypeScript definitions
- Works everywhere - Node.js, Bun, Deno, Edge runtimes, browsers
- Modern ESM/CJS - Dual export for maximum compatibility
- Automatic retries - Configurable retry logic with exponential backoff
- Error handling - Custom error classes for different scenarios
- Zero dependencies - Uses native
fetchAPI - Tree-shakeable - Optimized bundle size
npm install @brainus/aiFull documentation, quick start guide, API reference, and examples are available at:
https://developers.brainus.lk/docs/sdks/javascript
MIT License - see LICENSE for details.
Made with ❤️ by the Brainus team