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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@marineyachtradar/signalk-plugin

v0.2.1

Published

MaYaRa Radar - Connect SignalK to mayara-server

Readme

MaYaRa Server SignalK Plugin

A native SignalK plugin that connects to a remote mayara-server and exposes its radar(s) via SignalK's Radar API.

Overview

This plugin acts as a thin proxy layer between SignalK and mayara-server. All radar logic (protocol handling, signal processing) runs on mayara-server - this plugin simply forwards control commands and streams radar data.

┌─────────────────────────────────────────────────────────────────┐
│                        SignalK Server                           │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │              mayara-server-signalk-plugin                 │  │
│  │                                                           │  │
│  │  HTTP Client ──────► RadarProvider ◄────── SpokeForwarder │  │
│  │      │                    │                     │         │  │
│  └──────┼────────────────────┼─────────────────────┼─────────┘  │
│         │    radarApi.register()     binaryStreamManager        │
│         │                    │                     │            │
│  ┌──────┼────────────────────┼─────────────────────┼─────────┐  │
│  │      │        SignalK Radar API v2              │         │  │
│  │      │  /signalk/v2/api/vessels/self/radars/*   │         │  │
│  └──────┼──────────────────────────────────────────┼─────────┘  │
└─────────┼──────────────────────────────────────────┼────────────┘
          │ HTTP                            WebSocket│
          ▼                                          ▼
┌─────────────────────────────────────────────────────────────────┐
│                        mayara-server                            │
│         /v2/api/radars/*              /v2/api/radars/*/spokes   │
└─────────────────────────────────────────────────────────────────┘

Requirements

  • SignalK Server PR 2158 (with Radar API support)
  • mayara-server running and accessible on the network

Installation

From npm (recommended)

npm install @marineyachtradar/signalk-plugin

From source

git clone https://github.com/MarineYachtRadar/mayara-server-signalk-plugin
cd mayara-server-signalk-plugin
npm install
npm run build
npm link
# In your SignalK server directory:
npm link @marineyachtradar/signalk-plugin

Configuration

Enable the plugin in SignalK Admin UI and configure:

| Setting | Description | Default | |---------|-------------|---------| | Host | IP address or hostname of mayara-server | localhost | | Port | HTTP port of mayara-server REST API | 6502 | | Use HTTPS/WSS | Enable secure connections (requires TLS on mayara-server) | false | | Discovery Poll Interval | How often to poll for new/disconnected radars (seconds) | 10 | | Reconnect Interval | How often to retry when mayara-server is unreachable (seconds) | 5 |

Features

  • Multi-radar support: Automatically discovers and manages all radars connected to mayara-server
  • Full Radar API: Implements SignalK's RadarProviderMethods interface
    • Power control (off/standby/transmit)
    • Range selection
    • Gain, sea clutter, and rain clutter adjustment
    • ARPA target acquisition and tracking
  • Binary spoke streaming: Uses SignalK's built-in binaryStreamManager for efficient data delivery
  • Auto-reconnection: Handles network disconnections gracefully
  • Integrated GUI: Includes the MaYaRa radar display webapp

API Endpoints

Once configured, the plugin exposes radars at:

  • GET /signalk/v2/api/vessels/self/radars - List all radars
  • GET /signalk/v2/api/vessels/self/radars/{id} - Radar info
  • GET /signalk/v2/api/vessels/self/radars/{id}/capabilities - Capability manifest
  • GET /signalk/v2/api/vessels/self/radars/{id}/state - Current state
  • PUT /signalk/v2/api/vessels/self/radars/{id}/controls/{control} - Set control
  • GET /signalk/v2/api/vessels/self/radars/{id}/targets - ARPA targets
  • WS /signalk/v2/api/vessels/self/radars/{id}/stream - Binary spoke data

GUI

The radar display is available at:

http://your-signalk-server:3000/@marineyachtradar/signalk-plugin/

Development

After cloning, install dependencies and build the GUI:

npm install
npm run build

To use a local mayara-gui checkout (sibling directory) instead of npm:

npm run build -- --local-gui

For development linking:

npm link
cd ~/.signalk
npm link @marineyachtradar/signalk-plugin

Note: The public/ directory is gitignored but included in the npm tarball. It's built automatically during npm publish via prepublishOnly.

License

Apache-2.0 - See LICENSE

Contributing

See CONTRIBUTING.md