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

bb-tools-for-ai

v1.0.0

Published

CLI tools for Bitbucket Server API automation — pull request management, code review workflows, and developer analytics

Readme

BB Tools for AI

CLI for Bitbucket Server API. Pull request management, code review workflows, and developer analytics from the terminal.

Requirements

  • Node.js 18+
  • Access to a Bitbucket Server instance
  • Personal Access Token with READ permissions

Quick Start

# Install globally
npm install -g bb-tools-for-ai

# Or run directly with npx (no install needed)
npx bb-tools-for-ai setup

# Setup your Bitbucket server connection
bb setup

# Start using
bb whoami
bb pr:list
bb reviews

Installation

npm (recommended)

npm install -g bb-tools-for-ai
bb setup

npx (no install)

npx bb-tools-for-ai setup
npx bb-tools-for-ai pr:list
npx bb-tools-for-ai reviews

From source

git clone https://github.com/witqq/bb-tools-for-ai.git
cd bb-tools-for-ai
npm install
npm link

After npm link, the bb command is available globally.

Configuration

Run the interactive setup wizard:

bb setup

The wizard will:

  1. Ask for your Bitbucket Server URL
  2. Auto-detect project and repository from git remote
  3. Prompt for your Personal Access Token

Configuration is saved to .bbconfig and .token in your current working directory.

Commands

User info

bb whoami                          # Current user
bb user:search john                # Search users

Pull requests

bb pr:list                         # Open PRs
bb pr:list --state MERGED -l 50   # Merged PRs
bb pr:list --author jdoe           # PRs by author
bb pr:list --all-repos             # Search all configured repos

bb pr:my                           # My open PRs
bb pr:my --state MERGED            # My merged PRs
bb reviews                         # PRs assigned for my review

PR details

bb pr:info 123                     # PR stats
bb pr:comments 123                 # All comments
bb pr:comments 123 --blocker       # BLOCKER comments only
bb pr:comments 123 --context       # With code context
bb pr:changes 123                  # Changed files
bb pr:commits 123                  # Commits
bb pr:diff 123                     # Diff
bb pr:merge-check 123              # Merge status
bb pr:build 123                    # CI status

PR commenting

bb pr:comment 123 "General comment"
bb pr:comment 123 "Critical!" --blocker
bb pr:comment:inline 123 "src/file.ts" 42 "Comment on line"
bb pr:comment:reply 123 456 "Reply text"

PR creation

bb pr:create --title "TASK-123 - Description" --target dev
bb pr:create --title "Title" -r reviewer1 -r reviewer2
bb pr:reviewer 123 --add username

Developer analytics

bb analyze:developer jdoe --limit=50 -o profile.json
bb analyze:reviewer jdoe --limit=100 -o comments.json

Repository browsing

bb repo:projects                   # List projects
bb repo:list MYPROJECT             # List repos in project
bb repo:branches                   # List branches
bb repo:browse src/                # Browse directory
bb repo:file src/index.ts          # Get file content
bb repo:clone PROJ repo-name       # Clone with token auth

Multi-repo search

Add repositories to ALL_REPOS in src/client.js, then use --all-repos:

bb pr:list --all-repos
bb pr:reviewed-by jdoe --all-repos
bb analyze:developer jdoe --all-repos

JSON output

All commands support --json for machine-readable output:

bb pr:list --json
bb pr:comments 123 --json

Debug mode

DEBUG=1 bb pr:info 123

Project structure

bb-tools-for-ai/
├── bb.js                 # CLI entry point
├── src/
│   ├── client.js         # API client (all HTTP calls)
│   ├── token.js          # Token management (encrypt/decrypt)
│   └── config.js         # Configuration (HOST, PROJECT, REPO)
├── scripts/
│   └── analysis/         # Analysis scripts
│       ├── developer-profile.js
│       └── reviewer-comments.js
├── .bbconfig             # Server config (not committed)
├── .token                # Encrypted token (not committed)
└── package.json

License

MIT