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

@rhizomatics/signalk-datalab-plugin

v0.7.1

Published

Interactive data analysis notebooks for SignalK, using Marimo running in the browser. Experiment with dataframes, live streaming charts, geospatial queries, DuckDB, signalk-cli, polars, Ibis Framework in pre-packaged notebooks. BETA, use with caution.

Readme

SignalK Data Lab

npm version npm downloads code style: oxfmt License boat tech directory managed by hq

This plugin offers a variety of Data Notebooks, using Marimo and Python. Notebooks run entirely in the browser, using WebAssembly (WASM) to keep the server load minimal and best suited to Raspberry Pi, NanoPi etc servers.

It comes with several experiments, working notebooks that use different ways to pull selected paths out of the SignalK History API and demonstration of how the data can be tabluated, charted or otherwise analyzed.

[!NOTE] Why Marimo and not Jupyter? Marimo has notebooks that are pure Python scripts, and DAG-aware. The 'DAG' here refers to a 'directed acyclic graph', and in simple terms means it works out which cells are stale and need to be recalcuated because cells they depend on have changed - like Excel does.

Notebook Gallery

Quick Start

  • Install from the SignalK App Store
  • Launch the Data Lab from the Webapps link on SignalK main menu

The page then moves itself to the plugin's own address, /plugins/signalk-datalab-plugin/ui, where Data Lab can send the headers that let notebooks start quickly (see HTTPS or HTTP). On SignalK server 2.31 or later this works for any logged-in user, including read-only ones; on older servers only admins can use that address, and everyone else stays on the Webapps one, which works but starts more slowly.

You'll need a History Provider running to capture the SignalK data, such as signalk-parquet, signalk-to-influxdb2 or signalk-questdb. If you have Kip set up as a plotter, it can also act as a history provider. Without one of these, there's nothing to be queried for data, only raw data files.

HTTPS or HTTP

[!TIP] Notebooks work over plain http as well as https. With a secure (https) address you can also stop a long-running cell. See HTTPS or HTTP.

The notebooks run Python in the browser in a background worker. To stop a cell while it's running, marimo needs memory shared with that worker, which the browser only allows when the page is in cross-origin isolation. Data Lab sends the headers that ask for it (Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy), but browsers only honour them on a secure address: https://..., or http://localhost.

On a plain http address, such as http://10.0.0.5 or http://openplotter.local:3000, the browser ignores those headers. The notebooks work the same, except that a running cell can't be interrupted, and the browser console shows "interrupts are not available".

The first visit to a notebook is slow whichever address you use: the browser downloads Python and the notebook's packages (about 28 MB for DuckDB and its dependencies) from the internet, then keeps them for next time.

To check, open the browser's developer console on a Data Lab page and type crossOriginIsolated. true means interrupts are available.

Ways to get it:

  • Switch on ssl in the SignalK server settings. SignalK then serves https with a self-signed certificate, and redirects http links to it. Each device shows a certificate warning, which you accept once, until you set up a proper certificate. This works for every browser.
  • Chrome or Edge on a single device: in chrome://flags/#unsafely-treat-insecure-origin-as-secure, add the server's address (e.g. http://10.0.0.5) and relaunch the browser. This affects only that browser, and has no equivalent in Safari.
  • Use the browser on the server itself, via http://localhost.

Learning about Notebooks

If you're not familiar with Data Notebooks, try the Marimo Tutorials on YouTube, or the gallery of demonstration notebooks.

If you're familiar with Jupyter, you'll feel at home, although Marimo Notebooks are nicer, with dependency aware cells like Excel. They are also pure Python scripts under the hood, so easier to edit, refactor or execute from command line.

Simulating Data

SignalK has several simulator plugins that will generate navigation, environment and similar data. Its also easy to source real live weather data using plugins.

For testing, we recommend SKsim, installed from the App Store. It sends a live stream of position, speed, engine, depth and similar data, which a history provider records as it arrives, so the notebooks get history to work with. Start it from its Web Apps page. It can also follow a GPX track at the pace you set, such as the demo passage from the Geospatial Passage notebook's Download GPX.

[!NOTE] Pasting recorded data such as NMEA sentences into the server's Data Fiddler doesn't build up history: the server takes it all in at once, and history providers record it at a single moment.

Experimental Notebooks

Pure Polars

The Analyze with Polars Dataframes notebook uses Polars (a modern Rust based iteration on pandas) to do all of the SignalK API integration and data manipulation.

[!NOTE] Don't confuse "Polars Dataframes" with performance polars for a boat. The Dataframes library has a Polar Bear logo to help you remember, and there's a real Performance Polars Notebook to play with.

Integrate with Ibis Framework

The SignalK Paths in Data Explorer with Ibis notebook, linked from the top of Data Lab, connects Ibis to the History API when it opens. You can then query SignalK data with Ibis expressions and browse it in marimo's data browser. It takes a few seconds to load the first time.

It also shows what makes Ibis useful here:

  • From Ibis expression to History API request: pick a path, a time bucket and a statistic, and see the Ibis expression, the History API request it compiles to, and the result. The SignalK server works out the summary, so only one row per bucket crosses the network.
  • Which instruments reported, and when: a heatmap of every path in the chosen namespaces against time, so you can see when a sensor or its connection dropped out, with a warning for any that have gone quiet.

SignalK Data in Notebook Data Explorer

Performance Polars

The Performance Polars notebook builds a polar diagram from your own sailing: boat speed at each true wind angle, for each band of true wind speed, from per-minute summaries the server works out through Ibis. It shows the best angles for VMG upwind and downwind, and downloads the polar as a .pol table for OpenCPN's weather routing and other routing software. It needs true wind (environment.wind.angleTrueWater and environment.wind.speedTrue, as the derived-data plugin calculates them) and boat speed. Demo data shows a made-up season on a 36 ft cruiser.

[!NOTE] Time under engine isn't excluded, so it shows as fast sailing; choose durations that are mostly sailing.

[!WARNING] Histograms aren't shown in the data browser for SignalK tables by default. Column stats (counts, missing values, min/max, averages) work, but the charts that need histograms are left out. To turn them on, install duckdb from marimo's package manager panel; it's a sizeable download. Overall figures cover the last hour unless you filter on timestamp.

Example Generated Polar

Export with signalk-cli

The Analyze and Export with signalk-cli notebook, linked from the top of Data Lab, fetches history into a polars DataFrame with the signalk-cli Python API, and charts how much the boat's position moved in each 15 minutes. You can also download the data as Feather or CSV, in the same format as the signalk-cli command line tool. Paths can be glob or regex patterns, e.g. navigation.*.

[!NOTE] It installs signalk-cli when it opens, which takes a few seconds the first time.

Quick Analysis Panel

SQL with DuckDB

The SQL with DuckDB notebook fetches history into a signalk_history table and queries it with SQL cells running DuckDB in the browser. Worked examples cover time bucketing, PIVOT, window functions for distance run, and ASOF JOIN to line up sensors that report at different rates. It can also query an uploaded CSV or Parquet file.

[!NOTE] DuckDB and the packages marimo loads alongside it are about 28 MB, so the first visit takes a while. The other notebooks don't load DuckDB.

Live Stream With signalk-cli

The Live Stream With signalk-cli notebook subscribes to the SignalK delta stream and shows data as it arrives: a chart per path, redrawn every few seconds, and a table of the latest values. It uses the browser's own WebSocket, since signalk-cli's streaming client waits for each message in a way that would block the rest of the notebook in the browser. signalk-cli still builds the subscription and reads the messages. Only data received while the page is open is shown.

Each notebook's opening cell lists the limitations of its approach.

Streaming Wind Gusts

Geospatial Passage

The Geospatial Passage notebook turns navigation.position history into a passage log. It splits the track into legs under way and stops at anchor or alongside, with each stop's swing circle, and maps them over OpenStreetMap with OpenSeaMap seamarks. Selecting legs or stops in the tables picks them out on the map. The tables are GeoPandas GeoDataFrames, so marimo's download button offers GeoJSON and GeoParquet, for QGIS, Google Earth, Felt or geojson.io. There's also a GPX download for OpenCPN and chart plotters.

Without any history, choose Demo passage for a made-up day on the Firth of Clyde; it's picked automatically when the server has no history provider.

[!NOTE] It loads GeoPandas, Shapely, pyproj, pandas and pyarrow when it opens, about 20 MB, so the first visit takes a while. The map background needs an internet connection; without one, the track is drawn on a blank background and the downloads still work.

Geospatial Example

Add Your Own Notebook

The Add Your Own Notebook explains how to save your own notebooks for reuse, within the more confining environment of client-side only Marimo.

AI Integration

Connecting to Agents from Notebooks

Marimo notebooks have lots of different ways of integrating with AI models, includingIn Editor AI Support and a marimo pair mode.

Marimo's External agents feature (a Labs feature, turned on in marimo's User Settings as "External Agents") can connect a local Claude Code, Codex, Gemini or OpenCode to the notebook in the browser, and doesn't need its own API Key. It does need a terminal command to start a bridge, so it's aimed at technical users for now:

User Settings

This command runs an ACP server, then wires its stdin/stdout to a websocket on a port that an ACP client, such as runs inside Marimo expects. Run it from the plugin's agent directory, whose CLAUDE.md tells Claude how to find the notebook in the browser and what works there:

cd ~/.signalk/node_modules/@rhizomatics/signalk-datalab-plugin/agent
npx stdio-to-ws "npx @zed-industries/claude-code-acp" --port 3017

From a clone of this repo, npm run bridge does the same.

Once that's run, click on the little robot on the left hand bar, and then on the Agents tab.

Agent Connected

The notebook connects to the bridge on the same host name it was loaded from (ws://<host>:3017). If you open Data Lab from another machine, e.g. http://my-boat.local:3000, the bridge has to run on the SignalK server, with Node and a logged-in Claude Code there. The agent can read the notebook open in the browser, but changes it writes there don't show up in the open notebook, so it gives you the code for each cell to paste in.

For a fuller setup, where the agent edits the notebook file and can see its live outputs using a clone of this git repository, see Developing with an AI agent under Development.

Developing with an AI agent

[!NOTE] This setup is for developers working from a clone of this repo. For connecting an agent to the notebook launched from the SignalK Webapps panel, see Connecting to Agents from Notebooks.

The notebooks are plain Python files, so any coding agent can edit them. The repo is set up for Claude Code, which can also see the live notebook's outputs and errors.

  1. Start the notebook with its agent connection enabled, pointing at your SignalK server:

    SIGNALK_URL=http://my-boat.local:3000 npm run agent

    This opens the notebook for editing on http://localhost:2718, reloads it whenever the file changes on disk, and serves a marimo MCP server at http://localhost:2718/mcp/server.

  2. In another terminal in the repo, start Claude Code with claude. The MCP server is registered in .mcp.json, so the first time you'll be asked to approve the marimo server. Run /mcp to check it's connected.

  3. Ask for changes in plain language, e.g. "add a chart of wind speed against boat speed". Claude edits notebooks/signalk.py, the browser tab updates, and Claude can read back cell outputs and errors from the running notebook.

Project settings in .claude/ run marimo check after every notebook edit and feed any problems back to Claude. notebooks/CLAUDE.md covers marimo's rules and what works in the browser (WASM) build.

npm run agent turns off marimo's access token so the MCP URL stays the same between runs. It only listens on localhost, but don't run it on a shared machine.

Local Execution

To run the notebook outside of SignalK / webbrowser context, use

uv venv .venv
source .venv/bin/activate
uv sync --dev
marimo run notebooks/signalk.py

mise is recommended for installing node, Python, etc but isn't a requirement.

To work on both the main notebook and the ibis-signalk dev.py notebook from one marimo server, use

SIGNALK_URL=http://my-boat.local:3000 npm run lab

marimo's home page lists both notebooks, and the environment has the packages each one needs.

Ibis and DuckDB

The ibis-signalk backend runs what it can on the SignalK server and computes simple overall figures (counts, sums, min/max, averages) locally with pyarrow. Queries beyond that, notably the histograms marimo's data browser draws and any joins, need a local query engine, which comes from the optional DuckDB extra (ibis-signalk[duckdb]).

  • npm run lab and packages/ibis-signalk's uv run include DuckDB (via the dev dependency group), so histograms work there.
  • The browser notebook installs ibis-signalk without DuckDB, to keep loading fast, so histograms aren't shown for users running from SignalK unless they install duckdb from marimo's package manager. The backend checks for DuckDB on each query, so that takes effect without reloading.
  • Without DuckDB, those queries raise NotImplementedError naming the extra. marimo catches these and just leaves the chart out.

See packages/ibis-signalk/README.md for how queries are split between the server and local evaluation.

Every marimo notebook in notebooks/ is included in the WASM build: signalk.py (Analyze with Polars Dataframes) becomes the main Data Lab page (datalab.html), and each other notebook becomes <name>.html alongside it, sharing the same assets. index.html is a gallery with a card per notebook, generated by scripts/build-gallery.js from each notebook's opening markdown cell (its # heading and first paragraph), so a new notebook appears there automatically. Link between them with relative links, e.g. [SignalK Paths in Data Explorer with Ibis](data_source_explorer.html).

The signalk-cli notebooks install signalk-cli>=3.0.0 in the browser with a plain micropip.install; its metadata leaves out zeroconf (mDNS discovery) under Pyodide. signalk-cli is exempt from the exclude-newer release cooldown, in both uv.toml and packages/ibis-signalk/pyproject.toml (which npm run lab runs under), so new releases of it can be used straight away.

To preview the WASM build in a browser, as SignalK would serve it, use

SIGNALK_URL=http://my-boat.local:3000 npm run preview

This builds public/ and serves it on http://localhost:8080 (override with PORT), proxying /signalk/* API calls to SIGNALK_URL (default http://localhost:3000). Use npm run preview:serve to skip the rebuild.

Other Optional Dependencies

The Marimo settings menu offers a way to load more common packages quickly using uv

Optional Dependencies

Limitations

Libraries with compiled code (polars, DuckDB, pyarrow, numpy, pandas and others) run in the browser only as special emscripten (WebAssembly) builds, which usually trail the desktop releases, sometimes by many months. In September 2026, polars in the browser is 1.33 while desktop is 1.44, and pyarrow is 22 against 25. So the browser can lack newer features, and occasionally has bugs that are long fixed on desktop. Code that works in a desktop notebook may fail in Data Lab, and the reverse. This will ease as more projects publish WebAssembly builds of their own, especially now that PEP783 is accepted. Pure Python libraries aren't affected.

The Marimo environment by default runs server-side, so this may be an option in future with this plugin, or packaged as a separate plugin. The main up-side of running server-side is not being constrained by using pyodide to run Python in the browser, which means latest versions of polars,duckdb etc are available and fewer gotchas. On the other hand, it means Python installed onto the SignalK server, and tiny pi servers on boats might not like the extra load.

Also Check Out

  • signalk-cli - A Python based CLI for extracting data and exploring paths on the SignalK APIs, with output to CSV or Apache Arrow dataframe (Feather). Also useful as a Python API for your own code.
  • More SignalK plugins from Rhizomatics including support for eInk shelf labels (including LLM generated images using SignalK data), Bluetti powerbanks, using Teltonika modems as SignalK notifiers, squelching noisy SignalK deltas and more.
  • The Boat Tech Directory for the most comprehensive guide on the Internet to boat tech blogs, vendors, open source projects and more.