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

@hivemynd/node

v0.1.0

Published

HiveMind Node - Local AI gateway with multi-provider auth

Downloads

14

Readme

HiveMind Node

Local AI gateway with multi-provider authentication.

Installation

npm install -g @hivemind/node

Or link locally during development:

cd packages/hivemind-node
npm link

Quick Start

# Interactive setup (recommended)
hivemind setup

This walks you through:

  1. Select providers — Anthropic, OpenAI, DeepSeek, Google, Ollama
  2. Authenticate — API key or browser session
  3. See models — Shows available models per provider
  4. Set default — Pick your primary provider
  5. Connect — Optionally link to HiveMind server

Commands

# Setup & Status
hivemind setup              # Interactive setup wizard
hivemind status             # Show configured providers

# Models
hivemind models             # List available models
hivemind models -p anthropic  # Filter by provider

# Chat
hivemind chat "Hello"       # Quick chat with default provider
hivemind chat -p openai "Hi"  # Use specific provider
hivemind chat -m gpt-4o "Hi"  # Use specific model

# Provider Management
hivemind auth add <provider>    # Add a provider
hivemind auth list              # List providers
hivemind auth remove <provider> # Remove a provider
hivemind default <provider>     # Set default provider

# HiveMind Connection
hivemind connect <url>      # Connect to HiveMind server

Authentication Methods

API Key

Direct API access. Pay per token.

hivemind auth add anthropic
# Then enter your API key when prompted

Or with the key directly:

hivemind auth add anthropic -k sk-ant-xxx

Browser Session (Subscription)

Use your existing Claude Max ($20/mo) or ChatGPT Plus subscription.

During hivemind setup, choose "Browser Session" and paste your session cookie from DevTools:

  1. Go to claude.ai (logged in)
  2. DevTools → Application → Cookies
  3. Copy sessionKey value

Environment Variables

The CLI auto-detects these:

export ANTHROPIC_API_KEY=sk-ant-xxx
export OPENAI_API_KEY=sk-xxx
export DEEPSEEK_API_KEY=sk-xxx

Supported Providers

| Provider | Models | Auth Methods | |----------|--------|--------------| | Anthropic | claude-opus-4, claude-sonnet-4, claude-3.5-* | API Key, Session | | OpenAI | gpt-4o, gpt-4-turbo, o1-* | API Key, Session | | DeepSeek | deepseek-chat, deepseek-coder | API Key | | Google | gemini-2.0-flash, gemini-1.5-pro | API Key | | Ollama | llama3, mistral, codellama | Local (no auth) |

How It Works

  1. Encrypted Storage — Credentials in ~/.hivemind/auth.enc (AES-256-GCM)
  2. Auto-Detection — Checks env vars and existing sessions
  3. Health Checks — Validates credentials before use
  4. HiveMind Integration — Reports capabilities for routing

HiveMind Connection

When connected to a HiveMind server, your node becomes an execution endpoint:

hivemind connect https://your-hivemind.vercel.app

The server can route LLM requests to your node based on:

  • Which providers you have configured
  • Which models you have access to
  • Your node's availability

Credentials stay local — only capability info is shared with the server.

Development

cd packages/hivemind-node
npm install
npm run build
npm link

# Test
hivemind status

License

MIT