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-playback-plugin

v0.2.0

Published

MaYaRa Radar Playback - Play .mrr radar recordings through SignalK Radar API (Developer Tool)

Readme

MaYaRa Radar Playback Plugin for SignalK

A SignalK plugin for playing back .mrr radar recordings through the SignalK Radar API.

What This Plugin Does

This plugin allows you to play pre-recorded radar data (.mrr files) through SignalK's Radar API. During playback, the recording appears as a virtual radar that any SignalK radar consumer can connect to and display.

Use cases:

  • Test and develop SignalK radar display applications without live radar hardware
  • Demo radar functionality at exhibitions or presentations
  • Debug radar rendering code with consistent, repeatable data
  • Share interesting radar captures with other developers

Installation

Install from the SignalK App Store:

  1. Open your SignalK server web interface
  2. Go to Appstore > Available
  3. Search for "MaYaRa Radar Playback"
  4. Click Install
  5. Restart SignalK when prompted

Getting Started

1. Access the Playback Interface

After installation, navigate to:

http://your-signalk-server:3000/plugins/@marineyachtradar/signalk-playback-plugin/playback.html

Or find it in SignalK's Webapps menu.

2. Upload a Recording

You can upload .mrr or .mrr.gz files:

  • Drag and drop a file onto the upload zone
  • Or click the upload zone to browse for a file

Recordings are stored on the SignalK server and persist across restarts.

3. Load and Play

  1. Select a recording from the list
  2. Click Load to prepare it for playback
  3. Click Play to start playback
  4. Use Pause and Stop as needed
  5. Enable Loop to repeat the recording continuously

4. View the Radar

Click View Radar to open the radar display. This shows the playback radar using the built-in viewer.

Viewing with Other Clients

During playback, the recording registers as a virtual radar in SignalK. The radar ID follows the pattern playback-{filename}.

Using mayara-server-signalk-plugin

If you have the mayara-server-signalk-plugin installed (the main MaYaRa radar plugin), you can also view playback recordings through its interface:

  1. Start playback in this plugin
  2. Open the mayara-server-signalk-plugin's radar viewer
  3. The playback radar will appear in the radar list
  4. Select it to view the recording with full MaYaRa GUI features

Using Other SignalK Radar Consumers

Any application that implements the SignalK Radar API can display the playback:

  • The radar appears at /signalk/v2/api/vessels/self/radars/playback-{filename}
  • Spoke data streams via SignalK's binary WebSocket

Obtaining Recording Files

Recording files (.mrr) are created by mayara-server when connected to a live radar:

  1. Run mayara-server with a radar connected
  2. Open the recordings page at http://localhost:6502/recordings.html
  3. Select a radar and click Start Recording
  4. Click Stop Recording when done
  5. Download the recording as .mrr.gz (compressed)
  6. Upload to this SignalK plugin

File Format

  • .mrr - MaYaRa Radar Recording (uncompressed)
  • .mrr.gz - Gzip-compressed recording (~95% smaller for transfer)

Both formats are supported for upload. Files are stored uncompressed on the server for fast playback.

Troubleshooting

Recording won't load:

  • Check the SignalK server logs for errors
  • Ensure the file is a valid .mrr or .mrr.gz file
  • Verify the file wasn't corrupted during transfer

No radar appears in SignalK:

  • Make sure playback is started (not just loaded)
  • Refresh the radar consumer application
  • Check that SignalK's Radar API is enabled

Playback stutters:

  • This can happen on slower systems with large recordings
  • Try using recordings with fewer spokes per revolution

Technical Details

This plugin:

  • Reads .mrr files directly (no mayara-server required)
  • Registers as a RadarProvider via SignalK's Radar API
  • Emits spoke frames through SignalK's binaryStreamManager
  • Plays back frames at their original recorded timing
  • Sets power status to "transmit" so GUI shows radar as active (not STANDBY)
  • Pre-loads all frames for accurate timing
  • Auto-stops current playback when loading a different file

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

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

Related Projects

License

MIT License - See LICENSE for details.