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

codexai-cli

v1.0.0

Published

A CLI tool for AI-powered code analysis and automated code review using AI.

Readme

CodeAI CLI

A CLI tool for AI-powered code analysis and automated code review using AI.

Version: 1.0.0

Installation

From npm (Recommended)

# Install globally
npm install -g @codexai/cli

# Use immediately
codeai login
codeai analyze .

From Source (Development)

# Clone and install
git clone https://github.com/codeai-org/cli.git
cd cli
npm install
npm run build
npm link

# Use the linked command
codeai --help

What This CLI Actually Does

Available Commands

  1. codeai login - Authenticate via web browser

    • Opens your browser to CodeAI web app for authentication
    • Saves API key locally for future use
    • Requires valid CodeAI web app URL
  2. codeai logout - Remove stored authentication

    • Deletes the locally stored API key
    • Signs you out of the CLI
  3. codeai analyze <paths...> - Upload and analyze code

    • Compresses specified files/folders into a ZIP
    • Uploads to CodeAI API for analysis
    • Supports project naming and task types
    • Opens results in browser when complete

Analyze Command Options

codeai analyze [options] <paths...>

Arguments:
  paths                 Files or folders to analyze (required)

Options:
  -p, --project <name>  Assign a name to this analysis project
  -t, --task <type>     Analysis task type (default: "REVIEW")
  -h, --help           Show help for analyze command

Supported Task Types: REVIEW, UNIT_TESTS (and any other types supported by your CodeAI API)

Installation & Setup

Quick Start (End Users)

# Install from npm
npm install -g @codexai/cli

# Start using immediately - no configuration needed!
codeai login
codeai analyze .

For Developers

Source code is available for licensed partners. Contact [email protected] for access.

Usage Examples

Basic Workflow

# 1. Login first
codeai login

# 2. Analyze current directory  
codeai analyze .

# 3. Analyze specific files
codeai analyze src/ package.json

# 4. Analyze with project name
codeai analyze . --project "My Project"

# 5. Analyze with specific task
codeai analyze . --task UNIT_TESTS

# 6. Logout when done
codeai logout

Check Available Commands

codeai --help
codeai analyze --help

How It Works

  1. Authentication: Uses web-based OAuth flow

    • Generates unique session ID
    • Opens browser to web app with session
    • Polls API for completion
    • Stores API key locally in ~/.codeai/config.json
  2. File Processing: Creates ZIP archive

    • Compresses specified paths
    • Handles both files and directories
    • Shows compression progress and size
  3. Analysis: Uploads to API

    • Sends ZIP with metadata headers
    • Triggers analysis task
    • Polls for completion
    • Opens results in browser

Configuration Files

  • Config: ~/.codeai/config.json (API key storage)
  • Environment: .env (API URLs and settings)

Known Issues & Limitations

  1. Environment Dependencies: CLI fails if required env vars not set
  2. Network Dependent: Requires internet connection for all operations
  3. ES Module Warning: Shows CommonJS/ES Module compatibility warning
  4. No Offline Mode: Cannot work without API connectivity
  5. Browser Required: Login requires browser for web authentication

Support & Contact

For technical support, feature requests, or enterprise inquiries:

Troubleshooting

CLI Won't Start

  • Ensure you've run npm install and npm run build
  • Check if Node.js version is 18+ (see package.json engines)

Login Fails

  • Check your internet connection
  • Verify the CodeAI web app is accessible
  • Try opening the login URL manually in your browser

Analysis Fails

  • Ensure you're authenticated first (node dist/index.js login)
  • Check your internet connection
  • Verify the files/folders you're trying to analyze exist

This README reflects the actual current functionality of the CLI as implemented.