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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tempest-qa/tempest

v0.0.1

Published

AI agent that helps you write end to end tests

Readme

Tempest

Tempest is an AI agent that helps you write end-to-end tests using Playwright and the OpenAI Agents SDK.

Features

  • Automatically generates E2E tests based on your specifications
  • Uses Playwright for browser automation
  • Iteratively builds and tests the code until it passes
  • Provides detailed test steps and complete test code
  • Built with TypeScript and the OpenAI Agents SDK

Prerequisites

  • Node.js 18+
  • An OpenAI API key

Setup

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Create a .env file with your OpenAI API key:
    OPENAI_API_KEY=your_api_key_here

Usage

As a CLI tool

Tempest provides two main commands: create for generating tests and test for running them.

Creating tests

Generate E2E tests for your application:

npx tempest create <url> <instructions>

# Example
npx tempest create localhost:8080 "play tic-tac-toe and have X win"

# Save the generated test to a file in the tempest/ directory
npx tempest create localhost:8080 "click login button" --save

Running tests

Run a single test file or all tests in the tempest directory:

# Run a specific test file
npx tempest test ./tempest/login-test.spec.ts
npx tempest test ./my-test.js

# Run all tests in the tempest/ directory
npx tempest test --all

Programmatically

import { testWriterAgent } from "tempest";

const result = await testWriterAgent(
  "localhost:8080",
  "play and have x win"
);

Running the example

# Start your test server on localhost:8080
# Then run:
npm run test:agent

Development

# Build the TypeScript code
npm run build

# Run in development mode with watch
npm run dev

# Run tests
npm test

# Type checking
npm run typecheck

# Linting
npm run lint

How it Works

  1. Tempest connects to your application URL
  2. It analyzes the page structure using Playwright
  3. It generates test code based on your instructions
  4. It iteratively runs the test, fixing any issues until it passes
  5. It outputs a complete E2E test specification with:
    • Test name and description
    • Step-by-step test actions
    • Complete Playwright test code

License

MIT