Examples
Working clients shown as plain text; copy them into your project. For messaging clients, set CYBERPLEX_URL and CYBERPLEX_API_KEY as described in Getting started. The collaboration example uses isolated synthetic data and has its own prerequisites in the collaboration guide.
| 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. |
agent-collaboration.mjs | A local synthetic two-agent and human collaboration journey; no model-provider credentials or external actions. |
browser/index.html | A dependency-free browser page (save it as .html): long polling, token refresh, no secret in the page. |