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

@houkanshan/copydiff

v0.1.3

Published

`copydiff` is a Bun + TypeScript helper that augments `git diff` output with copy/clone awareness using `jscpd` while preserving Git's moved-line coloring.

Readme

copydiff

copydiff is a Bun + TypeScript helper that augments git diff output with copy/clone awareness using jscpd while preserving Git's moved-line coloring.

  • Detect moved code (across files, using git color-moved)
  • Detect similar code (across files, using jscpd)

code from bluesky-social/social-app

Install

bun i -g @houkanshan/copydiff

Usage

Filter mode:

copydiff abc123...efg456

Generate HTML output:

copydiff base...head --html out.html

HTML output includes syntax highlighting, diff-style background blocks, and copy highlights with expandable source details.

Wrapper mode:

Options

  • --stdin read diff from stdin.
  • --html <path> write a light-mode HTML diff with copy highlights and expandable source details.
  • --no-fold-pure disable folding for pure copies.
  • --copy-color <spec> set copy highlight color using git color syntax (defaults to color.diff.newMoved).
  • --no-copy-color disable copy highlighting.
  • --pure-threshold <0..1> similarity threshold for pure copies (default 0.98).
  • --min-fold-lines <n> minimum lines to fold (default 12).
  • --min-lines <n> minimum lines for jscpd (default 8).
  • --min-tokens <n> minimum tokens for jscpd (default min-lines * 2).
  • --ignore <glob,glob> ignored globs for jscpd.
  • --cache <on|off> enable clone cache (default on).
  • --verbose log jscpd output.
  • --diff-config <force|respect> set git diff config mode for wrapper mode (default force).
  • --scan-scope <all|changed-types> scan the whole repo (all, default) or only files with extensions present in the diff (changed-types). Note: .gitignore is always honored for clone scanning.

Exit codes

  • 0 success
  • 2 invalid args
  • 3 jscpd failure

Local Development

bun install
bun link