klaviyo-multi-env-setup

Featured

Configure Klaviyo across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment API keys, or implementing environment-specific Klaviyo configurations. Trigger with phrases like "klaviyo environments", "klaviyo staging", "klaviyo dev prod", "klaviyo environment setup", "klaviyo config by env".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Klaviyo Multi-Environment Setup ## Overview Configure Klaviyo across development, staging, and production with separate API keys, environment detection, secret management, and production safeguards. ## Prerequisites - Separate Klaviyo accounts or API keys per environment - Secret management solution (GCP Secret Manager, AWS Secrets Manager, Vault) - `klaviyo-api` SDK installed ## Environment Strategy | Environment | Klaviyo Account | API Key | Use Case | |-------------|----------------|---------|----------| | Development | Test account | `pk_test_dev_***` | Local development, exploration | | Staging | Test account | `pk_test_staging_***` | Pre-prod validation, integration tests | | Production | Production account | `pk_live_***` | Real customer data, live sends | > **Important:** Klaviyo does not have a sandbox mode. Use a separate test account for dev/staging to avoid sending real emails. ## Instructions ### Step 1: Environment Configuration ```typescript // src/config/klaviyo.ts import { ApiKeySession } from 'klaviyo-api'; type Environment = 'development' | 'staging' | 'production'; interface KlaviyoEnvConfig { privateKey: string; revision: string; webhookSecret: string; enableSending: boolean; rateLimitConcurrency: number; cacheEnabled: boolean; cacheTtlMs: number; } function detectEnvironment(): Environment { const env = process.env.NODE_ENV || 'development'; if (['production', 'staging'].includes(env)) return env as Environment; return ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category