Skip to content

MojenticModern LLM Integration for TypeScript

Type-safe, elegant framework for building AI-powered applications

Quick Example

typescript
import { LlmBroker, OllamaGateway, Message, isOk } from 'mojentic';

const gateway = new OllamaGateway();
const broker = new LlmBroker('qwen3:32b', gateway);

const messages = [Message.user('What is TypeScript?')];
const result = await broker.generate(messages);

if (isOk(result)) {
  console.log(result.value);
}

Perfect For

  • 🔧 VS Code Extensions - Build AI-powered editor features
  • 📝 Obsidian Plugins - Create intelligent note-taking tools
  • 🌐 Web Applications - Add AI capabilities to Node.js apps
  • 🤖 CLI Tools - Build intelligent command-line utilities

Released under the MIT License.