ollama-js logo

ollama-js

ollama/ollama-js

Integrate JavaScript projects with Ollama using this TypeScript library

GraphCanon updated Sep 20, 2026 · GitHub synced Sep 20, 2026

4.4k stars477 forksLast push Feb 18, 2026 TypeScript MIT

Decision brief

Unverified catalog guidance: ollama-js simplifies interactions with Ollama models in JavaScript and TypeScript projects, offering support for browser usage and streaming responses.

Good fit when

  • Unverified catalog guidance: Use ollama-js when you need to integrate your JavaScript or TypeScript project with Ollama models for chat functionality.
  • Unverified catalog guidance: Choose this library if your application has a requirement for streaming chat responses, which can enhance user interaction in real-time scenarios.

Avoid when

  • Unverified catalog guidance: Avoid using ollama-js if your project requires complex image handling beyond base64 encoding or Uint8Array formats.
  • Unverified catalog guidance: Do not use this library if you are restricted to environments where node modules cannot be used and browser-specific imports are also not feasible.
Pricing:
freemium - The ollama-js library is free to download and integrate into your project under the MIT License, though using cloud models may require API key setup and adherence to Ollama's pricing for cloud usage.
Requirements:
- This library requires Node.js if not used in a browser context.; - For access to Ollama's cloud models, set up the necessary credentials as per their documentation.

Observed Jul 17, 2026 · Source: enrich:decision_facts

Verify the decision

Adoption

Package downloads where a registry match exists. GitHub stars (4,370) are secondary evidence.

npm downloads (30d)
2,394,650·npm downloads API·Sep 20, 2026

Maintenance and security

Full trust report
Maintenance
Slowing (213d since push)
As of Sep 20, 2026
Provenance
Not a fork · Organization account
As of Sep 20, 2026
Security (OSV)
9 low
As of Jul 15, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

npm install ollama

README installation instruction · observed Sep 20, 2026

npm

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

The Ollama JavaScript Library simplifies the integration of JavaScript and TypeScript projects with Ollama, allowing for easy interaction including usage in browsers and streaming responses.

Capability facts

MCP server
Unknown; MCP server not established by this scan

Source: repo_scan · Sep 20, 2026

Languages
typescript, javascript

Source: github.language+package.json · Sep 20, 2026

Categories

Tags

README

Ollama JavaScript Library The Ollama JavaScript library provides the easiest way to integrate your JavaScript project with Ollama. Getting Started Usage Browser Usage To use the library without node, import the browser module. Streaming responses Response streaming can be enabled...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.