gamma-sdk-patterns

Featured

Reusable patterns for the Gamma REST API (no SDK exists). Use when building typed wrappers, generation helpers, template factories, or error handling for Gamma. Trigger: "gamma patterns", "gamma client wrapper", "gamma best practices", "gamma API helper", "gamma code structure".

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

# Gamma API Patterns ## Overview Gamma has no published SDK — all interaction is via REST at `https://public-api.gamma.app/v1.0/`. This skill provides production-grade patterns for typed clients, generation helpers, polling, template workflows, and error handling. ## Prerequisites - Completed `gamma-install-auth` setup - TypeScript project with `fetch` (Node.js 18+) - Understanding of the generate-poll-retrieve workflow ## Instructions ### Step 1: Typed Client Singleton ```typescript // lib/gamma.ts const GAMMA_BASE = "https://public-api.gamma.app/v1.0"; interface GammaConfig { apiKey: string; baseUrl?: string; timeoutMs?: number; } // Types based on actual API responses interface GenerateRequest { content: string; outputFormat?: "presentation" | "document" | "webpage" | "social_post"; themeId?: string; exportAs?: "pdf" | "pptx" | "png"; textMode?: "generate" | "condense" | "preserve"; textAmount?: "brief" | "medium" | "detailed" | "extensive"; imageOptions?: { style?: string }; sharingOptions?: { workspaceAccess?: "noAccess" | "view" | "comment" | "edit" | "fullAccess"; externalAccess?: "noAccess" | "view" | "comment" | "edit" | "fullAccess"; }; folderIds?: string[]; } interface GenerateResult { generationId: string; status: "in_progress" | "completed" | "failed"; gammaUrl?: string; exportUrl?: string; creditsUsed?: number; } let instance: ReturnType<typeof createGammaClient> | null = null; export function getGamma() { ...

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