JSPM

relay-nodejs-sdk

1.0.9
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 55
  • Score
    100M100P100Q64034F
  • License MIT

Official Node.js SDK for Relay Delivery API

Package Exports

  • relay-nodejs-sdk

Readme

relay-nodejs-sdk

⚠️ Disclaimer: This is an unofficial, community-maintained SDK for the Relay Delivery API. It is not officially affiliated with or endorsed by Relay Delivery.

Node.js SDK for Relay Delivery API

Installation

pnpm add relay-nodejs-sdk

Usage

import { createRelayClient } from 'relay-nodejs-sdk';

// Create a client instance
const client = createRelayClient({
  apiKey: 'your-api-key',
  environment: 'production', // or 'development'
});

// Use the client to make API calls
// The client provides type-safe methods for all Relay API endpoints

Features

  • Type-safe: Full TypeScript support with generated types
  • Modern: ES modules and CommonJS support
  • Lightweight: Minimal dependencies
  • Comprehensive: Covers all Relay Delivery API endpoints

API Reference

createRelayClient(options)

Creates a new Relay API client instance.

Options

  • apiKey (string, required): Your Relay API key
  • environment (string, optional): API environment ('production' or 'development', defaults to 'production')

RelayEnvironment

Enum for available API environments.

Development

# Install dependencies
pnpm install

# Build the package
pnpm run build

# Development mode with watch
pnpm run dev

# Clean build artifacts
pnpm run clean

License

MIT