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

cowork-cli

v4.0.0

Published

work with cowork

Readme

🚀 cowork-cli (cowork)

Stop waiting. Start knowing.
A minimalist, context-aware AI co-processor that lives in your terminal and understands your codebase.


⚡ Quick Start

📦 Installation

npm install -g cowork-cli

🔑 Configuration

Set up your AI provider interactively. cowork supports any OpenAI-compatible API (Ollama, OpenRouter, Google Gemini, OpenAI, etc.).

# Open interactive login wizard (shows setup status & active configuration)
cowork --login

# Or directly switch to / setup a specific provider
cowork --login google
cowork --login openai
cowork --login openrouter
cowork --login local

Credentials are saved in ~/.config/cowork/auth.json.


💡 Real-World Usage

Instead of open-ended chatting, cowork investigates your project using safe, built-in tools (which respect .gitignore).

🔍 Codebase Exploration

cowork "Where is the authentication logic handled?"

cowork recursively traverses folders, resolves imports, and prints a precise summary.

🐛 Debugging & Analysis

cowork "Find all 'FIXME' tags in src/ and point out the most critical one"

🧬 Piping Inputs

git diff | cowork "Write a clean commit message for these changes"

✨ Features That Matter

  • 🔌 Universal Compatibility: Seamless support for OpenAI, local models (Ollama/Llama), OpenRouter, and dedicated handlers for Google Gemini (preserving thought metadata).
  • 🖥️ Zero-Whitespace UI: Clean, high-density terminal layouts designed for developers.
  • 🎨 Markdown Rendering: Custom TUI compiler rendering headings, lists, tables, bold styling, and blockquotes with full CJK character width support.
  • 🔧 Powerful Tool Suite:
    • searchText (Regex searches with context window lines)
    • readManyFiles (Consolidated matching file reader)
    • projectTree (Visual directory structure overview)
    • webSearch & webFetch (Browse the web / read live docs inline)
  • 🛡️ Sandboxed I/O: Safe path validation preventing directory traversal attacks.

🏗️ Project Architecture

The codebase is split into modular packages under src/packages/:

src/
├── bin/          # CLI executable entrypoint (cli.ts)
├── core/         # CLI argument and stdin pipelines (index.ts)
└── packages/     # Isolated packages with clean public APIs:
    ├── 🤖 agent/     # Agent loops & tool execution (searchText, readManyFiles, etc.)
    ├── ⚙️ config/    # Configuration manager and login wizard prompts
    ├── 🔌 providers/ # LLM integration handlers (BaseModel, GeminiModel, client)
    ├── 🎨 tui/       # Console rendering engine, custom layout component loops
    └── 🛠️ utils/     # Ignore file parsers, logging colors, and path safety

⌨️ CLI Command Reference

| Command | Action | | :--- | :--- | | cowork "<query>" | Run a one-shot analysis on your codebase. | | cowork -l, --login [provider] | Interactive setup or active provider switch (google, openai, openrouter, local). | | cowork -v, --version | Print the active version. | | cowork -h, --help | Show usage options. |