77trust / 100

Playtest Run

by Rengi Forge in Documents & files

x402 APIPassing, checked 2 h ago

Playtest: Play a web game (URL or ZIP build) as on a PC and as on a weak phone: errors, missing files, black or frozen screen, load time, draw calls, textures, shader stalls, memory leaks, build weight, video and screenshots. Full schema: https://rengi.dev/v1/playtest/schema

POST
https://rengi.dev/v1/playtest/run
Price
$0.25
per call in USDC
Uptime
98.0%
last 30 days
Response time
115 ms
232 ms slowest 5%
Last check
Passed
2 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://rengi.dev/v1/playtest/run

Each call costs $0.25 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://rengi.dev/v1/playtest/run
content-type: application/json

{
  "seconds": 30,
  "steps": [
    {
      "do": "wait",
      "ms": 1500
    },
    {
      "do": "key",
      "holdMs": 100,
      "key": "Enter"
    },
    {
      "do": "key",
      "holdMs": 1200,
      "key": "ArrowRight"
    }
  ],
  "zipUrl": "https://rengi.dev/samples/playtest-demo.zip"
}

Parameters

ParameterTypeRequiredDescription
monkeybooleanNoAfter the steps, press random keys, clicks and taps until the pass ends. Default: true.
profilesarray of stringNodesktop: 1280x720; phone: 390x844 touch screen with the CPU slowed 4x. Default: ["desktop","phone"].
secondsintegerNoPlay time per profile, not counting loading. Default: 30.
seedintegerNoRandom input seed, to repeat a run. Default: 1.
stepsarray of objectNoOptional scenario played first: wait, key, click, tap, type. Default: [].
urlstring (uri)NoPublic URL of the game page.
zipstringNoZIP of a static web build as base64, up to about 35 MB (index.html at the root or one folder down; Unity WebGL builds work). Bigger builds: zipUrl, up to 50 MB.
zipUrlstring (uri)No

Example response

The provider's example. We can't check it without paying.

Example response, 117 lines
{
  "contactSheet": "https://rengi.dev/files/<id>/contact-sheet.jpg",
  "findings": [
    {
      "code": "js_error",
      "evidence": "3x TypeError: Cannot read properties of undefined (reading 'hp')",
      "message": "3 uncaught JavaScript error(s).",
      "profile": "both",
      "severity": "error"
    },
    {
      "code": "missing_files",
      "evidence": "/assets/sfx/jump.ogg",
      "message": "1 file(s) not found (404).",
      "profile": "both",
      "severity": "error"
    },
    {
      "code": "memory_growth",
      "message": "JS memory kept growing: 38 MB to 71 MB, about 66 MB per minute. Likely a leak (objects created every frame and kept).",
      "profile": "desktop",
      "severity": "warning"
    },
    {
      "code": "huge_texture",
      "message": "A 4096x4096 texture (about 64 MB of GPU memory). Phones often cap at 4096 and run out of memory; use 2048 or compressed textures (KTX2).",
      "profile": "both",
      "severity": "warning"
    }
  ],
  "profiles": {
    "desktop": {
      "blockedRequests": 0,
      "consoleErrors": [],
      "cpuSlowdown": 1,
      "errors": [
        {
          "count": 3,
          "message": "TypeError: Cannot read properties of undefined (reading 'hp')"
        }
      ],
      "failedRequests": [
        {
          "status": 404,
          "url": "/assets/sfx/jump.ogg"
        }
      ],
      "frames": {
        "count": 1620,
        "hitches": 9,
        "p50Ms": 16.7,
        "p95Ms": 33.4,
        "p99Ms": 50.1,
        "softwareFps": 54,
        "worstMs": 212
      },
      "load": {
        "domContentLoadedMs": 410,
        "firstDrawMs": 1420,
        "loadMs": 1180
      },
      "longTasks": {
        "count": 4,
        "worstMs": 380
      },
      "memory": {
        "endMb": 71,
        "slopeMbPerMin": 66,
        "startMb": 38
      },
      "network": {
        "biggest": [
          {
            "mb": 8.7,
            "url": "/Build/game.wasm"
          }
        ],
        "byTypeMb": {
          "fetch": 3.1,
          "image": 6.2,
          "script": 9.1
        },
        "requests": 61,
        "totalMb": 18.4
      },
      "screen": {
        "black": false,
        "crashed": false,
        "frozen": false
      },
      "screenshots": [
        "https://rengi.dev/files/<id>/desktop/shot-01.jpg"
      ],
      "video": "https://rengi.dev/files/<id>/desktop/desktop.mp4",
      "viewport": {
        "height": 720,
        "width": 1280
      },
      "webgl": {
        "biggestTexture": "4096x4096",
        "contextLost": false,
        "contexts": 1,
        "drawCallsMax": 188,
        "drawCallsMedian": 142,
        "programs": 24,
        "slowestLinkMs": 240,
        "textureMemoryMb": 212,
        "textures": 38,
        "trianglesMax": 131000,
        "trianglesMedian": 96000
      }
    }
  },
  "report": "https://rengi.dev/files/<id>/report.json",
  "softwareRender": true,
  "zip": "https://rengi.dev/files/<id>/playtest.zip"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.25.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://rengi.dev/v1/playtest/run' \
  -H 'content-type: application/json' \
  --data-raw '{"seconds":30,"steps":[{"do":"wait","ms":1500},{"do":"key","holdMs":100,"key":"Enter"},{"do":"key","holdMs":1200,"key":"ArrowRight"}],"zipUrl":"https://rengi.dev/samples/playtest-demo.zip"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://rengi.dev/v1/playtest/run' \
  -H 'content-type: application/json' \
  --data-raw '{"seconds":30,"steps":[{"do":"wait","ms":1500},{"do":"key","holdMs":100,"key":"Enter"},{"do":"key","holdMs":1200,"key":"ArrowRight"}],"zipUrl":"https://rengi.dev/samples/playtest-demo.zip"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.25 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.25" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.25 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Frengi.dev%2Fv1%2Fplaytest%2Frun&method=POST
const res = await pay("https://rengi.dev/v1/playtest/run", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "seconds": 30,
    "steps": [
      {
        "do": "wait",
        "ms": 1500
      },
      {
        "do": "key",
        "holdMs": 100,
        "key": "Enter"
      },
      {
        "do": "key",
        "holdMs": 1200,
        "key": "ArrowRight"
      }
    ],
    "zipUrl": "https://rengi.dev/samples/playtest-demo.zip"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.25 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.25"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://rengi.dev/v1/playtest/run",
        json={
            "seconds": 30,
            "steps": [
                {
                    "do": "wait",
                    "ms": 1500,
                },
                {
                    "do": "key",
                    "holdMs": 100,
                    "key": "Enter",
                },
                {
                    "do": "key",
                    "holdMs": 1200,
                    "key": "ArrowRight",
                },
            ],
            "zipUrl": "https://rengi.dev/samples/playtest-demo.zip",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402228 ms$0.25
24 h agoTimed out---
3 days agoTimed out---
4 days agoPassed402136 ms$0.25
4 days agoPassed402125 ms$0.25
Show 10 older checks
5 days agoPassed402135 ms$0.25
5 days agoPassed40297 ms$0.25
6 days agoPassed402190 ms$0.25
6 days agoPassed40293 ms$0.25
6 days agoPassed402113 ms$0.25
7 days agoPassed402104 ms$0.25
7 days agoPassed402152 ms$0.25
7 days agoPassed402142 ms$0.25
7 days agoPassed402101 ms$0.25
8 days agoPassed402245 ms$0.25