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

au-rogue

v0.1.0

Published

Conservative Aurelia 1 to 2 codemods. Changes only what is safe, reports everything.

Readme

au-rogue

Conservative codemods that migrate Aurelia 1 projects toward Aurelia 2. It edits only the parts that are safe to transform automatically, then writes a comprehensive report for everything else.

🛡️ Conservative approach: Only transforms what's guaranteed safe, reports everything else
📊 Comprehensive reporting: Detailed analysis with migration guidance
🚀 Easy to use: Simple CLI with dry-run mode for safe exploration

Features

Automatic Transformations

  • ✅ Removes @autoinject decorators and converts to resolve() patterns
  • ✅ Removes @computedFrom decorators (keeps getter methods)
  • ✅ Strips PLATFORM.moduleName() calls
  • ✅ Converts template .delegate to .trigger
  • ✅ Updates various template attributes and elements

Analysis & Guidance

  • 🔍 Detects router patterns needing manual migration
  • 🔍 Identifies lifecycle method changes required
  • 🔍 Flags NavigationInstruction usage
  • 🔍 Analyzes event handlers for preventDefault needs
  • 🔍 Provides bootstrap migration examples
  • 🔍 Suggests @aurelia/compat-v1 when beneficial

Reporting

  • 📄 Generates detailed Markdown and JSON reports
  • 📋 Categorizes changes: edits, warnings, notes
  • 📈 Shows before/after code diffs
  • 📝 Provides specific migration guidance

Installation

# Install globally
npm install -g au-rogue

# Or run without installing
npx au-rogue --help

Usage

Quick Start

# Navigate to your Aurelia 1 project root
cd my-aurelia-app

# Run in dry mode first (recommended)
npx au-rogue --dry

# Review the generated reports:
# - au-rogue.report.md (human-readable)
# - au-rogue.report.json (machine-readable)

# Apply the transformations
npx au-rogue

Command Line Options

# Show help
npx au-rogue --help

# Dry run (preview changes without modifying files)
npx au-rogue --dry

# Custom file patterns
npx au-rogue --sources "src/**/*.ts" --templates "src/**/*.html"

# Include compatibility suggestions
npx au-rogue --compat

# Custom report output directory
npx au-rogue --report-dir ./migration-reports

Output Files

The tool generates two report files:

  • au-rogue.report.md - Human-readable migration report
  • au-rogue.report.json - Machine-readable data for tooling integration

Example Output

Running au-rogue on an Aurelia 1 project provides detailed feedback:

📊 Migration Summary
Edits: 23, Adds: 0, Removes: 5, Warnings: 12, Notes: 18

✅ Automatic transformations:
• Removed @autoinject decorators from 8 classes
• Removed @computedFrom decorators from 5 getters  
• Removed 12 PLATFORM.moduleName() calls
• Updated .delegate to .trigger in 3 templates

⚠️  Manual review needed:
• Router configuration in App class needs migration
• 4 NavigationInstruction usages detected
• Event handlers may need preventDefault modifiers

💡 Migration guidance provided:
• Bootstrap migration example for main.ts
• Router migration strategies
• @aurelia/compat-v1 compatibility suggestions

What Gets Transformed

✅ Safe Automatic Changes

  • Dependency Injection: @autoinjectresolve() patterns
  • Computed Properties: Remove @computedFrom decorators
  • Platform Modules: Remove PLATFORM.moduleName() wrappers
  • Templates: .delegate.trigger, attribute updates
  • Imports: Clean up unused imports

⚠️ Flagged for Manual Review

  • Router patterns: configureRouter(), NavigationInstruction
  • Complex DI: Interface types, non-runtime types
  • Lifecycle methods: v1 hooks needing v2 equivalents
  • Event handlers: Cases needing preventDefault
  • Bootstrap: main.ts configuration migration

💡 Guidance Provided

  • Complete bootstrap migration examples
  • Router migration strategies (@aurelia/router vs @aurelia/router-lite)
  • Compatibility package recommendations
  • Lifecycle method mapping
  • Best practices for manual migrations

Safety & Reliability

  • Conservative approach: Only transforms guaranteed-safe patterns
  • Comprehensive testing: 107+ test cases covering edge cases
  • Idempotent: Running multiple times is safe
  • Dry-run mode: Preview all changes before applying
  • Detailed reporting: Full transparency of all changes and decisions

Contributing

See our examples directory for realistic test cases. The tool is designed to be:

  • Extensible: Easy to add new transformation passes
  • Well-tested: Every transformation has comprehensive test coverage
  • Documented: Clear examples and explanations

License

MIT