clickup-sdk-patterns

Featured

Production-ready ClickUp API v2 client patterns with typed wrappers, error handling, caching, and multi-tenant support. Trigger: "clickup client wrapper", "clickup SDK patterns", "clickup best practices", "clickup typescript client", "clickup API wrapper", "production clickup code".

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

# ClickUp SDK Patterns ## Overview ClickUp has no official SDK. Build a typed REST client wrapper around `https://api.clickup.com/api/v2/`. These patterns provide singleton clients, typed responses, error boundaries, and multi-tenant support. ## Typed Client Wrapper ```typescript // src/clickup/client.ts const CLICKUP_BASE = 'https://api.clickup.com/api/v2'; interface ClickUpClientConfig { token: string; timeout?: number; onRateLimit?: (waitMs: number) => void; } class ClickUpClient { private token: string; private timeout: number; private rateLimitRemaining = 100; private rateLimitReset = 0; constructor(config: ClickUpClientConfig) { this.token = config.token; this.timeout = config.timeout ?? 30000; } async request<T>(path: string, options: RequestInit = {}): Promise<T> { const controller = new AbortController(); const timer = setTimeout(() => controller.abort(), this.timeout); try { const response = await fetch(`${CLICKUP_BASE}${path}`, { ...options, signal: controller.signal, headers: { 'Authorization': this.token, 'Content-Type': 'application/json', ...options.headers, }, }); // Track rate limit state from response headers this.rateLimitRemaining = parseInt( response.headers.get('X-RateLimit-Remaining') ?? '100' ); this.rateLimitReset = parseInt( response.headers.get('X-RateLimit-Reset') ?? '0' ) * 1000; ...

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