customerio-sdk-patterns

Installation
SKILL.md

Customer.io SDK Patterns

Overview

Production-ready patterns for customerio-node: type-safe wrappers with enum-constrained events, retry with exponential backoff, event batching for high-volume scenarios, and singleton lifecycle management.

Prerequisites

  • customerio-node installed
  • TypeScript project (recommended for type-safe patterns)
  • Understanding of your event taxonomy

Instructions

Pattern 1: Type-Safe Client Wrapper

// lib/customerio-typed.ts
import { TrackClient, RegionUS, RegionEU } from "customerio-node";
Related skills
Installs
28
GitHub Stars
2.2K
First Seen
Feb 18, 2026