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

@normahq/relay-darwin-arm64

v0.0.8

Published

@normahq/relay binary for darwin/arm64

Downloads

56

Readme

relay

test lint

Relay is a Telegram-first control plane for long-running Norma agent sessions. It gives you one authenticated owner chat, a direct-message owner session, and topic-scoped sessions started with /topic <name>.

Quickstart

Before you start, have:

  • a Telegram bot token from BotFather
  • for host installs, at least one supported provider CLI available: codex, opencode, copilot, gemini, or claude
  • Node.js/npm, unless you use the Docker Compose flow below

Install Relay:

npm install -g -y @normahq/relay

Initialize Relay in your project:

relay init

relay init detects available provider CLIs, validates your Telegram bot token, creates .config/relay/config.yaml, creates .config/relay/relay.db, and prints the next commands. By default, the Telegram token is stored in .env.

Start Relay:

relay start

Authenticate in Telegram using the auth URL printed by relay init or relay start. You can also send the printed command directly to your bot:

/start owner=<owner_token>

After owner auth, send a normal direct message to use the owner session, or create a named topic session:

/topic <name>

Docker Compose

Relay ships a root Dockerfile and compose.yaml for local Docker Compose runtime. This image is a local runtime convenience, not the canonical OSS release artifact. The service builds a local image, runs relay, and bind-mounts the current directory as /workspace.

docker compose build relay
docker compose run --rm relay init
docker compose up -d relay

The .:/workspace mount is intentional. Relay uses the host checkout, .git, .env, .config/relay/config.yaml, and .config/relay/relay.db instead of baking local state into the image.

Provider credentials are not baked into the image. Authenticate with provider environment variables or provider login commands run through Compose; relay-home persists provider CLI home config across container recreates. For repeatable image builds, pin NODE_IMAGE and the *_NPM_PACKAGE Docker build args to concrete versions.

Polling mode is the default and does not require publishing a port. Webhook setup and image details are documented in docs/relay.md.

Bot Commands

  • /topic <name>: owner/collaborator direct-message command that creates a named topic session.
  • /reset: owner/collaborator command that clears conversation history for the current session.
  • /close: owner/collaborator direct-message command that resets history, then closes the current topic or restarts the owner session on the next message.
  • /cancel: owner/collaborator command that cancels in-flight work and drops queued turns for the current session.
  • /memory: owner/collaborator direct-message command that prints current ${relay.state_dir}/MEMORY.md contents when memory is enabled.
  • /start owner=<owner_token>: owner authentication/bootstrap in direct messages.
  • /start invite=<invite_token>: collaborator onboarding in direct messages.
  • /user add|list|remove: owner-only collaborator management.

Configuration

Relay loads .config/relay/config.yaml and then applies RELAY_* environment overrides. If .env exists in the working directory, Relay loads it before config resolution.

Minimal shape:

runtime:
  providers:
    <provider_id>:
      # generic_acp | gemini_acp | codex_acp | opencode_acp | copilot_acp | claude_code_acp | pool
      type: <provider_type>
  mcp_servers: {}

relay:
  provider: <provider_id>
  telegram:
    token: ""
    formatting_mode: "markdownv2"
    plan_updates: true
    webhook:
      enabled: false
      listen_addr: "0.0.0.0:8080"
      path: "/telegram/webhook"
      url: ""
  logger:
    level: "info"
    pretty: true
  working_dir: ""
  state_dir: ".config/relay"
  sessions:
    persistence: "sqlite"
  memory:
    enabled: true
  workspace:
    mode: "auto"
    base_branch: ""
  mcp_servers: []
  global_instruction: ""

Common settings:

  • relay.provider: provider ID selected during relay init.
  • relay.telegram.token: Telegram bot token, usually supplied by .env as RELAY_TELEGRAM_TOKEN.
  • relay.sessions.persistence: sqlite by default; keeps ADK conversation history across restarts until /reset or explicit /close. Set to memory to keep runtime conversation state process-local.
  • relay.memory.enabled: true by default; controls ${relay.state_dir}/MEMORY.md, /memory, and relay.memory.* MCP tools.
  • ${relay.state_dir}/SOUL.md: optional operator instructions read at session start/restore when the file exists; independent from relay.memory.enabled.
  • relay.workspace.mode: auto by default; uses Git worktrees when Relay runs in a Git repository.
  • relay.mcp_servers: extra MCP server IDs added to every Relay-started session.

MCP Servers Example

runtime:
  mcp_servers:
    local-tools:
      type: stdio
      cmd: ["npx", "-y", "@modelcontextprotocol/server-filesystem", "/workspace"]
    remote-tools:
      type: http
      url: https://mcp.example.com/mcp

  providers:
    codex:
      type: codex_acp
      mcp_servers:
        - local-tools

relay:
  provider: codex
  mcp_servers:
    - remote-tools

Effective MCP IDs are built-in relay + provider mcp_servers + relay.mcp_servers. Do not define runtime.mcp_servers.relay; Relay owns that bundled server.

See docs/relay.md for the full config, MCP, Docker, session, and workspace reference.

Troubleshooting

  • telegram token is required: run relay init, set RELAY_TELEGRAM_TOKEN in .env, or set relay.telegram.token in config.
  • no supported agent CLI detected: install or expose one of codex, opencode, copilot, gemini, or claude.
  • relay.provider is required: rerun relay init or set relay.provider to a configured provider ID.
  • Session history should not survive restarts: set relay.sessions.persistence=memory or RELAY_SESSIONS_PERSISTENCE=memory.
  • Memory facts are not visible in an active session: memory is snapshotted when a session starts or restores; use /reset or /close to recreate the provider session.
  • Workspace import/export issues: check relay.workspace.mode, relay.workspace.base_branch, and that Relay is running in the expected Git checkout.
  • Progress updates are too noisy: set relay.telegram.plan_updates=false.

Documentation

Release