Scan your whole stack
From OX Research Newsroom
Are you using keywire-relay-cloudflare?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.0
keywire-relay-cloudflare was last scanned on 29 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.3.0 LATEST | 29 Nov 2026 | No rules fired |
| 0.0.0-stage | 29 Nov 2026 | Not shown |
Findings for v0.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.3.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The keywire relay, run as a Cloudflare Worker. Like keywire-relay, it
admits only members of a Network, guests with a share or an invite, and
devices pairing with one Node, and forwards their end-to-end encrypted
streams without being able to read them. It serves every application: the
relay handshake binds no application identifier.
Each Network gets a Durable Object of its own, named by the Network's id,
which holds that Network's sessions and its own Noise key. Besides relay
dials, the Worker answers only GET /healthz, and, serving discovery,
/nearby and /reach.
With a Cloudflare account and this repository checked out, and Node 24 with pnpm and rustup (the build makes the zlib WebAssembly module keywire inlines):
(cd ts && pnpm install)
make build
cd ts/packages/relay-cloudflare
pnpm exec wrangler deploy
Or with the button, which forks the repository into your account and deploys this directory:
Variables, in wrangler.jsonc or the dashboard:
NETWORKS: if set, the only Networks served, as distinct lowercase hex
ids separated by commas, without spaces.DISCOVERY: on serves discovery (spec/discovery.md): Nodes give it
their listings, and web pages find them with GET /nearby and
POST /reach. Off when empty. With it, DISCOVERY_ORIGINS are the
origins of the application's pages whose scripts may read the answers,
comma separated, and DISCOVERY_SAME_NETWORK the rule for nearby:
address (the default), address-or-ipv6-64 or private. The listings
of every Network are held by one Durable Object, which answers the
lookups; a relay without discovery never reaches it.A variable the relay cannot take makes it answer every request, /healthz
included, with 500 and the reason, rather than serve something else.
https://keywire-relay.<subdomain>.workers.dev/healthz answers once the
relay is up. Give devices wss://keywire-relay.<subdomain>.workers.dev/ as
a relay; they add their Network's id to the URL themselves.
The package, keywire-relay-cloudflare on npm, exports the Worker, its two
Durable Object classes and the Env they take. keywire is a peer
dependency: the Worker uses the application's own copy.
npm install keywire keywire-relay-cloudflare
A Worker of its own serves the relay by re-exporting them, and binds the
classes in its wrangler.jsonc as this directory's does:
import relay, { type Env } from "keywire-relay-cloudflare";
export { DiscoveryDirectoryObject, RelayNetwork } from "keywire-relay-cloudflare";
export default {
fetch(req: Request, env: Env): Promise<Response> {
return relay.fetch(req, env);
},
} satisfies ExportedHandler<Env>;
Its declarations take the Workers runtime's types from the application,
as wrangler types writes them.
It runs on the Workers Free plan, whose daily limits on requests and Durable Object time bound how many sessions it can carry each day; every relayed message is Durable Object work.
pnpm test runs the Worker in local workerd against Go peers;
pnpm perf measures one relayed stream.
DOMAIN names the signature domain of the Networks served (spec/identity.md);
unset, it is keywire.
With DISCOVERY=on, DISCOVERY_PAGE optionally names the http(s) pairing
page (at most 128 bytes in the shared URL grammar). Listing results carry
it to publishers, and its origin is allowed automatically for lookups.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.