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

@reticlehq/eslint-plugin

v3.1.0

Published

Reticle ESLint plugin — keeps the signal layer self-enforcing (mutation-without-signal).

Readme

@reticlehq/eslint-plugin

Keeps the Reticle signal layer self-enforcing. When your store mutates user-visible state, an reticle.signal(...) should fire so an agent can assert on the change off-DOM. This plugin makes "state changed ⇒ signal fired" a lint rule instead of a convention that rots. It pairs with the runtime commitAndSignal(mutate, signal, data) helper from @reticlehq/browser.

Install

npm i -D @reticlehq/eslint-plugin

Peer dependency: eslint >= 9 (flat config).

Flat-config setup

// eslint.config.mjs
import reticle from '@reticlehq/eslint-plugin';

export default [
  {
    plugins: { reticle },
    rules: {
      'reticle/require-signal-on-mutation': [
        'error',
        {
          mutators: ['set', 'reorderSections', 'addSection'],
          signalCallee: 'reticleSignal',
        },
      ],
    },
  },
];

Shortcut: enable the bundled recommended config (turns the rule on at warn with no-op defaults until you configure mutators):

import reticle from '@reticlehq/eslint-plugin';

export default [reticle.configs.recommended];

Rule: require-signal-on-mutation

Flags a function (declaration, expression, or arrow) that calls a configured mutator but never calls the configured signal callee anywhere in that same function body.

Report message: store mutation without a mapped Reticle signal.

Options

options[0]:

| Option | Type | Default | Meaning | | --- | --- | --- | --- | | mutators | string[] | [] | Callee names that mutate user-visible state. | | signalCallee | string \| string[] | ['reticleSignal', 'signal'] | Callee name(s) that count as firing an Reticle signal. |

With no options, mutators is empty, so the rule is a safe no-op (it never fires and never crashes). Configure mutators to switch it on.

Matching is by BARE CALLEE NAME

A mutator is matched on the call's name alone — the object is ignored, so store.set(...), map.set(...), url.searchParams.set(...) and res.headers.set(...) are all the same call to this rule.

That matters most for the name you are most likely to configure. set is zustand's mutator, so it is the natural first entry — and it also matches every Map, Set, URLSearchParams and Headers call in the same file, each of which will be reported as an unsignalled mutation. Verified: a function that only builds a lookup Map is flagged.

Prefer a name that is unambiguous in your codebase — a wrapper like commitAndSignal, or a domain verb (applyOrder, reorderSections) — over a generic one. A rule that fires on map.set() gets turned off wholesale, and then it protects nothing.

Scoping — per function

Signal-credit is per function. A signal called in an enclosing or inner function does not satisfy a mutator called in a different function. Pair the mutation and the signal in the same body (which is exactly what commitAndSignal(mutate, signal, data) does). This is deliberate: a signal fired in some other scope is not guaranteed to run for the mutation path that drifted.

Matching — by name

The callee is matched by name, ignoring the object:

  • set(...) — matched.
  • this.set(...) — matched (set).
  • store.set(...) — matched (set).
  • store['set'](...)not matched (computed member access; documented limitation).

Examples

// ✅ valid — mutation + signal in the same function
function commit() {
  set(next);
  reticleSignal('sections:reordered');
}

// ❌ invalid — mutation with no mapped signal
function commit() {
  store.set(next); // store mutation without a mapped Reticle signal
}

How it fits the workflow

The runtime side advertises signals via registerCapabilities({ signals: [...] }) and fires them with reticle.signal(name, data). A Zustand signalMap / commitAndSignal pair centralizes that in your store. This lint rule is the static counterpart that guards those pairs so the signal map can't silently fall behind the store.

Apache-2.0.