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

stkd-cli

v0.1.0

Published

Stack CLI - Stacked diffs for Git (gt binary)

Readme

stkd-cli

npm License

Stack CLI distributed via npm — Install the gt binary for managing stacked pull requests on GitHub and GitLab.

Stack is an open-source, Graphite-compatible CLI that breaks large changes into small, reviewable PRs that stay in sync automatically. This npm package downloads the correct prebuilt binary for your platform (macOS, Linux, Windows) and installs it as the gt command.


What is Stack?

Large pull requests are hard to review. Stacked diffs let you split work into a chain of dependent branches, each with its own focused PR:

main
 └── feature/auth-base      PR #1: Core authentication
      └── feature/auth-oauth    PR #2: OAuth support (depends on #1)
           └── feature/auth-2fa     PR #3: 2FA (depends on #2)

When you update a branch, Stack automatically rebases all dependent branches. When PRs merge, the stack collapses cleanly.

Why Stacked Diffs?

| Traditional PRs | Stacked Diffs | |----------------|---------------| | One large PR with many changes | Multiple small, focused PRs | | Reviewers overwhelmed | Easy to review incrementally | | All-or-nothing merging | Land changes as they're approved | | Blocked waiting for review | Unblock yourself, keep coding |

Features

  • Auto-restack — Edit any branch, all dependents rebase automatically
  • GitHub + GitLab — Full support for both platforms, including self-hosted GitLab
  • Stack-aware submit — One command creates PRs for your entire stack
  • Interactive TUI — Keyboard-driven terminal UI for browsing stacks
  • MCP Server — AI agent integration via Model Context Protocol
  • Undo/redo — Recover from mistakes with gt undo
  • Graphite compatible — Drop-in replacement for gt commands

Installation

Global install

npm install -g stkd-cli

With npx (no install)

npx stkd-cli log
npx stkd-cli submit --stack

Local install (for Node.js projects)

npm install --save-dev stkd-cli
npx gt init

Quick Start

# Initialize in your repository
gt init

# Authenticate with GitHub or GitLab
gt auth --github

# Create a stack
gt create feature/step-1
gt create feature/step-2
gt create feature/step-3

# Submit all as PRs
gt submit --stack

Platform Support

  • macOS (Intel & Apple Silicon)
  • Linux (x86_64 & aarch64)
  • Windows (x86_64)

If a prebuilt binary is not available for your platform, the installer falls back to building from source with cargo.

Node.js API

const { run, spawn, getBinaryPath } = require('stkd-cli');

// Run a command and get output
const output = run(['log', '--json']);
console.log(JSON.parse(output));

// Spawn interactively
spawn(['sync']);

// Get binary path
console.log(getBinaryPath());

Documentation

Full documentation at docs.neullabs.com/stkd.

License

Apache-2.0. See LICENSE for details.

Built by Neul Labs.