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

@proguardian/cli

v1.0.0

Published

Guardian supervision layer for AI coding assistants

Downloads

7

Readme

ProGuardian CLI

CI Status Coverage Status npm version npm downloads License: Apache 2.0 Security Scan

A personal tool I built to enhance my workflow with AI coding assistants. While Claude Code and Gemini CLI are amazing tools, I encountered some recurring issues that led me to create ProGuardian as a quality assurance layer.

Why I Built This

I love using AI coding assistants - they've transformed how I work. But I noticed patterns that were causing some tension:

  • Placeholder code: // TODO: implement this properly appearing in "completed" features
  • Test cheating: Tests that always pass, or tests weakened to match buggy code
  • Security oversights: Hardcoded values, missing input validation, generic error handling
  • Shortcuts: "Quick fixes" that become permanent technical debt
  • Incomplete work: Code that technically runs but isn't production-ready

What ProGuardian Does

ProGuardian adds a "Guardian Protocol" layer to your AI assistant that attempts to encourage a more methodical approach through a review-gate workflow:

Plan → Review → Implement → Review → Test → Review → Done

The idea is that each review gate should be completed before proceeding, with evidence like grep outputs and test results. Whether the AI actually follows this varies.

Key Features

  • Works with existing tools: Enhances your CLAUDE.md or GEMINI.md files
  • 14-step workflow: Structured approach designed to catch issues early
  • Evidence-based reviews: Asks for grep outputs, test results, actual proof
  • Anti-placeholder stance: Explicitly discourages TODOs and mock implementations
  • Test integrity focus: Encourages fixing code rather than weakening tests

Status: Work in Progress

This is an active project I'm continuously improving based on my own usage. It's not perfect or complete - I'm discovering edge cases and refining the approach as I use it daily.

Current state:

  • ✅ Core workflow implemented and tested
  • ✅ Works with both Claude Code and Gemini CLI
  • ✅ Published on npm for easy installation
  • 🚧 Continuous refinements based on real usage
  • 🚧 Adding new safety checks as I encounter issues

Known Limitations

  • Compliance varies: Sometimes the AI forgets or ignores the CLAUDE.md and GEMINI.md
  • Not foolproof: Even with the protocol, issues can slip through
  • Context matters: Works better for some tasks than others
  • Requires patience: The review steps add time to the development process
  • Possibly increases cost: More steps and longer .MD = more tokens.

Installation

npm install -g @proguardian/cli

Usage

1. Initialize Guardian in your project:

cd your-project
proguardian init

This enhances your existing CLAUDE.md or GEMINI.md file (or creates one if needed).

2. Optional: Install the wrapper

proguardian install-wrapper

This creates a wrapper that automatically enforces Guardian mode when .proguardian exists.

3. Use your AI assistant normally

claude "implement user authentication"
# or
gemini "add error handling to the API"

The AI should now follow the Guardian protocol - planning before coding, reviewing implementation, and running actual tests. In practice, you might need to remind it occasionally (is that the Guardian way?), as AIs don't always stick to their context files.

Helpful Command Examples

Quick Copy-Paste Commands for Your AI

When working with your AI assistant, you can use these prompts to help it follow the Guardian protocol:

# Initial project check
"Does this project adhere to the ProGuardian Standard?"

# Starting a new feature
"Follow the ProGuardian workflow when you implement this feature"

# When you notice shortcuts being taken
"Are you following the Guardian protocol? Show me the review evidence"

# When tests are failing
"According to Guardian protocol, we fix code not tests. Please diagnose the root cause"

# Before committing
"Run through the Guardian review checklist before we commit"

# When you see TODOs or placeholders
"Guardian protocol forbids placeholders. Please complete the implementation"

# For security-sensitive code
"Apply Guardian security review to this authentication code"

# When reviewing a PR
"Review this code against Guardian quality standards"

Common Scenarios

Starting a new project:

claude init
proguardian init
claude "Set up a Node.js Express API with PostgreSQL following Guardian standards"

Adding a complex feature:

claude "Follow the ProGuardian workflow to implement user authentication with JWT"

Fixing bugs without compromising tests:

claude "Tests are failing. Follow Guardian protocol: diagnose, fix code (not tests), verify"

Ensuring production readiness:

claude "Review this codebase against the Guardian production checklist"

Configuration

Update Notifications

ProGuardian automatically checks for updates in the background (similar to Claude Code). When a new version is available, you'll see a notification:

╭─────────────────────────────────────────────────────╮
│                                                     │
│  Update available! 0.3.0 → 1.0.0                    │
│                                                     │
│  Run npm update -g @proguardian/cli to update       │
│                                                     │
│  Disable check with PROGUARDIAN_NO_UPDATE_CHECK=1   │
│                                                     │
╰─────────────────────────────────────────────────────╯

To disable update checks, set the environment variable:

export PROGUARDIAN_NO_UPDATE_CHECK=1

Update checks are also automatically disabled in CI environments.

Contributing

Since this is a personal tool I'm actively developing and using myself, I welcome feedback and contributions! If you encounter issues or have ideas for improvements:

  • Open an issue describing what you encountered
  • Share your use cases - I'm curious how others might use this
  • PRs welcome, especially for edge cases I haven't encountered yet

Technical Details

  • Node.js 20+ required

License

Apache 2.0.


ProGuardian is a personal project not affiliated with Anthropic (Claude) or Google (Gemini), though I would obviously love for that to change.