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

@dbalabka/notify-send-wsl

v0.1.1

Published

WSL helper that shows Windows toast notifications from the shell via powershell.exe.

Downloads

26

Readme

notify-send-wsl

Send native Windows toast notifications directly from WSL.

notify-send-wsl is a small dependency-light CLI that runs inside WSL and forwards notifications through powershell.exe. It works well as a lightweight notify-send replacement for shell scripts, local tooling, and agent hooks.

✨ Quick start

Run it once with npx:

npx @dbalabka/notify-send-wsl "Hello from WSL" "It works"

💡 Why use it

  • Native Windows toast notifications from WSL
  • No setup beyond WSL and powershell.exe
  • Works well for scripts, CI helpers, Codex, and Claude hooks

📋 Requirements

  • WSL on Windows
  • powershell.exe available in PATH

📦 Installation

npx

npx @dbalabka/notify-send-wsl "Installed" "Ready to use"

Global npm install

npm install -g @dbalabka/notify-send-wsl
notify-send-wsl "Installed" "Ready to use"

Optional alias for Linux-style calls:

alias notify-send=notify-send-wsl

🚀 Usage

notify-send-wsl [OPTIONS] <summary> [body]

🛠 Supported options

  • -u, --urgency=LEVEL with low, normal, or critical
  • -t, --expire-time=TIME_MS
  • -i, --icon=ICON
  • -a, --app-name=APP_NAME
  • -c, --category=TYPE[,TYPE...]
  • -h, --hint=TYPE:NAME:VALUE
  • --agent=auto|codex|claude
  • -?, --help

🧪 Examples

Basic notification:

notify-send-wsl "Build complete" "All checks passed"

Critical notification:

notify-send-wsl -u critical "Build failed" "Check CI logs"

App logo image:

notify-send-wsl \
  -i /mnt/c/Windows/Web/Screen/img100.jpg \
  "Build complete" \
  "All checks passed"

🤖 Agent integration

From Codex JSON payload:

notify-send-wsl --agent=codex '{"title":"Codex task done","message":"Implemented feature"}'

Codex config:

notify = ["npx", "@dbalabka/notify-send-wsl", "--agent", "codex"]

Codex event compatibility:

  • type must be agent-turn-complete; other event types are ignored
  • title becomes Codex: <last-assistant-message> with fallback Turn Complete!
  • body is derived from input-messages, then common body-like fields
  • category/group becomes codex-<thread-id> when available

From Claude JSON payload on stdin:

cat claude-event.json | notify-send-wsl --agent=claude -

Claude config:

{
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "npx @dbalabka/notify-send-wsl --agent claude"
          }
        ]
      }
    ]
  }
}

Raw JSON string mode:

notify-send-wsl --agent=auto '{"title":"Done","message":"Task finished"}' 'ignored'

When --agent=... is used, the first positional argument is treated as JSON input. Use - to read JSON from stdin. Any second positional argument is ignored.

🔢 Exit codes

  • 0 success
  • 1 usage or validation error
  • 2 PowerShell execution failure
  • 3 unsupported option

📦 Publishing

This repository is set up to publish the executable as the public npm package @dbalabka/notify-send-wsl.

Dry run:

npm pack --dry-run

Publish:

npm publish

📚 Reference