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

badevann

v3.0.0

Published

Kommandolinjeverktøy med badetemperaturer fra hele Norge

Readme

🏝 BADEVANN 🏊‍♂️

A CLI tool that fetches and displays water temperatures from beaches in Norway.

Installation 💾

Use the npm command line tool that comes with node.js
Minimum required node version is 14

Run the following from your terminal:

# Install globally
npm i -g badevann

# Or run directly from the repository
npm install
npm start

Usage 💻

badevann lets you browse beaches by county or municipality, search for beaches, and check today's highest water temperatures.
Alternatively, you can type badevann <beach> to fetch the temperature for <beach> directly.

Command Line Arguments ⌨️

  • h or help: Display help text and exit
  • v or verbose: Show detailed beach information
  • i or iso: Show timestamps in ISO 8601 format
  • s or short: Show only temperature
  • nocolor: Display temperature without color (<20°C is blue, 20-25°C is green, and >25°C is red)
  • d or debug: Show debug information during use

Examples

  • badevann short: Show the main menu, and when you select a beach, only the temperature is displayed
  • badevann storøyodden s: Get water temperature from Storøyodden, show only temperature
  • badevann kalvøya v: Get water temperature from Kalvøya, show detailed information about the beach
  • badevann sørenga iso: Get water temperature from Sørenga in ISO 8601 format

Features

  • Interactive CLI with search and selection menus
  • Data caching to minimize API calls
  • Color-coded temperature display
  • Multiple output formats (short, long, ISO)
  • Customizable user settings

Project Structure

The application is organized as follows:

badevann/
├── bin/             # CLI entry point
├── src/
│   ├── core/        # Core application logic
│   ├── services/    # Data services and API integration
│   ├── ui/          # User interface components
│   └── utils/       # Utility functions and helpers
└── package.json

Powerlevel10k Integration

If you're running zsh (standard shell on macOS) with powerlevel10k, you can get water temperature from your favorite beach as a prompt element:

  1. Add the badevann call as a variable in ~/.zshrc, e.g.:

    temp="$(badevann storøyodden s)"

    (remember the s parameter to only get the temperature).

  2. Open ~/.p10k.zsh, and create a function called prompt_bathing_temp, like this:

    function prompt_bathing_temp() {
      p10k segment -b cyan -f black -i '🌡' -t $temp
    }
  3. Add bathing_temp as a line under typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS.
    This refers to the prompt_bathing_temp function.

  4. Save ~/.p10k.zsh and ~/.zshrc, and restart your terminal.

  5. Now the water temperature will be displayed in your shell prompt.

Data Source 💽

All data comes primarily from YR.no.
If you encounter issues with the app, check the website or log an issue on GitHub.

License 🤷‍♂️

WTFPL