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

@humanjs/generator

v0.2.0

Published

Visual recorder for HumanJS — npx @humanjs/generator <url> records your clicks in a real browser and exports a clean, humanized Playwright test.

Readme

@humanjs/generator

Visual recorder for HumanJS — record your clicks in a real browser and export a clean, humanized Playwright test.

npx @humanjs/generator https://your-app.com

It launches a real Chromium window and a local dashboard. You click through your flow; the dashboard shows a live, editable timeline next to a syntax-highlighted code preview. Curate the steps, pick a personality, and export a ready-to-commit .spec.ts that drives the page through HumanJS — so the generated test runs with humanized motion, not robotic jumps.

Audience: AI agent builders, QA engineers, and demo/tutorial creators. HumanJS is not a scraping, captcha-bypass, or "undetectable automation" tool — see the non-goals.

How it works

  1. npx @humanjs/generator <url> opens a real Chromium window at your URL and a local dashboard (loopback only) in your browser.
  2. Interact with the site in the Chromium window — clicks, typing, scrolling, drag, navigation. Each action streams into the dashboard as a step, captured with a robust, role-first selector.
  3. Curate the timeline in the editor (below), pick a personality, and watch the generated test update live.
  4. Hit Run to replay the recording in a fresh window and see each step go green or red — verify it passes before you ship it.
  5. Hit Export to write a .spec.ts (a @humanjs/playwright/test spec) or a standalone .ts script to your working directory.

The editor

  • Reorder by dragging a step's handle — the rest slide out of the way.
  • Delete junk steps, relabel any step (the label becomes a comment), and edit captured values.
  • Pick a selector per step from the ranked candidates (role + accessible name → label → text → test id → #id → CSS → XPath).
  • Add assertions by pointing at a step: toBeVisible, toHaveText, or toHaveURL.
  • Mark a field secret so its value exports as process.env.X instead of a literal.
  • Switch personality (careful / fast / distracted / precise) — the same recording, re-shaped, no re-recording.
  • Run / verify — replay the curated recording in a fresh window; each step shows a live pass/fail badge and an overall result banner, stopping at the first failure. Cancellable, and it never re-records itself.

Output

A fixture-based spec that runs humanized locally and instant in CI:

import { test } from '@humanjs/playwright/test';

test.use({ humanOptions: { personality: 'careful', speed: process.env.CI ? 'instant' : 'human' } });

test('recorded session', async ({ human }) => {
  await human.goto('https://your-app.com/');
  await human.click('role=link[name="Sign in"]');
  await human.type('role=textbox[name="Email"]', '[email protected]');
  await human.click('role=button[name="Continue"]');
});

Export as .spec.ts / .test.ts for the spec above, or .ts for a standalone HumanJS script.

How it differs from Playwright Codegen

  • Humanized output — generated tests use HumanJS primitives (curved clicks, typing rhythm, reading dwell), not raw Playwright calls.
  • Personality switcher — the same recording exports as careful, fast, distracted, or precise without re-recording.
  • Edit before export — delete junk, reorder, relabel, fix captured text, pick selectors, add assertions (Codegen has no editor).
  • Selector quality — prefers ARIA role + accessible name, then label / text / test id, before falling back to CSS or XPath.

Requirements

  • Node.js ≥ 20.
  • The Playwright Chromium browser. If you don't have it yet: npx playwright install chromium.

Honest limits

  • Records in a real browser (no iframe), so it works on sites that block framing — but it does not, and will not, defeat bot detection, fingerprinting, or captchas.
  • The local dashboard binds to 127.0.0.1 only.
  • Captured passwords are always masked; use the secret-field toggle to wire other sensitive values to environment variables.

See ROADMAP.md for what's next (in-app replay, video/GIF export, mid-timeline re-record).

License

MIT