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

bit-cli-ai

v1.0.7

Published

Git with a brain - intelligent Git wrapper with AI-powered commits, ghost branches, and predictive merge

Readme

Bit CLI

Git with a brain - An intelligent Git wrapper with AI-powered commits, ghost branches, and predictive merge analysis.

CI npm version Node.js Version License: MIT License: MIT

Features

Level 1: Foundation

  • Transparent Passthrough - All git commands work through bit (bit status = git status)
  • Smart Init - Auto-detects project type and generates appropriate .gitignore
  • AI Commits - Generates meaningful commit messages using AI or rule-based analysis

Level 2: Architect

  • Ghost Branches - Hidden experimental branches that don't clutter your branch list
  • Virtual Merge - Preview merge conflicts before actually merging
  • .bit Directory - Intelligent metadata storage separate from .git

Level 3: Visionary

  • Symbol Tracking - Track function-level changes, not just file-level
  • Hot Zone Detection - Warns when teammates are editing the same functions

Installation

# Install globally
npm install -g bit-cli

# Or use npx
npx bit-cli <command>

Quick Start

# Initialize a new repository with smart defaults
bit init

# Make some changes, then commit with AI
git add .
bit commit

# Create a ghost branch for experiments
bit branch --ghost experiment

# Preview merge conflicts before merging
bit merge --preview feature-branch

# Check for team conflicts
bit hotzone

# Analyze code changes
bit analyze

Commands

| Command | Description | |---------|-------------| | bit init | Initialize repo with smart .gitignore and .bit directory | | bit commit | AI-powered commit message generation | | bit commit -m "msg" | Manual commit message | | bit branch --ghost <name> | Create a ghost (hidden) branch | | bit branch | List all branches including ghost branches | | bit checkout <branch> --ghost | Checkout a ghost branch | | bit merge --preview <branch> | Preview merge conflicts | | bit merge <branch> | Smart merge with conflict preview | | bit hotzone | Detect overlapping work with team | | bit analyze | Analyze code at function/symbol level | | bit <any-git-cmd> | Passthrough to git |

Configuration

Environment Variables

# Required for AI features
OPENAI_API_KEY=sk-your-key-here

# Optional
BIT_AI_MODEL=gpt-4o-mini
BIT_DEBUG=true
BIT_LOG_LEVEL=debug
BIT_VERBOSE=true

Global Configuration

Config stored in ~/.bit/config.json:

{
  "ai": {
    "provider": "openai",
    "model": "gpt-4o-mini",
    "maxTokens": 500,
    "temperature": 0.7
  },
  "git": {
    "ghostPrefix": "ghost/",
    "autoStage": false
  },
  "ui": {
    "colors": true,
    "spinners": true
  }
}

Project Configuration

Project-specific config in .bit/config.json overrides global settings.

Architecture

bit-cli/
├── src/
│   ├── index.js              # CLI entry point
│   ├── commands/             # Command implementations
│   │   ├── init.js
│   │   ├── commit.js
│   │   ├── branch.js
│   │   ├── merge.js
│   │   ├── hotzone.js
│   │   └── analyze.js
│   └── utils/                # Shared utilities
│       ├── ai.js             # AI service
│       ├── config.js         # Configuration management
│       ├── errors.js         # Error handling
│       ├── git.js            # Git operations
│       ├── logger.js         # Logging
│       └── validation.js     # Input validation
├── tests/                    # Test files
└── .github/workflows/        # CI/CD

Development

# Clone repository
git clone https://github.com/yourusername/bit-cli.git
cd bit-cli

# Install dependencies
npm install

# Run in development
npm run dev

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Lint code
npm run lint

# Format code
npm run format

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing)
  3. Commit your changes (bit commit)
  4. Push to the branch (git push origin feature/amazing)
  5. Open a Pull Request

License

MIT License - see LICENSE for details.