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

@maschinenlesbar.org/mudab-cli

v0.0.2

Published

TypeScript API client and CLI for the MUDAB (Meeresumweltdatenbank) API — German marine-monitoring data (stations, parameters, measurements)

Readme

mudab-cli

A tiny, dependency-light TypeScript client + CLI for the MUDAB (Meeresumweltdatenbank — the German marine environment database) REST API: marine-monitoring data from the coastal Bundesländer and research institutions, hosted by the Bundesanstalt für Gewässerkunde (BfG) and surfaced by the Umweltbundesamt (UBA). A bund.dev API.

  • No API key. The API is open — no auth, no account.
  • Zero runtime HTTP dependencies. Built on node:http/https; the CLI's only runtime dependency is commander.
  • Library + CLI. Use the typed MudabClient in code, or the mudab command.

We provide the tool, not the data. The data is © its providers (see DATA_LICENSE.md); its terms are not stated as open — check before redistributing.

Install

npm install -g @maschinenlesbar.org/mudab-cli   # the `mudab` command
# or as a library:
npm install @maschinenlesbar.org/mudab-cli

CLI

Every command lists one dataset. Results are paged with --from/--count (default 100 rows); --all fetches the whole table.

mudab stations --count 5                      # measurement stations
mudab project-stations                        # monitoring projects (region, institute)
mudab parameters --compartment wasser         # water parameters
mudab measurements --from 0 --count 200       # station measurements (page it — huge)
mudab plc-stations                            # HELCOM PLC river-load stations
mudab plc-measurements --all                  # river pollutant loads
mudab compartments                            # compartment code table (offline)

The API does no server-side filtering or sorting. Its OpenAPI spec advertises filter/orderby on every endpoint, but the live server ignores them, so the CLI does not offer filter flags. Fetch a page and filter with jq:

mudab parameters --all --compact | jq '[.[] | select(.COMPT_DS=="CW")]'

Global flags: --base-url, --timeout, --user-agent, --max-retries, --max-response-bytes, --compact. See Usage.md for the full reference.

Library

import { MudabClient } from "@maschinenlesbar.org/mudab-cli";

const mudab = new MudabClient();
const stations = await mudab.stations({ range: { from: 0, count: 10 } });
const waterParams = await mudab.parameters({ range: { from: 0, count: 50 } }, "wasser");

Each method returns a typed row array (the client extracts it from the API's single-key wrapper object). Only range is honoured by the server — see the note in FilterRequest.

Documentation

  • Usage.md — full command reference and exit codes
  • DEVELOPING.md — architecture, testing, the live-API quirks
  • GLOSSARY.md — MUDAB domain terms (stations, compartments, PLC)
  • DATA_LICENSE.md — upstream data terms (distinct from the code license)
  • SKILLS.md — the Claude Code skills this repo ships

Licence

Code is dual-licensed AGPL-3.0-or-later OR commercial — see LICENSING.md. No external code contributions are accepted (see CONTRIBUTING.md); bug reports and AGPL forks are welcome.