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 🙏

© 2025 – Pkg Stats / Ryan Hefner

deepreview

v1.11.0

Published

AI-powered CLI for code reviews and PR generation

Readme

AI-Powered Code Review CLI 🛠️

License: MIT Publish Package npm version

A intelligent CLI tool that leverages AI for code analysis, pull request generation, and interactive code reviews.

Demo

Features ✨

  • AI Code Analysis - Get detailed feedback on code quality and potential improvements
  • Git Diff Review - Analyze changes in real-time with review-diff command
  • PR Generation - Automatically generate PR descriptions from templates
  • Interactive Review - Chat-style interface for code feedback
  • Real-time Streaming - Get immediate AI responses as they're generated

Installation 📦

npm install -g deepreview

First Time Setup

After installation, run:

deepreview setup

To update your API key later, just run again:

deepreview setup

Configuration ⚙️

Customize your CLI behavior with:

deepreview setup

Available settings:

  • API Key (required)
  • Base URL (default: OpenAI's endpoint)
  • Default Model (gpt-4o, gpt-4, gpt-3.5-turbo, deepseek-chat, deepseek-reasoner)

View current config:

deepreview config

Usage 🚀

Analyze Code Quality

deepreview analyze path/to/file.ts
Output formats: text (default) or json
deepreview analyze src/ --format json

Review Git Changes

Review staged changes
git diff --staged | deepreview review-diff -
Review specific branch changes
git diff main | deepreview review-diff -

Generate PR Descriptions

From current changes
git diff --staged | deepreview generate-pr
From specific branch comparison
git diff origin/main | deepreview generate-pr

Interactive Code Review

deepreview review src/deepseek.ts

Development 🛠️

Clone repository
git clone https://github.com/yourusername/deepreview.git
cd deepreview
Install dependencies
npm install
Set up environment configuration
cp .env.example .env

Add your OpenAI API key to .env:

AI_API_KEY=your_api_key_here

Security 🔒

  • API keys are stored in your system's secure credential storage:
    • macOS: Keychain
    • Windows: Credential Vault
    • Linux: libsecret
  • No sensitive data is stored in plain text files
  • Uninstalling will automatically remove all credentials

This implementation:

  1. Uses OS-native secure credential storage
  2. Doesn't store API keys in plain text
  3. Automatically cleans up on uninstall
  4. Falls back to .env for development
  5. Maintains strict file permissions for any metadata files

The key benefits:

  • Credentials are encrypted at rest by the OS
  • Other applications can't access the credentials
  • No manual file permission management needed
  • Automatic cleanup when uninstalling