Catalog npm
Back to packageRELEASE DETAILS

1.0.1

npm

-ai-code-optimizer-

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

aiclicode-optimizergroknodeopenaiperformance
Published12 Feb 2026
Direct dependencies13
Transitive dependenciesNot calculated

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.

Declared dependencies 13

Native requirements
13 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^25.2.3runtime
chalk
Environment
{
  "local_name": "chalk",
  "alias": false,
  "peer_metadata": null
}
^4.1.2runtime
commander
Environment
{
  "local_name": "commander",
  "alias": false,
  "peer_metadata": null
}
^14.0.3runtime
dotenv
Environment
{
  "local_name": "dotenv",
  "alias": false,
  "peer_metadata": null
}
^16.6.1runtime
figlet
Environment
{
  "local_name": "figlet",
  "alias": false,
  "peer_metadata": null
}
^1.10.0runtime
glob
Environment
{
  "local_name": "glob",
  "alias": false,
  "peer_metadata": null
}
^8.1.0runtime
inquirer
Environment
{
  "local_name": "inquirer",
  "alias": false,
  "peer_metadata": null
}
^8.2.7runtime
openai
Environment
{
  "local_name": "openai",
  "alias": false,
  "peer_metadata": null
}
^6.21.0runtime
ora
Environment
{
  "local_name": "ora",
  "alias": false,
  "peer_metadata": null
}
^5.4.1runtime
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^10.9.2runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.9.3runtime
@types/glob
Environment
{
  "local_name": "@types/glob",
  "alias": false,
  "peer_metadata": null
}
^8.1.0development
@types/inquirer
Environment
{
  "local_name": "@types/inquirer",
  "alias": false,
  "peer_metadata": null
}
^8.2.12development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-4a4lulMEbVZL+xqVXQ9GwSIorv9WnGKW7mvIG3w0JdlXmVveiEpO77zqv1S4CEJXOqqCS1fCCGA8uECpquhTwQ==",
  "shasum": "fa8ff0bd2bebda45db1dbedd410589b10e16077c",
  "tarball": "https://registry.npmjs.org/-ai-code-optimizer-/-/-ai-code-optimizer--1.0.1.tgz",
  "fileCount": 10,
  "unpackedSize": 11822,
  "signatures": [
    {
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
      "sig": "MEQCID7X5C34oNB64uc7GtnUU4b60DFkzeRcYXftS+eTmLzoAiBEBzqcAWLYnmv4rSzJmO8/v5/GNe8saOvPSGtU9SzzgA=="
    }
  ]
}

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_version:ee5315d46a49b4f23dd392b7902592fcafc0eb79b78fc4f92a42c6d58ccf35de

Other collected versions

View all collected versions →