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

jstar-reviewer

v2.4.4

Published

Local-First, Context-Aware AI Code Reviewer - Works with any language

Readme

J-Star Code Reviewer

Local-first, context-aware AI code reviewer powered by LlamaIndex + Groq.

Works with any language — TypeScript, Python, Rust, Go, you name it.

✨ Features

  • Local Vector Index — Embeddings stored locally, no external DB
  • Gemini Embeddings — Free tier friendly, no OpenAI key needed
  • Chunked Reviews — Handles large diffs without rate limits
  • Detective Engine — Deterministic checks for common issues
  • Dashboard Output — Professional review reports with fix prompts
  • Global CLI — Install once, use in any project

🚀 Quick Install

Option 1: Global CLI (Recommended)

# Install globally
npm install -g jstar-reviewer

# In any project directory:
jstar setup      # Create config files
jstar init       # Index the codebase
jstar review     # Review staged changes

Option 2: One-Curl (Adds to current project)

curl -fsSL https://raw.githubusercontent.com/JStaRFilms/jstar-code-review/v2.0.0/setup.js | node

After Install:

  1. Check Config: The tool now auto-creates .env.example and .jstar/ when you run it.
  2. Add Keys: Copy .env.example.env.local and add your GEMINI_API_KEY and GROQ_API_KEY.
  3. Index: Run jstar init (or pnpm run index:init) to build the brain.
  4. Review: Stage changes (git add) and run jstar review (or pnpm run review).

For a detailed walkthrough, see ONBOARDING.md.


git diff --staged
       │
       ▼
┌──────────────────┐
│  Detective       │  ← Static analysis (secrets, console.log, "use client")
│  Engine          │
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│  Local Brain     │  ← Gemini embeddings via LlamaIndex
│  (Retrieval)     │
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│  Chunked Review  │  ← Splits diff by file, delays between calls
│  Queue           │
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│  Groq LLM        │  ← moonshotai/kimi-k2-instruct-0905
│  (The Judge)     │
└────────┬─────────┘
         │
         ▼
   📝 Review Report

🚀 Quick Start

1. Install Dependencies

pnpm install

2. Set Environment Variables

Create .env.local:

GEMINI_API_KEY=your_gemini_key
GROQ_API_KEY=your_groq_key

3. Index Your Codebase

pnpm run index:init

4. Review Staged Changes

git add <files>
pnpm run review

📁 Project Structure

scripts/
├── indexer.ts          # Scans codebase, builds vector index
├── reviewer.ts         # Orchestrates review pipeline
├── detective.ts        # Static analysis engine
├── gemini-embedding.ts # Google Gemini adapter
└── mock-llm.ts         # LlamaIndex compatibility stub

.jstar/
└── storage/            # Persisted embeddings (gitignored)

docs/features/
├── architecture-v2.md  # Full architecture docs
├── detective.md        # Static analysis rules
├── analyst.md          # LLM reviewer (The Judge)
└── ...

⚙️ Configuration

Edit scripts/reviewer.ts:

const MODEL_NAME = "moonshotai/kimi-k2-instruct-0905";
const MAX_TOKENS_PER_REQUEST = 8000;
const DELAY_BETWEEN_CHUNKS_MS = 2000;

📚 Documentation


Built with ⚡ by J Star Studios