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

@mongrov/vitals-hooks

v0.1.1

Published

View-model layer for the ZivaOne vital screens — the contract surface screens render, over @mongrov/data-access.

Readme

@mongrov/vitals-hooks

The view-model layer the ZivaOne vital screens consume, over @mongrov/data-access.

Status: types + mock provider. The real hooks are not here yet.

The boundary

We own queries, hooks, and every decided value — verdict words, zone vocabulary, thresholds, unit conversion, and all user-facing copy. Screens render. If a screen needs a word, a number, or a sentence, it comes out of a hook field; it is never computed in the UI layer.

That is why almost every field is a pre-composed string. heroValue is "96" and heroUnit is "%", separately and already formatted. If you find yourself writing value + '%', or an if/else that picks a word, stop — that is our side of the line.

Usage

import { MockVitalsProvider, useSpO2Day } from '@mongrov/vitals-hooks/mock'

function Screen() {
  const day = useSpO2Day(0) // 0 = today, 1 = yesterday …
  if (day.status !== 'ready')
    return <VitalStateScreen state={day.status} vital={day.meta} />
  return <>{/* render day.* verbatim */}</>
}

Wrap in the mock provider to drive every state:

<MockVitalsProvider status="learning">
  <Screen />
</MockVitalsProvider>

learning is worth building against deliberately: there IS data and the chart renders, but verdict is null, worthALook is null, and the compare band is population rails rather than the user's own. It is unreachable in practice — it needs a user between day 1 and day 30 — and it is the state screens get wrong.

Entry points

| | | |---|---| | @mongrov/vitals-hooks | types (and the A2 status resolver) | | @mongrov/vitals-hooks/mock | MockVitalsProvider + hook signatures |

The mock is a separate entry point rather than a flag: importing it is saying so out loud, and there is no silent fallback to mock data from the root.

Contract

ZivaOne Vitals — UX Interface Contract v1.4, canonical in the ZivaOne project. The types in src/types.ts ARE that contract — renaming a field here is a breaking change to every screen.