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

ahmed-precision-diffs

v1.3.0

Published

`@pierre/diffs` is an open source diff and file rendering library built on [Shiki](https://shiki.style/). It's super customizable and packed with the features you need. Made with love by [The Pierre Computer Company](https://pierre.computer). Available as

Downloads

445

Readme

Diffs, from Pierre

@pierre/diffs is an open source diff and file rendering library built on Shiki. It's super customizable and packed with the features you need. Made with love by The Pierre Computer Company. Available as vanilla JavaScript and React components.

View examples and read documentation on Diffs.com.

Features

  • Diff file versions, patches, and arbitrary files
  • Split or stacked layout
  • Automatically adapts to Shiki themes
  • Supports light and dark mode
  • Options for diff highlight styles, in-line highlighting, wrapping, line numbers, and more
  • Supports custom fonts and font-feature-settings
  • Flexible annotation framework for injecting comments, annotations, and more
  • Add your own accept/reject changes UI
  • Select and highlight lines

Install

bun i @pierre/diffs

Development

Technically you can use the package manager of your choice, but we use bun.

# From the root of the mono repo: setup dependencies
bun install

# Start the demo vite test server from root
bun run demo:dev

# To run the docs from root
bun run docs:dev

Testing

# Run tests and related command from within the package directory
bun test

# Update snapshots
bun test --update-snapshots

# Type checking
bun run tsc

Tests are located in the test/ folder and use Bun's native testing framework with snapshot support.

Publishing

Applicable to the Pierre team only.

# You may need to login with npm first:
npm login

# Always run publish from within the package directory
cd packages/diffs
bun publish

Building Icons

For Pierre team only.

To build all our SVG icons from Figma there's a couple preparation steps that you need to run first.

Perform a full export of all Published Icons the Pierre Design Figma file

Do this by selecting all the icons but not the art board and in the bottom right click Export XXX Layers and make sure to point it to a ./svg folder at the root level of this project

Once that's done, simply run:

bun run icons:build

This will run a full build of all the icons into ./apps/docs/components/icons/icons

Then make sure to check in any changes needed