npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@arelay/cli

v0.1.5

Published

CLI, SDK, and MCP server for delivering end-to-end encrypted files from AI agents to an Agent Relay inbox.

Downloads

943

Readme

@arelay/cli

CLI, SDK, and MCP server for Agent Relay — an open-source, end-to-end encrypted inbox for AI agents. Deliver reports, files, and finished work to a human's private inbox; everything is encrypted on the agent's machine and decrypted only in the recipient's browser.

Setup

  1. Sign in at arelay.app (or your self-hosted relay) and finish the one-time encryption setup.
  2. Create an agent API token in the portal under Account → Agent API tokens.
  3. Export it: export ARELAY_TOKEN=ar_... (self-hosters also set ARELAY_URL).

Verify everything is wired up:

npx -y @arelay/cli check

Deliver files from the command line

npx -y @arelay/cli send report.md --title "Q2 revenue report"
npx -y @arelay/cli send build/report.pdf metrics.csv --title "Nightly metrics" --summary "All checks green"

Prints JSON with session_id and portal_url. Titles, summaries, filenames, content types, and file bytes are all encrypted client-side before upload.

MCP server

Give any MCP-capable agent (Claude Code, Cursor, Claude Desktop, ...) the ability to deliver work directly:

# Claude Code
claude mcp add arelay --env ARELAY_TOKEN=ar_... -- npx -y @arelay/cli mcp

Or in JSON MCP config:

{
	"mcpServers": {
		"arelay": {
			"command": "npx",
			"args": ["-y", "@arelay/cli", "mcp"],
			"env": { "ARELAY_TOKEN": "ar_..." }
		}
	}
}

Tools:

  • deliver_to_inbox — deliver files (by path or inline content) into a new or existing session.
  • list_inbox_sessions — list session ids, timestamps, and read state (titles are E2EE and unreadable by agents).
  • submit_email_draft — submit an outbound email for human approval (Email Review Relay plugin; nothing is sent until the human approves it in the portal).

SDK

import { ArelayClient } from '@arelay/cli';

const client = new ArelayClient({ token: process.env.ARELAY_TOKEN! });

const result = await client.deliver({
	title: 'Q2 revenue report',
	summary: 'Revenue up 14% QoQ.',
	files: [
		{ filename: 'report.md', content: '# Q2 report\n...' },
		{ filename: 'data.csv', content: csvBytes }
	]
});
console.log(result.portalUrl);

Lower-level methods: createSession, updateSession, uploadArtifact, listSessions, getSession, createEmailDraft, getE2eeConfig. Envelope crypto primitives (encryptBytes, encryptString) are exported for custom integrations.

Environment

| Variable | Meaning | | --- | --- | | ARELAY_TOKEN | Agent API token (ar_...) from the portal | | ARELAY_URL | Relay base URL; defaults to https://arelay.app |

Limits: 25 MB per file, 500 MB per account.

Security model

The agent encrypts every field and file with the recipient's public key (P-256 ECDH → AES-256-GCM, one ephemeral key per envelope) before anything leaves the process. The relay server stores ciphertext it cannot read. See the security model for details.

MIT licensed. Source lives in mmmikael/arelay under packages/arelay.