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

local-ai-reviewer

v1.0.1

Published

πŸ”’ Privacy-first AI code reviewer using local LLM models. Zero data transmission, 100% offline code analysis for security, performance, and bugs. Works with Ollama!

Readme

Local AI Reviewer πŸ”’

πŸ”’ Privacy-first AI code reviewer that never sends your code anywhere!

Analyze your code for security vulnerabilities, performance issues, and bugs using powerful local AI models. 100% offline, 100% private.

Automatically review your code for security vulnerabilities, performance issues, bugs, and maintainability problems using local AI models. No data leaves your machine!

Features

βœ… Local AI Models - Uses Ollama for complete privacy
βœ… Multi-language Support - JavaScript, TypeScript, Python, Java, C++, Go, Rust, PHP
βœ… Comprehensive Analysis - Security, performance, bugs, style, maintainability
βœ… Multiple Output Formats - Console, JSON, Markdown
βœ… Configurable - Customize patterns, severity levels, and review types
βœ… CLI & Programmatic - Use as command-line tool or library

Installation

npm install -g local-ai-reviewer

Prerequisites

Install Ollama for local AI models:

# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh

# Start Ollama service
ollama serve

# Pull a code model (recommended)
ollama pull codellama:7b

Quick Start

1. Initialize configuration:

ai-review init

2. Review your code:

ai-review review

3. Review specific directory:

ai-review review ./src

Configuration

The ai-review.json file created by init:

{
  "model": "codellama:7b",
  "temperature": 0.1,
  "maxTokens": 2000,
  "includePatterns": ["**/*.{js,ts,jsx,tsx,py,java}"],
  "excludePatterns": ["**/node_modules/**", "**/dist/**"],
  "reviewTypes": ["security", "performance", "bugs", "maintainability"],
  "outputFormat": "console",
  "severity": "medium"
}

CLI Commands

# Initialize config file
ai-review init

# Review current directory
ai-review review

# Review with custom options
ai-review review ./src --model codellama:13b --output markdown

# Save report to file
ai-review review --save report.md

# List recommended models
ai-review models

Review Types

  • Security - SQL injection, XSS, insecure patterns
  • Performance - Inefficient algorithms, memory leaks
  • Bugs - Logic errors, null pointer exceptions
  • Style - Code formatting, naming conventions
  • Maintainability - Complex functions, code smells
  • Complexity - Cyclomatic complexity, nested loops

Output Formats

Console (Default)

ai-review review

JSON

ai-review review --output json

Markdown

ai-review review --output markdown --save report.md

Recommended Models

| Model | Size | Description | |-------|------|-------------| | codellama:7b | 3.8GB | Fast, good for basic review | | codellama:13b | 7.3GB | Better accuracy, slower | | deepseek-coder:6.7b | 3.8GB | Excellent for code analysis | | starcoder:7b | 4.1GB | Good for multiple languages |

Programmatic Usage

import { AICodeReviewer, ReviewConfig } from 'local-ai-reviewer';

const config: ReviewConfig = {
  model: 'codellama:7b',
  temperature: 0.1,
  maxTokens: 2000,
  includePatterns: ['**/*.ts'],
  excludePatterns: ['**/*.test.ts'],
  reviewTypes: ['security', 'bugs'],
  outputFormat: 'json',
  severity: 'medium'
};

const reviewer = new AICodeReviewer(config);
const result = await reviewer.review('./src');
const report = await reviewer.generateReport(result);

console.log(report);

Example Output

πŸ€– AI Code Review Report
==================================================

πŸ“Š Summary:
  Files Reviewed: 15
  Total Issues: 8
  Execution Time: 45.2s

🎯 Issues by Severity:
  HIGH: 2
  MEDIUM: 4
  LOW: 2

πŸ” Detailed Issues:
--------------------------------------------------

1. Potential SQL Injection Vulnerability
   File: src/database.ts (Line 23)
   Type: security | Severity: HIGH

   Description:
   Direct string concatenation in SQL query without parameterization
   
   πŸ’‘ Suggestion:
   Use parameterized queries or prepared statements

Privacy & Security

  • βœ… 100% Local - All processing happens on your machine
  • βœ… No Data Transmission - Code never leaves your environment
  • βœ… Open Source - Full transparency
  • βœ… Offline Capable - Works without internet connection

Supported Languages

  • JavaScript/TypeScript
  • Python
  • Java
  • C/C++
  • Go
  • Rust
  • PHP
  • Ruby
  • C#
  • Swift
  • Kotlin

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

MIT

Support


Made with ❀️ for developers who value privacy