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

golem-cli

v0.1.1

Published

Provider-agnostic CLI AI coding assistant

Downloads

167

Readme

Golem CLI

A provider-agnostic terminal AI coding assistant. Chat with any LLM, read and edit files, search codebases, and run commands — all from your terminal.

Features

  • Multi-provider: Anthropic Claude, OpenAI GPT, Google Gemini, and local Ollama models
  • Built-in tools: Read, write, edit files; glob and regex search; shell commands; git; memory; todo tracking; multi-edit; patching; renaming; directory trees; code outline; diffing; web search; fetch; and more
  • Rich terminal UI: Markdown rendering with syntax-highlighted code blocks and streaming responses
  • Session persistence: Save and load conversations across sessions
  • Context management: Automatic truncation when conversations exceed the context window
  • Project-aware: Reads GOLEM.md/CLAUDE.md/README.md into the system prompt and includes remembered context
  • Approval gating: Dangerous shell commands and non-read-only git operations require user confirmation
  • MCP support: Connect external tool servers via the Model Context Protocol

Prerequisites

  • Node.js >= 20.0.0
  • An API key for at least one provider, or a local Ollama instance

Installation

npm install -g golem-cli

This installs the golem command globally.

Quick Start

Set your API key:

export ANTHROPIC_API_KEY=sk-...
# or
export OPENAI_API_KEY=sk-...
# or
export GOOGLE_GENERATIVE_AI_API_KEY=...

Run Golem:

golem                                          # Default (Anthropic Claude)
golem --provider openai --model gpt-4o         # Use OpenAI
golem --provider ollama --model llama3.1       # Use local Ollama
golem --debug                                  # Enable debug logging

Slash Commands

| Command | Description | |---------|-------------| | /help | Show available commands | | /clear | Clear conversation history | | /save | Save current session | | /load [id] | Load a saved session | | /history | List saved sessions | | /model | Show current model | | /provider | Show current provider | | /exit, /quit | Exit Golem |

Input Modes

  • Single-line (default): Type and press Enter to send
  • Multi-line: Press Ctrl+J to toggle. Enter adds newlines, Ctrl+Enter sends

Configuration

Golem uses layered configuration (later overrides earlier):

  1. Built-in defaults
  2. Global config: ~/.config/golem/config.json
  3. Project config: .golem/config.json
  4. Environment variables: GOLEM_PROVIDER, GOLEM_MODEL, provider API keys
  5. CLI flags: --provider, --model, --debug

Example config:

{
  "provider": "openai",
  "model": "gpt-4o",
  "maxTokens": 4096,
  "contextWindow": 128000,
  "temperature": 0.7,
  "providers": {
    "ollama": {
      "baseUrl": "http://localhost:11434/api"
    }
  }
}

Built-in Tools

| Tool | Description | |------|-------------| | readFile | Read file contents with optional line range | | writeFile | Create or overwrite files | | editFile | Find-and-replace text in files | | multiEdit | Apply multiple replacements in one pass | | patch | Apply unified diffs | | listFiles | Glob-based file discovery | | searchFiles | Regex search across files | | bash | Shell command execution (requires approval) | | git | Git operations with approval gating | | memory | Persist key/value context across sessions | | todoManager | Track multi-step work items | | directoryTree | Show directory structure | | codeOutline | Extract symbols from source files | | diffFiles | Compare files or raw content | | rename | Rename or move files and directories | | webSearch | Search the web via SearXNG | | fetchUrl | Make HTTP requests to URLs |

License

MIT

Links