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,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

# 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
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 Featured

gamma-performance-tuning

Optimize Gamma API performance and reduce latency. Use when experiencing slow response times, optimizing throughput, or improving user experience with Gamma integrations. Trigger with phrases like "gamma performance", "gamma slow", "gamma latency", "gamma optimization", "gamma speed".

2,266 Updated today
jeremylongshore
AI & Automation Featured

gamma-local-dev-loop

Set up local development workflow for Gamma API integration. Use when building automation scripts, testing API calls locally, or configuring a dev environment with mock responses. Trigger: "gamma local dev", "gamma development setup", "gamma test locally", "gamma mock API", "gamma dev workflow".

2,266 Updated today
jeremylongshore
AI & Automation Featured

gamma-security-basics

Implement security best practices for Gamma integration. Use when securing API keys, implementing access controls, or auditing Gamma security configuration. Trigger with phrases like "gamma security", "gamma API key security", "gamma secure", "gamma credentials", "gamma access control".

2,266 Updated today
jeremylongshore
AI & Automation Featured

gamma-core-workflow-b

Generate from templates, retrieve exports, and manage sharing via Gamma API. Use when creating content from template gammas, downloading PDF/PPTX/PNG exports, or configuring sharing and folder organization. Trigger: "gamma template", "gamma export", "gamma download PDF", "gamma PPTX", "gamma sharing", "gamma from template".

2,266 Updated today
jeremylongshore
AI & Automation Featured

gamma-reference-architecture

Reference architecture for enterprise Gamma integrations. Use when designing systems, planning integrations, or implementing best-practice Gamma architectures. Trigger with phrases like "gamma architecture", "gamma design", "gamma system design", "gamma integration pattern", "gamma enterprise".

2,266 Updated today
jeremylongshore