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

@ganeshgaxy/bb-cli

v0.1.0

Published

A lightweight Bitbucket CLI that mirrors glab's UX

Downloads

111

Readme

bb - Bitbucket CLI

A lightweight Bitbucket CLI that mirrors glab's UX. Manage pull requests, pipelines, and more from your terminal.

Install

npm install -g @ganeshgaxy/bb-cli

Requires Node.js >= 18.

Quick Start

# Authenticate (supports App Passwords, Atlassian API Tokens, OAuth tokens)
bb auth login

# List open pull requests
bb pr list -R workspace/repo

# Create a pull request
bb pr create --title "Fix bug" --description "Fixes #123"

# Review, approve, merge
bb pr view 42
bb pr approve 42
bb pr merge 42 --strategy squash

# Monitor pipelines
bb ci list
bb ci logs 15

Authentication

bb supports three auth methods:

| Method | How to create | Auth type | |--------|--------------|-----------| | App Password | Personal settings > App passwords | Basic Auth | | Atlassian API Token | manage.atlassian.com > API tokens | Basic Auth (auto-detected via ATATT prefix) | | OAuth / Access Token | Workspace/Repo/Project settings > Access tokens | Bearer |

# Interactive
bb auth login

# Non-interactive
bb auth login -u [email protected] -t YOUR_TOKEN

# Environment variable (takes precedence)
export BB_TOKEN=your-token

# Verify
bb auth status

Credentials stored in ~/.config/bb-cli/config.json (mode 0600).

Commands

Pull Requests

bb pr list                         # List open PRs
bb pr create                       # Create PR (interactive)
bb pr view <id>                    # View PR details
bb pr diff <id>                    # View diff
bb pr comments <id>                # Read comments
bb pr comment <id> -m "LGTM"      # Add comment
bb pr approve <id>                 # Approve
bb pr unapprove <id>               # Remove approval
bb pr merge <id>                   # Merge
bb pr decline <id>                 # Close without merging
bb pr checkout <id>                # Checkout branch locally
bb pr update <id> --title "New"    # Update PR fields

Pipelines

Aliased as both bb pipeline and bb ci:

bb ci list                         # List recent pipelines
bb ci view <build#>                # View steps and status
bb ci run                          # Trigger pipeline
bb ci run -b main --pattern deploy # Trigger custom pipeline
bb ci stop <build#>                # Stop running pipeline
bb ci logs <build#>                # View all step logs
bb ci logs <build#> -s "Build"     # View specific step

Raw API

Escape hatch for any Bitbucket REST API v2 endpoint:

bb api /repositories/workspace/repo
bb api --method POST /path --field title="Bug"
bb api --paginate /path

Common Flags

| Flag | Description | |------|-------------| | -R, --repo workspace/repo | Specify repository (auto-detected from git remote) | | -F, --output json | JSON output for scripting | | -p, --page N | Page number | | -P, --per-page N | Items per page | | -w, --web | Open in browser |

License

MIT