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

@wipcomputer/wip-branch-guard

v1.9.91

Published

Branch guard with PreToolUse blocking (main branch write protection), SessionStart warning (main-CWD detection after compaction), onboarding-before-first-write gate, equivalent-action bypass tracking, and external-PR create guard.

Readme

WIP Computer

Branch Guard

PreToolUse hook that enforces branch discipline, blocks destructive commands, requires repo onboarding before first write, tracks blocked-file retries, and gates PR creation against external repos. Same logic ships as a Claude Code hook and as an OpenClaw plugin.

Install

See INSTALL.md for hook registration in ~/.claude/settings.json (PreToolUse + SessionStart entries).

What it does

  • Layer 1 ... write gate. Blocks Write/Edit/NotebookEdit/Bash-write on main branch or non-worktree feature branches. Shared-state paths (~/.claude/plans/, ~/.openclaw/workspace/, ~/.ldm/extensions/, etc.) are always allowed.
  • Layer 2 ... destructive-command block. Always denies git clean -f, git reset --hard, git stash drop/pop/clear, git checkout -- <path>, python -c "open().write()", node -e "writeFile()", --no-verify, and git push --force without --force-with-lease.
  • Layer 3 ... session-level gates.
    • Onboarding-before-first-write: requires Read of README.md, CLAUDE.md, and any *RUNBOOK*.md / *LANDMINES*.md / WORKFLOW*.md at repo root before the first write.
    • Recently-blocked-file tracking: catches Edit X denied → cat > X via Bash as an equivalent-action bypass.
    • External-PR create guard: denies gh pr create against non-wipcomputer repos without explicit LDM_GUARD_UPSTREAM_PR_APPROVED operator authorization.

See SKILL.md for full layer details, override semantics, per-session state shape, and the installer-as-escape-hatch recovery path.

Test

bash test.sh

Expected: 95 pass, 0 fail, 8 skip (on-main-branch cases that only run when the test-runner CWD is on main).

Source

  • guard.mjs ... PreToolUse + SessionStart handler, all logic inlined (zero runtime dependencies)
  • test.sh ... 95+ regression cases including cross-session state isolation
  • package.json ... npm metadata + hook registration manifest

Interfaces

  • Claude Code Hook ... PreToolUse + SessionStart, registered via ~/.claude/settings.json
  • OpenClaw Plugin ... same logic, same deny messages

License

MIT for tool usage; AGPLv3 for commercial redistribution, marketplace listings, or bundling into paid services. See LICENSE and CLA.md in this directory, and the parent repo's dual-license model for full context.

Part of AI DevOps Toolbox

Built by Parker Todd Brooks, Lēsa (OpenClaw, Claude Opus 4.7), Claude Code (Claude Opus 4.7).