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

@helmet-ai/helmet

v0.3.1

Published

CLI and TypeScript client for Finland's Helmet library system (helmet.finna.fi) — check loans, renew books, view holds and fines

Readme

Helmet CLI

A command-line interface for Finland's Helmet library system (Helsinki Metropolitan Area libraries). Check loans, renew books, view holds and fines — from your terminal or via AI agents.

Install

npm install -g @helmet-ai/helmet

Setup

helmet login

Enter your library card number and PIN when prompted. You can also set an optional display name (e.g. Alice) which makes multi-profile commands much more ergonomic. Credentials are saved locally at ~/.config/helmet/config.json and the authenticated cookie jar is cached per-profile at ~/.config/helmet/sessions/<id>.json (both mode 0600) so subsequent commands skip the full login handshake. Run helmet login once per card to register additional family members.

Commands

| Command | Description | |---------|-------------| | helmet summary | Full account overview | | helmet loans list | List checked-out items | | helmet loans renew <id> | Renew a specific item | | helmet loans renew --all | Renew all renewable items | | helmet holds list | List current holds with pickup deadline, shelf location, and queue position | | helmet holds place <record-id> | Place a hold on a catalog record (uses the default pickup location from the hold form; optional --comment <text> for bookmobile stops) | | helmet holds cancel <hold-id> | Cancel an active hold | | helmet fines | List fines and total | | helmet search <query> | Search the Helmet catalog | | helmet profiles list | List saved profiles | | helmet profiles rename <selector> <name> | Rename a profile's display name | | helmet profiles remove <selector> | Remove a saved profile | | helmet config path | Show config file location | | helmet version | Print CLI version (also helmet --version / -V) |

All commands accept --json for machine-readable output and --debug for HTTP logging.

Multiple profiles (family accounts)

Save several library cards and target them individually or all at once.

helmet login                                  # run once per card
helmet profiles list                          # see saved profiles

helmet summary --profile Alice --json         # one profile (by display name)
helmet summary --profile 1234567890 --json    # one profile (by card number)
helmet summary --all-profiles --json          # fan out across all profiles
helmet loans list --all-profiles --json       # every family member's loans

Flags

| Flag | Purpose | |------|---------| | --profile <selector> | Target one profile. Selector = display name (or unique prefix), card number, or id (helmet\|<card>). | | --all-profiles | Run the command once per saved profile and aggregate. Supported on summary and loans list. Mutually exclusive with --profile. |

Fan-out JSON shape

--all-profiles --json wraps results in a per-profile array. One profile failing does not block the others; exit code is 0 if any succeeded.

[
  {"profile": {"id": "helmet|...", "displayName": "Alice"}, "ok": true,  "data": { /* same shape as single --json */ }},
  {"profile": {"id": "helmet|...", "displayName": "Bob"},   "ok": false, "error": "AuthenticationError: ..."}
]

loans renew is intentionally not fan-out-able — it requires --profile <selector> when multiple profiles exist, to prevent accidental family-wide mutations.

OpenClaw Skill

This repo ships as an OpenClaw skill, allowing AI agents to manage Helmet library accounts autonomously.

npx skills add vijaykodam/helmet

The skill provides triage guidance so agents prioritize overdue loans, fines, and ready-for-pickup holds.

Library usage

The same package exposes a TypeScript client you can import:

import { HelmetClient, VERSION } from "@helmet-ai/helmet";

const client = new HelmetClient({ baseUrl: "https://helmet.finna.fi" });
await client.login({ cardNumber: "...", pin: "..." });
const loans = await client.getLoans();

License

MIT