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 🙏

© 2025 – Pkg Stats / Ryan Hefner

edsger

v0.9.4

Published

AI-powered software development CLI tool with comprehensive feature management, code review, technical design, implementation, and testing capabilities using Claude Code SDK and MCP integration

Readme

Edsger

AI-powered software development CLI tool with comprehensive feature management, code review, and testing capabilities using Claude Code SDK and MCP integration.

Features

🚀 Project Initialization

  • Automated Documentation: Uses Claude Code SDK to analyze your codebase and generate comprehensive documentation
  • Phase Optimization: Provides project context to all phases for better AI understanding
  • Smart Analysis: Automatically discovers tech stack, architecture, coding patterns, and conventions
  • One-Command Setup: Quick initialization with edsger --init - no manual documentation needed

🔍 Code Review

  • AI-Powered Reviews: Uses Claude Code SDK for intelligent code analysis
  • Git Integration: Reviews uncommitted or staged changes automatically
  • Configurable: Customize patterns, exclusions, and review severity
  • Hook-Friendly: Designed for pre-commit hooks and CI/CD automation
  • Detailed Output: Clear feedback with blocking/warning/passing results

🔧 Code Refactoring

  • Intelligent Analysis: AI-powered code quality and refactoring analysis
  • Pattern Detection: Identifies code smells, duplication, and technical debt
  • Improvement Suggestions: Provides prioritized recommendations for code improvement
  • Interactive Mode: Ask for confirmation before applying refactoring changes

🎯 Feature Analysis

  • MCP Integration: Analyze features using Model Context Protocol
  • User Story Generation: Create comprehensive user stories for features
  • Test Case Creation: Generate detailed test cases with criticality levels
  • Deduplication: Avoid creating similar existing user stories and test cases
  • Real-time Streaming: Live analysis feedback with Claude Code SDK

🎨 Technical Design

  • Design Generation: Create technical specifications for features
  • Architecture Planning: Generate implementation roadmaps and technical details
  • Integration Support: Works with MCP for structured design output

💻 Code Implementation

  • Feature Implementation: Automatically implement features based on specifications
  • Branch Management: Creates feature branches and manages git workflow
  • Code Generation: AI-powered code writing with proper git integration

🎭 Functional Testing

  • Automated Testing: Run Playwright-based functional tests for features
  • Test Execution: Execute test cases with detailed reporting
  • Status Tracking: Monitor test results with pass/fail statistics

🚀 Workflow Management

  • Continuous Processing: Monitor and process features ready for development
  • End-to-End Automation: Complete feature lifecycle from analysis to testing
  • Real-time Monitoring: Live workflow processing with statistics and graceful shutdown

Installation

npm install edsger

Usage

Project Initialization

# Initialize .edsger directory - AI automatically generates documentation
edsger --init

# Verbose output to see the analysis process
edsger --init --verbose

The init command uses Claude Code SDK to automatically:

  1. Analyze your codebase structure and files
  2. Discover technologies, frameworks, and dependencies
  3. Identify architectural patterns and design decisions
  4. Extract coding conventions and standards
  5. Generate comprehensive documentation in .edsger/ directory

Generated documentation files:

  • project-overview.md - Project description, goals, and core features
  • tech-stack.md - Technologies, frameworks, and tools used
  • architecture.md - System architecture and design decisions
  • coding-guidelines.md - Coding standards and conventions
  • development-setup.md - Development environment setup instructions

These files provide rich context to all edsger phases for better code generation, analysis, and implementation. You can edit them manually to refine or add details.

Code Review

# Review all uncommitted changes
edsger --review

# Review only staged changes
edsger --review --staged

# Review specific file patterns
edsger --review --files "**/*.ts" "**/*.js"

# Verbose output
edsger --review --verbose

Code Refactoring

# Analyze and refactor code in current directory
edsger --refactor

# Verbose refactoring output
edsger --refactor --verbose

Feature Analysis

# Analyze a feature and generate user stories/test cases
edsger --feature-analysis <feature-id>

# Verbose analysis output
edsger --feature-analysis <feature-id> --verbose

Technical Design

# Generate technical design for a feature
edsger --technical-design <feature-id>

# Verbose design output
edsger --technical-design <feature-id> --verbose

Code Implementation

# Implement feature code based on specifications
edsger --implement <feature-id>

# Verbose implementation output
edsger --implement <feature-id> --verbose

Functional Testing

# Run functional tests for a feature
edsger --test <feature-id>

# Verbose test output
edsger --test <feature-id> --verbose

Workflow Management

# Run continuous workflow processor
edsger --workflow

# Run with verbose logging
edsger --workflow --verbose

Default Behavior

# Auto-detects mode based on environment:
# - If EDSGER_PRODUCT_ID and EDSGER_MCP_TOKEN are set: workflow mode
# - Otherwise: code review mode
edsger

Configuration

Create a configuration file (.edsgerrc.json, edsger.config.js, etc.):

{
  "patterns": ["**/*.js", "**/*.ts"],
  "exclude": ["node_modules/**", "*.test.js"],
  "severity": "error",
  "maxFiles": 100,
  "claude": {
    "model": "sonnet",
    "timeout": 120000
  }
}

Environment Variables

Required for Advanced Features (Feature Analysis, Technical Design, Implementation, Testing, Workflow)

  • EDSGER_MCP_SERVER_URL: MCP server URL for feature operations
  • EDSGER_MCP_TOKEN: Required authentication token for MCP server
  • EDSGER_PRODUCT_ID: Product ID for workflow management (optional for workflow mode)

Configuration Options

  • patterns: File patterns to include (default: common code files)
  • exclude: File patterns to exclude (default: tests, builds, node_modules)
  • severity: "error" (exit 1 on issues) or "warning" (exit 0 always)
  • maxFiles: Maximum files to review in one run
  • claude.model: Claude model to use (sonnet, opus, etc.)
  • claude.timeout: Timeout in milliseconds

Git Hooks Integration

Add to your .git/hooks/pre-commit:

#!/bin/sh
npx edsger --review --staged

Requirements

  • Node.js >= 18.0.0
  • @anthropic-ai/claude-code SDK
  • MCP server for advanced feature operations (analysis, design, implementation, testing)
  • Playwright for functional testing (when using --test flag)

License

ISC