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

devbrain-ai

v0.1.0

Published

Your AI-powered developer brain in the terminal

Downloads

12

Readme

🧠 DevBrain AI

The AI-powered developer terminal. No dashboards. No subscriptions. Just your terminal.

npm version npm downloads License: MIT Node.js TypeScript Powered by OpenRouter


DevBrain AI is a zero-friction CLI toolbox that brings the intelligence of frontier LLMs directly into your Git workflow. No browser tabs. No copy-pasting. No context switching.

It automates the repetitive, diagnoses the painful, and reviews the risky — all from a single command.


✨ Features

| Command | What it does | Status | | :--- | :--- | :---: | | brain commit | Analyzes your staged diff and generates a Conventional Commit message | 🟢 Stable | | brain doctor | Diagnoses shell errors and proposes executable fixes in a recursive loop | 🟢 Stable | | brain review | AI code review with severity triage on staged changes, branches, or files | 🟢 Stable |


🎬 Demo

brain commit — Generate commit messages from your staged diff

brain commit demo


brain review — AI code review with severity triage

brain review demo


brain doctor — Diagnose and fix terminal errors

brain doctor demo


🧠 Model-Agnostic by Design

DevBrain is not locked to any single AI provider or model. It routes all requests through OpenRouter, giving you access to every major LLM — free or paid — with a single API key.

# Use a powerful free model
brain config --model "qwen/qwen3-8b"

# Switch to GPT-4o for critical reviews
brain config --model "openai/gpt-4o"

# Use DeepSeek for coding tasks
brain config --model "deepseek/deepseek-r1:free"

Supported models include: GPT-4o, Claude 3.5 Sonnet, Qwen 3, DeepSeek R1, Llama 3, Gemma 3, and every other model on OpenRouter.


🚀 Getting Started

Prerequisites

Installation

npm install -g devbrain-ai

Configuration

Create a .env file in your project root:

OPENAI_API_KEY=sk-or-v1-xxxxxxxxxxxxxxxxxxxx
OPENAI_BASE_URL=https://openrouter.ai/api/v1
DEVBRAIN_PROVIDER=openai

Set your preferred model:

brain config --model "qwen/qwen3-8b"

⚠️ Never commit your .env file. It is already in .gitignore.


⚡ Quick Usage

# Generate a commit message from staged changes
git add .
brain commit

# Diagnose a failed command
brain doctor "npm install --legacy-peer-deps"

# Review staged changes before committing
brain review

# Review a specific file
brain review src/auth/middleware.ts

# Review against a branch with security focus
brain review --branch main --focus security

📐 Architecture

src/
├── commands/        # CLI command handlers (commit, doctor, review)
├── services/        # Prompt engineering and AI orchestration
├── providers/       # LLM provider adapters (OpenRouter/OpenAI-compatible)
├── utils/           # Git utilities, logger, spinner
└── index.ts         # CLI entry point (Commander.js)

The provider layer is intentionally thin. Adding support for a new LLM provider requires implementing a single chat() interface — nothing else changes.


📖 Documentation


🗺 Roadmap

  • [ ] brain review --interactive — Apply AI suggestions one by one
  • [ ] brain readme — Generate README from codebase
  • [ ] brain test — Generate unit tests from implementation
  • [ ] Multi-provider support (native Anthropic, Google Gemini)

📄 License

MIT © 2026 Xiaozhi (Steven) Xing