canva-performance-tuning

Featured

Optimize Canva Connect API performance with caching, pagination, and connection pooling. Use when experiencing slow API responses, implementing caching strategies, or optimizing request throughput for Canva integrations. Trigger with phrases like "canva performance", "optimize canva", "canva latency", "canva caching", "canva slow", "canva pagination".

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 Performance Tuning ## Overview Optimize Canva Connect API performance. The REST API at `api.canva.com/rest/v1/*` has per-user rate limits and async operations (exports, uploads, autofills) that require polling. ## Caching Strategy ### Design Metadata Cache ```typescript import { LRUCache } from 'lru-cache'; // Design metadata changes infrequently — cache aggressively const designCache = new LRUCache<string, any>({ max: 500, ttl: 5 * 60 * 1000, // 5 minutes }); async function getDesignCached(designId: string, token: string) { const cached = designCache.get(designId); if (cached) return cached; const data = await canvaAPI(`/designs/${designId}`, token); designCache.set(designId, data); return data; } // IMPORTANT: Do NOT cache these — they expire quickly: // - Thumbnail URLs: expire in 15 minutes // - Edit/view URLs: expire in 30 days // - Export download URLs: expire in 24 hours ``` ### Redis Cache for Distributed Systems ```typescript import Redis from 'ioredis'; const redis = new Redis(process.env.REDIS_URL); async function cachedCanvaCall<T>( key: string, fetcher: () => Promise<T>, ttlSeconds = 300 ): Promise<T> { const cached = await redis.get(key); if (cached) return JSON.parse(cached); const result = await fetcher(); await redis.setex(key, ttlSeconds, JSON.stringify(result)); return result; } // Cache brand template list — rarely changes const templates = await cachedCanvaCall( 'canva:brand-templates:list', () => ...

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