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,944 stars 440 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
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category