
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
keyquill-relay
Advanced tools
Zero-knowledge E2E encrypted WebSocket relay for pairing a browser with a mobile LLM wallet. Ships a browser client, a Cloudflare Durable Object, and a Hono route factory.
Zero-knowledge E2E-encrypted WebSocket relay for pairing a PC browser with a mobile LLM wallet.
Note: payload shape tracks
keyquill-mobile, not the extension broker
RelayInnerRequestcurrently carries{ provider, messages, systemPrompt, maxTokens }— the same wire shape thekeyquill-mobileplugin accepts, not the capability-first shape used bykeyquill@3.xandkeyquill-extension@1.0+. That's intentional for now: relay is a pure transport whose payload is defined by the mobile endpoint it talks to. When mobile migrates to the broker architecture (see the note in the mobile README), this relay'sRelayInnerRequestandRelayInnerResponsewill follow. Until then, relay operates as-is.
When the mobile app holds the LLM API keys (via keyquill-mobile) and the user wants to use those keys from a PC browser, keyquill-relay provides a secure bridge:
PC browser Relay server Phone
┌───────────┐ ┌──────────┐ ┌──────────────┐
│ │ QR pairing │ │ │ │
│ client │─────────────>│ DO │<───────────>│ native app │
│ (browser) │ │(ciphertext│ WebSocket │ (Keychain/KS)│
│ │◄─────────────│ only) │ │ │
└───────────┘ WebSocket └──────────┘ └──────────────┘
│ │
└────────── ECDH P-256 + HKDF + AES-GCM ────────────────┘
(server never sees plaintext)
The relay server sees only ciphertext. Pairing token → single-use, 5-minute expiry.
pnpm add keyquill-relay
# or, if you're using it in a Cloudflare Worker:
pnpm add keyquill-relay hono
| Entry | Use |
|---|---|
keyquill-relay/client | Browser-side: PhoneRelayClient and QR helpers |
keyquill-relay/server | Server-side: RelaySessionDO (Cloudflare Durable Object) + createRelayRoutes (Hono factory) |
keyquill-relay (root) | Wire protocol types only (no runtime code) |
import { Hono } from "hono";
import { createRelayRoutes } from "keyquill-relay/server";
export { RelaySessionDO } from "keyquill-relay/server";
type Env = {
RELAY_SESSIONS: DurableObjectNamespace;
ALLOWED_ORIGINS?: string;
};
const app = new Hono<{ Bindings: Env }>();
app.route(
"/relay",
createRelayRoutes<Env>({
getDurableObject: (env) => env.RELAY_SESSIONS,
allowedWsOrigins: (env) => [
"https://your-app.example.com",
...(env.ALLOWED_ORIGINS ?? "").split(",").filter(Boolean),
],
}),
);
export default app;
wrangler.jsonc:
{
"durable_objects": {
"bindings": [{ "name": "RELAY_SESSIONS", "class_name": "RelaySessionDO" }]
},
"migrations": [{ "tag": "v1", "new_classes": ["RelaySessionDO"] }]
}
import { PhoneRelayClient } from "keyquill-relay/client";
const client = new PhoneRelayClient({
relayUrl: "wss://your-relay.example.com/relay",
});
// 1. Generate pairing QR
const { pairingToken, qrPayload } = await client.createPairing();
// ... render qrPayload as QR code ...
// 2. After the phone scans and accepts:
await client.waitForPaired(pairingToken);
// 3. Send an AI request (E2E encrypted end to end)
const response = await client.sendRequest({
provider: "openai",
messages: [{ role: "user", content: "Hello" }],
});
keyquill-relay-v1 by default; override per app if desired).All crypto uses Web Crypto only (no Node-specific APIs) — runs in browsers, Cloudflare Workers, and Deno.
MIT
FAQs
Zero-knowledge E2E encrypted WebSocket relay for pairing a browser with a mobile LLM wallet. Ships a browser client, a Cloudflare Durable Object, and a Hono route factory.
The npm package keyquill-relay receives a total of 32 weekly downloads. As such, keyquill-relay popularity was classified as not popular.
We found that keyquill-relay demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.