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

super-api-playwright-tester

v1.0.0

Published

Unified E2E framework combining Playwright UI automation with hyper-fast super-api-tester contract assertions.

Readme

super-api-playwright-tester 🎭🚀

A unified, high-performance E2E testing wrapper that combines the lightning-fast API contract assertions of super-api-tester with the robust browser automation layers of Playwright.

Bypass slow UI forms by seeding your test environments and verifying backend contracts using ultra-fast Undici HTTP requests, then instantly dive into native browser testing—all from within a single, elegant test suite runner.


Features

  • Unified Imports: Get your custom API engine (superApi), assertions (expect), and runtime schemas (s) directly from a single import stream.
  • Blistering Fast Setup: Avoid UI login bloat. Use the API runner to seed test environments or grab authorization keys in milliseconds before launching a browser context.
  • Strict Type Safety: Fully integrated with Zod via the s shorthand object for strict backend runtime validations.
  • Native Playwright Integration: Works perfectly with Playwright's parallel execution engine, trace viewers, HTML reports, and CI configurations.

Installation

Install the wrapper alongside Playwright's browser binaries in your project repository:

npm install -D super-api-playwright-tester
npx playwright install

Getting Started
Because this package extends Playwright's core testing runner using custom fixtures, you can jump straight into writing your hybrid E2E workflows without any extra wrapper architecture files.

Basic Example (tests/hybrid-demo.spec.ts)
TypeScript
import { test, expect, s } from 'super-api-playwright-tester';

// 1. Define your strict backend payload contract
const UserProfileBlueprint = s.object({
  id: s.number(),
  username: s.string(),
  role: s.string(),
});

test('Hybrid Flow: Seed data via fast API context, then verify Web UI', async ({ page, superApi }) => {
  
  // Phase 1: High-speed contract verification (Bypasses browser layers)
  const apiResponse = await superApi.post('/api/users/setup', {
    body: { username: 'qa_lead_automation', role: 'admin' }
  });
  
  // Fluid assertion chains from super-api-tester
  apiResponse
    .expectStatus(201)
    .expectSchema(UserProfileBlueprint);
    
  const verifiedUser = apiResponse.body;

  // Phase 2: Instant front-end UI assertion using Playwright
  await page.goto(`https://your-platform-domain.com/profile/${verifiedUser.id}`);
  
  // Standard native Playwright UI verification
  const profileHeader = page.locator('h1.user-heading');
  await expect(profileHeader).toHaveText('Welcome back, qa_lead_automation!');
});