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

@halonic/strike-logger

v0.2.1

Published

AI Code Review Strike Logger - Track and categorize AI-generated code errors

Readme

Strike Logger 🎯

AI Code Review Strike Logger - Track and categorize AI-generated code errors

Transform unstructured code review feedback into structured learning data for AI coding assistants.

🚀 Quick Start

# Install globally
npm install -g @halonic/strike-logger

# Or use with npx
npx @halonic/strike-logger init

📖 Usage

Initialize in your project

cd your-project
strike-logger init

Log a strike from a commit

# Manual logging
strike-logger log --commit abc123 --message "Missing error handling in API call"

# Auto-detect from recent fix commits
strike-logger log --auto

# Interactive selection and review
strike-logger log --auto --interactive

Auto-inject rules into active AI instruction files

# Auto-detect spec files (.cursorrules, .clinespec, etc.) and inject rules
strike-logger inject

Enable Git Pre-Commit Safeguards

# Register the hook so staged diff changes are scanned automatically before git commits
strike-logger hook --register

# To disable/unregister:
strike-logger hook --unregister

View statistics

strike-logger report

Generate anti-pattern templates

# For ChatGPT/GPT-4
strike-logger generate --model gpt

# For Claude
strike-logger generate --model claude --output claude-antipatterns.md

# For GitHub Copilot
strike-logger generate --model copilot

🎯 Features

  • 🔍 Auto-Detection: Automatically scans git history for fix commits
  • ✍️ Interactive Review: Review commits interactively to toggle strikes, verify diffs, and write custom comments
  • 📊 Smart Categorization: 17+ predefined error categories with rule-based matching
  • 📈 Rich Reporting: View strikes by category, severity, and trends
  • 💉 Spec Injection: Auto-inject anti-pattern rules directly into .cursorrules, .clinespec, and other active AI configs
  • 🛡️ Hook Safeguard: Git pre-commit hook scanning to block new commits containing known recurring bugs
  • 💾 Local Storage: All data stored locally in JSON (zero telemetry)
  • 🔒 Privacy First: No external API calls, fully offline

📋 Commands

| Command | Description | |---------|-------------| | init | Initialize strike logger in current directory | | log | Log a new strike from commit or manual entry | | report | View strike statistics and breakdown | | generate | Generate anti-pattern prompt templates | | inject | Auto-inject generated anti-pattern rules into active spec files | | hook | Manage git pre-commit hook safeguard |

🗂️ Strike Categories

The tool automatically categorizes errors into:

Code Quality

  • Missing Error Handling
  • Null Pointer Exceptions
  • Race Conditions
  • Memory Leaks

Security

  • SQL Injection
  • XSS Vulnerabilities
  • Hardcoded Secrets
  • Auth Bypass

Architecture

  • Tight Coupling
  • Missing Abstractions
  • Wrong Design Patterns

Performance

  • N+1 Query Problems
  • Inefficient Algorithms

Testing

  • Missing Tests
  • Insufficient Coverage

And more...

💡 Example Workflow

# 1. Initialize
cd my-ai-project
strike-logger init

# 2. Auto-scan recent fixes
strike-logger log --auto

# 3. View what went wrong
strike-logger report

# 4. Generate anti-patterns for your AI
strike-logger generate --model gpt > ai-guidelines.md

# 5. Use guidelines in your AI prompts!

🎨 Sample Output

📊 STRIKE REPORT

Total Strikes: 23

🎯 By Severity:
  Critical: 2
  High: 8
  Medium: 10
  Low: 3

📁 By Category:
  missing_error_handling: 7
  null_pointer: 5
  missing_tests: 4
  ...

🛠️ Development

# Install dependencies
npm install

# Build
npm run build

# Test
npm test

# Development mode
npm run dev

📦 Project Structure

strike-logger/
├── src/
│   ├── cli.ts              # CLI entry point
│   ├── parsers/            # Git diff parsing
│   ├── categorizer/        # Error categorization
│   ├── database/           # Strike storage
│   ├── templates/          # Template generation and auto-injector
│   ├── interactive/        # Interactive CLI prompting
│   └── hooks/              # Git hook registration and staged-diff checking
├── data/
│   └── strikes.json        # Local strike database
└── tests/
    └── strike-logger.test.ts # Vitest unit test suite

🚀 Roadmap

  • [ ] VS Code Extension (real-time strike detection)
  • [ ] Team Dashboard (centralized analytics)
  • [x] Git Hook Pre-Commit Integration
  • [x] Auto-Spec / Prompts rules injection
  • [ ] CI/CD Integration (GitHub Actions)
  • [ ] ML-based categorization
  • [ ] Custom category definitions

📄 License

MIT © Halonic

🤝 Contributing

Contributions welcome! This is an open-source project from Halonic.


Built with ❤️ by Halonic | Report Issues