[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79397638VC946P455CY6HY4":3,"skill-same:01M79397638VC946P455CY6HY4":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M79397638VC946P455CY6HY4","miro-reference-architecture",null,"Implement a production-ready reference architecture for Miro REST API v2\nintegrations with layered design, caching, and event processing.\nTrigger with phrases like \"miro architecture\", \"miro project structure\",\n\"how to organize miro integration\", \"miro design patterns\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--miro-pack--miro-reference-architecture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: miro-reference-architecture\ndescription: |\n  Implement a production-ready reference architecture for Miro REST API v2\n  integrations with layered design, caching, and event processing.\n  Trigger with phrases like \"miro architecture\", \"miro project structure\",\n  \"how to organize miro integration\", \"miro design patterns\".\nallowed-tools: Read, Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, miro, architecture, design]\ncompatible-with: claude-code\n---\n\n# Miro Reference Architecture\n\n## Overview\n\nProduction-ready architecture for Miro REST API v2 integrations. Layered design with a board service, item factory, webhook event processor, and caching layer.\n\n## Architecture Diagram\n\n```\n┌──────────────────────────────────────────────────────────┐\n│                    API \u002F UI Layer                         │\n│   Express routes, Next.js API routes, CLI commands       │\n├──────────────────────────────────────────────────────────┤\n│                   Service Layer                          │\n│   BoardService, ItemService, SyncService                 │\n│   (business logic, orchestration, validation)            │\n├──────────────────────────────────────────────────────────┤\n│                  Miro Client Layer                        │\n│   MiroApiClient (REST v2), TokenManager (OAuth 2.0)      │\n│   ItemFactory (typed creation), ConnectorBuilder          │\n├──────────────────────────────────────────────────────────┤\n│                Infrastructure Layer                       │\n│   Cache (LRU\u002FRedis), Queue (PQueue), Monitor (metrics)   │\n│   WebhookProcessor (signature + idempotency)             │\n└──────────────────────────────────────────────────────────┘\n                         │\n                         ▼\n            https:\u002F\u002Fapi.miro.com\u002Fv2\u002F\n```\n\n## Project Structure\n\n```\nsrc\u002F\n├── miro\u002F\n│   ├── client.ts              # MiroApiClient — wraps fetch with auth, retries, monitoring\n│   ├── token-manager.ts       # OAuth 2.0 token lifecycle (refresh, storage)\n│   ├── item-factory.ts        # Typed item creation (sticky notes, shapes, cards, etc.)\n│   ├── connector-builder.ts   # Fluent API for creating connectors\n│   ├── types.ts               # TypeScript types for all Miro v2 responses\n│   └── errors.ts              # MiroApiError, MiroAuthError, MiroRateLimitError\n├── services\u002F\n│   ├── board-service.ts       # Board CRUD + member management\n│   ├── item-service.ts        # Item CRUD + tag operations\n│   ├── sync-service.ts        # Two-way sync between Miro and your database\n│   └── search-service.ts      # Find items by content, type, or tag\n├── webhooks\u002F\n│   ├── handler.ts             # Express\u002Fserverless webhook endpoint\n│   ├── processor.ts           # Event routing and processing\n│   └── idempotency.ts         # Duplicate event prevention\n├── cache\u002F\n│   ├── board-cache.ts         # Board metadata cache\n│   └── item-cache.ts          # Item data cache with webhook invalidation\n├── config\u002F\n│   ├── miro.ts                # Environment-based Miro configuration\n│   └── index.ts               # Config loader\n└── monitoring\u002F\n    ├── metrics.ts             # Prometheus counters\u002Fhistograms for Miro API\n    └── health.ts              # Health check endpoint\n```\n\n## Core Components\n\n### MiroApiClient\n\n```typescript\n\u002F\u002F src\u002Fmiro\u002Fclient.ts\nexport class MiroApiClient {\n  constructor(\n    private tokenManager: TokenManager,\n    private cache: ItemCache,\n    private monitor: MiroMetrics,\n  ) {}\n\n  async fetch\u003CT>(path: string, method = 'GET', body?: unknown): Promise\u003CT> {\n    const token = await this.tokenManager.getValidToken();\n    const start = performance.now();\n\n    const response = await fetch(`https:\u002F\u002Fapi.miro.com${path}`, {\n      method,\n      headers: {\n        'Authorization': `Bearer ${token}`,\n        'Content-Type': 'application\u002Fjson',\n      },\n      ...(body ? { body: JSON.stringify(body) } : {}),\n    });\n\n    const duration = performance.now() - start;\n    this.monitor.recordRequest(method, path, response.status, duration);\n    this.monitor.updateRateLimit(response);\n\n    if (response.status === 429) {\n      const retryAfter = parseInt(response.headers.get('Retry-After') ?? '5', 10);\n      throw new MiroRateLimitError(retryAfter);\n    }\n\n    if (!response.ok) {\n      const error = await response.json().catch(() => ({}));\n      throw new MiroApiError(response.status, error.message, error.code);\n    }\n\n    if (response.status === 204) return null as T;\n    return response.json() as T;\n  }\n\n  \u002F\u002F Paginated fetch — returns all pages\n  async fetchAll\u003CT>(path: string, limit = 50): Promise\u003CT[]> {\n    const items: T[] = [];\n    let cursor: string | undefined;\n\n    do {\n      const params = new URLSearchParams({ limit: String(limit) });\n      if (cursor) params.set('cursor', cursor);\n\n      const result = await this.fetch\u003CPaginatedResponse\u003CT>>(\n        `${path}?${params}`\n      );\n      items.push(...result.data);\n      cursor = result.cursor;\n    } while (cursor);\n\n    return items;\n  }\n}\n```\n\n### Board Service\n\n```typescript\n\u002F\u002F src\u002Fservices\u002Fboard-service.ts\nexport class BoardService {\n  constructor(\n    private api: MiroApiClient,\n    private cache: BoardCache,\n  ) {}\n\n  async getBoard(boardId: string): Promise\u003CMiroBoard> {\n    const cached = await this.cache.get(boardId);\n    if (cached) return cached;\n\n    const board = await this.api.fetch\u003CMiroBoard>(`\u002Fv2\u002Fboards\u002F${boardId}`);\n    await this.cache.set(boardId, board, 120);  \u002F\u002F 2 min TTL\n    return board;\n  }\n\n  async createBoard(params: CreateBoardParams): Promise\u003CMiroBoard> {\n    return this.api.fetch\u003CMiroBoard>('\u002Fv2\u002Fboards', 'POST', {\n      name: params.name,\n      description: params.description,\n      teamId: params.teamId,\n      policy: {\n        sharingPolicy: { access: params.access ?? 'private' },\n        permissionsPolicy: { sharingAccess: 'team_members_and_collaborators' },\n      },\n    });\n  }\n\n  async shareBoard(boardId: string, emails: string[], role: BoardRole): Promise\u003Cvoid> {\n    await this.api.fetch(`\u002Fv2\u002Fboards\u002F${boardId}\u002Fmembers`, 'POST', {\n      emails,\n      role,  \u002F\u002F 'viewer' | 'commenter' | 'editor' | 'coowner'\n    });\n  }\n\n  async getMembers(boardId: string): Promise\u003CBoardMember[]> {\n    return this.api.fetchAll(`\u002Fv2\u002Fboards\u002F${boardId}\u002Fmembers`);\n  }\n}\n```\n\n### Webhook Processor\n\n```typescript\n\u002F\u002F src\u002Fwebhooks\u002Fprocessor.ts\nexport class WebhookProcessor {\n  private handlers = new Map\u003Cstring, EventHandler[]>();\n\n  on(eventType: string, handler: EventHandler): void {\n    const existing = this.handlers.get(eventType) ?? [];\n    existing.push(handler);\n    this.handlers.set(eventType, existing);\n  }\n\n  async process(event: MiroBoardEvent): Promise\u003Cvoid> {\n    \u002F\u002F Type-based routing\n    const key = `${event.item.type}:${event.type}`;  \u002F\u002F e.g., 'sticky_note:create'\n    const handlers = [\n      ...(this.handlers.get(key) ?? []),\n      ...(this.handlers.get(`*:${event.type}`) ?? []),  \u002F\u002F Wildcard item type\n      ...(this.handlers.get('*:*') ?? []),               \u002F\u002F Catch-all\n    ];\n\n    for (const handler of handlers) {\n      await handler(event);\n    }\n  }\n}\n\n\u002F\u002F Usage\nconst processor = new WebhookProcessor();\n\nprocessor.on('sticky_note:create', async (event) => {\n  console.log(`New sticky note on board ${event.boardId}: ${event.item.id}`);\n  await syncService.syncItem(event.boardId, event.item.id);\n});\n\nprocessor.on('*:delete', async (event) => {\n  console.log(`Item deleted from board ${event.boardId}: ${event.item.id}`);\n  await database.deleteItem(event.item.id);\n});\n```\n\n### Connector Builder (Fluent API)\n\n```typescript\n\u002F\u002F src\u002Fmiro\u002Fconnector-builder.ts\nexport class ConnectorBuilder {\n  private config: any = { style: {} };\n\n  constructor(private api: MiroApiClient, private boardId: string) {}\n\n  from(itemId: string, snapTo?: SnapPosition): this {\n    this.config.startItem = { id: itemId, ...(snapTo ? { snapTo } : {}) };\n    return this;\n  }\n\n  to(itemId: string, snapTo?: SnapPosition): this {\n    this.config.endItem = { id: itemId, ...(snapTo ? { snapTo } : {}) };\n    return this;\n  }\n\n  caption(text: string, position = 0.5): this {\n    this.config.captions = [{ content: text, position }];\n    return this;\n  }\n\n  dashed(): this { this.config.style.strokeStyle = 'dashed'; return this; }\n  curved(): this { this.config.shape = 'curved'; return this; }\n  arrow(): this { this.config.style.endStrokeCap = 'stealth'; return this; }\n\n  async build(): Promise\u003CMiroConnector> {\n    return this.api.fetch(`\u002Fv2\u002Fboards\u002F${this.boardId}\u002Fconnectors`, 'POST', this.config);\n  }\n}\n\n\u002F\u002F Usage\nconst connector = await new ConnectorBuilder(api, boardId)\n  .from(taskId, 'right')\n  .to(dependencyId, 'left')\n  .caption('depends on')\n  .dashed()\n  .arrow()\n  .build();\n```\n\n## Data Flow\n\n```\nUser Action (or cron job)\n     │\n     ▼\n┌─────────────┐\n│   Service   │  ←── Business logic\n│   Layer     │\n└──────┬──────┘\n       │\n  ┌────┴────┐\n  │         │\n  ▼         ▼\n┌──────┐ ┌──────┐\n│Cache │ │ Miro │  ←── api.miro.com\u002Fv2\n│Layer │ │Client│\n└──────┘ └──────┘\n\nMiro Board Change\n     │\n     ▼\n┌─────────────┐\n│  Webhook    │  ←── Signature verification\n│  Handler    │\n└──────┬──────┘\n       │\n       ▼\n┌─────────────┐\n│ Processor   │  ←── Idempotency + routing\n└──────┬──────┘\n       │\n  ┌────┴────┐\n  │         │\n  ▼         ▼\n┌──────┐ ┌──────┐\n│Cache │ │  DB  │  ←── Sync + invalidation\n│Inval │ │Sync  │\n└──────┘ └──────┘\n```\n\n## Configuration\n\n```typescript\n\u002F\u002F src\u002Fconfig\u002Fmiro.ts\nexport interface MiroConfig {\n  clientId: string;\n  clientSecret: string;\n  accessToken?: string;\n  environment: 'development' | 'staging' | 'production';\n  cache: { enabled: boolean; ttlSeconds: number };\n  rateLimit: { maxConcurrency: number; requestsPerSecond: number };\n  webhook: { secret: string; callbackUrl: string };\n}\n\nexport function loadMiroConfig(): MiroConfig {\n  return {\n    clientId: requireEnv('MIRO_CLIENT_ID'),\n    clientSecret: requireEnv('MIRO_CLIENT_SECRET'),\n    accessToken: process.env.MIRO_ACCESS_TOKEN,\n    environment: (process.env.NODE_ENV ?? 'development') as MiroConfig['environment'],\n    cache: {\n      enabled: process.env.MIRO_CACHE_ENABLED !== 'false',\n      ttlSeconds: parseInt(process.env.MIRO_CACHE_TTL ?? '120'),\n    },\n    rateLimit: {\n      maxConcurrency: parseInt(process.env.MIRO_MAX_CONCURRENCY ?? '5'),\n      requestsPerSecond: parseInt(process.env.MIRO_RPS ?? '10'),\n    },\n    webhook: {\n      secret: process.env.MIRO_WEBHOOK_SECRET ?? '',\n      callbackUrl: process.env.MIRO_WEBHOOK_URL ?? '',\n    },\n  };\n}\n```\n\n## Error Handling\n\n| Layer | Error Type | Handling |\n|-------|-----------|----------|\n| Client | 429 Rate Limited | Exponential backoff with `Retry-After` |\n| Client | 401 Token Expired | Auto-refresh via TokenManager |\n| Service | Item Not Found | Return null, log, continue |\n| Webhook | Invalid Signature | Return 401, do not process |\n| Webhook | Duplicate Event | Skip via idempotency check |\n| Cache | Redis Down | Fall through to API directly |\n\n## Resources\n\n- [Miro REST API Reference](https:\u002F\u002Fdevelopers.miro.com\u002Fdocs\u002Frest-api-reference-guide)\n- [Miro Node.js Client](https:\u002F\u002Fdevelopers.miro.com\u002Fdocs\u002Fmiro-nodejs-api-client)\n- [Miro App Examples (GitHub)](https:\u002F\u002Fgithub.com\u002Fmiroapp\u002Fapp-examples)\n\n## Next Steps\n\nFor multi-environment setup, see `miro-multi-env-setup`.\n","# Miro Reference Architecture\n\n## Overview\n\nProduction-ready architecture for Miro REST API v2 integrations. Layered design with a board service, item factory, webhook event processor, and caching layer.\n\n## Architecture Diagram\n\n```\n┌──────────────────────────────────────────────────────────┐\n│                    API \u002F UI Layer                         │\n│   Express routes, Next.js API routes, CLI commands       │\n├──────────────────────────────────────────────────────────┤\n│                   Service Layer                          │\n│   BoardService, ItemService, SyncService                 │\n│   (business logic, orchestration, validation)            │\n├──────────────────────────────────────────────────────────┤\n│                  Miro Client Layer                        │\n│   MiroApiClient (REST v2), TokenManager (OAuth 2.0)      │\n│   ItemFactory (typed creation), ConnectorBuilder          │\n├──────────────────────────────────────────────────────────┤\n│                Infrastructure Layer                       │\n│   Cache (LRU\u002FRedis), Queue (PQueue), Monitor (metrics)   │\n│   WebhookProcessor (signature + idempotency)             │\n└──────────────────────────────────────────────────────────┘\n                         │\n                         ▼\n            https:\u002F\u002Fapi.miro.com\u002Fv2\u002F\n```\n\n## Project Structure\n\n```\nsrc\u002F\n├── miro\u002F\n│   ├── client.ts              # MiroApiClient — wraps fetch with auth, retries, monitoring\n│   ├── token-manager.ts       # OAuth 2.0 token lifecycle (refresh, storage)\n│   ├── item-factory.ts        # Typed item creation (sticky notes, shapes, cards, etc.)\n│   ├── connector-builder.ts   # Fluent API for creating connectors\n│   ├── types.ts               # TypeScript types for all Miro v2 responses\n│   └── errors.ts              # MiroApiError, MiroAuthError, MiroRateLimitError\n├── services\u002F\n│   ├── board-service.ts       # Board CRUD + member management\n│   ├── item-service.ts        # Item CRUD + tag operations\n│   ├── sync-service.ts        # Two-way sync between Miro and your database\n│   └── search-service.ts      # Find items by content, type, or tag\n├── webhooks\u002F\n│   ├── handler.ts             # Express\u002Fserverless webhook endpoint\n│   ├── processor.ts           # Event routing and processing\n│   └── idempotency.ts         # Duplicate event prevention\n├── cache\u002F\n│   ├── board-cache.ts         # Board metadata cache\n│   └── item-cache.ts          # Item data cache with webhook invalidation\n├── config\u002F\n│   ├── miro.ts                # Environment-based Miro configuration\n│   └── index.ts               # Config loader\n└── monitoring\u002F\n    ├── metrics.ts             # Prometheus counters\u002Fhistograms for Miro API\n    └── health.ts              # Health check endpoint\n```\n\n## Core Components\n\n### MiroApiClient\n\n```typescript\n\u002F\u002F src\u002Fmiro\u002Fclient.ts\nexport class MiroApiClient {\n  constructor(\n    private tokenManager: TokenManager,\n    private cache: ItemCache,\n    private monitor: MiroMetrics,\n  ) {}\n\n  async fetch\u003CT>(path: string, method = 'GET', body?: unknown): Promise\u003CT> {\n    const token = await this.tokenManager.getValidToken();\n    const start = performance.now();\n\n    const response = await fetch(`https:\u002F\u002Fapi.miro.com${path}`, {\n      method,\n      headers: {\n        'Authorization': `Bearer ${token}`,\n        'Content-Type': 'application\u002Fjson',\n      },\n      ...(body ? { body: JSON.stringify(body) } : {}),\n    });\n\n    const duration = performance.now() - start;\n    this.monitor.recordRequest(method, path, response.status, duration);\n    this.monitor.updateRateLimit(response);\n\n    if (response.status === 429) {\n      const retryAfter = parseInt(response.headers.get('Retry-After') ?? '5', 10);\n      throw new MiroRateLimitError(retryAfter);\n    }\n\n    if (!response.ok) {\n      const error = await response.json().catch(() => ({}));\n      throw new MiroApiError(response.status, error.message, error.code);\n    }\n\n    if (response.status === 204) return null as T;\n    return response.json() as T;\n  }\n\n  \u002F\u002F Paginated fetch — returns all pages\n  async fetchAll\u003CT>(path: string, limit = 50): Promise\u003CT[]> {\n    const items: T[] = [];\n    let cursor: string | undefined;\n\n    do {\n      const params = new URLSearchParams({ limit: String(limit) });\n      if (cursor) params.set('cursor', cursor);\n\n      const result = await this.fetch\u003CPaginatedResponse\u003CT>>(\n        `${path}?${params}`\n      );\n      items.push(...result.data);\n      cursor = result.cursor;\n    } while (cursor);\n\n    return items;\n  }\n}\n```\n\n### Board Service\n\n```typescript\n\u002F\u002F src\u002Fservices\u002Fboard-service.ts\nexport class BoardService {\n  constructor(\n    private api: MiroApiClient,\n    private cache: BoardCache,\n  ) {}\n\n  async getBoard(boardId: string): Promise\u003CMiroBoard> {\n    const cached = await this.cache.get(boardId);\n    if (cached) return cached;\n\n    const board = await this.api.fetch\u003CMiroBoard>(`\u002Fv2\u002Fboards\u002F${boardId}`);\n    await this.cache.set(boardId, board, 120);  \u002F\u002F 2 min TTL\n    return board;\n  }\n\n  async createBoard(params: CreateBoardParams): Promise\u003CMiroBoard> {\n    return this.api.fetch\u003CMiroBoard>('\u002Fv2\u002Fboards', 'POST', {\n      name: params.name,\n      description: params.description,\n      teamId: params.teamId,\n      policy: {\n        sharingPolicy: { access: params.access ?? 'private' },\n        permissionsPolicy: { sharingAccess: 'team_members_and_collaborators' },\n      },\n    });\n  }\n\n  async shareBoard(boardId: string, emails: string[], role: BoardRole): Promise\u003Cvoid> {\n    await this.api.fetch(`\u002Fv2\u002Fboards\u002F${boardId}\u002Fmembers`, 'POST', {\n      emails,\n      role,  \u002F\u002F 'viewer' | 'commenter' | 'editor' | 'coowner'\n    });\n  }\n\n  async getMembers(boardId: string): Promise\u003CBoardMember[]> {\n    return this.api.fetchAll(`\u002Fv2\u002Fboards\u002F${boardId}\u002Fmembers`);\n  }\n}\n```\n\n### Webhook Processor\n\n```typescript\n\u002F\u002F src\u002Fwebhooks\u002Fprocessor.ts\nexport class WebhookProcessor {\n  private handlers = new Map\u003Cstring, EventHandler[]>();\n\n  on(eventType: string, handler: EventHandler): void {\n    const existing = this.handlers.get(eventType) ?? [];\n    existing.push(handler);\n    this.handlers.set(eventType, existing);\n  }\n\n  async process(event: MiroBoardEvent): Promise\u003Cvoid> {\n    \u002F\u002F Type-based routing\n    const key = `${event.item.type}:${event.type}`;  \u002F\u002F e.g., 'sticky_note:create'\n    const handlers = [\n      ...(this.handlers.get(key) ?? []),\n      ...(this.handlers.get(`*:${event.type}`) ?? []),  \u002F\u002F Wildcard item type\n      ...(this.handlers.get('*:*') ?? []),               \u002F\u002F Catch-all\n    ];\n\n    for (const handler of handlers) {\n      await handler(event);\n    }\n  }\n}\n\n\u002F\u002F Usage\nconst processor = new WebhookProcessor();\n\nprocessor.on('sticky_note:create', async (event) => {\n  console.log(`New sticky note on board ${event.boardId}: ${event.item.id}`);\n  await syncService.syncItem(event.boardId, event.item.id);\n});\n\nprocessor.on('*:delete', async (event) => {\n  console.log(`Item deleted from board ${event.boardId}: ${event.item.id}`);\n  await database.deleteItem(event.item.id);\n});\n```\n\n### Connector Builder (Fluent API)\n\n```typescript\n\u002F\u002F src\u002Fmiro\u002Fconnector-builder.ts\nexport class ConnectorBuilder {\n  private config: any = { style: {} };\n\n  constructor(private api: MiroApiClient, private boardId: string) {}\n\n  from(itemId: string, snapTo?: SnapPosition): this {\n    this.config.startItem = { id: itemId, ...(snapTo ? { snapTo } : {}) };\n    return this;\n  }\n\n  to(itemId: string, snapTo?: SnapPosition): this {\n    this.config.endItem = { id: itemId, ...(snapTo ? { snapTo } : {}) };\n    return this;\n  }\n\n  caption(text: string, position = 0.5): this {\n    this.config.captions = [{ content: text, position }];\n    return this;\n  }\n\n  dashed(): this { this.config.style.strokeStyle = 'dashed'; return this; }\n  curved(): this { this.config.shape = 'curved'; return this; }\n  arrow(): this { this.config.style.endStrokeCap = 'stealth'; return this; }\n\n  async build(): Promise\u003CMiroConnector> {\n    return this.api.fetch(`\u002Fv2\u002Fboards\u002F${this.boardId}\u002Fconnectors`, 'POST', this.config);\n  }\n}\n\n\u002F\u002F Usage\nconst connector = await new ConnectorBuilder(api, boardId)\n  .from(taskId, 'right')\n  .to(dependencyId, 'left')\n  .caption('depends on')\n  .dashed()\n  .arrow()\n  .build();\n```\n\n## Data Flow\n\n```\nUser Action (or cron job)\n     │\n     ▼\n┌─────────────┐\n│   Service   │  ←── Business logic\n│   Layer     │\n└──────┬──────┘\n       │\n  ┌────┴────┐\n  │         │\n  ▼         ▼\n┌──────┐ ┌──────┐\n│Cache │ │ Miro │  ←── api.miro.com\u002Fv2\n│Layer │ │Client│\n└──────┘ └──────┘\n\nMiro Board Change\n     │\n     ▼\n┌─────────────┐\n│  Webhook    │  ←── Signature verification\n│  Handler    │\n└──────┬──────┘\n       │\n       ▼\n┌─────────────┐\n│ Processor   │  ←── Idempotency + routing\n└──────┬──────┘\n       │\n  ┌────┴────┐\n  │         │\n  ▼         ▼\n┌──────┐ ┌──────┐\n│Cache │ │  DB  │  ←── Sync + invalidation\n│Inval │ │Sync  │\n└──────┘ └──────┘\n```\n\n## Configuration\n\n```typescript\n\u002F\u002F src\u002Fconfig\u002Fmiro.ts\nexport interface MiroConfig {\n  clientId: string;\n  clientSecret: string;\n  accessToken?: string;\n  environment: 'development' | 'staging' | 'production';\n  cache: { enabled: boolean; ttlSeconds: number };\n  rateLimit: { maxConcurrency: number; requestsPerSecond: number };\n  webhook: { secret: string; callbackUrl: string };\n}\n\nexport function loadMiroConfig(): MiroConfig {\n  return {\n    clientId: requireEnv('MIRO_CLIENT_ID'),\n    clientSecret: requireEnv('MIRO_CLIENT_SECRET'),\n    accessToken: process.env.MIRO_ACCESS_TOKEN,\n    environment: (process.env.NODE_ENV ?? 'development') as MiroConfig['environment'],\n    cache: {\n      enabled: process.env.MIRO_CACHE_ENABLED !== 'false',\n      ttlSeconds: parseInt(process.env.MIRO_CACHE_TTL ?? '120'),\n    },\n    rateLimit: {\n      maxConcurrency: parseInt(process.env.MIRO_MAX_CONCURRENCY ?? '5'),\n      requestsPerSecond: parseInt(process.env.MIRO_RPS ?? '10'),\n    },\n    webhook: {\n      secret: process.env.MIRO_WEBHOOK_SECRET ?? '',\n      callbackUrl: process.env.MIRO_WEBHOOK_URL ?? '',\n    },\n  };\n}\n```\n\n## Error Handling\n\n| Layer | Error Type | Handling |\n|-------|-----------|----------|\n| Client | 429 Rate Limited | Exponential backoff with `Retry-After` |\n| Client | 401 Token Expired | Auto-refresh via TokenManager |\n| Service | Item Not Found | Return null, log, continue |\n| Webhook | Invalid Signature | Return 401, do not process |\n| Webhook | Duplicate Event | Skip via idempotency check |\n| Cache | Redis Down | Fall through to API directly |\n\n## Resources\n\n- [Miro REST API Reference](https:\u002F\u002Fdevelopers.miro.com\u002Fdocs\u002Frest-api-reference-guide)\n- [Miro Node.js Client](https:\u002F\u002Fdevelopers.miro.com\u002Fdocs\u002Fmiro-nodejs-api-client)\n- [Miro App Examples (GitHub)](https:\u002F\u002Fgithub.com\u002Fmiroapp\u002Fapp-examples)\n\n## Next Steps\n\nFor multi-environment setup, see `miro-multi-env-setup`.\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","miro","architecture","design","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement a production-ready reference architecture for Miro REST API v2\nintegrations with layered design, caching, and event processing.\nTrigger with phrases like \"miro architecture\", \"miro project structure\",\n\"how to organize miro integration\", \"miro design patterns\".\n","Read, Grep","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--miro-pack--miro-reference-architecture",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill miro-reference-architecture",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill miro-reference-architecture",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill miro-reference-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--miro-pack--miro-reference-architecture\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]