npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@weaveintel/provider-ollama

v0.1.1

Published

Ollama provider for weaveIntel — local LLMs (Llama, Mistral, Qwen, Phi, Gemma, DeepSeek, etc.)

Readme

@weaveintel/provider-ollama

The adapter that lets weaveIntel talk to local LLMs served by Ollama, through the framework's common provider interface.

Why it exists

Cloud AI vendors each speak their own dialect, and so does the model runner on your own machine. The rest of weaveIntel shouldn't have to care which one is answering. Think of this package as a power adapter for travelling abroad — your laptop plugs into the same socket everywhere, and the adapter handles the local wiring. This one plugs into Ollama, so a model running on your own laptop looks exactly like a cloud model to the rest of your code — no API key, no data leaving the building.

When to reach for it

Reach for this when you want to run open models locally through Ollama — Llama, Mistral, Qwen, Phi, Gemma, DeepSeek and friends — and have them slot into your agents like any other provider. Great for privacy, offline work, or zero per-token cost. If you'd rather run raw GGUF files on a llama.cpp server, use @weaveintel/provider-llamacpp. For hosted models, reach for @weaveintel/provider-anthropic, @weaveintel/provider-openai, or @weaveintel/provider-google.

How to use it

import { weaveOllama } from '@weaveintel/provider-ollama';

// Talks to your local Ollama server (default http://localhost:11434).
const model = weaveOllama('llama3.1');

const reply = await model.generate({
  messages: [{ role: 'user', content: 'Explain photosynthesis in one sentence.' }],
});

console.log(reply.text);

Importing auto-registers the ollama provider. The default base URL is http://localhost:11434; override it with the OLLAMA_BASE_URL environment variable or per instance.

What's in the box

| Export | What it does | | --- | --- | | weaveOllama | Quick way to get a ready-to-use local chat model instance. | | weaveOllamaEmbedding | Quick way to get a local embedding model for turning text into vectors. | | weaveOllamaModel, weaveOllamaEmbeddingModel | The underlying model classes, for finer control. | | weaveOllamaConfig | Configuration (base URL, etc.) used when constructing a model. | | ollamaFetch, assertHttpsOrLoopback | The safety-checked fetch used to talk to Ollama (guards against calling non-local, non-HTTPS hosts). | | OllamaProviderOptions, OllamaFetchOptions | TypeScript types for the options above. |

License

MIT.