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-tides

v2.5.0

Published

Tidal predictions for the vessel's position, powered by Slackwater.

Readme

signalk-tides

A SignalK plugin that provides offline tidal predictions for the vessel's position, powered by Slackwater.

Since 2.0, predictions are computed locally from harmonic constituents — no network access or API keys required.

Installation

Install signalk-tides from the SignalK Appstore or manually by running npm install signalk-tides in the SignalK server directory (~/.signalk).

Usage

This plugin depends on navigation.position. When environment.depth.belowSurface is available, it also publishes tide-compensated depth.

It publishes the following tide data:

  • environment.tide.heightHigh
  • environment.tide.timeHigh
  • environment.tide.heightLow
  • environment.tide.timeLow
  • environment.tide.heightNow
  • environment.tide.stationName
  • environment.tide.stationDistance — metres from the vessel to the station, when it was chosen by position
  • environment.tide.datum — the vertical datum the tide heights and environment.depth.belowChartDatum are measured from, such as MLLW, LAT or CD. This is the tide station's chart datum. For the rare station without one it is MSL, and only the tide heights use it.
  • environment.tide.state — tide trend, rising or falling
  • environment.tide.timeToNextExtreme — seconds until the next high or low water

For each environment.depth.belowSurface reading it publishes environment.depth.belowChartDatum, the depth below the datum named in environment.tide.datum. Charts for an area normally use the same datum as its tide stations, so you can compare this depth with charted soundings. That comparison doesn't hold when the station is far away or in another country's waters. The depth is null when the station has no chart datum.

Tides API

The plugin mounts the Slackwater API at /signalk/v2/api/tides, which serves station search, extremes, and timeline predictions. The synthetic station vessel/default resolves to the configured default station, or the nearest station with tide predictions within 100 km when none is set or the configured one has no predictions. With none in range, the plugin publishes no tide and says so in its status, and the API answers 404:

$ curl http://localhost:3000/signalk/v2/api/tides/stations/vessel/default/extremes

Tides resource

It also registers a tides resource, which returns the next 7 days of tide extremes for the vessel's position.

$ curl http://localhost:3000/signalk/v2/api/resources/tides
Response
{
   "datum": "MLLW",
   "units": "meters",
   "station": {
      "id": "noaa/9414290",
      "name": "San Francisco",
      "latitude": 37.806,
      "longitude": -122.465
   },
   "extremes": [
      { "time": "2025-03-29T00:45:00.000Z", "level": 0.025, "high": false, "low": true, "label": "Low" },
      { "time": "2025-03-29T07:20:00.000Z", "level": 1.928, "high": true, "low": false, "label": "High" }
   ]
}

Chart plotter widget

The plugin offers a tide widget to chart plotters that support Signal K Plotter Extensions, such as Freeboard-SK. It shows the tide at the vessel's position: the level now with its trend, and the next high or low water, on the predicted curve. Tapping it opens the full Tides app in a panel beside the chart.

In Freeboard-SK, press and hold an empty spot in a corner of the chart (or right-click it and choose Add widget here) and pick Tides.

License

This plugin is a fork of the signalk-tides-api plugin (which is no longer working) and is licensed under the Apache License 2.0. Kudos to @joabakk and @sbender9 for the original work.