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

create-endorphin-ai

v0.7.4

Published

Create a new Endorphin AI project with one command

Readme

create-endorphin-ai

Create a new Endorphin AI project with one command.

Usage

Interactive Mode

npx create-endorphin-ai

Direct Project Creation

npx create-endorphin-ai my-ai-tests

Using npm init

npm init endorphin-ai@latest
npm init endorphin-ai@latest my-ai-tests

What It Does

  1. Creates project directory with proper structure
  2. Installs Endorphin AI as a dev dependency
  3. Initializes the project with sample tests and configuration
  4. Sets up npm scripts for common tasks

Generated Project Structure

my-ai-tests/
├── .env                    # Environment variables (add your OpenAI API key)
├── package.json           # Project configuration with helpful scripts
├── endorphin.config.ts     # Endorphin AI configuration
├── .gitignore             # Git ignore patterns
├── tests/                 # Your test files
│   └── sample-test.ts     # Example test (HEALTH-001)
├── test-results/          # Generated test reports
└── test-recorder/         # Test recording sessions

Generated npm Scripts

The created project includes these helpful scripts:

{
  "scripts": {
    "test": "endorphin-ai run test all",
    "test:smoke": "endorphin-ai run test --tag smoke", 
    "test:record": "endorphin-ai run test-recorder",
    "test:single": "endorphin-ai run test",
    "endorphin-ai:init": "./node_modules/.bin/endorphin init",
    "endorphin-ai:version": "./node_modules/.bin/endorphin --version",
    "endorphin-ai:help": "./node_modules/.bin/endorphin --help"
  }
}

Quick Start After Creation

cd my-ai-tests

# 1. Add your OpenAI API key to .env file
echo "OPENAI_API_KEY=your_api_key_here" > .env

# 2. Run the sample test
npx endorphin-ai run test HEALTH-001

# 3. Generate and view test report
npx endorphin-ai generate report
npx endorphin-ai open report

Requirements

  • Node.js 18+
  • OpenAI API key
  • npm or yarn

Features

  • 🎯 One-command setup - Get started instantly
  • 🤖 AI-powered testing - Write tests in plain English
  • 📊 Beautiful reports - Interactive HTML reports with screenshots
  • 🔧 Zero configuration - Works out of the box
  • 🎮 Interactive recorder - Create tests by clicking through your app
  • 📚 TypeScript support - Full type definitions included

Troubleshooting

If npx endorphin-ai doesn't work after creation:

# Use npm scripts instead (always works)
npm run endorphin-ai:init
npm run test

# Or use direct path
./node_modules/.bin/endorphin --help

More Information


Endorphin AI - E2E Testing Reinvented with AI 🎯