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

@relay-works/cli

v0.0.2

Published

The official command-line interface for the Relay SMS platform, featuring integrated SMS development tools.

Readme

Relay CLI

The official command-line interface for the Relay SMS platform, featuring integrated SMS development tools.

Installation

npm install -g @relay-works/cli

Quick Start

# Authenticate with Relay
relay login

# Generate configuration file
relay config init

# Start local development environment
relay dev

# Check status of development servers
relay status

SMS Development Integration

The Relay CLI includes seamless integration with sms-dev, a local SMS development server that acts as "Mailtrap for SMS" - allowing you to test SMS functionality without sending real messages.

Basic Usage

# Start development environment (includes sms-dev + UI)
relay dev

# Start with custom webhook URL
relay dev --webhook-url http://localhost:3000/webhook

# Start API only (no virtual phone UI)
relay dev --no-ui

# Start with custom ports
relay dev --api-port 4001 --ui-port 4000

Configuration

Create a relay.json file in your project root:

relay config init

Example relay.json:

{
  "project": {
    "name": "My SMS App",
    "environment": "development"
  },
  "smsDev": {
    "apiPort": 4001,
    "uiPort": 4000,
    "webhookUrl": "http://localhost:3000/webhook",
    "verbose": false,
    "startUI": true
  }
}

Direct SMS-Dev Commands

Access sms-dev functionality directly through the Relay CLI:

# Show all available sms-dev commands
relay sms-dev

# Mock phone management
relay sms-dev mock-phone create --phone +1234567890 --name "Test User"
relay sms-dev mock-phone list
relay sms-dev mock-phone delete --phone +1234567890

# Conversation flows
relay sms-dev flow create --name "Welcome Flow"
relay sms-dev flow list
relay sms-dev flow execute --flow-id flow_123 --phone +1234567890

# Data export
relay sms-dev export messages --format json --output messages.json
relay sms-dev export conversations --format csv

# Performance testing
relay sms-dev perf stats
relay sms-dev perf load-test --messages 100 --users 5

# Server management
relay sms-dev status
relay sms-dev stop

Commands

Core Commands

  • relay login - Authenticate with Relay platform
  • relay logout - Sign out of your account
  • relay status - Check development environment status
  • relay open - Open Relay dashboard in browser

Development Commands

  • relay dev - Start local development environment with sms-dev
  • relay config [init|show] - Manage configuration
  • relay sms-dev [command] - Access SMS development tools
  • relay webhooks - Forward webhooks to local server
  • relay logs - Tail production logs
  • relay env - Pull environment variables

Project Management

  • relay init - Initialize new Relay project

Configuration Priority

Configuration is loaded in this order (later values override earlier ones):

  1. relay.json
  2. relay.config.json
  3. .relayrc
  4. .relayrc.json
  5. Environment variables
  6. Command-line options

Environment Variables

  • RELAY_API_URL - Relay API base URL
  • SMS_DEV_API_PORT - SMS dev server API port
  • SMS_DEV_UI_PORT - SMS dev server UI port
  • SMS_DEV_WEBHOOK_URL - Webhook URL for testing
  • SMS_DEV_VERBOSE=true - Enable verbose logging
  • SMS_DEV_NO_UI=true - Disable UI server

Development Workflow

  1. Setup: relay login and relay config init
  2. Development: relay dev starts local SMS development environment
  3. Testing: Use virtual phone UI at http://localhost:4000
  4. API Testing: Point your app to http://localhost:4001
  5. Production: Deploy with confidence knowing SMS works locally

Learn More

Support

Local Development (Contributing)

To run the CLI locally from source (e.g., within this repo):

  1. Build the package:

    npm run build
  2. Link globally:

    npm link
  3. Run: You can now use relay command anywhere on your system, pointing to your local source.

    relay --version