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

branchos

v2.1.2

Published

Branch-based AI-assisted development workflow management

Downloads

245

Readme

BranchOS

Branch-based AI-assisted development workflow management for Claude Code.

The Problem

When multiple developers use AI-assisted tools (like Claude Code) in the same repository, their planning and execution state collides. AI-generated plans, decisions, and progress tracking get overwritten, become outdated, or conflict with each other.

The Solution

BranchOS isolates planning and execution state per Git branch while maintaining a shared understanding of the codebase. Each developer gets their own workstream with independent phases, plans, and progress tracking — without corrupting anyone else's state.

v2 adds a project-level planning layer: ingest an Amazon-style PR-FAQ, generate a roadmap with milestones and features, sync to GitHub Issues, and create feature-aware workstreams — all through Claude Code slash commands.

Installation

npm install -g branchos

Quick Start

1. Initialize BranchOS in your repo

branchos init

Creates the .branchos/ directory structure, auto-commits, and installs all slash commands into Claude Code.

2. Generate the codebase map

In Claude Code, run:

/branchos:map-codebase

This analyzes your repository and generates shared knowledge files (architecture, modules, conventions, stack, concerns) that all workstreams can reference.

3. (Optional) Set up project-level planning

# Ingest a PR-FAQ document
/branchos:ingest-prfaq

# Generate roadmap with milestones and features
/branchos:plan-roadmap

# Sync features to GitHub Issues
/branchos:sync-issues

4. Create a feature branch and workstream

git checkout -b feature/add-auth

In Claude Code:

/branchos:create-workstream

BranchOS auto-derives the workstream ID from the branch name (feature/add-authadd-auth). You can link to a feature with --feature <id> or --issue #N.

5. Run the three-phase workflow

Each phase follows a Discuss → Plan → Execute cycle:

# In Claude Code:

# Step 1: Define the work
/branchos:discuss-phase Add JWT authentication to the API

# Step 2: Create the implementation plan
/branchos:plan-phase

# Step 3: (implement your changes, then) Track progress
/branchos:execute-phase

6. Monitor and manage

# View all workstreams and their status
/branchos:status

# List all workstreams
/branchos:list-workstreams

# View features from the feature registry
/branchos:features

# Archive a completed workstream
/branchos:archive

From the terminal:

# Check if codebase map needs refreshing
branchos map-status

# Compare planned vs actual file changes
branchos check-drift

# Detect file conflicts between active workstreams
branchos detect-conflicts

CLI Commands

| Command | Description | |---------|-------------| | branchos init | Initialize BranchOS and install slash commands | | branchos install-commands [--uninstall] | Install/remove Claude Code slash commands | | branchos status [--all] | Show all workstreams and their state | | branchos map-status | Check codebase map freshness | | branchos check-drift [--phase N] | Compare planned vs actual changes | | branchos detect-conflicts [--all] | Find file conflicts between workstreams |

Claude Code Slash Commands

| Command | Description | |---------|-------------| | /branchos:map-codebase | Generate or refresh the shared codebase map | | /branchos:context | Load workstream context for the current phase | | /branchos:create-workstream | Create a workstream for the current branch | | /branchos:list-workstreams | List all workstreams and their status | | /branchos:discuss-phase | Create discussion context for a phase | | /branchos:plan-phase | Create implementation plan for a phase | | /branchos:execute-phase | Track execution progress for a phase | | /branchos:status | Show dashboard with workstream status, drift, and conflicts | | /branchos:archive | Archive a completed workstream | | /branchos:ingest-prfaq | Ingest a PR-FAQ document for project planning | | /branchos:plan-roadmap | Generate roadmap and features from ingested PR-FAQ | | /branchos:refresh-roadmap | Refresh roadmap when the PR-FAQ has been updated | | /branchos:features | List features or view feature details | | /branchos:sync-issues | Push feature definitions to GitHub Issues |

Documentation

Requirements

  • Node.js >= 20
  • Git repository
  • Claude Code (for slash commands)

License

MIT