Skip to content
PluginStats

@kitiumai/cyclic-dependency-fixer weekly downloads statistics

By kitiumai · npm · Webpack plugins

AI-powered tool to detect and fix circular dependencies in JavaScript/TypeScript projects. Features intelligent refactoring with Claude/GPT-4, codebase pattern learning, and context-aware fix recommendations

View on npm Fresh · Oct 17, 2026

@kitiumai/cyclic-dependency-fixer has 22 recorded weekly downloads on npm, a decrease of 56.9% over the past 30 days.

It ranks #1823 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +214%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
22
Official API · Oct 17, 2026
7-day growth
+10.0%
+2 weekly downloads
30-day growth
-56.9%
-29 weekly downloads
90-day growth
+214%
+15 weekly downloads
Rank
#1823
Among tracked npm listings

About @kitiumai/cyclic-dependency-fixer

cyclic-dependency-fixer

🔄 Detect and automatically fix cyclic dependencies in JavaScript/TypeScript projects with AI-powered analysis

cyclic-dependency-fixer is a lightweight, powerful tool that not only detects circular dependencies but also provides intelligent auto-fix strategies powered by AI (Claude, GPT-4). Get context-aware recommendations, automated refactoring code, and actionable insights.

Table of Contents

• Features • Installation • Quick Start • AI-Powered Features • Usage • Fix Strategies • Output Example • Architecture • Testing • Development • Advanced Usage • Contributing • License • Support

✨ Features

Core Features

• 🔍 Fast Detection - Uses Tarjan's algorithm for efficient cycle detection (O(V + E)) • 🛠️ Auto-Fix Strategies - Attempts to automatically fix cycles when safe • 📝 Manual Fix Guidance - Provides clear, actionable steps when auto-fix isn't possible • 🎯 Multiple Strategies - Dynamic imports, shared module extraction, and more • 📊 Clear Output - User-friendly CLI with colored output • 🔌 Extensible - Clean architecture allows custom fix strategies • 💪 Type-Safe - Written in TypeScript with strict typing • 🪶 Lightweight - Minimal dependencies, uses regex-based parsing • 📄 Enterprise Reports - Export JSON or SARIF for CI/CD and audits • 🛡️ Policy Guardrails - Enforce architectural boundaries before merging • 🧭 Deterministic Graphs - TypeScript project-aware parsing with tsconfig support and path resolution • 💾 Incremental Cache - Opt-in content-hash cache for stable CI timings and repeated runs • 🛟 Degraded-but-useful Results - Partial outputs with warning surfacing when some files fail to parse • 📈 Operational Insights - Metrics in CLI output (parser used, cache hits) for observability

🤖 AI-Powered Features (NEW!)

• Smart Strategy Selection - AI analyzes your code and recommends the best fix strategy • Codebase Pattern Learning - Understands your architecture and coding patterns • Intelligent Refactoring - Generates production-ready refactoring code • Root Cause Analysis - Explains WHY circular dependencies exist • Context-Aware Suggestions - Recommendations tailored to your codebase • Multiple AI Providers - Support for Claude (Anthropic) and GPT-4 (OpenAI)

🚀 Installation

Or use locally in your project:

⚡ Quick Start

Basic Usage (No AI)

With AI-Powered Analysis

Deterministic & scalable analysis

🤖 AI-Powered Features

Why Use AI?

Traditional static analysis can detect cycles but struggles with context. AI understands:

• Semantic relationships between modules • Your codebase's architecture (layered, hexagonal, clean architecture, etc.) • Common patterns you use (dependency injection, factory pattern, etc.) • Why cycles exist (shared types, bidirectional relationships, etc.)

Setup

1. Get an API Key (choose one): • Claude (Anthropic): https://console.anthropic.com/ • GPT-4 (OpenAI): https://platform.openai.com/api-keys

2. Set Environment Variable:

3. Or use CLI flag:

AI Features

1. Smart Strategy Selection

AI analyzes your code and recommends the best fix strategy:

Output:

2. Intelligent Code Generation

Get production-ready refactoring code:

Output:

3. Root Cause Analysis

Understand WHY cycles exist:

Output:

4. Architecture-Aware Recommendations

AI adapts to YOUR codebase patterns:

AI CLI Options

| Option | Description |

| --ai | Enable AI-powered analysis | | --ai-provider | Choose provider: anthropic or openai (default: anthropic) | | --ai-key | Provide API key directly (or use env var) | | --explain | Generate AI explanations of why cycles exist | | --generate-code | Generate complete refactoring code with AI |

Example Workflow

📖 Usage

CLI

Detect Cycles

Options:

• -d, --dir - Root directory to analyze (default: current directory) • -e, --extensions - File extensions to include (default: .js,.jsx,.ts,.tsx) • -x, --exclude - Patterns to exclude (comma-separated) • --include-node-modules - Include node_modules in analysis • --max-depth - Maximum depth for cycle detection (default: 50) • --config - Load shared defaults from cycfix.config.json • --format - Choose human or machine readable output • --output-file - Write the report to disk instead of stdout

Example:

Fix Cycles

Options:

• -d, --dir - Root directory to analyze • -e, --extensions - File extensions to include • -x, --exclude - Patterns to exclude • --dry-run - Preview fixes without modifying files • --no-backup - Don't create backup files • --auto - Automatically apply fixes without confirmation • --config - Load shared defaults from cycfix.config.json • --format - Emit CLI-friendly output or JSON/SARIF for CI • --output-file - Persist the report

Example:

⚙️ Configuration

Share defaults with your team by checking in a cycfix.config.json at the repo root:

CLI flags always win, so you can override config values per run (cycfix detect --format sarif --output-file .reports/cycfix.sarif).

🛡️ Policy Enforcement

Large codebases often need to enforce architectural boundaries (e.g., domain cannot import infrastructure). Define rules under policies.boundaries and cyclic-dependency-fixer will:

• Match edges using glob-style wildcards (*, **) • Annotate reports with the offending imports • Fail the command automatically when a violation of the configured severity is detected

You can optionally provide recommendedStrategies for each rule to guide reviewers toward the right remediation path.

📤 Enterprise Reporting

Need to feed results into GitHub Advanced Security, Azure DevOps, or custom dashboards? Use the structured reporters:

• JSON: optimized for custom ingestion pipelines • SARIF: drop directly into GitHub code scanning or Azure DevOps to annotate PRs

🧩 Programmatic API

The package exposes a small, focused API for embedding cyclic-dependency-fixer into your own tooling.

Quick Start Example

Public API Surface

From cyclic-dependency-fixer you can import:…

Description from the npm listing.

  • circular-dependency
  • cyclic-dependency
  • circular-dependencies
  • cyclic-dependencies
  • dependency-cycle
  • import-cycle
  • module-cycle
  • dependency-analysis
  • dependency-checker
  • dependency-detector
  • dependency-validator
  • code-quality
  • code-quality-tools
  • refactoring
  • refactoring-tools
  • auto-refactor
  • typescript
  • typescript-tools
  • javascript
  • javascript-tools

Where @kitiumai/cyclic-dependency-fixer sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 92, #4 (overall #1824)
All npm: every listing in weekly downloads order
PNG SVG
Webpack plugins247 listings · 13 pages · page 8, #15 (overall #155)
Webpack plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@kitiumai/cyclic-dependency-fixer weekly downloads on npm, last 90 days: 22 weekly downloads as of Oct 17, 2026, +214% over 90 days.@kitiumai/cyclic-dependency-fixerWeekly downloads on npm · Last 90 days22downloads / week+214% over 90 days020406080100120140160Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@kitiumai/cyclic-dependency-fixer weekly downloads on npm, last 90 days: 22 weekly downloads as of Oct 17, 2026, +214% over 90 days.
PNG SVG

7/30/90-day growth

@kitiumai/cyclic-dependency-fixer weekly downloads growth on npm: +10.0% over 7 days, -56.9% over 30 days, +214% over 90 days.@kitiumai/cyclic-dependency-fixerWeekly downloads growth on npm22downloads / week now7-day growth+2 weekly downloads+10.0%30-day growth-29 weekly downloads-56.9%90-day growth+15 weekly downloads+214%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@kitiumai/cyclic-dependency-fixer weekly downloads growth on npm: +10.0% over 7 days, -56.9% over 30 days, +214% over 90 days.
PNG SVG

Ranking history

@kitiumai/cyclic-dependency-fixer npm ranking history: currently #1823 (by weekly downloads).@kitiumai/cyclic-dependency-fixernpm ranking · by weekly downloads · Last 90 days#1823current rank#1821#1822#1823#1824#1825Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
@kitiumai/cyclic-dependency-fixer npm ranking history: currently #1823 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for @kitiumai/cyclic-dependency-fixer
Date (UTC)Weekly downloadsChange vs. previous
220
22+6
16-1
170
170
17+10
7-13
20-10
30-5
35-3
38-1
39-42
81-8
89—

Similar npm Webpack plugins plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@kitiumai/cyclic-dependency-fixer. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.