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

lucai-cli

v1.1.2

Published

A powerful, AI-driven code review CLI that provides deep, contextual feedback using GPT-4o and Gemini 1.5 Pro.

Readme

lucai

⚠️ Under Construction
This bot is still in active development. Features may be incomplete or subject to change. We're working hard to make it production-ready!

A powerful, AI-driven code review CLI that goes beyond static analysis to provide deep, contextual feedback.

Overview

lucai is a command-line tool designed for developers, consultants, and teams who want to elevate their code quality. It uses AI to analyze code for architectural soundness, developer ergonomics, and strategic design flaws, providing insights that traditional linters and static analysis tools often miss.

Features

  • AI-Powered Reviews: Get human-readable feedback on your code.
  • Flexible Analysis: Review entire directories, single files, or git diffs.
  • Multiple Output Formats: Choose from markdown, JSON, or inline comments.
  • Customizable: Use different AI models and custom prompts.
  • Project-Level Configuration: Define project-specific settings in a .lucai.json file for consistent reviews.

Handling Large Files

When lucai encounters a file that is too large for the selected AI model's context window, it automatically splits the file into smaller chunks. This allows lucai to review even very large files without running into context length issues. The chunks are processed individually and the feedback is then combined, giving you a complete picture of your code's quality.

Getting Started

Prerequisites

  • Node.js (v14 or higher)

Installation

  1. Clone or install the package:

    • From Source:
      git clone https://github.com/allglenn/lucai.git
      cd lucai
      npm install
      npm link
    • Via npm (once published):
      npm install -g lucai
  2. Configure your API Key: Run the configure command. You will be prompted to select an AI provider (OpenAI or Google) and enter the corresponding API key.

    lucai configure

    This will securely store your key for future use.

Generating API Keys

  • OpenAI:

    1. Go to the OpenAI API keys page.
    2. Click on "Create new secret key".
    3. Copy the key and paste it into the lucai configure prompt when you select openai.
  • Google Gemini:

    1. Go to the Google AI Studio.
    2. Click on "Create API key".
    3. Copy the key and paste it into the lucai configure prompt when you select google.

Usage

Review a directory:

lucai review --path ./src

Review a single file:

lucai review --file ./src/main.js

Review changed files in the last commit:

lucai review --diff

Review with a specific model:

lucai review --path ./src --model gemini-1.5-pro-latest

Review with a specific profile:

lucai review --profile security

Project-Level Configuration

You can configure lucai on a per-project basis by creating a .lucai.json file in your project's root directory. This file allows you to define default options and create custom review profiles.

Example .lucai.json:

{
  "model": "gemini-1.5-pro-latest",
  "output": "markdown",
  "ignore": [
    "dist/",
    "**/*.test.js"
  ],
  "reviewProfiles": {
    "default": "Analyze this code for architectural soundness, developer ergonomics, and strategic design flaws.",
    "security": "Analyze this code strictly for potential security vulnerabilities, such as injection flaws, broken authentication, and sensitive data exposure. Do not comment on style.",
    "performance": "Review this code for performance bottlenecks and suggest optimizations."
  }
}

When you run lucai review, the options in this file will be used as defaults. You can override them with command-line flags.

To use a specific review profile, use the --profile option:

lucai review --profile security --path ./src

To output the result to a markdown file:

bin/lucai.js review --profile security --path ./bin --output markdown --output-file security_review.md

Commands

| Command | Description | |-------------|-----------------------------------------------------------| | review | Perform an AI-enhanced code review on a directory or file. | | configure | Configure your AI provider (OpenAI or Google) and API key. | | help | Display the help guide. |

Review Command Options:

  • --path <path>: Path to a directory to scan.
  • --file <file>: Path to a single file to scan.
  • --diff: Review files changed in the last commit.
  • --profile <name>: Run a review with a specific profile from your .lucai.json.

For a full list of options for the review command, run:

lucai review --help

Author

Created by Glenn Allogho