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-polteq-bdd-ts

v1.0.4

Published

Scaffold a Polteq BDD (Playwright + Cucumber) TypeScript test project.

Readme

create-polteq-bdd-ts

Scaffolds a Polteq BDD TypeScript test project: Playwright + playwright-bdd (Cucumber-style Gherkin) with a page-object structure, preconfigured and ready to run.

Installation

No install step is needed — npm init fetches and runs the latest published version (create-polteq-bdd-ts) on demand:

npm init polteq-bdd-ts@latest my-project

If you'd rather install the CLI explicitly first, npx works the same way:

npx create-polteq-bdd-ts@latest my-project

Usage

npm init polteq-bdd-ts@latest my-project
cd my-project
npm install
npx playwright install
npm test

Or scaffold into the current directory:

mkdir my-project && cd my-project
npm init polteq-bdd-ts@latest .

The target directory must be empty (or not yet exist). You'll be prompted for a project name, used as the name field in the generated package.json.

What gets created

my-project/
├── .gitignore
├── .vscode/
│   ├── extensions.json      # recommended Cucumber + Playwright extensions
│   └── settings.json        # cucumber.features / cucumber.glue paths
├── features/                # your .feature files go here (empty on init)
├── providedtestcode/
│   └── AddProductToCartConfirmationTest.spec.ts   # example linear Playwright test
├── src/
│   ├── fixtures/
│   │   └── fixtures.ts      # playwright-bdd test/fixture wiring (Given/When/Then/Before/After)
│   ├── pages/
│   │   ├── base.page.ts
│   │   ├── home.page.ts
│   │   ├── my-account.page.ts
│   │   └── contact.page.ts
│   └── steps/
│       ├── hooks.ts         # Before/After hooks (viewport, failure screenshots)
│       └── step-definitions.ts
├── package.json
├── playwright.config.ts
└── tsconfig.json

Scripts in the generated project

| Script | Description | |---|---| | npm test | Generate BDD tests from .feature files, then run Playwright | | npm run test:smoke | Same, filtered to @smoke tagged scenarios | | npm run test:mail | Same, filtered to @mail tagged scenarios | | npm run bddgen | Regenerate Playwright specs from .feature files only | | npm run report | Open the last HTML Playwright report | | npm run install:browsers | Install Playwright browser binaries | | npm run watch | Watch .feature/.ts changes and re-run bddgen + Playwright UI in parallel |

Writing scenarios

Add .feature files under features/, add matching step definitions under src/steps/, and add page objects under src/pages/ (extend BasePage). Wire new page objects into src/fixtures/fixtures.ts so they're injectable into steps.

Releasing

Add an entry to CHANGELOG.md for the new version, then:

npm version patch   # or minor/major — commits, tags, and pushes (via postversion)

Pushing the tag triggers .github/workflows/publish.yml, which publishes to npm and creates the matching GitHub release (using the CHANGELOG.md section for that version as the release notes). Publishing uses npm's Trusted Publisher (OIDC) — no npm token/secret needed. On the package's npmjs.com settings, add a Trusted Publisher pointing at this GitHub repo and the publish.yml workflow file.

Template files live in templates/default/. Two files get special handling at scaffold time:

  • _gitignore → renamed to .gitignore (npm strips real .gitignore files from published tarballs)
  • package.json.template → renamed to package.json, with __PROJECT_NAME__ replaced by the prompted project name