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

delay-catcher

v1.0.4

Published

Retrieve delays from DB API and save them to a CSV file.

Readme

delay-catcher

Dieses Projekt ermöglicht es, über die Deutsche Bahn API verspätete Züge an einem bestimmten Bahnhof abzurufen und diese im csv-Format abzuspeichern. Dabei werden alle Regionalzüge mit einer Verspätung von mindestens 60 min gespeichert.

Inspiriert durch diesen Reddit-Thread.

Installation

npm install delay-catcher

Nutzung

npx delay-catcher <stationCode> <path>

<stationCode> ist dabei die Interne Bahnhofsnummer (IBNR), die jeden Bahnhof identifiziert. Der Code für Köln Hbf ist beispielsweise 8000207.

<path> gibt das Verzeichnis an, unter dem die Daten gespeichert werden sollen. Default ist "".

Der Befehl ruft alle Verspätungen für den vorherigen Tag am Zielbahnhof ab und fügt die Daten zu <path>/<Jahr>/delays<Monatsnummer>.csv hinzu, bzw. erstellt die Datei, falls diese noch nicht existiert.

Wenn eine gefundene Verspätung schon in der csv steht, dann wird sie nicht mehr hinzugefügt.

Beispiel:

| Startbahnhof | Zugnummer | Zielbahnhof | Ankunft_Plan | Ankunft_tatsächlich | Verspätung | |------------------|-----------------|-------------|---------------------|---------------------|------------| | Bedburg(Erft) | RB 38 (10289) | Köln Hbf | 01.06.2025, 01:28 | 01.06.2025, 03:58 | 150 | | Aachen Hbf | RE 1 (26845) | Köln Hbf | 01.06.2025, 01:44 | 01.06.2025, 03:52 | 129 | | Hamm(Westf)Hbf | RE 1 (26800) | Köln Hbf | 01.06.2025, 05:12 | 01.06.2025, 06:26 | 75 | | Hamm(Westf)Hbf | RE 1 (26810) | Köln Hbf | 01.06.2025, 10:12 | 01.06.2025, 11:13 | 62 | | Koblenz Hbf | RB 26 (25432) | Köln Hbf | 02.06.2025, 18:02 | 02.06.2025, 19:15 | 73 | | Hamm(Westf)Hbf | RE 1 (26838) | Köln Hbf | 03.06.2025, 00:12 | 03.06.2025, 01:38 | 87 | | Hamm(Westf)Hbf | RE 1 (26802) | Köln Hbf | 03.06.2025, 06:12 | 03.06.2025, 07:37 | 86 |

.env Datei

Wichtig: Das Verzeichnis muss eine .env Datei mit USERAGENT= enthalten. Der Wert kann beispielsweise eine Mailadresse oder URL sein.

License

This project is licensed under the MIT License.