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

@4iops/claude-ops

v3.7.184

Published

AI-powered project operations for Claude Code — persistent memory, bug tracking, cost intelligence, and real-time dashboard

Readme


Every Claude Code session starts from scratch. claude-ops fixes that.

Persistent memory, automatic bug detection, task and plan management, cost tracking, multi-model dispatch (Codex, Gemini, Ollama), and a 30+ page real-time dashboard. One command to install, zero configuration.

Quick Start

Self-hosted (embedded database, runs locally):

npx @4iops/claude-ops start

Hosted (zero infrastructure, connect to 4iops.com):

npx @4iops/claude-ops hosted <your-api-key>

First run walks you through setup. Dashboard at http://localhost:37778.

What You Get

| Without claude-ops | With claude-ops | |---|---| | Session context lost on exit | Persisted and injected on next start | | No bug tracking | Auto-detected from errors, severity classified | | Tasks disappear after session | Persisted with plans, dependencies, sprints | | No cost visibility | Per-session, per-project, per-model, daily trends | | Manual agent coordination | Auto-suggested teams matched to task complexity | | Secrets in .env files | Encrypted vault, auto-injected per project | | No cross-session context | Observation timeline, handoff docs, preferences |

How it works

claude-ops hooks into Claude Code's event system. Every significant event — session start, tool use, session end — fires a hook that captures data and injects context.

Claude Code                          claude-ops server
  |                                       |
  |-- SessionStart ---------------------->| Create session, inject context
  |-- UserPromptSubmit ------------------>| Record prompt, check budget
  |-- PostToolUse ----------------------->| Record observation, detect bugs
  |-- SessionEnd ------------------------>| Summarize, checkpoint, aggregate cost
  |                                       |
  |<-- Context injection -----------------| "12 open bugs, Plan #73 active"
  |<-- Budget warning --------------------| "$47 of $50 budget used"
  |<-- Team suggestion -------------------| "Spawn [security-fixer, deploy-agent]"

30+ hooks, fully automatic. No configuration needed.

Multi-Model

claude-ops turns Claude Code into a multi-model development environment. Claude stays the brain; other models handle specific roles.

Dispatch

Send any task to any model — by description or by task ID. The receiving model gets a structured prompt, works on a branch, and reports back. Results land in Review status for verification.

/codex:dispatch #1234           Dispatch task #1234 to OpenAI Codex
/gemini:dispatch "add tests"    Send a free-text task to Gemini
/local:dispatch #1234           Run on local Ollama/vLLM (private, free)
/codex:review                   Codex reviews your uncommitted changes
/codex:rescue "stuck on auth"   Delegate a stuck problem to Codex

Task ID dispatch — fetches full task details from claude-ops (title, description, priority, notes), builds a rich prompt, marks InProgress, and updates the task on completion with the branch name, model used, and summary.

Structured completion — dispatched models output a DISPATCH_RESULT block with status, model name, branch, files changed, test results, and blockers. claude-ops parses this to update the task record automatically.

Agent discretion — Claude agents can dispatch tasks to other models at their judgement. Tests, boilerplate, and refactoring go to Codex. Research and docs go to Gemini. Security and architecture stay on Claude. P0 tasks are never dispatched.

Task created (Open)
  -> Agent decides Codex is better suited (InProgress, agent=codex)
  -> Codex works on branch task-1234-codex
  -> Codex outputs DISPATCH_RESULT with model=gpt-4.1
  -> Task moves to Review with branch + summary
  -> Claude or human verifies -> Done

Supported backends

| Backend | Install | Auth | Dispatch command | |---------|---------|------|-----------------| | OpenAI Codex | npm i -g @openai/codex | codex auth login | /codex:dispatch | | Google Gemini | npm i -g @google/gemini-cli | gcloud auth or GOOGLE_API_KEY | /gemini:dispatch | | Ollama | ollama.com/download | None (local) | /local:dispatch | | vLLM | pip install vllm | None (local) | /local:dispatch |

The official Codex plugin for Claude Code is also supported — install it via claude plugin marketplace add openai/codex-plugin-cc for /codex:review, /codex:rescue, and background job management. claude-ops captures activity from the official plugin automatically.

Role-based config

Assign models to 9 development roles via /model-roles or the Settings page:

| Role | Default | Speed Preset | Multi-Brain Preset | |------|---------|-------------|-------------------| | Planner | Claude Opus | Claude Opus | Claude Opus | | Coder | Claude Sonnet | Codex | Codex | | Reviewer | Claude Sonnet | Claude Sonnet | Gemini | | Tester | Claude Sonnet | Codex | Codex | | Security | Claude Opus | Claude Opus | Claude Opus |

4 presets: Claude Only, Speed, Cost Saver, Multi Brain. Full custom config available.

Review gate

A Stop hook enables cross-model peer review. Claude writes code, a second model reviews it, Claude fixes issues — automatic loop with budget guard (max 3 cycles). Enable with CLAUDE_OPS_REVIEW_GATE=1.

Auto-detection

At session start, claude-ops detects which model CLIs are installed and authed. No manual configuration — if Codex is on your PATH, it's available. Project enrolment (/enrol-project) also prompts to install companion plugins.

Dashboard

30+ page web dashboard at http://localhost:37778:

Project-scoped views — Overview, Sessions, Bugs, Tasks, Plans, Documents, Observations, Secrets, Deploys, Services, Architecture

Cross-project views — Products (multi-repo roll-ups), Projects, Roadmaps, Cost Analytics, Intelligence, Activity Feed, Nexus (knowledge graph), Audit Log

Product management — Group projects into Products with documentation templates (Required/Good/Great tiers), completeness scoring, Roadmap/Wave hierarchy, and cross-repo blocker visibility.

Model health — Dashboard shows which AI models are available, their status (ready/rate-limited/not installed), and per-provider spend.

CLI

npx @4iops/claude-ops <command>

| Command | Description | |---------|-------------| | start | Start server (auto-runs setup on first use) | | start -d | Start as background daemon | | start --verbose | Start with detailed server output | | hosted <key> | Connect to 4iops.com hosted (single command setup) | | stop | Stop the server | | status | Show server and project status | | doctor | Run diagnostic checks | | migrate | Run database migrations | | reset | Reset database (destructive) |

Database modes

claude-ops picks the best available database automatically:

  1. PGlite (default) — Embedded WASM Postgres, zero config, no Docker
  2. Docker — Auto-managed Postgres container if PGlite fails
  3. External Postgres — Set DATABASE_URL for your own instance

Logging

Server output is always written to ~/.claude-ops/server.log. In foreground mode, output also appears in the terminal. Use --verbose with -d to tail the log after detaching.

MCP Tools

70+ tools exposed to Claude via the Model Context Protocol:

Bugsadd_bug, query_bugs, search_bugs, update_bug, batch_update_bugs

Tasksadd_task, query_tasks, search_tasks, update_task, batch_update_tasks

Planscreate_plan, query_plans, update_plan, get_plan

Productscreate_product, query_products, get_product_dashboard, add_project_to_product, get_product_blockers, delete_product, remove_project_from_product

Documentssave_doc, search_docs, get_doc, get_doc_outline, get_doc_section

Secretsget_secret, use_secret, save_secret, list_secrets, search_secrets

Contextget_context, get_observations, observation_stats, timeline, refresh_context

Intelligencesmart_search, smart_outline, smart_unfold, qwen_insights, qwen_stats

Agentslist_agents, get_agent, register_agent, update_agent, sync_agents_to_local

Wavescreate_wave, get_wave, list_waves, update_wave

Roadmapscreate_roadmap, get_roadmap, query_roadmaps, update_roadmap

Multi-Modeldispatch_to_model, get_product_template, init_product_template

Agent Sessionsquery_agent_sessions, get_agent_session

Templatesquery_templates, get_template

Plus — budgets, notifications, deploy status, cost reports, session replay, checkpoints, model health, and more.

Configuration

Everything works out of the box. Optional config via ~/.claude-ops.json:

{
  "url": "http://localhost:37778",
  "apiKey": "your-api-key"
}

Environment variables

| Variable | Default | Description | |----------|---------|-------------| | CLAUDE_OPS_URL | http://localhost:37778 | Server URL | | CLAUDE_OPS_API_KEY | (none) | API auth key (empty = dev mode, no auth) | | CLAUDE_OPS_MASTER_KEY | (auto-generated) | Secrets encryption key | | DATABASE_URL | (PGlite) | PostgreSQL connection string | | PORT | 37778 | Server port |

Intelligence (optional)

Background AI jobs analyze your data — bug triage, session summaries, cost optimization, and more. Configure any combination:

| Variable | Provider | Cost | |----------|----------|------| | INTELLIGENCE_LLM_URL | Local vLLM/Ollama | Free | | GOOGLE_API_KEY | Gemini Flash | ~$0.0001/job | | OPENAI_API_KEY | GPT-4o-mini | ~$0.0002/job | | ANTHROPIC_API_KEY_CLAUDEOPS | Haiku/Sonnet | ~$0.001/job |

The system routes to the cheapest available provider automatically. No providers configured? Core ops still works — intelligence is disabled gracefully.

4iops

claude-ops is the engine behind 4iops.com — a cross-framework ops platform for every AI agent framework.

Integration paths

Plugin-first (primary) — Claude Code users get multi-model dispatch via built-in skills:

/codex:dispatch    /gemini:dispatch    /local:dispatch    /model-roles

REST adapters (secondary) — for non-Claude-Code frameworks:

| Package | Framework | Install | |---------|-----------|---------| | @4iops/vercel-ai | Vercel AI SDK | npm i @4iops/vercel-ai | | 4iops-tools | LangChain, LangGraph, CrewAI | pip install 4iops-tools | | 4iops-openai | OpenAI Agents SDK | pip install 4iops-openai | | @4iops/openclaw | OpenClaw | npm i @4iops/openclaw |

Adapters work against self-hosted (localhost:37778) or hosted (api.4iops.com). Same API, same data model.

Self-hosted vs hosted

| | Self-hosted | Hosted (4iops.com) | |---|---|---| | Install | npx @4iops/claude-ops start | npx @4iops/claude-ops hosted <key> | | Audience | Claude Code power users | Any framework, any model | | Features | 70+ MCP tools + 30+ hooks | REST API + adapter tools | | Cost | Free (MIT) | Free tier + Pro | | Data | Your infrastructure | Managed cloud |

Architecture

@4iops/claude-ops
├── bin/claude-ops.js         CLI entry point
├── plugin/
│   ├── hooks/                30+ event hooks (auto-installed)
│   ├── skills/               27 slash commands (multi-model dispatch, ops, review)
│   └── scripts/mcp-server.cjs   MCP server (70+ tools)
├── dist/                     Compiled server
├── prisma/                   Schema + 45 migrations
│   └── schema.prisma         35+ models (Product > Roadmap > Plan > Wave > Task)
└── src/
    ├── cli/                  init, start, stop, status, hosted, doctor, migrate, reset
    ├── routes/               42+ API routes + dashboard routes
    ├── views/                30+ server-rendered HTML pages
    ├── intelligence/         55+ background AI jobs + scheduler
    ├── lib/                  Dispatch router, model roles, rate limits, cost pricing
    └── middleware/            Auth, rate limiting, validation

Stack: Node.js 20+, TypeScript, Express, Prisma, PostgreSQL/PGlite

Contributing

git clone https://github.com/4iops/claude-ops
cd claude-ops
npm install
npx prisma generate
npx tsx src/index.ts    # Dev server
npx vitest              # Tests

See CONTRIBUTING.md for details.

License

MIT