{"repo":"themaximalist/llm.js","free":true,"listed":false,"github":"https://github.com/themaximalist/llm.js","clone":"git clone https://github.com/themaximalist/llm.js.git","description":"Universal LLM Interface","language":"HTML","stars":146,"topics":["llm","anthropic","groq","ollama","openai","google","large-language-models","xai"],"license":"MIT","category":"ai-agents","readme_excerpt":"LLM.js LLM.js is a zero-dependency library to hundreds of Large Language Models. It works in Node.js and the browser and supports all the important features for production-ready LLM apps. Same interface for hundreds of LLMs ( OpenAI , Google , Anthropic , Groq , Ollama , xAI , DeepSeek ) Chat using message history Stream responses instantly (including with thinking, tools, parsers) Thinking with reasoning models Tools to call custom functions Parsers including JSON , XML , codeBlock Token Usage input and output tokens on every request Model List for dynamic up-to-date list of latest models Cost Usage on every request Options for controlling temperature , max tokens , ... Abort requests mid-response TypeScript with clean code Tests with good coverage Node.js and Browser supported Zero-dependencies MIT license Why use LLM.js? Why not just use the OpenAI compability API and switch out baseUrl? 1. The compability API is not compatible — there are many differences between services 2. The best features aren't on the compability API 3. There's no support for cost tracking or model features LLM.js solves all of these and more, letting you focus on building great AI apps. Install Install LLM.js from NPM: Setting up LLM.js is easy. In Node.js api keys can be detected automatically from the environment. They can also be included as an option {apiKey: \"sk-123\"} . For the browser, keys should be included as an option. For local models like Ollama, no API key is needed, just ensure an inst","default_branch":null,"files":null,"tree":[],"storefront":"/r/themaximalist","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/themaximalist/llm.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}