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

@bobbyg603/mog

v1.2.0

Published

One command to go from GitHub issue to pull request, powered by Claude Code in a Docker sandbox

Readme

mog — Sandboxed Claude Issue Mogging

One command to go from GitHub issue to pull request, powered by Claude Code running in a Docker sandbox.

mog workingdevshero/automate-it 123

That's it. mog will:

  1. Fetch the issue title, description, and labels via gh CLI
  2. Create a git worktree on a clean branch (123-fix-broken-login)
  3. Run Claude Code inside a persistent Docker sandbox (microVM) with --dangerously-skip-permissions
  4. Push the branch and open a PR that Closes #123

Prerequisites

  • macOS or Windows (Docker sandbox microVMs require Docker Desktop)
  • Docker Desktop — running and up to date (must support docker sandbox)
  • Bun — install from bun.sh
  • GitHub CLI (gh) — authenticated via gh auth login
  • Git with push access to your target repos

Install

bun install -g @bobbyg603/mog

Quick start

# 1. One-time setup: create sandbox & authenticate
mog init
# This launches Claude Code — use /login to authenticate with your Max subscription
# Once logged in, type /exit to return

# 2. Start mogging issues
mog workingdevshero/automate-it 123

How authentication works

mog init creates a persistent Docker sandbox named mog. When it launches, you authenticate once using /login inside the Claude Code session. Your auth persists in the sandbox across all future mog runs — you never need to login again.

If your session ever expires, just run mog init again to re-authenticate.

Usage

# One-time setup
mog init

# Basic usage
mog owner/repo issue_number

# Examples
mog workingdevshero/automate-it 123
mog sparx-tech/hub-firmware 45

How it works

┌──────────────────────────────────────────────────────────┐
│  Host machine                                            │
│                                                          │
│  1. gh issue view #123 → fetch title, body, labels       │
│  2. git worktree add → clean branch from default branch  │
│                                                          │
│  ┌────────────────────────────────────────────────────┐  │
│  │  Docker sandbox "mog" (persistent microVM)         │  │
│  │                                                    │  │
│  │  • ~/mog-repos mounted as workspace                │  │
│  │  • Auth persists across runs (login once)          │  │
│  │  • Isolated from host (own Docker daemon)          │  │
│  │  • claude --dangerously-skip-permissions -p "..."  │  │
│  │  • Reads code, implements fix, commits             │  │
│  └────────────────────────────────────────────────────┘  │
│                                                          │
│  3. git push origin branch                               │
│  4. gh pr create --body "Closes #123"                    │
└──────────────────────────────────────────────────────────┘

Configuration

| Environment Variable | Default | Description | |---|---|---| | MOG_REPOS_DIR | ~/mog-repos | Where repos are cloned and worktrees created (also the sandbox workspace) | | MOG_MAX_ITERATIONS | 10 | Max build loop iterations per issue | | MOG_MAX_CONTINUATIONS | — | Legacy alias for MOG_MAX_ITERATIONS |

Worktree management

mog uses bare clones and git worktrees so you can run multiple issues concurrently without conflicts:

~/mog-repos/
  owner/
    repo/                    ← bare clone (or full clone)
    repo-worktrees/
      123-fix-broken-login/  ← worktree for issue #123
      456-add-dark-mode/     ← worktree for issue #456

Clean up when done:

cd ~/mog-repos/owner/repo
git worktree remove ../repo-worktrees/123-fix-broken-login

Security notes

  • Claude Code runs inside a microVM via Docker sandbox — it has its own Docker daemon and cannot access your host system, terminal, or files outside ~/mog-repos.
  • --dangerously-skip-permissions is safe here because the sandbox provides the isolation boundary.
  • gh credentials stay on your host — the sandbox has no access to your GitHub token. Pushing and PR creation happen on the host after Claude finishes.
  • The sandbox has network access (required for the Anthropic API).

Troubleshooting

"Docker sandbox not available" — Make sure Docker Desktop is running and up to date.

"Sandbox 'mog' not found" — Run mog init first to create the sandbox and authenticate.

"Failed to fetch issue" — Check gh auth status and verify the repo/issue exist.

"No changes detected" — Claude may have struggled with the issue. Check the worktree manually, or re-run with a more detailed issue description.

"Failed to push" — Ensure gh is authenticated with push access. Try gh auth login and select HTTPS.

Managing the sandbox

# List sandboxes
docker sandbox ls

# Stop the sandbox (preserves auth)
docker sandbox stop mog

# Remove and recreate (you'll need to /login again)
docker sandbox rm mog
mog init