motionworks
MotionWorks
Eine direkte Manipulations-Ebene für Motion Design für Projekte, die mit KI-Codierungsagenten erstellt werden.
MotionWorks läuft über deiner lokalen App, sodass du ein echtes Element auswählen, Bewegung nach Gefühl einstellen, es erneut abspielen, mit dem Original vergleichen und das Ergebnis anwenden kannst. Einstellbare Werte leben in CSS-Custom-Properties, sodass der Browser sie sofort in der Vorschau anzeigen kann und der lokale Daemon präzise Änderungen zurück in den Quellcode schreiben kann.
Erstellen durch Beschreiben. Verfeinern durch Manipulieren.
Schnellstart
Installiere das einzelne Paket und initialisiere das Projekt:
npm install -D motionworks
npx motionworks initinit fügt .motionworks/ zu .gitignore hinzu, entfernt einen veralteten MotionWorks-MCP-Eintrag, falls vorhanden, und schreibt einen generierten MOTIONWORKS.md-Leitfaden sowie eine kurze Referenz für Claude Code und Codex. Bei React-Projekten bestätigt es außerdem die Paketinstallation, wenn nötig.
Starte deine App und den MotionWorks-Daemon in separaten Terminals:
npm run dev
npx motionworksBefolge für React den generierten Leitfaden, um MotionWorksProvider einmal in einem nur für die Entwicklung vorgesehenen, unabhängigen React-Root zu mounten. Lade für jede andere Seite das eigenständige Overlay vor </body>:
<script src="http://127.0.0.1:52340/motionworks.js"></script>MotionWorks kann auch ein statisches Verzeichnis bedienen und das Overlay automatisch injizieren:
npx motionworks serve .Related MCP server: pincushion-mcp
Der CSS-Vertrag
Jeder einstellbare Wert hat genau eine kanonische Deklaration in einem echten Stylesheet in der Regel des registrierten Elements:
.card {
--mw-radius: 120px;
--mw-response: 0.18;
}React-Effekte registrieren nur das Schema. Der Hook liest die Baselines aus CSS; Effektcode konsumiert sie mit readParams und reagiert auf motionworks:change über onParamsChange:
import { useEffect, useRef } from 'react';
import { onParamsChange, readParams, useMotionWorks } from 'motionworks/react';
const schema = {
name: 'Magnetic card',
params: {
radius: { type: 'spatial-radius', label: 'Radius', unit: 'px' },
response: { type: 'temporal-response', label: 'Response' },
},
} as const;
function MagneticCard() {
const ref = useRef<HTMLDivElement>(null);
useMotionWorks(ref, schema);
useEffect(() => {
const el = ref.current;
if (!el) return;
const effect = createMagneticEffect(el, readParams(el, schema.params));
const sync = () => effect.update(readParams(el, schema.params));
const stop = onParamsChange(el, sync);
return () => {
stop();
effect.destroy();
};
}, []);
return <div ref={ref} className="card" />;
}Reines HTML kann dasselbe Schema mit data-motionworks registrieren und window.MotionWorks.readParams / window.MotionWorks.onParamsChange verwenden.
Was beim Anwenden passiert
Das Anwenden ist dauerhaft, bevor es automatisch erfolgt:
Das Overlay hängt einen Eintrag an
.motionworks/changes.jsonan.Der Daemon bearbeitet die eindeutig passende CSS-Deklaration direkt.
Wenn die Deklaration mehrdeutig ist, führt der Daemon Claude oder Codex aus, sofern verfügbar.
Wenn kein Agent sie vervollständigen kann, bleibt der Eintrag ausstehend für „Prompt kopieren" und
npx motionworks changes.
Der Agent ändert genau die aufgeführten Deklarationen und bestätigt einen manuellen Rückschreibevorgang mit npx motionworks ack <id>. npx motionworks status meldet den aktuell ausgewählten Effekt, wenn ein Designer sich auf „diesen hier" bezieht.
Paketexporte
Das Repository enthält ein veröffentlichbares Paket, motionworks:
Export | Zweck |
| Browsersicheres Schema- und Journal-Typen |
|
|
| Framework-freie CSS-Bindungs- und Ereignis-Helfer, einschließlich |
| Programmatische Daemon-, Journal-, Setup-, Konfigurations- und Static-Serving-APIs |
| Eigenständiges Browser-Bundle |
| Daemon-, Journal-, Setup- und Statusbefehle |
React und ReactDOM sind optionale Begleitpakete; Nicht-React-Seiten verwenden das eigenständige Bundle.
CLI
npx motionworks Start the local daemon
npx motionworks serve <dir> Serve a static site with the overlay
npx motionworks changes [--json|--brief] Show pending journal entries
npx motionworks ack <id>|--all Acknowledge manual writebacks
npx motionworks status Show daemon and current selection
npx motionworks revert <id> Revert an applied entry
npx motionworks init Set up the project and agent guideDie automatische Agentenausführung ist aktiviert, wenn claude oder codex gefunden wird. Verwende --no-agent für manuelle Übergabe oder --agent=claude|codex|off, um explizit zu wählen. Der Daemon bindet an 127.0.0.1:52340; MOTIONWORKS_PORT oder --port ändert den Port.
Entwicklung
Das Repository ist ein npm-Workspace mit einem Paket unter packages/motionworks. Es wird mit tsup gebaut und mit Vitest getestet.
npm install
npm run build
npm run typecheck
npm testDer abgeschlossene 0.5.0-Bridge-Neuaufbau ist in docs/plans/bridge-rebuild.md dokumentiert; die gepflegte Architektur und die Verträge befinden sich in docs/.
Lizenz
MIT © John Kim
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceMCP server that enables AI coding agents to read and write to a local-first HTML/CSS design canvas, bridging visual design and code generation.MIT
- AlicenseAqualityCmaintenanceVisual feedback as agent work packets: stakeholders pin on your live app and your AI coding agent reads each pin (selector, screenshot, DOM, thread, acceptance criteria) via MCP and ships the fix.398021MIT
- AlicenseBqualityCmaintenanceEnables AI agents to directly control Figma Desktop via MCP, supporting UI creation, editing, prototyping, and variable management with over 60 tools.658821MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to remotely operate visual design tools via MCP protocol, with composable architecture for image processing, file operations, and workflow automation.MIT
Related MCP Connectors
Design intelligence for coding agents: audits, design systems, and a taste profile agents consult.
Real-time collaborative whiteboard — AI agents and humans edit the same board live over MCP.
Connect AI coding agents to Anima Playground, Figma, and your design system.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jhn-kim/motionworks'
If you have feedback or need assistance with the MCP directory API, please join our Discord server