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

@avelor/mira

v0.1.0

Published

Continuous uptime monitor with static status page.

Readme

@avelor/mira

Continuous uptime monitor with automatic static status page.

Why Mira?

Mira (o Ceti) is a red giant variable star, one of the first variable stars ever discovered — observed continuously since 1596 by David Fabricius. Its brightness shifts dramatically over a ~332-day cycle: sometimes barely visible, sometimes among the brightest stars in the sky. Astronomers have watched it for centuries, recording every change.

A monitor that watches cycles, detects when something dims, and logs the history. The parallel is exact.

In Spanish, mira is the imperative of mirar: to look, to watch. "Míralo en Mira."

The mark is its light curve — the same pulse that astronomers have charted since 1596, rendered as a waveform.


Install

npm install -g @avelor/mira

Config

All config lives in a single file: ~/.config/mira/config.yml

It is created automatically on first run with commented examples. Edit it to add your endpoints and notification settings:

interval: 60s
incident_threshold: 3

notify:
  slack: "https://hooks.slack.com/..."
  # email:
  #   resend_key: re_...
  #   to: [email protected]

endpoints:
  - name: avelor.es
    url: https://avelor.es
    expect:
      status: 200
      contains: "Avelor"
    cert:
      warn_days: 30

  - name: API
    url: https://avelor.es/api/contact.php
    method: HEAD
    expect:
      status: 200

Usage

mira start        # start daemon
mira stop         # stop daemon
mira status       # daemon status + last result per endpoint
mira run          # one-shot check (CI mode)
mira logs         # show daemon logs
mira logs --tail  # follow daemon logs
mira page         # print path to status page

Status page

After each check cycle, Mira regenerates a static ~/.config/mira/public/index.html. Serve it however you like — nginx, Caddy, GitHub Pages, or just open it locally.

The page shows:

  • Global status header
  • Per-endpoint: latency, uptime %, cert expiry, last 90 checks as blocks
  • Incident history (click to expand)

No JavaScript. Pure HTML + CSS.

Incidents

An incident opens when N consecutive checks fail (default incident_threshold: 3). It resolves automatically when a check passes. You get exactly two notifications per incident: when it opens and when it closes (with duration).

License

MIT