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

code-review-genius

v1.0.1

Published

AI-powered CLI developer assistant using locally hosted LLMs through Ollama

Readme

Code Genius

AI-powered CLI developer assistant — 100% local, powered by Ollama

Code Genius leverages locally hosted Large Language Models through Ollama to provide intelligent code analysis, repository understanding, code review, documentation generation, and developer productivity features directly from the terminal.

Your code never leaves your machine. No API keys. No cloud dependencies. No data transmission.

⚡ Quick Start

# Install globally
npm install -g code-genius

# Initialize in your project
cd your-project
code-genius init

The init wizard will:

  • Detect your operating system
  • Verify Ollama installation
  • Install required models (Qwen Coder + Nomic Embed)
  • Generate local configuration
  • Validate everything works

📋 Commands

Code Analysis

| Command | Description | |---|---| | code-genius review <file> | AI-powered code review with focus areas | | code-genius explain <file> | Detailed code explanation | | code-genius refactor <file> | Refactoring suggestions | | code-genius analyze | Project structure & architecture analysis |

Code Generation

| Command | Description | |---|---| | code-genius test <file> | Generate unit tests | | code-genius doc <file> | Generate documentation | | code-genius commit-msg | Generate commit messages from staged changes |

Repository Intelligence (RAG)

| Command | Description | |---|---| | code-genius index | Index your repository for semantic search | | code-genius ask "question" | Ask questions about your codebase | | code-genius chat | Interactive AI chat session |

Configuration

| Command | Description | |---|---| | code-genius init | Setup wizard | | code-genius config list | Show current configuration | | code-genius config set <key> <value> | Update a setting |

🔍 Examples

# Review code for security issues
code-genius review src/auth.js --focus security

# Explain a specific function
code-genius explain src/utils.js --start 10 --end 50

# Generate tests with Vitest
code-genius test src/helper.js --framework vitest --output tests/helper.test.js

# Generate a commit message (Conventional Commits)
code-genius commit-msg --conventional

# Index your repo and ask questions
code-genius index
code-genius ask "how does the authentication flow work?"

# Start interactive chat with RAG
code-genius chat --rag

⚙️ Configuration

Configuration is stored at two levels:

  • Global: ~/.config/code-genius/config.json
  • Project: .code-genius/config.json (project overrides global)

Key settings:

| Key | Default | Description | |---|---|---| | model | qwen2.5-coder:7b | LLM for code tasks | | embeddingModel | nomic-embed-text | Embedding model | | ollamaUrl | http://localhost:11434 | Ollama server URL | | temperature | 0.3 | LLM temperature | | topK | 5 | RAG retrieval results |

🏗️ Architecture

Developer → Code Genius CLI → Ollama Local API → LLM
                  ↓
         Repository Scanner → Chunker → Embeddings → Vector Index → RAG

🔒 Security & Privacy

  • ✅ 100% local execution
  • ✅ No source code transmission
  • ✅ No API keys required
  • ✅ No cloud dependencies
  • ✅ Suitable for proprietary codebases

📦 Requirements

  • Node.js 18+
  • Ollama installed and running (ollama serve)
  • ~5GB disk space for default models

License

MIT