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

@elizaos/plugin-ollama-root

v2.0.0-alpha.1

Published

This plugin provides integration with [Ollama](https://ollama.com/)'s local models through the ElizaOS platform. It allows you to leverage locally running LLMs for text generation, embeddings, and object generation.

Readme

Ollama Plugin

This plugin provides integration with Ollama's local models through the ElizaOS platform. It allows you to leverage locally running LLMs for text generation, embeddings, and object generation.

Overview

Ollama enables running large language models locally on your machine. This plugin connects ElizaOS with your local Ollama installation, giving your characters access to powerful language models running on your own hardware.

Requirements

  • Ollama installed and running on your system
  • ElizaOS platform
  • At least one Ollama model pulled and available (e.g., llama3, gemma3:latest)

Installation

  1. Install this plugin in your ElizaOS project:

    bun add @elizaos/plugin-ollama
  2. Make sure Ollama is running:

    ollama serve

Usage

Add the plugin to your character configuration:

"plugins": ["@elizaos/plugin-ollama"]

Configuration

The plugin requires these environment variables (can be set in .env file or character settings):

"settings": {
  "OLLAMA_API_ENDPOINT": "http://localhost:11434/api",
  "OLLAMA_SMALL_MODEL": "gemma3:latest",
  "OLLAMA_MEDIUM_MODEL": "gemma3:latest",
  "OLLAMA_LARGE_MODEL": "gemma3:latest",
  "OLLAMA_EMBEDDING_MODEL": "nomic-embed-text:latest"
}

Or in .env file:

OLLAMA_API_ENDPOINT=http://localhost:11434/api
OLLAMA_SMALL_MODEL=gemma3:latest
OLLAMA_MEDIUM_MODEL=gemma3:latest
OLLAMA_LARGE_MODEL=gemma3:latest
OLLAMA_EMBEDDING_MODEL=nomic-embed-text:latest

Configuration Options

  • OLLAMA_API_ENDPOINT: Ollama API endpoint (default: http://localhost:11434/api)
  • OLLAMA_SMALL_MODEL: Model for simpler tasks (default: gemma3:latest)
  • OLLAMA_MEDIUM_MODEL: Medium-complexity model (default: gemma3:latest)
  • OLLAMA_LARGE_MODEL: Model for complex tasks (default: gemma3:latest)
  • OLLAMA_EMBEDDING_MODEL: Model for text embeddings (default: nomic-embed-text:latest)

The plugin provides these model classes:

  • TEXT_SMALL: Optimized for fast responses with simpler prompts
  • TEXT_LARGE: For complex tasks requiring deeper reasoning
  • TEXT_EMBEDDING: Text embedding model
  • OBJECT_SMALL: JSON object generation with simpler models
  • OBJECT_LARGE: JSON object generation with more complex models

API Reference

For detailed information about the Ollama API used by this plugin, refer to the official Ollama API documentation.

Features

Text Generation (Small Model)

Generate text using smaller, faster models optimized for quick responses:

const text = await runtime.useModel(ModelType.TEXT_SMALL, {
  prompt: "What is the nature of reality?",
  stopSequences: [], // optional
});

Text Generation (Large Model)

Generate comprehensive text responses using more powerful models for complex tasks:

const text = await runtime.useModel(ModelType.TEXT_LARGE, {
  prompt: "Write a detailed explanation of quantum physics",
  stopSequences: [], // optional
  maxTokens: 8192, // optional (default: 8192)
  temperature: 0.7, // optional (default: 0.7)
  frequencyPenalty: 0.7, // optional (default: 0.7)
  presencePenalty: 0.7, // optional (default: 0.7)
});

Text Embeddings

Generate vector embeddings for text, which can be used for semantic search or other vector operations:

const embedding = await runtime.useModel(ModelType.TEXT_EMBEDDING, {
  text: "Text to embed",
});
// or
const embedding = await runtime.useModel(
  ModelType.TEXT_EMBEDDING,
  "Text to embed",
);

Object Generation (Small Model)

Generate structured JSON objects using faster models:

const object = await runtime.useModel(ModelType.OBJECT_SMALL, {
  prompt: "Generate a JSON object representing a user profile",
  temperature: 0.7, // optional
});

Object Generation (Large Model)

Generate complex, detailed JSON objects using more powerful models:

const object = await runtime.useModel(ModelType.OBJECT_LARGE, {
  prompt: "Generate a detailed JSON object representing a restaurant",
  temperature: 0.7, // optional
});

Troubleshooting

Connection Issues

  • Ensure Ollama is running by testing the OLLAMA_API_ENDPOINT
  • Verify the OLLAMA_API_ENDPOINT points to the correct host and port
  • Check firewall settings if connecting to a remote Ollama instance

Model Availability

  • The plugin will attempt to download models automatically if they're not found
  • You can pre-download models using ollama pull modelname
  • Check model availability with ollama list

License

See LICENSE file for details.