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

playclaw-custom

v1.0.0

Published

Connect any HTTP/REST agent endpoint to PlayClaw — the professional testing playground

Readme

playclaw-custom

Connect any HTTP/REST agent to PlayClaw — the professional AI agent testing playground.

Works with any agent that has an HTTP endpoint: your own backend, an n8n workflow, a LangChain server, a Flowise chatflow, a Botpress bot, a local LLM with an API, or anything else.

Quick start

npx playclaw-custom PC-XXXX-XXXX-XXXX --endpoint https://my-agent.com/api/chat

Requirements

  • A PlayClaw account and connection token (PC-XXXX-XXXX-XXXX) from playclaw.info
  • Your agent must be reachable via HTTP/HTTPS POST (or GET/PUT)
  • Node.js 18+

Usage

npx playclaw-custom <PC-TOKEN> --endpoint <URL> [options]

Options:
  -e, --endpoint <URL>           Your agent's HTTP endpoint URL (required)
      --auth <value>             Authorization header (e.g. "Bearer sk-..." or "ApiKey abc")
      --method <method>          HTTP method: GET, POST, PUT (default: POST)
      --request-field <name>     JSON field for the user message (default: "message")
      --response-field <path>    Dot-notation path for the reply (default: "response")
      --headers <json>           Extra headers as JSON string
      --timeout <ms>             Request timeout in ms (default: 30000)
  -v, --version                  Show version
  -h, --help                     Show help

Environment variables

| Variable | Description | |---|---| | PLAYCLAW_CUSTOM_ENDPOINT | Agent endpoint URL | | PLAYCLAW_CUSTOM_AUTH | Authorization header value | | PLAYCLAW_CUSTOM_METHOD | HTTP method | | PLAYCLAW_CUSTOM_REQUEST_FIELD | Request body field name | | PLAYCLAW_CUSTOM_RESPONSE_FIELD | Response field dot-path | | PLAYCLAW_CUSTOM_HEADERS | Extra headers as JSON string | | PLAYCLAW_CUSTOM_TIMEOUT | Timeout in ms |

Examples

Basic agent (any framework)

Your agent receives { "message": "..." } and returns { "response": "..." }:

npx playclaw-custom PC-XXXX --endpoint https://my-agent.com/chat

Custom field names

Your agent uses different field names:

npx playclaw-custom PC-XXXX --endpoint https://api.mybot.io/reply \
  --request-field "query" --response-field "answer"

With authentication

npx playclaw-custom PC-XXXX --endpoint https://api.mybot.io/chat \
  --auth "Bearer my-secret-token"

OpenAI-compatible endpoint (e.g. local LLM, LiteLLM proxy)

npx playclaw-custom PC-XXXX --endpoint http://localhost:11434/v1/chat/completions \
  --response-field "choices.0.message.content"

n8n webhook

npx playclaw-custom PC-XXXX \
  --endpoint https://my-n8n.com/webhook/agent-chat \
  --request-field "chatInput" \
  --response-field "output"

Extra headers (tenant, API version, etc.)

npx playclaw-custom PC-XXXX --endpoint https://api.myplatform.com/agent \
  --headers '{"X-Tenant-ID":"acme","X-API-Version":"2"}' \
  --auth "ApiKey abc123"

Response field auto-detection

If your --response-field path doesn't match, the bridge automatically tries common field names before giving up: response, reply, message, content, text, output, answer, choices.0.message.content, completion, result

How it works

PlayClaw Playground → Supabase Realtime → playclaw-custom CLI → Your HTTP endpoint → response back

The bridge sends a POST request with your message to your endpoint on every turn, and forwards whatever your agent replies back to the PlayClaw playground.


Part of the PlayClaw bridge family:

  • playclaw — OpenClaw agents
  • playclaw-claude — Claude / Anthropic API agents
  • playclaw-openai — OpenAI / GPT agents
  • playclaw-custom — Any HTTP/REST agent ← you are here