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

signalk-nws-alerts

v0.1.0

Published

SignalK plugin for National Weather Service alerts from weather.gov API

Readme

signalk-nws-alerts

A SignalK plugin that provides National Weather Service (NWS) weather alerts for vessels in US waters.

Overview

This plugin fetches weather alerts from the NWS API based on your vessel's position and publishes them to SignalK. It supports the SignalK Weather API and provides notifications with severity-based states.

Note: This plugin only works for locations within the United States, as it uses the National Weather Service API.

Features

  • Automatic polling for weather alerts based on vessel position
  • Publishes alerts to SignalK data paths (environment.outside.nws.alert.*)
  • Creates SignalK notifications with appropriate severity levels
  • Registers as a SignalK Weather API provider for getWarnings()
  • Configurable poll interval
  • Position subscription for automatic updates when moving

Installation

Install via the SignalK Appstore or manually:

cd ~/.signalk
npm install signalk-nws-alerts

Restart SignalK Server and enable the plugin in Server > Plugin Config.

Configuration

| Option | Description | Default | |--------|-------------|---------| | Poll Interval (minutes) | How often to check for new alerts | 5 | | Enable Position Subscription | Subscribe to position updates | true | | User Agent | Contact info for NWS API (email or URL) | signalk-nws-alerts/1.0 |

Note: The NWS API requests that you provide contact information in the User-Agent header. Consider setting this to your email address.

SignalK Data Paths

Alert Data

Each alert is published under environment.outside.nws.alert.<eventType>:

  • .id - Alert identifier
  • .event - Event type (e.g., "Winter Weather Advisory")
  • .headline - Alert headline
  • .description - Full description
  • .instruction - Recommended actions
  • .severity - Extreme, Severe, Moderate, Minor, or Unknown
  • .certainty - Observed, Likely, Possible, or Unknown
  • .urgency - Immediate, Expected, Future, or Unknown
  • .effective - When the alert becomes effective
  • .expires - When the alert expires
  • .onset - Expected onset time
  • .ends - Expected end time
  • .areaDesc - Affected area description
  • .senderName - Issuing NWS office

Metadata

  • environment.outside.nws.alertCount - Number of active alerts
  • environment.outside.nws.lastUpdate - Last update timestamp

Notifications

Alerts are also published as notifications under notifications.weather.nws.<eventType> with states:

| NWS Severity | SignalK State | |--------------|---------------| | Extreme | emergency | | Severe | alarm | | Moderate | warn | | Minor | alert | | Unknown | normal |

Weather API Integration

This plugin registers as a Weather API provider. Other plugins can request warnings via:

const warnings = await app.getWeatherWarnings(position);

Requirements

  • SignalK Server >= 2.0.0
  • Node.js >= 14.0.0
  • Vessel position from GPS or other source

License

MIT

Author

Maurice Tamman