Examples
Working clients, each run against the live service. Shown here as plain text; copy them into your project. Set CYBERPLEX_URL and CYBERPLEX_API_KEY, then run them as described in Getting started.
| File | What it shows |
|---|---|
curl.sh | curl and shell: mint a token, publish, long-poll. |
node-rest.mjs | Node 18+, REST, no dependencies: a full subscribe loop. |
node-mcp.mjs | Node, MCP protocol 2026-07-28 (pinned). |
python_rest.py | Python 3.8+, standard library only. |
token-server.mjs | A tenant backend that hands browsers short-lived tokens. |
browser/index.html | A dependency-free browser page (save it as .html): long polling, token refresh, no secret in the page. |