
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@arelay/core
Advanced tools
Isomorphic end-to-end encryption envelope format shared by Agent Relay's delivery SDK, reader, and portal.
Isomorphic end-to-end encryption envelope format for Agent Relay.
This package is the single source of truth for the wire format shared by the delivery SDK
(@arelay/cli), the reader (@arelay/client), and the portal: per-envelope P-256 ECDH
against the recipient's public key with AES-256-GCM for the content. It runs anywhere
Web Crypto plus atob/btoa are available — Node 20+ and browsers both qualify — and ships
no Buffer dependency.
It deliberately contains only the envelope crypto. Account-level key management (recovery
key, passkey/WebAuthn PRF unlock) is browser-only and lives in @arelay/client.
import { encryptString, decryptString } from '@arelay/core';
const envelope = await encryptString('Quarterly report ready', recipientPublicKeyJwk);
const text = await decryptString(envelope, recipientPrivateKey); // recipient's browser only
| Export | Purpose |
|---|---|
encryptBytes / encryptString | Encrypt to a recipient's public JWK → EncryptedEnvelope |
decryptBytes / decryptString | Decrypt an envelope with the recipient's private key |
decryptPayloadBytes | Decrypt from payload metadata + raw ciphertext bytes |
envelopeToPayload / payloadToEnvelope | Split/recombine metadata and ciphertext (bytes travel separately) |
bytesToBase64Url / base64UrlToBytes | Unpadded base64url helpers |
Types: EncryptedEnvelope, EncryptedPayload, JsonWebKeyEnvelope, JsonWebKey, CryptoKey.
MIT
FAQs
Isomorphic end-to-end encryption envelope format shared by Agent Relay's delivery SDK, reader, and portal.
We found that @arelay/core 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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.