ngxsmk-migrate is an AI-powered Angular migration toolkit that automates upgrades from legacy Angular patterns (NgModules, RxJS BehaviorSubjects, *ngIf/*ngFor) to modern standalone components, signals, and control flow. It integrates with Gemini 1.5, OpenAI, and Anthropic for intelligent refactoring and detailed upgrade reports. Key features include AST-based transformations, gradual migration support, and a CLI for analyzing and fixing Angular applications. Version 1.2.1 is the current stable release; updates are frequent. Differs from other migration tools (like ng generate) by using AI to understand project-specific architecture and suggest optimized replacements, not just template-based codemods.
npm install ngxsmk-migrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the CLI globally, sets the Gemini API key, then analyzes and fixes an Angular project for modern patterns.
Ensure your environment has internet access and valid API keys for the chosen AI provider.
Use require('ngxsmk-migrate') instead of import.Run 'ngxsmk-migrate analyze .' first to review changes, or use version control.
Upgrade your Angular project to at least version 15 before using ngxsmk-migrate.
Use a provider with higher rate limits (e.g., Gemini) or split the project into smaller parts.
Install globally: npm install -g ngxsmk-migrate or use npx: npx ngxsmk-migrate
Set GOOGLE_API_KEY (or OPENAI_API_KEY/ANTHROPIC_API_KEY) in your environment.
Use CommonJS require: const { analyze } = require('ngxsmk-migrate');No dependency data recorded yet.