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

@nekosuneprojects/vrnotications

v1.0.2

Published

Notications for VR like SteamVR, XSOverlay, OVRToolkit, VRCX and much more come.

Readme

🔔 @nekosuneprojects/vrnotications

A simple Node.js module to send VR notifications to XSOverlay, OVRToolkit, and the Windows desktop — now with image / icon attachment support.
Built for VRChat-friendly overlays and SteamVR setups. 🥽


✨ Features

  • 🥽 Send notifications to XSOverlay, OVRToolkit, and Windows desktop
  • 🖼️ Image / icon attachment — path, URL, Buffer, data URI, or Base64
  • ⚡ Simple async API
  • 🔌 Talks directly to each overlay's local WebSocket API — no cloud, no tracking
  • 📬 OVRToolkit messages are queued until the socket connects
  • 🪟 Native Windows toast notifications via node-notifier

📦 Installation

npm install @nekosuneprojects/vrnotications

💡 Usage

const { XSOverlay, OVRToolkit, WindowsNotifications } = require('@nekosuneprojects/vrnotications');

(async () => {
  // 🟦 XSOverlay
  const xsOverlay = new XSOverlay();
  xsOverlay.connect();
  await xsOverlay.sendNotification({
    title: 'Example Notification!',
    content: "It's an example!",
    icon: './icon.png', // optional image
  });

  // 🟧 OVRToolkit
  const ovrToolkit = new OVRToolkit();
  await ovrToolkit.sendNotification('Cool title', 'My cool body text!', './icon.png');

  // 🪟 Windows Desktop
  const windows = new WindowsNotifications();
  await windows.sendNotification('Hello Windows!', 'This is a Windows notification', './icon.png');
})();

🖼️ Image / Icon Attachment

Every target accepts an image in the same flexible way. The icon value is normalised for you:

| Input | Example | | --- | --- | | 📁 Local file path | './icon.png' | | 🌐 http(s) URL | 'https://example.com/icon.png' | | 🧱 Buffer | fs.readFileSync('icon.png') | | 🔗 Data URI | 'data:image/png;base64,iVBORw0...' | | 🔤 Raw Base64 string | 'iVBORw0KGgo...' |

💡 For best results use a square PNG.
⏳ The methods that attach images are asyncawait them (remote/disk images are loaded before the message is sent).


📘 Targets

🟦 XSOverlay

Connects to ws://localhost:42070/?client=<name> (API docs).

const xsOverlay = new XSOverlay();
xsOverlay.connect();

await xsOverlay.sendNotification({
  title: 'Heads up!',
  content: 'Something happened.',
  icon: 'https://example.com/icon.png', // path / URL / Buffer / Base64
  timeout: 6,           // seconds
  height: 120,
  opacity: 1,
  volume: 0.5,
  audioPath: 'default', // 'default' | 'error' | 'warning' | path to .ogg
  type: 1,
});

When you pass a real image, useBase64Icon is enabled automatically. To use a built-in icon instead, pass icon: 'default' | 'error' | 'warning'.

| Field | Type | Default | | --- | --- | --- | | title | string | 'Default Title' | | content | string | 'Default Content' | | type | int | 1 | | timeout | float (s) | 6 | | height | float | 120 | | opacity | float | 1 | | volume | float | 0.5 | | audioPath | string | 'default' | | icon | string | 'default' | | useBase64Icon | bool | auto |

🟧 OVRToolkit

Connects to ws://127.0.0.1:11450/api (API docs).

const ovrToolkit = new OVRToolkit();

// Positional style
await ovrToolkit.sendNotification('Title', 'Body text', './icon.png');

// Or an options object
await ovrToolkit.sendNotification({
  title: 'Title',
  body: 'Body text',
  icon: 'https://example.com/icon.png', // path / URL / Buffer / Base64
});

OVRToolkit expects a PNG icon (ideally square); it is sent as a Base64 string per its WebSocket API. Messages sent before the socket connects are queued and flushed automatically once connected.

| Field | Type | | --- | --- | | title | string | | body | string | | icon | PNG (path / URL / Buffer / Base64), or null |

🪟 Windows Notifications

Native desktop toasts via node-notifier.

const windows = new WindowsNotifications();
await windows.sendNotification('Hello Windows!', 'This is a Windows notification', './icon.png');

Because node-notifier needs a file on disk, any non-file image (URL / Buffer / Base64) is written to a temp file automatically.

| Field | Type | | --- | --- | | title | string | | message | string | | icon | path / URL / Buffer / Base64, or null |


🧩 Supported Overlays

| Overlay | Transport | Image support | | --- | --- | --- | | 🟦 XSOverlay | WebSocket :42070 | ✅ | | 🟧 OVRToolkit | WebSocket :11450 | ✅ | | 🪟 Windows | node-notifier | ✅ |


🤝 Contributing

Pull requests are welcome! Please keep changes:

  • ✅ Consistent with the existing module structure (modules/).
  • ✅ Documented — update the README.md and CHANGELOG.md.
  • ✅ Respectful of each overlay's official WebSocket API.

⚠️ Disclaimer

This project is not affiliated with or endorsed by VRChat Inc., XSOverlay, or OVRToolkit. All names, logos, and related elements are property of their respective owners. Always follow the official VRChat Terms of Service and Community Guidelines.


🧠 Credits

Maintained by NekoSune Projects.
🐾 Contributions welcome — stay VRChat-friendly!

GitAds Sponsored

Sponsored by GitAds