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

@sola-air-ui/sentinel

v1.0.0

Published

Ambient behaviour observation: notice when someone hesitates on a form, and describe what you saw. Framework-agnostic, zero dependencies.

Readme

@sola-air-ui/sentinel

Notice when someone hesitates on a form, and describe what you saw.

No dependencies. No build step. Works in React, Svelte, or plain DOM, and does not require the Sola runtime or rewriting any of your components.

npm install @sola-air-ui/sentinel

What it does

It watches focus, typing and blur across a form; decides when a pause is actually meaningful rather than a keystroke gap; and builds a natural-language prompt describing the activity. What you do with that prompt is yours — call a model, look up a similar record, show a hint.

The gate is the interesting part. Naive versions fire on every change; this one requires a real quiet period after real activity, rate-limits itself, and needs more than one event before it will say anything.

React

import { useSentinel } from '@sola-air-ui/sentinel/react';

function IncidentForm() {
  const { ref, prompt } = useSentinel({ onSuggest: (p) => ask(p) });

  return (
    <form ref={ref}>
      <label htmlFor="d">Short description</label>
      <input id="d" name="short_description" />
      <label htmlFor="c">Caller</label>
      <input id="c" name="caller" />
    </form>
  );
}

Nothing inside the form changes — no wrapper components, no per-field handlers.

Svelte

<script>
  import { sentinel } from '@sola-air-ui/sentinel/svelte';
  let prompt = null;
</script>

<form use:sentinel={{ onSuggest: (p) => (prompt = p) }}>
  <!-- unchanged -->
</form>

Plain DOM

import { observe } from '@sola-air-ui/sentinel';

const { disconnect } = observe(document.querySelector('#incident-form'), {
  onSuggest: (prompt) => console.log(prompt)
});

Useful where a framework cannot go — a ServiceNow Service Portal widget, a browser extension, an embedded surface in a page you do not control.

Privacy

It observes what people type, so the defaults are conservative:

  • password, hidden and file inputs are never read, and their events are not recorded at all.
  • Fields whose autocomplete marks them as a one-time code, a current or new password, or a card field are excluded the same way.
  • Anything carrying data-sentinel-ignore, or inside an element that does, is excluded.
  • redact(fieldName, value, el) rewrites a value before it is recorded. Return '' to keep only its length.

Values stay in memory, in a bounded buffer (50 events, 60 seconds). Nothing is sent anywhere — the package makes no network calls.

Tuning the gate

| Option | Default | What it controls | |---|---|---| | idleThresholdMs | 1500 | Quiet period after activity before firing | | minSuggestIntervalMs | 8000 | Minimum gap between suggestions | | minEventsForSuggestion | 2 | Events required before saying anything | | pollMs | 250 | How often the gate is checked |

Also exported

createSentinel() gives you the observer directly if you would rather record events yourself — it also tracks rage-clicks and a flowIndex derived from friction severity, backtracking, and pacing variance.

MIT.