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

hoekens-anchor-alarm

v1.3.2

Published

Web app based anchor alarm with scope calculator, scribble tracks, engine override, and physically accurate icons.

Readme

hoekens-anchor-alarm

This is a fork of the venerable signalk-anchoralarm-plugin by Scott Bender.

I wanted a simple, web-only anchor alarm with my own personal UI style and some features that may be controversial (like automatic alarm cancelling if your engines are running). If you want to use an external app or API, you are probably better off using the old plugin.

Some of the changes I've made:

  • Added historical tracks from @signalk/tracks-plugin
    • I recommend setting this to a resolution of 1000ms and 86400 points to keep. This gives you high resolution data for the last 24 hours. If you've got plenty of memory, you might as well use it.
  • Added a check to prevent anchor alarm from firing when engines are on
    • I always forget to turn the anchor alarm off and its annoying when it alarms as I'm motoring away.
    • If you're truly dragging and you have your motor(s) on, then you already know about it!
    • Plus, the act of turning on your engines will disable the alarm. One less thing to do in an urgent situation.
  • Added a scope calculator that takes your current depth, height of your bow above water, and the estimated tidal rise and then shows you what your scope would be at 3:1, 4:1, 5:1, and 7:1. This only shows when the anchor is up. Install the signalk-tides plugin to get tide data.
  • Boat icons are now location and size accurate. With your beam, loa, and gps antenna position, it will size the icon to your boats true size and rotate it around the location of the GPS antenna. This is very helpful if you want to pre-select your anchoring spot based on satellite imagery as you can position your bow right in the center of the circle to drop your anchor. The alarm will trigger when your GPS antenna position goes outside the radius, so set that as usual.
  • Lots of UI improvements:
    • Added colors to the historical tracks. Green = new, fading to red = old
    • Inital anchor position guess is now pretty accurate
    • Added a line to show distance and bearing to anchor
    • Added status panel with: wind speed/direction, depth, alarm status
    • Set anchor position now by dragging instead of panning.
    • Cleaned up alarm radius UI
    • Increased the max zoom
    • Added other boats + their tracks
    • More responsive UI
    • Added a path checker field to the plugin config to make sure needed data is available.

Usage

This plugin is intended to be used through the web interface with a phone or computer browser. Simply point your Web Browser to http://[signalk-server-ip-address]:[port-number]/hoekens-anchor-alarm/ and you can set your anchor alarm.

The way I use this app is to anchor the boat first, then once I'm settled I will use the webapp to set the anchor alarm. This is where its good to have a high resolution on the tracks, as you can usually see exactly where you dropped the hook. Make sure to set your radius a bit bigger to avoid false alarms.

With v1.3 and the more accurate icons, it is now easy to pre-select your anchor location with the satellite imagery, circle the radius of the anchor alarm to check the depth is okay, and then use the app to get your bow exactly in the center of the alarm circle for a perfect drop.

If you have engine data in SignalK (propulsion.*.rpm or propulsion.*.state) then you can enable the engine check functionality. Then, when you leave the anchorage under engine power, it will automatically end the anchor watch. Additionally, if you are dragging anchor and you start your engines to reposition, it will also disable the anchor alarm. When your anchor is dragging, it can sometimes be hectic. There's no reason to bombard you with alarms when you are aware of it and getting it sorted.

Recommendations

This app pairs well with some other software:

  • Node-RED + Pushbullet for push notifications to your phone. Really great for when you're off the boat. Also works when you're on the boat to get an alarm on your phone.
  • signalk-autostate - Simply by using the anchor app, the plugin can automatically determine the difference between moored and anchored. You can then use this to automate things like an anchor light.
  • I highly recommend installing Tailscale on your devices. It makes it so easy to access SignalK remotely. Plus it's free and very simple to setup.

Attribution

Anchor icons created by Freepik - Flaticon