miro-sdk-patterns

Featured

Apply production-ready patterns for @mirohq/miro-api client usage. Use when implementing Miro integrations, refactoring SDK usage, or establishing coding standards for Miro REST API v2. Trigger with phrases like "miro SDK patterns", "miro best practices", "miro code patterns", "miro client wrapper", "miro typescript".

AI & Automation 2,266 stars 315 forks Updated today 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

# Miro SDK Patterns ## Overview Production-ready patterns for the `@mirohq/miro-api` Node.js client and direct REST API v2 usage. Covers the high-level `Miro` client (stateful, OAuth-aware) and the low-level `MiroApi` client (stateless, token-based). ## Prerequisites - `@mirohq/miro-api` installed - TypeScript 5+ project - Understanding of Miro REST API v2 item model ## Two Client Modes ```typescript import { Miro, MiroApi } from '@mirohq/miro-api'; // HIGH-LEVEL: Stateful, manages OAuth tokens per user // Use for multi-user apps (SaaS, web apps with OAuth) const miro = new Miro({ clientId: process.env.MIRO_CLIENT_ID!, clientSecret: process.env.MIRO_CLIENT_SECRET!, redirectUrl: process.env.MIRO_REDIRECT_URI!, }); const userApi = await miro.as('user-id'); // Returns MiroApi scoped to user // LOW-LEVEL: Stateless, pass token directly // Use for scripts, automation, single-user integrations const api = new MiroApi(process.env.MIRO_ACCESS_TOKEN!); ``` ## Pattern 1: Type-Safe Board Service ```typescript // src/miro/board-service.ts import { MiroApi } from '@mirohq/miro-api'; // Response types matching Miro REST API v2 interface MiroBoard { id: string; type: 'board'; name: string; description: string; createdAt: string; modifiedAt: string; } interface MiroBoardItem { id: string; type: 'sticky_note' | 'shape' | 'card' | 'text' | 'frame' | 'image' | 'document' | 'embed' | 'app_card'; data: Record<string, unknown>; position: { x: number; y: numbe...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

miro-reference-architecture

Implement a production-ready reference architecture for Miro REST API v2 integrations with layered design, caching, and event processing. Trigger with phrases like "miro architecture", "miro project structure", "how to organize miro integration", "miro design patterns".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-sdk-patterns

Apply production-ready Mistral AI SDK patterns for TypeScript and Python. Use when implementing Mistral integrations, refactoring SDK usage, or establishing team coding standards for Mistral AI. Trigger with phrases like "mistral SDK patterns", "mistral best practices", "mistral code patterns", "idiomatic mistral".

2,266 Updated today
jeremylongshore
AI & Automation Featured

miro-security-basics

Apply Miro REST API v2 security best practices — OAuth scope minimization, token storage, webhook signature validation, and secret rotation. Trigger with phrases like "miro security", "miro secrets", "secure miro", "miro token security", "miro webhook signature".

2,266 Updated today
jeremylongshore
AI & Automation Featured

klaviyo-sdk-patterns

Apply production-ready Klaviyo SDK patterns for the klaviyo-api package. Use when implementing Klaviyo integrations, refactoring SDK usage, or establishing team coding standards for Klaviyo API calls. Trigger with phrases like "klaviyo SDK patterns", "klaviyo best practices", "klaviyo code patterns", "idiomatic klaviyo", "klaviyo wrapper".

2,266 Updated today
jeremylongshore
AI & Automation Featured

customerio-sdk-patterns

Apply production-ready Customer.io SDK patterns. Use when implementing typed clients, retry logic, event batching, or singleton management for customerio-node. Trigger: "customer.io best practices", "customer.io patterns", "production customer.io", "customer.io architecture", "customer.io singleton".

2,266 Updated today
jeremylongshore