canva-reliability-patterns

Featured

Implement reliability patterns for Canva Connect API — circuit breakers, idempotency, graceful degradation. Use when building fault-tolerant Canva integrations, implementing retry strategies, or adding resilience to production Canva services. Trigger with phrases like "canva reliability", "canva circuit breaker", "canva resilience", "canva fallback", "canva fault tolerance".

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

# Canva Reliability Patterns ## Overview Production-grade reliability patterns for the Canva Connect API. The API has async operations (exports, uploads, autofills) that can fail or timeout, OAuth tokens that expire every 4 hours, and rate limits that require backoff. ## Circuit Breaker ```typescript import CircuitBreaker from 'opossum'; const canvaBreaker = new CircuitBreaker( async (fn: () => Promise<any>) => fn(), { timeout: 30000, // 30s before failure errorThresholdPercentage: 50, // Open after 50% failure rate resetTimeout: 60000, // Try again after 60s volumeThreshold: 5, // Min 5 requests before evaluating } ); canvaBreaker.on('open', () => { console.warn('[canva] Circuit OPEN — Canva API unreachable, failing fast'); }); canvaBreaker.on('halfOpen', () => { console.info('[canva] Circuit HALF-OPEN — testing Canva recovery'); }); canvaBreaker.on('close', () => { console.info('[canva] Circuit CLOSED — Canva API recovered'); }); // Usage async function createDesignSafe(body: object, token: string) { return canvaBreaker.fire(async () => { return canvaAPI('/designs', token, { method: 'POST', body: JSON.stringify(body), }); }); } ``` ## Graceful Degradation ```typescript // When Canva is down, degrade gracefully instead of breaking the entire app async function getDesignWithFallback( designId: string, token: string, cache: LRUCache<string, any> ): Promise<{ data: any; source: ...

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