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/test

v3.2.0

Published

Reticle test runner: reticleTest spec registry + a runner that drives Reticle tools without MCP/stdio.

Readme

@reticlehq/test

Reticle's spec runner for CI: write behavioral specs against your running app with reticleTest, drive them through Reticle's verification tools (DOM + network + console + app state) without MCP/stdio, and get a summary + JUnit XML your pipeline can gate on.

Part of Reticle — the in-app verification layer for AI agents. Use this package when you want the same inside-the-app assertions (signals, store state, network counts — the things a DOM-only tool can't see) as a plain CI test suite.

Install

npm i -D @reticlehq/test

vitest is a peer dependency for the matcher integration; the standalone runner below needs only Node.

Write a spec

import { reticleTest } from '@reticlehq/test';

reticleTest('add a task', async (t) => {
  await t.act('add-task', 'click');
  await t.expectElement({ testid: 'task-list' }, 'visible');
});

reticleTest('ai chat edit', async (t) => {
  await t.fill('chat-input', 'Make the hook punchier');
  await t.act('chat-send', 'click');
  await t.expectNet('POST', '/chat-script', 200);
  await t.expectSignal('chat:edit-applied', { sections: ['hook'] });
});

The context t is a thin, typed façade over Reticle's tools — it resolves data-testids to live elements for you, so specs never touch refs, selectors, or the DOM directly, and assertions run against the app's real network buffer, console, signals, and registered stores.

Run in CI

import { bootSession, runSpecs, createTestContext, writeJUnit } from '@reticlehq/test';

// … reticleTest(...) registrations above …

const booted = await bootSession({ driveUrl: 'http://localhost:4310', headless: true });
const { summary } = await runSpecs({
  invoke: booted.invoke,
  now: () => Date.now(),
  buildContext: (invoke) => createTestContext(invoke, { sessionId: 'my-app' }),
  print: (line) => process.stdout.write(line + '\n'),
});
await booted.close();
process.exit(summary.failed === 0 ? 0 : 1);

bootSession launches a headless browser against your dev server via the Reticle daemon; runSpecs executes every registered spec and returns a machine-readable summary. writeJUnit(...) emits JUnit XML for CI dashboards.

Main exports

| Export | Purpose | | --- | --- | | reticleTest, register, getRegistered, clearRegistry | spec registration | | runSpecs, runOne, summarize, printSummary | execution + reporting | | toJUnitXml, writeJUnit | CI artifact output | | bootSession | boot a driven browser session without MCP | | createTestContext | the t façade (act / expectElement / expectNet / expectSignal / expectState …) | | ReticleSkip, ReticleAssertionError, isSkip | control-flow + failure types |

Docs

License

FSL-1.1-ALv2 — free for any use except reselling Reticle itself; converts to Apache-2.0 after two years. See LICENSE.