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

@brightspot-playwright/playwright-brightspot

v5.0.1

Published

Library to support Brightspot Playwright tests

Readme

playwright-brightspot

Library to support Brightspot Playwright tests. Sister package to @cypress-brightspot/cypress-brightspot.

Status

Scaffold (v0.0.1). Public API surface is defined in src/index.js. Page objects and helpers currently re-export from the consumer repo's e2e-playwright/ tree; they will be migrated into src/pages/ and src/helpers/ as the package matures.

Install

npm install @playwright-brightspot/playwright-brightspot

Peer deps: @playwright/test >= 1.40, playwright >= 1.40.

Usage

const { loginPage, sitesPage, articleEditPage } = require('@playwright-brightspot/playwright-brightspot');

test('login and open sites', async ({ page }) => {
  await page.goto('/cms');
  await loginPage.login(page, username, password);
  await sitesPage.openSiteSettings(page);
});

Override / extend

Override a fixture

Place a JSON file at <repo>/fixtures/overrides/<fileName>.json (or set PWB_OVERRIDES_DIR). The override-aware loaders pick it up automatically:

const { getCMSTestData } = require('@playwright-brightspot/playwright-brightspot');
const theme = getCMSTestData('themeData.json'); // override if present, else bundled default

Extend a page object

const { BaseContentTypePage } = require('@playwright-brightspot/playwright-brightspot');

class ArticleEditPage50 extends BaseContentTypePage {
  getContentTypeLabel(page) {
    // Override the 5.0-specific selector that would otherwise pick up
    // the "Saved..." toast.
    return page.locator('.ContentEdit-status--v5, .ContentEdit-revisionLabel').first();
  }
}

module.exports = new ArticleEditPage50();

Roadmap

  • [ ] Migrate page objects from ../../e2e-playwright/page-objects/ into src/pages/
  • [ ] Migrate helpers (excluding global-setup, global-teardown, testDataFactory — those stay in consumer)
  • [ ] Bundle generic CMS fixtures under src/shared-tests/fixtures/entities/{cms,contentTypes}/
  • [ ] Ship a starter pack of shared-tests/e2e/*.spec.js consumers can run via --config
  • [ ] Provide examples/playwright.config.js template + install.sh
  • [ ] Expose page-object classes (not just singletons) for extends-based overrides
  • [ ] Decouple playwright.config reads in SitesAndSettingsPage.js and BaseFEPage.js behind a configure({ baseUrl, env }) factory
  • [ ] Fixture override directory configurable via PWB_OVERRIDES_DIR env var (already supported in the helper)

License

Apache 2.0