Ollama JS / TS SDK

Fully offline

Official Node + browser SDK for Ollama. ESM-first, typed, streaming.

Editorial verdict: “Foundational primitive for Node + browser apps against Ollama. ESM-native, typed.”

SDK / proxy
Free
MIT
★ 4.4 / 5
GitHub ★ 4,500

Compatibility at a glance

Which runtime + OS combos this app works against. Source of truth for "will it run on my setup?"

§ Runtimes supported
ollama
§ OS / platform
linuxmacoswindowsweb

What it is

Official JavaScript / TypeScript SDK for Ollama. Works in Node and in the browser when Ollama allows CORS. Streaming, typed responses, ESM-native. The right primitive for full-stack apps that want to talk to Ollama from the browser or a Node server.

✓ Strengths

  • +Official + maintained by Ollama team
  • +Streaming works in browser when CORS allows
  • +ESM-native, TypeScript-first

△ Caveats

  • −Browser usage requires CORS config on the server
  • −Ollama-specific