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

create-qa-app

v0.1.1

Published

Scaffold type-safe automation testing projects

Readme

create-qa-app

Scaffold type-safe Playwright automation testing projects with Page Object Model (POM) architecture.

Quick Start

npm create qa-app

Follow the prompts to set up your project. You can also use bun create qa-app or pnpm create qa-app.

What You Get

Every generated project includes:

| Tool | Purpose | |------|---------| | TypeScript | Strict typing, ES modules | | Playwright | End-to-end testing | | ESLint | Linting with TypeScript and Playwright best-practice rules | | Prettier | Code formatting | | Husky | Git hooks | | lint-staged | Run checks only on staged files | | Zod | Optional runtime validation for env vars |

Pre-commit Checks (Husky + lint-staged)

On every git commit, Husky runs lint-staged, which:

  • TypeScript/JavaScript (.ts, .tsx, .js, .mjs, .cjs) → Prettier format, then ESLint fix
  • Config/Markdown (.json, .md, .yml, .yaml) → Prettier format

The commit succeeds only if all checks pass. Fixable issues are applied automatically; unfixable ones block the commit until you resolve them.

Scripts

| Script | Description | |--------|-------------| | typecheck | TypeScript check | | test | Run Playwright tests | | test:ui | Playwright UI mode | | test:headed | Run tests in headed browser | | lint | Run ESLint | | lint:fix | ESLint with auto-fix | | format | Prettier format all files | | format:check | Verify formatting | | report:html | Open HTML report (if HTML reporter) | | report:allure | Generate and open Allure report (if Allure) |

Optional (Advanced template)

  • GitHub Actions – CI workflow for running tests
  • Allure – Rich HTML reports

Minimal vs Advanced Template

Minimal

Choose Minimal when you want a lightweight setup to get started quickly:

  • Quick setup – Fewer prompts; fewer files
  • Learning – Good for understanding the basics
  • Simple apps – Small test suites, single-page flows
  • No CI – You add your own later if needed

Project structure (minimal):

my-project/
├── src/
│   ├── config/
│   │   └── env.ts
│   ├── pages/
│   │   └── home.page.ts
│   └── tests/
│       └── home.spec.ts
├── playwright.config.ts
├── tsconfig.json
├── eslint.config.js
├── .prettierrc.json
├── .prettierignore
├── .husky/
│   └── pre-commit
├── .gitignore
└── package.json

Advanced

Choose Advanced when you need a production-ready structure:

  • Larger suites – Multiple pages, fixtures, shared utilities
  • Auth flows – Login/session handling with storage state
  • Type safety – Typed auth and test data
  • CI/CD – Optional GitHub Actions workflow
  • Reporting – HTML and/or Allure reporters

Project structure (advanced):

my-project/
├── src/
│   ├── config/
│   │   ├── env.ts
│   │   └── constants.ts
│   ├── pages/
│   │   ├── login.page.ts
│   │   └── secure.page.ts
│   ├── fixtures/
│   │   └── test.fixture.ts
│   ├── utils/
│   │   └── helpers.ts
│   ├── data/
│   │   └── test-data.ts
│   ├── types/
│   │   └── auth.ts
│   └── tests/
│       └── login.spec.ts
├── playwright.config.ts
├── tsconfig.json
├── eslint.config.js
├── .prettierrc.json
├── .prettierignore
├── .husky/
│   └── pre-commit
├── .github/
│   └── workflows/
│       └── playwright.yml
├── .gitignore
└── package.json

Note: If you choose "Keep everything under src? No", the structure is the same but config, pages, fixtures, utils, data, and types live at the project root instead of under src/.

Zod: Runtime Validation

When prompted "Use Zod for runtime validation?", you choose how environment variables (like BASE_URL, USERNAME, PASSWORD) are validated.

With Zod (recommended for advanced)

  • Validates at startup – Invalid env values fail fast with clear errors
  • Typed schemaEnv inferred from the schema
  • Defaults – Safe defaults in one place
// env.ts
const envSchema = z.object({
  BASE_URL: z.url().default("https://example.com"),
  USERNAME: z.string().min(1).default("user"),
  PASSWORD: z.string().min(1).default("secret")
});
export const env = envSchema.parse(process.env);

Without Zod (simpler for minimal)

  • Fewer dependencies – No Zod in package.json
  • Plain parsing – Manual validation and defaults
  • Lighter – Good for quick setups

Choose Yes when you want stronger guarantees and typed schema. Choose No when you prefer minimal setup and fewer dependencies.