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

agents-cli-automation

v1.0.23

Published

Agents CLI

Downloads

2,428

Readme

Agents CLI

A simple CLI tool to bootstrap production-ready Playwright automation frameworks for UI and API testing.

Installation

Option 1: Using npx (No installation required)

npx agents-cli-automation init

Option 2: Install globally via npm

npm install -g agents-cli-automation
agents init

Option 3: Install locally in a project

npm install agents-cli-automation
npx agents init

Quick Start

Run the setup command and follow the interactive prompts:

npx agents-cli-automation init

Step 1: Select Framework Type

Choose your testing type:

  1. Playwright UI Testing - Browser automation, E2E tests, component testing
  2. Playwright API Testing - REST API tests, integration testing, backend validation

Step 2: Select Your Language (for UI Testing)

Choose your preferred language:

  • TypeScript (Recommended) - Latest & Type Safe
  • JavaScript - ES Modules, modern syntax
  • Java - Maven + JUnit5
  • C# - NUnit + .NET

Your scalable, production-ready framework will be generated automatically!

Available Agents

📊 Playwright UI Testing Framework

Creates a production-ready Playwright framework for UI automation with support for TypeScript, JavaScript, Java, and C#.

Core Features:

  • Page Object Model (POM) - Reusable page classes with best practices
  • Fixtures & Setup - Built-in browser lifecycle management
  • Parallel Execution - Run tests simultaneously (4 workers by default)
  • Chromium Only - Single browser for consistency and speed
  • Test Data Readers - Support for JSON, CSV, and YAML files
  • Form Helpers - Handle dropdowns, radio buttons, checkboxes, text inputs
  • BDD Support - Cucumber/Gherkin feature files for scenario-based testing
  • Latest APIs - Uses latest Playwright versions with full type safety

Language Options:

  • TypeScript - Full tsconfig with strict mode and path aliases (@pages/@utils/@fixtures/@data)
  • JavaScript - ES Modules with modern syntax (no build step required)
  • Java - Maven-based structure with JUnit 5 and all dependencies
  • C# - .NET 8 with NUnit and async/await patterns

🔌 Playwright API Testing

Creates a production-ready Playwright framework for API automation with:

  • ✅ Complete API test project structure
  • ✅ REST API request handling
  • ✅ Response validation templates
  • ✅ Authentication fixtures
  • ✅ Database integration helpers
  • ✅ Sample API tests (GET, POST, etc.)
  • ✅ CI/CD ready configuration

The generated agent will include everything you need to start automating tests immediately!

What Gets Created

When you run agents init, a .github/agents directory is created in your project with language-specific framework files.

For UI Testing (Choose Your Language)

TypeScript

  • playwright-ui-testing-typescript-agent.md
    • Complete TypeScript framework with strict type checking
    • tsconfig.json with path aliases
    • Full type definitions for all utilities
    • ES2020 module syntax

JavaScript

  • playwright-ui-testing-javascript-es-modules-agent.md
    • Modern ES Modules syntax (Node.js 18+)
    • No build step required
    • Same features as TypeScript without type annotations

Java

  • playwright-ui-testing-java-agent.md
    • Maven-based project structure
    • JUnit 5 test framework
    • Complete pom.xml with all dependencies
    • Maven parallel execution support

C#

  • playwright-ui-testing-c#-agent.md
    • .NET 8+ project structure
    • NUnit test framework
    • Complete .csproj configuration
    • Async/await patterns throughout

For API Testing

  • playwright-api-testing-agent.md - Complete API framework setup

Framework Structure (All Languages)

Each generated framework includes:

📂 Project Structure

framework/
├── pages/               # Page Object Model classes
├── utils/              # DataReader, FormHelper, TestDataManager
├── fixtures/           # Browser setup and fixtures
├── tests/              # Test files
├── features/           # Gherkin/BDD scenarios
├── data/               # Test data (JSON, CSV, YAML)
├── config files        # Language-specific (tsconfig.json, pom.xml, etc.)
└── Sample tests        # Working examples ready to run

✨ Included in Every Framework:

  • Page Object Model classes with selectors
  • Form helpers for complex form interactions
  • Test data readers for JSON, CSV, YAML
  • BDD/Gherkin feature files
  • Browser fixtures with proper cleanup
  • Parallel execution configuration
  • Sample tests with SauceDemo app
  • Complete setup and run instructions

Requirements

To Run CLI

  • Node.js 18+
  • npm or yarn

To Run Generated Frameworks

TypeScript & JavaScript:

  • Node.js 18+
  • npm or yarn

Java:

  • Java 11+
  • Maven 3.8+

C#:

  • .NET 8 SDK
  • Visual Studio 2022 or VS Code with C# extension

Why Choose This Framework?

Multi-Language Support - Use TypeScript, JavaScript, Java, or C# ✅ Minimal Setup - Fully scaffolded projects, developers focus on tests, not setup ✅ Page Object Model - Reusable, maintainable test code patterns ✅ Scalable Architecture - Ready for enterprise-grade test suites ✅ Parallel Execution - Run tests faster across multiple workers ✅ BDD Ready - Cucumber/Gherkin support for business-readable scenarios ✅ Test Data Management - JSON, CSV, YAML support out of the box ✅ Form Helpers - Handle complex forms, dropdowns, checkboxes easily ✅ Latest Playwright - Always using cutting-edge Playwright features ✅ Production Ready - Fixtures, proper cleanup, error handling included

Framework Quick Features

Each generated framework provides:

For UI Testing:

  • SauceDemo test examples (login, shopping cart)
  • Complete page objects with all selectors
  • Form interaction helpers for any element type
  • Test data loading from multiple formats
  • BDD scenario examples with step definitions
  • Parallel execution (4 workers by default)
  • Chromium-only for reliability

For API Testing:

  • Writing GET, POST, PUT, DELETE tests
  • Response validation patterns
  • Authentication and headers setup
  • Environment variables configuration
  • Database integration examples

Happy automating! 🚀