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

@mkushka/dell-brightness-sync

v1.0.3

Published

A zero-dependency CLI tool to automatically sync an external Dell monitor's brightness with the Mac's built-in display using m1ddc on Apple Silicon.

Readme

Dell Monitor Brightness Sync

TL;DR Automatic Setup

Just want it to work instantly? Run this script in your terminal to automatically install prerequisites, the package globally, and set it up to run in the background forever using PM2:

bash <(curl -sL https://raw.githubusercontent.com/kushkamisha/dell-brightness-sync/main/install.sh)

Overview

A lightweight, zero-dependency Node.js CLI tool that automatically synchronizes the brightness of your external Dell monitor with your MacBook's built-in display. Built specifically for Apple Silicon Macs.

It runs quietly in the background, checking your built-in screen's brightness. When you adjust your MacBook's brightness using the keyboard, the external monitor will smoothly transition to match it!

Prerequisites

This tool relies on macOS's native corebrightnessdiag for sensing the built-in display and m1ddc for controlling the Dell display via hardware DDC/CI commands.

  1. Apple Silicon Mac (M1/M2/M3/M4)
  2. Homebrew installed
  3. m1ddc installed via Homebrew:
    brew install m1ddc

Manual Installation

You can run this directly without installing it globally, or install it on your system for continuous background use.

Option 1: Run via npx (No install required)

npx @mkushka/dell-brightness-sync

Option 2: Install Globally

npm install -g @mkushka/dell-brightness-sync

Then run simply:

dell-brightness-sync

Manual Background Daemon Setup (PM2)

If you didn't use the TL;DR script, we recommend using PM2 to keep it running silently at all times:

# Start the background sync daemon
npx pm2 start dell-brightness-sync --name "dell-brightness-sync"

# Stop the daemon
npx pm2 stop dell-brightness-sync

# Make it auto-start whenever your Mac reboots
npx pm2 startup && npx pm2 save

How It Works

  1. Identifies your external Dell monitor via m1ddc display lists.
  2. Polls your internal Mac screen's real brightness directly from Apple's /usr/libexec/corebrightnessdiag sensor every 1 second.
  3. Automatically triggers a smooth, non-jarring easing transition to fade your external Dell screen brightness to perfectly match the internal screen.

Testing

Due to the script's heavy dependency on direct local macOS hardware communication and connected physical displays, automated CI tests are not practical. The recommended testing methodology is manual execution. A smoke test is provided to verify code syntax:

npm test

License

MIT