#138 · Primary category: Inference & Local Deploy

ollama-js

javascript js ollama

Ollama JavaScript library

Project last updated:02/18/26

GitHub Stars

4.4K

Forks

471

Contributors

40

License

MIT

Why we included this project

If your JavaScript or TypeScript app needs to talk to a locally hosted Ollama server, this is the official client to reach for. It wraps the full Ollama REST API into a single npm package, so sending a chat request is a single async call, and streaming responses arrive through an AsyncGenerator for token-by-token output. It runs in Node or directly in the browser, saving you from writing your own fetch plumbing and from keeping up with the API as Ollama evolves. The library also covers the newer cloud-offload path, letting you point the same client at ollama.com for larger models while keeping your local workflow intact. Teams building on top of local models get a dependable, low-friction starting point.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category