vercel-sdk-patterns

Solid

Production-ready Vercel REST API patterns with typed fetch wrappers and error handling. Use when integrating with the Vercel API programmatically, building deployment tools, or establishing team coding standards for Vercel API calls. Trigger with phrases like "vercel SDK patterns", "vercel API wrapper", "vercel REST API client", "vercel best practices", "idiomatic vercel API".

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

# Vercel SDK Patterns ## Overview Build a typed, production-ready wrapper around the Vercel REST API (`api.vercel.com`). Covers authentication, pagination, error handling, retry logic, and common endpoint patterns for deployments, projects, and environment variables. ## Prerequisites - Completed `vercel-install-auth` setup - TypeScript project with `strict` mode enabled - Vercel access token with appropriate scope ## Instructions ### Step 1: Create Typed API Client ```typescript // lib/vercel-client.ts interface VercelClientConfig { token: string; teamId?: string; baseUrl?: string; } interface VercelError { error: { code: string; message: string }; } class VercelClient { private token: string; private teamId?: string; private baseUrl: string; constructor(config: VercelClientConfig) { this.token = config.token; this.teamId = config.teamId; this.baseUrl = config.baseUrl ?? 'https://api.vercel.com'; } private async request<T>( method: string, path: string, body?: unknown ): Promise<T> { const url = new URL(path, this.baseUrl); if (this.teamId) url.searchParams.set('teamId', this.teamId); const res = await fetch(url.toString(), { method, headers: { Authorization: `Bearer ${this.token}`, 'Content-Type': 'application/json', }, body: body ? JSON.stringify(body) : undefined, }); if (!res.ok) { const err: VercelError = await res.json(); throw new VercelApiErr...

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 Solid

vercel-reliability-patterns

Implement reliability patterns for Vercel deployments including circuit breakers, retry logic, and graceful degradation. Use when building fault-tolerant serverless functions, implementing retry strategies, or adding resilience to production Vercel services. Trigger with phrases like "vercel reliability", "vercel circuit breaker", "vercel resilience", "vercel fallback", "vercel graceful degradation".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hubspot-sdk-patterns

Apply production-ready @hubspot/api-client SDK patterns for TypeScript. Use when implementing HubSpot integrations, building typed wrappers, or establishing team standards for HubSpot CRM operations. Trigger with phrases like "hubspot SDK patterns", "hubspot best practices", "hubspot typed client", "hubspot api-client wrapper", "idiomatic hubspot".

2,266 Updated today
jeremylongshore
AI & Automation Featured

navan-sdk-patterns

Build a typed API wrapper around Navan REST endpoints since no official SDK exists. Use when you need production-grade API access with auto token refresh, retry logic, and typed responses. Trigger with "navan sdk patterns", "navan api wrapper", "navan client class", "navan typed client".

2,266 Updated today
jeremylongshore
AI & Automation Featured

attio-sdk-patterns

Production-ready patterns for the Attio REST API: typed client, retry with backoff, pagination iterators, and multi-tenant factory. Trigger: "attio SDK patterns", "attio best practices", "attio client wrapper", "idiomatic attio", "attio TypeScript patterns".

2,266 Updated today
jeremylongshore
AI & Automation Featured

instantly-sdk-patterns

Apply production-ready Instantly.ai API client patterns for TypeScript and Python. Use when building reusable API wrappers, implementing retry logic, or establishing coding standards for Instantly integrations. Trigger with phrases like "instantly SDK patterns", "instantly best practices", "instantly client wrapper", "instantly code patterns", "idiomatic instantly".

2,266 Updated today
jeremylongshore