Catalog npm
PACKAGE EXPLORERView in registry

-ai-code-optimizer-

npm

AI-powered tool to scan and optimize Node.js code for performance.

aiclicode-optimizergroknodeopenaiperformance
Versions collected1
Direct dependencies13From release 1.0.1
Last observed20 Oct, 15:53 UTC

README

Current package documentation

AI Code Optimizer

AI Code Optimizer is a CLI tool that uses AI (OpenAI or Grok) to scan your Node.js codebase for performance issues and automatically suggests or applies fixes.

Features

  • 🚀 AI-Powered Scanning: Detects performance bottlenecks, anti-patterns, and inefficiencies.
  • 🤖 Multi-Model Support: Works with OpenAI (GPT-4) and xAI (Grok-2, Grok-3).
  • 🛠️ Auto-Fix: Interactively apply AI-suggested fixes directly to your code.
  • ⚙️ Configurable: use .env or .ai-optimizer-rc for flexible configuration.

Installation

npm install -g ai-code-optimizer

Usage

1. Configuration

Create a .env file in your project root:

# Choose your AI provider
AI_MODEL=grok  # or openai

# API Keys
GROK_API_KEY=your_xai_api_key
# OPENAI_API_KEY=your_openai_api_key

# Optional: Specific Model Version
# GROK_MODEL=grok-2

2. Run a Scan

To scan the current directory for issues:

ai-code-optimizer scan

The tool will analyze .js and .ts files, report issues, and offer to fix them.

3. Check Configuration

ai-code-optimizer config

Development

  1. Clone the repository.
  2. Install dependencies: npm install
  3. Run locally: npm run dev (requires ts-node)

License

ISC

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.1Registry latest12 Feb 202613

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
nddonman/ai-code-optimizer

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 15:53 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:43073aa40ad8d96079c3d3335dfe53ece1db38e1b0fa261b89bc98b692fe7132