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

bugless-cli

v1.0.1

Published

AI-powered code review CLI for BugLess

Readme

BugLess CLI

npm version Node.js

AI-powered code review directly in your terminal. Get instant feedback on your code before committing.

Installation

npm install -g bugless-cli

Quick Start

# Interactive mode - guided review selection
bugless

# Review changes against main branch
bugless -b main

# Review uncommitted changes
bugless -u

# Review with security focus
bugless -b main -p security

Tech Stack

  • Runtime: Node.js 18+
  • UI Framework: Ink (React for CLIs)
  • Git Integration: simple-git
  • Validation: Zod
  • Config Storage: conf

Features

| Feature | Description | |---------|-------------| | Interactive Mode | Guided menu to select review type | | Branch Diff | Review changes between branches (PR-style) | | Uncommitted Changes | Review staged and unstaged changes | | Commit Review | Analyze a specific commit | | Custom Code | Paste and review arbitrary code | | Review Presets | Focused reviews (security, performance, etc.) | | Real-time Streaming | Watch the AI review as it generates |

Usage

Review Modes

# Compare current branch against target (PR-style review)
bugless -b main
bugless --branch develop

# Review all uncommitted changes
bugless -u
bugless --uncommitted

# Review a specific commit
bugless -c abc1234
bugless --commit abc1234

# Custom code review with instructions
bugless -x
bugless --custom

Review Presets

Presets adjust the AI's focus area:

bugless -b main -p <preset>
bugless --uncommitted --preset <preset>

| Preset | Focus | |--------|-------| | standard | Balanced review (default) | | security | Vulnerabilities, injection, auth issues | | performance | Efficiency, memory, complexity | | quick | Critical issues only | | thorough | Comprehensive deep analysis |

Authentication

# Login via browser (opens OAuth flow)
bugless login

# Logout and clear credentials
bugless logout

Configuration

# Set custom API endpoint
bugless config --api-url https://api.bugless.dev

# View current configuration
bugless config --show

Architecture

┌────────────────────────────────────────────────────┐
│                    CLI Application                  │
├────────────────────────────────────────────────────┤
│                                                    │
│  ┌──────────────┐       ┌───────────────────────┐  │
│  │    Modes     │       │      Components       │  │
│  │              │       │                       │  │
│  │  - Branch    │──────►│  - ReviewDisplay      │  │
│  │  - Uncommit  │       │  - DiffViewer         │  │
│  │  - Commit    │       │  - ProgressIndicator  │  │
│  │  - Custom    │       │  - ErrorBoundary      │  │
│  └──────┬───────┘       └───────────────────────┘  │
│         │                                          │
│         ▼                                          │
│  ┌──────────────────────────────────────────────┐  │
│  │                   Services                    │  │
│  │                                               │  │
│  │  GitService ─── API Service ─── ConfigStore  │  │
│  └──────────────────────────────────────────────┘  │
│         │                    │                     │
└─────────┼────────────────────┼─────────────────────┘
          │                    │
          ▼                    ▼
   ┌─────────────┐      ┌─────────────┐
   │  Git Repo   │      │ Backend API │
   │ (simple-git)│      │   (SSE)     │
   └─────────────┘      └─────────────┘

Project Structure

cli/
├── src/
│   ├── index.tsx           # Entry point & CLI args
│   ├── app.tsx             # Main application component
│   │
│   ├── modes/              # Review mode implementations
│   │   ├── branch.tsx      # Branch diff review
│   │   ├── uncommitted.tsx # Uncommitted changes review
│   │   ├── commit.tsx      # Single commit review
│   │   └── custom.tsx      # Custom code review
│   │
│   ├── components/         # Ink UI components
│   │   ├── review-display.tsx
│   │   ├── diff-viewer.tsx
│   │   └── ...
│   │
│   ├── services/           # Core services
│   │   ├── git.service.ts  # Git operations
│   │   ├── api.service.ts  # Backend communication
│   │   └── config.service.ts
│   │
│   ├── hooks/              # React hooks
│   ├── types/              # TypeScript definitions
│   ├── schemas/            # Zod validation
│   ├── prompts/            # AI prompts & presets
│   └── utils/              # Helper functions
│
├── dist/                   # Compiled output
├── package.json
├── tsconfig.json
└── tsup.config.ts          # Build configuration

Development

Setup

# Clone and navigate
git clone https://github.com/ProgramadoresSemPatria/HB03-2025_bugless.git
cd HB03-2025_bugless/cli

# Configure environment
cp .env.example .env

# Install dependencies
npm install

# Start in watch mode
npm run dev

Environment Variables

# Backend API URL
BUGLESS_API_URL=http://localhost:3000

# Frontend URL (for browser-based auth)
BUGLESS_WEB_URL=http://localhost:3001

# Use mock data (no backend required)
BUGLESS_USE_MOCK=true

Scripts

npm run dev       # Watch mode with hot reload
npm run build     # Production build
npm run start     # Run compiled version
npm run typecheck # TypeScript validation
npm run lint      # ESLint check

Testing Locally

# Build and link globally
npm run build
npm link

# Now use 'bugless' command anywhere
bugless --help

Publishing

# Bump version
npm version patch|minor|major

# Build and publish
npm run build
npm publish --access public

License

MIT