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

@specwright/plugin-mui

v0.1.4

Published

Specwright overlay plugin for Material UI — MUI-specific FIELD_TYPES, selector patterns, and agent knowledge

Readme

@specwright/plugin-mui

Specwright overlay plugin for Material UI (MUI v6) apps.

Installs on top of @specwright/plugin (base plugin required) and adds MUI-specific FIELD_TYPES, Playwright selector patterns, and agent knowledge for Material UI components.


What it overrides

| File | What changes | |---|---| | e2e-tests/utils/stepHelpers.js | Adds MUI_SELECT, MUI_AUTOCOMPLETE, MUI_DATE_PICKER, MUI_CHECKBOX, MUI_DIALOG_CONFIRM FIELD_TYPES with correct portal-aware interaction handlers | | e2e-tests/playwright/auth-strategies/email-password.js | Single-form login (email + password on one page) — replaces two-step flow; waits for /todos, /home, or /dashboard after submit | | .claude/agents/playwright/code-generator.md | MUI v6 component patterns for all 10 component types (TextField, Select, Autocomplete, DatePicker, Checkbox, Dialog, Snackbar, Tabs, Chip, MUI class selectors) | | .claude/rules/dependencies.md | MUI v6 + MUI X v7 import patterns, data-testid placement API per component type, Zustand persist, React Router |


Requirements

  • @specwright/plugin ≥ 0.3.7 installed on the target project first
  • Node.js ≥ 18
  • Target app uses Material UI v6 (@mui/material) with email + password authentication

Install

# 1. Install base plugin first (if not already done)
npx @specwright/plugin init

# 2. Install this overlay
npx @specwright/plugin-mui install

Or via the Specwright Desktop app — select @specwright/plugin-mui as the overlay after base plugin setup.


MUI-specific FIELD_TYPES

The overlay adds five new interaction types to stepHelpers.js:

MUI_SELECT

MUI Select is NOT a native <select> — it renders as a <div role="button"> that opens a Portal listbox. Never use page.selectOption().

// In fieldConfig:
{ 'Priority': { type: FIELD_TYPES.MUI_SELECT, testId: 'select-priority' } }

// What it does internally:
await page.getByTestId('select-priority').click();
await expect(page.getByRole('listbox')).toBeVisible();
await page.getByRole('option', { name: value, exact: true }).click();

MUI_AUTOCOMPLETE

Fills the combobox input and clicks the matching option from the dropdown.

{ 'Category': { type: FIELD_TYPES.MUI_AUTOCOMPLETE, testId: 'input-category' } }

MUI_DATE_PICKER

Types directly into the masked date field in MM/DD/YYYY format — avoids the fragile calendar picker.

{ 'Due Date': { type: FIELD_TYPES.MUI_DATE_PICKER, testId: 'input-due-date' } }

MUI_CHECKBOX

Targets the native <input type="checkbox"> placed via inputProps.

{ 'Complete': { type: FIELD_TYPES.MUI_CHECKBOX, testId: `todo-complete-${testData.todoId}` } }

MUI_DIALOG_CONFIRM

Waits for the MUI Dialog portal, clicks the confirm button, waits for the dialog to close.

{ 'Delete': { type: FIELD_TYPES.MUI_DIALOG_CONFIRM, confirmTestId: 'btn-confirm-delete' } }

data-testid placement (MUI v6 API)

MUI wraps native elements in divs — testids must be placed on the inner element:

// TextField
<TextField slotProps={{ htmlInput: { 'data-testid': 'input-email' } }} />

// Autocomplete
<Autocomplete renderInput={(params) => (
  <TextField {...params} inputProps={{ ...params.inputProps, 'data-testid': 'input-category' }} />
)} />

// DatePicker (MUI X)
<DatePicker slotProps={{ textField: { inputProps: { 'data-testid': 'input-due-date' } } }} />

// Select — testid on root div directly
<Select data-testid="select-priority">

// Checkbox — testid on native input via inputProps
<Checkbox inputProps={{ 'data-testid': 'todo-complete-abc123' }} />

Auth strategy

This overlay uses a single-form email + password strategy. Both fields are visible simultaneously on one page — no two-step email → continue → password flow.

Set credentials in e2e-tests/.env.testing:

[email protected]
TEST_USER_PASSWORD=your-password

Changelog

[0.1.0] — 2026-04-20

Initial release.

  • MUI_SELECT — click-to-open Portal listbox interaction (replaces page.selectOption())
  • MUI_AUTOCOMPLETE — fill + option click for combobox inputs
  • MUI_DATE_PICKER — direct date field typing in MM/DD/YYYY format (avoids calendar picker)
  • MUI_CHECKBOXinputProps-based checkbox toggle and assertion
  • MUI_DIALOG_CONFIRM — Portal dialog open/confirm/close sequence
  • MUI_SELECT_VALUE, MUI_TEXT_VISIBLE — validation types for asserting selected values and visible text
  • Single-form email-password auth strategy — waits for /todos, /home, or /dashboard post-login
  • Code-generator agent with 10-section MUI v6 component pattern guide
  • Dependencies rule doc with MUI v6, MUI X v7 (AdapterDateFnsV3), Zustand v5, React Router v6 import patterns