framer-sdk-patterns

Featured

Apply production-ready Framer SDK patterns for TypeScript and Python. Use when implementing Framer integrations, refactoring SDK usage, or establishing team coding standards for Framer. Trigger with phrases like "framer SDK patterns", "framer best practices", "framer code patterns", "idiomatic framer".

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

# Framer SDK Patterns ## Overview Production-ready patterns for Framer plugins, Server API, code components, and CMS integrations. Covers plugin architecture, type-safe CMS operations, and reusable component patterns. ## Prerequisites - Completed `framer-install-auth` setup - Familiarity with React and TypeScript ## Instructions ### Step 1: Type-Safe CMS Operations ```typescript // src/cms/types.ts — type-safe field definitions interface BlogPost { title: string; body: string; author: string; publishDate: string; featured: boolean; slug: string; } const BLOG_FIELDS = [ { id: 'title' as const, name: 'Title', type: 'string' as const }, { id: 'body' as const, name: 'Body', type: 'formattedText' as const }, { id: 'author' as const, name: 'Author', type: 'string' as const }, { id: 'publishDate' as const, name: 'Published', type: 'date' as const }, { id: 'featured' as const, name: 'Featured', type: 'boolean' as const }, { id: 'slug' as const, name: 'Slug', type: 'slug' as const, userEditable: false }, ] as const; function toBlogItem(post: BlogPost) { return { fieldData: { ...post } }; } ``` ### Step 2: Plugin State Management ```tsx // src/hooks/usePluginState.ts import { useState, useCallback } from 'react'; import { framer } from 'framer-plugin'; type SyncStatus = 'idle' | 'fetching' | 'syncing' | 'success' | 'error'; export function useSyncState() { const [status, setStatus] = useState<SyncStatus>('idle'); const [error, setError] = useS...

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