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

chathai

v1.1.6

Published

chathai is a tool to help u make test script from testcase(xlxs) now can use on cypress

Readme

Chathai

npm version License: ISC

A powerful tool for generating Cypress test scripts from Excel test cases

Quick Start

npm install chathai --save-dev
npx chathai generate

Installation

npm install chathai --save-dev
# Or install globally
npm install -g chathai

Features

  • Generate Cypress test scripts from Excel test cases
  • Automatic template creation
  • Support for custom Excel file paths
  • Easy to use command-line interface
  • Validate Excel file structure
  • List available templates
  • Data-Driven Testing (DDT) generation via fixtures and placeholders

Usage

Basic Usage

npx chathai generate

This will create test scripts in the default cypress/e2e directory using the default template.

Using Custom Excel File

npx chathai generate path/to/your/excel.xlsx

Specifying Custom Output Directory

npx chathai generate path/to/your/excel.xlsx --output-dir cypress/e2e

Default output directory is cypress/e2e (unless overridden by --output-dir or .chathai-config.json).

Generate with DDT

npx chathai generate path/to/your/excel.xlsx --ddt ecommerce_ddt
# or
npx chathai generate -ddt ecommerce_ddt
# If you omit the name: defaults to ecommerce_ddt
npx chathai generate -ddt

This generates tests that:

  • Load fixture cypress/fixtures/ecommerce_ddt.json in beforeEach
  • Use {{field}} placeholders inside Excel value/target cells (resolved to row.field)

Example Excel values:

  • type with value/target: {{email}}
  • type with value/target: {{phone}}
  • select with value/target: ไทย or DE

Generated pattern:

describe('Your Scenario', () => {
  beforeEach(() => {
    cy.fixture('ecommerce_ddt.json').as('rows');
  });

  it('Your Test', function () {
    const runStep = (row) => {
      // steps here using row.*
    };
    this.rows.forEach(row => runStep(row));
  });
});
npx chathai generate path/to/your/excel.xlsx custom/output/directory

List Available Templates

npx chathai --list-templates

This will display all available templates in the xlsxtemplate directory.

Create a New Template

npx chathai --create-template my-template.xlsx

This will create a new template file named my-template.xlsx in the xlsxtemplate directory.

Validate an Excel File

npx chathai --validate path/to/your/excel.xlsx

This will check if the specified Excel file has a valid structure.

CLI warnings summary

After generation, CLI prints a warnings summary if needed, for example:

  • Missing required columns (e.g., TestScenario(des), Test case(IT), command)
  • Found {{placeholder}} without -ddt
  • Suspicious contains value (expect two args separated by comma or slash)
  • "chaining?=YES" used without prior chain
  • Unknown hook name

Set Default Output Directory

npx chathai --output-dir custom/output/directory

This will set the default output directory for generated test scripts.

You can also set defaultOutputDir or a default fixture in .chathai-config.json:

{
  "defaultOutputDir": "cypress/e2e",
  "defaultFixture": "ecommerce_ddt"
}

Excel Template Structure

The default template includes the following columns:

  • Test Case ID
  • Test Case Name
  • Description
  • Steps
  • Expected Result
  • Actual Result
  • Status

Example

  1. Create a new project:
mkdir my-test-project
cd my-test-project
npm init -y
npm install chathai --save-dev
  1. Generate test scripts:
npx chathai generate
  1. The generated test scripts will be available in the cypress/e2e directory.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the ISC License - see the LICENSE file for details.

Support

If you encounter any issues or have questions, please open an issue on GitHub.