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

@altairalabs/promptarena

v1.1.6

Published

PromptKit Arena - Multi-turn conversation simulation and testing tool for LLM applications

Downloads

385

Readme

@altairalabs/promptarena

PromptKit Arena - Multi-turn conversation simulation and testing tool for LLM applications

Installation

npx (No Installation Required)

npx @altairalabs/promptarena run -c ./examples/customer-support

Global Installation

npm install -g @altairalabs/promptarena

# Use directly
promptarena --version
promptarena run -c ./config

Project Dev Dependency

npm install --save-dev @altairalabs/promptarena

# Use via npm scripts
# Add to package.json:
{
  "scripts": {
    "test:prompts": "promptarena run -c ./tests/arena-config"
  }
}

What is PromptKit Arena?

PromptKit Arena is a comprehensive testing framework for LLM-based applications. It allows you to:

  • 🎯 Test conversations across multiple LLM providers (OpenAI, Anthropic, Google, Azure)
  • 🔄 Run multi-turn simulations with automated agent interactions
  • Validate outputs using assertions and quality metrics
  • 📊 Generate reports with detailed analysis and comparisons
  • 🛡️ Test guardrails and safety measures
  • 🔧 Validate tool usage and function calling

Quick Start

Get started in under 2 minutes:

# Create a new project from a template
npx @altairalabs/promptarena init my-test --quick

# Navigate to your project
cd my-test

# Set your API key (or use mock provider for testing)
export OPENAI_API_KEY=your-key-here

# Run your first test
npx @altairalabs/promptarena run

# View the HTML report
open out/report.html

That's it! The template includes pre-configured scenarios, assertions, and examples to get you started.

Browse Available Templates

# List all available templates
npx @altairalabs/promptarena templates list

# Create from a specific template
npx @altairalabs/promptarena init my-project --template community/iot-maintenance-demo

# Interactive mode (choose template, provider, etc.)
npx @altairalabs/promptarena init

Key Features

  • 🎯 Multi-Provider Testing - Compare OpenAI, Anthropic, Google, and Azure side-by-side
  • 🔄 Self-Play Mode - AI agents simulate realistic user conversations with personas
  • Turn-Level Assertions - Validate individual responses (content, tone, length, JSON)
  • 📊 Conversation Assertions - Check patterns across entire conversations
  • 🎭 Template & Persona System - Dynamic prompts with variables and reusable personas
  • 🛡️ Guardrail Testing - Ensure tools and responses follow safety constraints
  • 📈 HTML Reports - Beautiful, detailed reports with cost tracking and metrics

Learn More

Assertion Types

  • Turn-Level: content_includes, content_matches, json_schema, jsonpath, llm_judge, tone, length
  • Conversation-Level: llm_judge_conversation, tools_not_called_with_args, max_tool_calls

See the Assertions Guide for examples and best practices.

Documentation

License

Apache-2.0 - see LICENSE

Contributing

Contributions welcome! See CONTRIBUTING.md

Support