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

@unotest/web

v0.9.1

Published

AI-native E2E testing for web applications. MCP server (run_test / step / resume / inspect_runtime / agent_fix) + CLI runner + JavaScript DSL scenarios on a sandboxed AST engine + semantic DOM snapshots.

Readme

@unotest/web

AI-native E2E testing for web apps. You don't write the tests — your AI agent does, by driving your real app through the MCP server. You review and commit.

MCP server + CLI runner + JavaScript DSL + semantic DOM snapshots + structured failure bundles.


1. Setup

npx @unotest/web@latest init

Run once in your project — any stack (Node, Django, Rails, Go, …), no package.json required. init writes the config and a starter scenario, sets up the browser (bundled Chromium, or your system Chrome if you pick it during the prompt), and wires the MCP config so Claude Code / Cursor / Codex pick the server up automatically. Re-run anytime to update — it never overwrites your edits.

2. Open the viewer

npx @unotest/web viewer

A local IDE-style UI for your tests — no cloud, no account. This is your home base: browse scenarios, run them, and watch each step live. (Details in §5.)

3. Create a test — just ask your agent

In your AI editor (Claude Code, Codex, Cursor, …), open your project and describe the flow in plain English:

"Open https://playground.unotest.com, go to the Click vs Double-click section, click the Click me button, and check that a popup appears."

Through the MCP server the agent explores your live app — clicking, filling, reading the real DOM via semantic snapshots — then writes a clean scenario to unotest/e2e/<name>.js with stable selectors (getByTestIdgetByRole → … — never brittle CSS), runs it, and debugs itself if it fails. You get a reviewable .js test: read it, tweak it, commit it.

For best results, point the agent at its authoring guide, shipped with the package at node_modules/@unotest/web/guides/agent-integration.md.

4. Run a test

Click any scenario in the viewer, or run from the CLI:

npx @unotest/web e2e <name>      # one scenario
npx @unotest/web e2e             # list / usage

5. Watch it run — the viewer

npx @unotest/web viewer opens a local UI (no cloud, no account):

  • Scenario tree — scenarios, collections, helpers, and run history.
  • Run from the UI — results stream live over WebSocket as steps execute.
  • Block view — each step(...) group folds into a section with per-step status; a failure pins an error card to the offending line.
  • Step debugger — set gutter breakpoints, run paused, inspect the live DOM at each stop.
  • Inspector — screenshots and failure artifacts per run.
  • Integrated terminal — a docked xterm (toggle ⌃`) to drive the CLI without leaving the window.

Writing by hand (optional)

Scenarios are plain .js. Every executable step sits inside a step("what this does", () => { … }) block — plain-English intent the agent reads back to repair a step when a selector drifts:

function test_login() {
  step("Log in as the demo user", () => {
    goto('https://app.example.com');
    fill(getByLabel('Email'), '[email protected]');
    click(getByRole('button', { name: 'Continue' }));
  });

  step("Dashboard is shown after login", () => {
    assertText(getByRole('heading'), 'Dashboard');
  });
}

The DSL uses the familiar modern browser-automation vocabulary, so it reads the way you already expect:

  • Navigationgoto, reload, waitForUrl
  • LocatorsgetByRole, getByTestId, getByLabel, getByText, getByPlaceholder, locator
  • Actionsclick, fill, press, hover, check, uncheck, selectOption
  • AssertionsassertText, assertUrl, assertVisible, assertChecked, expect
  • SetupdbQuery, dbExec, apiCall, shell, evaluate

Full reference, shipped with the package: node_modules/@unotest/web/guides/dsl-reference.md (plus operational guides alongside it in guides/).


Ecosystem

| Package | Role | |---|---| | @unotest/web | this package — CLI / MCP server / runner | | @unotest/viewer | local results browser | | @unotest/protocol | shared types | | @unotest/dsl | scenario parser + validator engine |

License

MIT — see LICENSE.