/framer-pack:framer-webhooks-eventsfrom framer-pack
Implements Framer webhook signature validation and event handling for CMS sync, WebSocket subscriptions, and plugin event subscriptions.
Ships in framer-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Framer's Server API uses a WebSocket channel for real-time communication, not traditional REST webhooks. For event-driven integrations, you subscribe to changes via the WebSocket connection or set up your own webhook endpoints that trigger Framer sync via the Server API.
import { framer } from 'framer-api';
async function watchChanges() {
const client = await framer.connect({
apiKey: process.env.FRAMER_API_KEY!,
siteId: process.env.FRAMER_SITE_ID!,
});
// Subscribe to collection changes
const collections = await client.getCollections();
for (const col of collections) {
col.subscribe((items) => {
console.log(`Collection "${col.name}" updated: ${items.length} items`);
});
}
}
// Receive webhook from your CMS, sync to Framer
import express from 'express';
import { framer } from 'framer-api';
const app = express();
app.use(express.json());
app.post('/webhooks/cms-update', async (req, res) => {
const { event, data } = req.body;
// Validate webhook source
const signature = req.headers['x-webhook-signature'];
if (!verifySignature(req.body, signature as string)) {
return res.status(401).json({ error: 'Invalid signature' });
}
if (event === 'content.updated') {
const client = await framer.connect({
apiKey: process.env.FRAMER_API_KEY!,
siteId: process.env.FRAMER_SITE_ID!,
});
const col = (await client.getCollections()).find(c => c.name === data.collection);
if (col) {
await col.setItems(data.items.map(i => ({ fieldData: i })));
await client.publish();
console.log(`Synced ${data.items.length} items and published`);
}
}
res.json({ received: true });
});
// Inside a Framer plugin — subscribe to canvas changes
import { framer } from 'framer-plugin';
// Watch for selection changes
framer.subscribeToSelection((selection) => {
console.log('Selection changed:', selection.length, 'layers');
});
// Watch for code file changes
framer.subscribeToCodeFiles((codeFiles) => {
console.log('Code files updated:', codeFiles.map(f => f.name));
});
For performance, see framer-performance-tuning.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub flight505/skill-forge --plugin framer-pack18 skills in this plugin
/framer-ci-integrationConfigure Framer CI/CD integration with GitHub Actions and testing.
Use when setting up automated testing, configuring CI pipelines,
or integrating Framer tests into your build process.
Trigger with phrases like "framer CI", "framer GitHub Actions",
"framer automated tests", "CI framer".
/framer-common-errorsDiagnose and fix Framer common errors and exceptions.
Use when encountering Framer errors, debugging failed requests,
or troubleshooting integration issues.
Trigger with phrases like "framer error", "fix framer",
"framer not working", "debug framer".
/framer-core-workflow-aExecute Framer primary workflow: Core Workflow A.
Use when implementing primary use case,
building main features, or core integration tasks.
Trigger with phrases like "framer main workflow",
"primary task with framer".
/framer-core-workflow-bExecute Framer secondary workflow: Core Workflow B.
Use when implementing secondary use case,
or complementing primary workflow.
Trigger with phrases like "framer secondary workflow",
"secondary task with framer".
/framer-cost-tuningOptimize Framer costs through tier selection, sampling, and usage monitoring.
Use when analyzing Framer billing, reducing API costs,
or implementing usage monitoring and budget alerts.
Trigger with phrases like "framer cost", "framer billing",
"reduce framer costs", "framer pricing", "framer expensive", "framer budget".
/framer-debug-bundleCollect Framer debug evidence for support tickets and troubleshooting.
Use when encountering persistent issues, preparing support tickets,
or collecting diagnostic information for Framer problems.
Trigger with phrases like "framer debug", "framer support bundle",
"collect framer logs", "framer diagnostic".
Other plugins' skills for the same job