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

@ollamaduct/gateway

v1.0.2

Published

A lightweight, local-first AI gateway for Ollama with workspaces, usage analytics, and privacy controls.

Readme

Ollamaduct

npm version npm downloads License

A lightweight, local-first AI gateway for Ollama with workspaces, usage analytics, and privacy controls.

Overview

Ollamaduct is an open-source gateway designed to sit between your local apps and Ollama. It adds a layer of intelligence to your LLM setup, handling the heavy lifting like managing access, tracking usage, and speeding up responses with smart caching while ensuring sensitive data stays under your control.

[!NOTE] Ollamaduct is currently CLI-only. A web-based interface and MCP server support are planned for future releases to improve the overall experience. Contributions and feedback are welcome!

Installation

Prerequisites

Quick Install

# Using npm
npm install -g @ollamaduct/gateway

# Using bun
bun install -g @ollamaduct/gateway

Verify Installation

ollamaduct --version

Configuration

First-Time Setup

ollamaduct init

This creates the configuration file at ~/.ollamaduct/config.env (Linux/Mac) or %APPDATA%/ollamaduct/config.env (Windows).

Configuration File

Edit the config file to customize your gateway:

# Ollama Settings
OLLAMA_URL=https://ollama.com
OLLAMA_API_KEY=your_ollama_api_key

# Security - REQUIRED for production
API_KEY=your-secure-gateway-api-key

# Default model
DEFAULT_MODEL=llama2

| Variable | Description | Default | |----------|-------------|---------| | OLLAMA_URL | Ollama endpoint URL | http://localhost:11434 | | OLLAMA_API_KEY | API key for Ollama Cloud | - | | API_KEY | Gateway authentication key | (not set - insecure) | | DEFAULT_MODEL | Default model to use | llama2 |

Quick Start

# Start the gateway server
ollamaduct start

# Or start on custom port
ollamaduct start --port 8080

# Check server status
ollamaduct status

# Stop the server
ollamaduct stop

Usage Examples

# List available models
ollamaduct models

# Manage API keys
ollamaduct keys
ollamaduct keys --create

# View usage logs
ollamaduct logs
ollamaduct logs --limit 50

# View statistics
ollamaduct stats

# Manage workspaces
ollamaduct workspaces
ollamaduct workspaces --create "My Project"

# Manage cache
ollamaduct cache
ollamaduct cache --clear

Upgrade

To upgrade to the latest version:

# Using npm
npm install -g @ollamaduct/gateway

# Using bun
bun install -g @ollamaduct/gateway

Check current version:

ollamaduct --version

Features

  • Workspaces - Organize projects and track usage separately per workspace
  • Ollama Integration - Native Ollama gateway with local and cloud model support
  • Authentication & API Keys - Secure API key-based authentication per workspace
  • Usage Analytics - Real-time usage tracking and analytics by workspace
  • Semantic Caching - Vector-based intelligent caching with 95%+ similarity detection
  • Privacy Shield - Enterprise-grade PII detection and redaction with 25+ entity types

Use Cases

  • Production AI Applications - Add authentication, usage tracking, and caching to your AI features
  • Privacy-Sensitive Workloads - Keep data on-premise with local Ollama deployment
  • Performance Optimization - Cache frequent queries and speed up responses
  • Local AI Gateway - Secure gateway for self-hosted Ollama instances
  • Compliance - Automatically redact PII before sending to LLM providers

Documentation

License

MIT License - see LICENSE for details.

Disclaimer

Ollamaduct is an independent project and is not affiliated with the official Ollama project.