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-sdkUsage
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 endpointsFeatures
- 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 keyenvironment(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 cleanLicense
MIT