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

@kagura-run/cli

v0.3.10

Published

Kagura AI - Open source CLI for running agentic tests

Downloads

1,071

Readme

@kagura-run/cli

Command line interface for Kagura AI. Run agentic end-to-end tests from your terminal.

Installation

npm install -g @kagura-run/cli

Setup

kagura setup

This launches an interactive wizard to configure:

  • Mode: Local (uses your Anthropic key) or Cloud (uses Kagura Cloud)
  • API Keys: Anthropic API key for local mode, Kagura API key for cloud mode
  • Email Skill (optional): Configure IMAP for automated signup/verification flows

Commands

Ad-hoc Testing

Run a one-off test against any URL:

# Basic test
kagura run --url "https://example.com" --desc "Verify homepage loads"

# With detailed instructions
kagura run --url "https://myapp.com/login" \
  --desc "Test login flow" \
  --prompt "Use email: [email protected], password: Test123!"

# Cloud mode: don't wait for completion (fire and forget)
kagura run --url "https://example.com" --desc "Test site" --no-wait

Options: | Flag | Description | |------|-------------| | --url <url> | Target URL to test (required) | | --desc "<description>" | Test objective (required) | | --prompt "<instructions>" | Detailed instructions for the AI | | --no-wait | Return immediately without waiting for results (cloud mode) |

Trigger Saved Tests (Cloud Mode)

Trigger published tests from your Kagura Cloud dashboard:

# Trigger a single test
kagura trigger --test-id <uuid>

# Trigger multiple tests
kagura trigger --test-id <id1>,<id2>,<id3>

# Trigger a test group
kagura trigger --group-id <uuid>

# Fire and forget (don't wait for completion)
kagura trigger --test-id <uuid> --no-wait

Options: | Flag | Description | |------|-------------| | --test-id <id> | Test ID(s) to trigger (comma-separated for multiple) | | --group-id <id> | Test group ID to trigger | | --no-wait | Return immediately without waiting for results |

Check Status & Results

# Check run status
kagura status --run-id <uuid>

# Get detailed results
kagura results --run-id <uuid>

# List recent runs
kagura runs
kagura runs --status passed
kagura runs --limit 10

Manage Tests (Cloud Mode)

# List all tests
kagura tests
kagura tests --published
kagura tests --passing
kagura tests --search "login"

# Get test details
kagura tests get --test-id <uuid>

# List test groups
kagura groups
kagura groups --limit 10

Usage & Billing

# Check credit balance
kagura usage

Mode Switching

# Show current mode
kagura mode

# Switch to local mode
kagura mode local

# Switch to cloud mode
kagura mode cloud

Local Dashboard

# Launch local visualization UI
kagura ui

Environment Variables

| Variable | Description | |----------|-------------| | ANTHROPIC_API_KEY | Anthropic API key (local mode) | | KAGURA_API_KEY | Kagura Cloud API key | | KAGURA_APP_URL | Override app URL (default: https://app.kagura.run) | | KAGURA_API_URL | Override API URL (default: https://api.kagura.run) |

Environment variables take precedence over config file values.

Config File

Configuration is stored in ~/.kagura/config.json:

{
  "mode": "cloud",
  "apiKey": "kag_live_...",
  "appUrl": "https://app.kagura.run",
  "apiUrl": "https://api.kagura.run",
  "anthropicApiKey": "sk-ant-...",
  "email": {
    "baseEmail": "[email protected]",
    "imap": {
      "host": "imap.gmail.com",
      "port": 993,
      "secure": true,
      "auth": {
        "user": "[email protected]",
        "pass": "app-password"
      }
    }
  }
}

Exit Codes

| Code | Meaning | |------|---------| | 0 | Success / test passed | | 1 | Error / test failed | | 2 | Test paused (waiting for user input) |

License

Apache-2.0