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

watsonx-playground-cli

v0.2.1

Published

CLI for watsonx-chat playground tool automation

Readme

watsonx-playground-cli

Install:

npm install -g watsonx-playground-cli@latest

Configure:

wxp auth set-token --token <playground_cli_token> --base-url https://your-site.example.com
wxp auth tokens list
wxp auth tokens create --name "CI token"
wxp auth tokens revoke ptk_xxx_yyy --yes

Common commands:

wxp tools list
wxp tools fetch --out ./tools-export.json
wxp tools push --file ./tools-export.json --overwrite --yes
wxp tools share my_tool --email [email protected] --yes
wxp tools unshare my_tool --email [email protected] --yes
wxp tools generate-draft --prompt "Build a PTO request tool"
wxp tools create --file ./tool.json --yes
wxp tools update my_tool --file ./updates.json --yes
wxp tools delete my_tool --yes
wxp tools export my_tool --out ./my_tool.zip
wxp tools bundle-export --tool-ids pto_tool,expense_tool --agent-name hr_bundle_agent --display-name "HR Bundle"
wxp tools push-wxo --tool-ids pto_tool,expense_tool --overwrite --yes
wxp tools fetch-wxo --tool-names get_pto_tool,add_pto_tool --export-dir ./wxo-tools
wxp tools delete-wxo --tool-names get_pto_tool,add_pto_tool --yes
wxp tools import-wxo --tool-names get_pto_tool,add_pto_tool --overwrite --yes
wxp agents list
wxp agents fetch --json
wxp agents sync --connection-id conn-default --yes
wxp agents push hr_assistant --file ./agent-update.json --connection-id conn-default --yes
wxp agents generate-draft --prompt "Build an HR policy assistant"
wxp agents chat hr_assistant --connection-id conn-default --prompt "Summarize open PTO requests"
wxp agents smoke --prompt "Summarize open PTO requests" --connection-id conn-default --agent-ids hr_assistant,travel_agent
wxp testing get
wxp testing save --file ./testing-suites.json --yes
wxp testing generate-cases --agent-name "HR Assistant" --connection-label "Default Connection" --count 25
wxp testing run --agent-id hr_assistant --connection-id conn-default --cases-file ./cases.json
wxp testing run --agent-id hr_assistant --service-url https://api.dl.watson-orchestrate.ibm.com/instances/<id>/v1/orchestrate/runs --api-key <key> --token-mode aws --cases-file ./cases.json
wxp settings get
wxp settings save --file ./settings-update.json --yes
wxp settings get-api-key --connection-id conn-default
wxp connections list
wxp connections add --file ./connection.json --activate --yes
wxp connections add --service-url https://api.dl.watson-orchestrate.ibm.com/instances/<id>/v1/orchestrate/runs --api-key <key> --token-mode ibmcloud --label "Prod" --activate --yes
wxp connections activate conn-default --yes
wxp connections remove conn-old --yes
wxp setup doctor
wxp setup install-orchestrate --yes

Notes:

  • tools push-wxo and tools fetch-wxo call server-side sync endpoints (/api/playground/tools/wxo/push and /api/playground/tools/wxo/fetch).
  • tools delete-wxo and tools import-wxo call /api/playground/tools/wxo/delete and /api/playground/tools/wxo/import.
  • auth tokens list|create|revoke manages owner-scoped Playground CLI tokens without using the UI.
  • No local IBM ADK orchestrate CLI is required for WXO tool sync commands.
  • WXO sync uses your saved Playground connection (connectionId) or explicit --service-url/--api-key overrides.
  • agents fetch reads agents from the instance but does not persist them into connection settings.
  • agents sync is the one-step persist flow (fetch + save) that enables connection-based agents chat/agents smoke.
  • --token-mode supports ibmcloud and aws; default is ibmcloud so --token-url is optional.
  • For handoff workflows, use “handoff to IBM Bob” wording in internal runbooks/docs.
  • Testing cases can include profileUserIds; runtime sends the first attached profile as user_id, userid, userId, and customer_id.

Exit codes:

  • 0: success
  • 2: config/auth setup problem (missing token/base URL)
  • 3: unauthorized/forbidden API auth error
  • 4: resource not found
  • 5: network/connectivity error
  • 64: usage error (invalid command/flags)