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

pushoverdotts

v0.0.1

Published

Type-safe Pushover API client for Node.js and Bun

Readme

pushoverdotts

Type-safe Pushover API client for Node.js and Bun.

Installation

bun add pushoverdotts

Usage

import { Pushover } from 'pushoverdotts'

const pushover = new Pushover({
  token: 'your-app-token',
  user: 'your-user-key', // optional default user
})

// Send a simple message
await pushover.send('Hello, World!')

// Send with options
await pushover.send('Server is down!', {
  title: 'Alert',
  priority: 1,
  sound: 'siren',
  url: 'https://example.com/status',
  urlTitle: 'View Status',
})

// Send to specific user (overrides default)
await pushover.send('Hello', { user: 'other-user-key' })

Emergency Priority

Emergency priority (2) requires retry and expire parameters and returns a receipt:

const { receipt } = await pushover.sendEmergency('Critical alert!', {
  retry: 60, // retry every 60 seconds
  expire: 3600, // stop after 1 hour
  callback: 'https://example.com/callback',
})

// Check receipt status
const status = await pushover.getReceiptStatus(receipt)
console.log(status.acknowledged) // 0 or 1

// Cancel emergency notification
await pushover.cancelEmergency(receipt)

Validation

// Validate default user
const result = await pushover.validate()
console.log(result.devices) // ['iphone', 'android']

// Validate specific user and device
await pushover.validate('user-key', 'iphone')

Glances (Apple Watch)

await pushover.glance({
  title: 'Status',
  text: 'All systems operational',
  count: 42,
  percent: 85,
})

Available Sounds

const sounds = await pushover.getSounds()
// { pushover: 'Pushover (default)', bike: 'Bike', ... }

Message Options

| Option | Type | Description | | ---------- | ----------------------- | --------------------------------- | | title | string | Message title | | url | string | Supplementary URL | | urlTitle | string | Title for the URL | | priority | -2 | -1 | 0 | 1 | 2 | Message priority | | sound | Sound | Notification sound | | device | string | string[] | Target device(s) | | timestamp | number | Date | Message timestamp | | html | boolean | Enable HTML formatting | | monospace | boolean | Use monospace font | | retry | number | Retry interval (priority 2 only) | | expire | number | Expiration time (priority 2 only) | | callback | string | Callback URL (priority 2 only) | | ttl | number | Time to live in seconds | | attachment | { base64, type } | Image attachment |

Error Handling

import { Pushover, PushoverError, PushoverValidationError } from 'pushoverdotts'

try {
  await pushover.send('Hello')
} catch (error) {
  if (error instanceof PushoverValidationError) {
    console.error('Invalid user:', error.errors)
  } else if (error instanceof PushoverError) {
    console.error('API error:', error.errors)
  }
}

License

MIT