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

@estebanlopp/qagen

v0.2.0

Published

Autonomous QA agent that analyzes your web app, generates Playwright tests with AI, and self-heals when selectors break.

Readme

QAgen

Autonomous QA agent for web applications.

QAgen analyzes your app, generates Playwright tests using AI, executes them, and self-heals broken selectors — without manual intervention.


The problem

Most small development teams don't have dedicated QA. They write manual tests, break them constantly with UI changes, and spend more time maintaining automation than building product. With fast deployment cycles, this gets worse.

How QAgen works

QAgen operates as an autonomous QA agent with four core capabilities:

1. Semantic flow detection QAgen analyzes the DOM and identifies the critical business flow of each page — login, registration, checkout, search, CRUD forms, dashboards — before generating a single test. This means tests are generated with business context, not just element detection.

2. AI-powered test generation Based on the detected flow and real DOM state, QAgen generates Playwright test files targeting the scenarios that matter most: successful flows, error states, field validation, redirects.

3. Autonomous self-healing When a test fails due to a broken selector, QAgen opens a headless browser, reproduces the exact actions that caused the failure, finds the correct element in the live DOM, and patches the test file automatically.

4. Contextual memory Healed selectors are stored per domain in ~/.qagen/memory.json. On subsequent runs against the same application, the AI already knows which selectors to use — eliminating recurring failures.


Requirements

  • Node.js 18+
  • OpenAI API key (get one here)
  • Playwright installed in your project (npm install @playwright/test && npx playwright install chromium)

Installation

npm install -g @estebanlopp/qagen

On first use, configure your OpenAI API key:

qagen config

The key is stored globally in ~/.qagen/config.json and works from any directory.


Usage

Analyze a single page:

qagen https://your-app.com/login

Crawl and analyze the entire application:

qagen https://your-app.com crawl

QAgen creates a .qagen/ folder in your current directory containing all generated files. If a .gitignore file exists, .qagen/ is added automatically.


Output

After each run, two reports are generated:

  • .qagen/qagen-report.html — Session summary: detected flow, test results, self-healing activity
  • .qagen/playwright-report/ — Full Playwright HTML report with screenshots on failure
npx playwright show-report .qagen/playwright-report

What gets generated

your-project/
└── .qagen/
    ├── tests/generated/       AI-generated test files
    ├── playwright-report/     Detailed Playwright report
    ├── test-results/          Screenshots of failed tests
    ├── playwright.config.js   Auto-generated Playwright config
    └── qagen-report.html      QAgen session report

Current status

QAgen is in active development. Current version: 0.1.x — MVP CLI, tested against real web applications.

Working today:

  • Automatic route crawling
  • Critical flow detection (login, register, checkout, search, forms, dashboard)
  • AI test generation with business context
  • Autonomous self-healing with live DOM inspection
  • Contextual memory per domain
  • Root cause analysis for unresolved failures
  • Session HTML report

In progress:

  • CI/CD integration
  • Web dashboard

License

ISC