@coppsary/motionly 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  <div align="center">
2
2
  <img src="public/logo.svg" alt="Motionly Logo" width="100">
3
-
3
+
4
4
  # Motionly
5
-
5
+
6
6
  **AI-native motion graphics editor**
7
7
  </div>
8
8
 
9
9
  <p align="center">
10
- <em>AI-assisted workflows create editable animation projects you can refine visually.<br/>Edit timing, assets, animations, and layouts before exporting the final result.</em>
10
+ <em>Create editable animations with AI, then refine every detail visually.</em>
11
11
  </p>
12
12
 
13
13
  <p align="center">
@@ -22,426 +22,102 @@
22
22
  </p>
23
23
 
24
24
  <p align="center">
25
- <a href="#overview">Overview</a> &middot;
26
25
  <a href="#showcase">Showcase</a> &middot;
27
- <a href="#visual-editor">Visual Editor</a> &middot;
28
- <a href="#motion-files">Motion Files</a> &middot;
29
- <a href="#agent-and-llm-support">Agent and LLM Support</a> &middot;
30
- <a href="#contributing">Contributing</a>
26
+ <a href="#features">Features</a> &middot;
27
+ <a href="#quick-start">Quick Start</a> &middot;
28
+ <a href="#development">Development</a> &middot;
29
+ <a href="https://motionly.mintlify.app/">Docs</a>
31
30
  </p>
32
31
 
33
32
  ---
34
33
 
35
34
  ## Showcase
36
35
 
37
- | Visual Editor |
38
- | :---------------------------------------------------: |
36
+ <table align="center">
37
+ <tr>
38
+ <th>Animation Preview</th>
39
+ </tr>
40
+ <tr>
41
+ <td align="center">
42
+ <img src=".github/assets/showcase-2.gif" alt="Motionly Animation">
43
+ </td>
44
+ </tr>
45
+ </table>
46
+
47
+ | Visual Editor |
48
+ | :---: |
39
49
  | ![Motionly Editor](.github/assets/screenshot.jpg) |
40
50
 
41
- | Animation Preview |
42
- | :--------------------------------------------------------: |
43
- | ![Motionly Animation](.github/assets/showcase.gif) |
44
-
45
- ---
46
-
47
- ## Overview
48
-
49
- Motionly is a motion graphics editor where AI-assisted workflows create editable animation projects that you can refine visually. Edit timing, assets, animations, and layouts through a timeline and canvas editor before exporting the final result.
50
-
51
- The current focus is the core editing loop: reliable preview, direct manipulation, useful animation presets, clear timeline control, clean serialization, and dependable export.
52
- ---
53
-
54
- ## Visual Editor
55
-
56
- Current editor features:
57
-
58
- **Interface:**
59
- - Left navigation rail with icon-based navigation (Media, Audio, Text, Effects, Scenes, AI Config, Settings)
60
- - Organized Assets panel with folder structure showing audio and visual assets
61
- - Assets panel tabs: Assets and Presets
62
- - AI Config (rail): enabled skills and an AI context preview
63
- - Settings (rail): brand profile editor
64
- - Preset browser with animated GIF previews
65
- - Professional properties panel with custom sliders, styled inputs, and visual preset cards
66
-
67
- **Canvas & Preview:**
68
- - Centered canvas preview with the project aspect ratio
69
- - Play, pause, reset, timeline scrubber, timecode, and frame display
70
- - Fit, zoom, and fullscreen preview controls
71
- - Click asset thumbnails for temporary full-screen preview (no timeline disruption)
72
-
73
- **Editing:**
74
- - Drag-to-move and corner scaling for elements
75
- - Visual position, scale, rotation, opacity, text, color, timing, and easing controls
76
- - Add text, delete layers, resize the timeline, and trim layer ranges
77
- - Scene, canvas, and timeline selection
78
-
79
- **Timeline Editing:**
80
- - Persistent Main, Overlay, and Audio track roles saved through `.motion`
81
- - Uniform visual layers with free gaps/overlaps and no ripple behavior
82
- - Horizontal timing changes stay on the current layer; vertical drag moves to any visual layer
83
- - Optional clip-edge/playhead snapping is off by default
84
- - Grab a clip's center to move it in time or across layers; a dashed ghost previews the persisted landing position (mouse and touch)
85
- - On-timeline GSAP keyframes: selecting an animated element shows draggable keyframe diamonds on its row with per-keyframe easing controls, add-at-playhead, and right-click delete; edits persist into `.motion`
86
- - Playhead-based Split for media, text, images, overlays, and effects
87
- - Timeline zoom controls plus `Ctrl/Cmd` wheel or trackpad pinch
88
- - Undo/Redo history and persistent track hide/mute controls
89
- - Visual media clips with thumbnails and transition markers
90
-
91
- **Audio:**
92
- - Audio defined in `.motion` format (persists with project)
93
- - Synchronized audio preview playback
94
- - Audio shown in organized Assets panel
95
-
96
- **Project Management:**
97
- - Open and save `.motion` projects
98
- - Load presets with confirmation dialog
99
- - All edits automatically serialize to `.motion` format
100
-
101
- **AI Assistant:**
102
- - BYOK Motionly Assistant that generates and loads editable `.motion` projects
103
- - OpenAI, Anthropic, OpenRouter, Google Gemini, Hugging Face, and custom OpenAI-compatible endpoints
104
- - Locally stored keys and model overrides
105
- - AI Config (rail) manages enabled skills fed to the assistant; Settings (rail) holds a brand profile (BRAND.md). Both become assistant knowledge.
106
-
107
- **Export:**
108
- - Canvas-frame MP4 export through the local Motionly/FFmpeg server with progress and project-audio mixing
109
-
110
- Current limits:
111
-
112
- - MP4/WebM/MOV clips use the browser's native codecs and render decoded frames during preview, scrub, trim, and export
113
- - GIF uses frame-accurate `ImageDecoder` when available, Lottie uses the official dotLottie Canvas renderer, and animated SVG uses a real-time SVG-to-Canvas runtime
114
- - Video clip audio is muted and is not mixed into export yet; use the project audio track
115
- - Two simultaneous clips that reference one video alias cannot seek that decoder to two source times; import a second alias when needed
116
- - Project audio exports at its timeline offset; embedded audio from video clips remains muted
117
- - Animated SVG and GIF fallback export in real time because those runtimes do not expose deterministic seeking
118
- - Canvas resolution, aspect ratio, and FPS still come from `.motion`
119
- - WebM, GIF, still-image, and image-sequence export are not exposed yet
120
-
121
- ---
122
-
123
- ## Motion Files
124
-
125
- The main sample project is:
126
-
127
- ```text
128
- video-motion/motionly.motion
129
- ```
130
-
131
- Its sample assets live in:
132
-
133
- ```text
134
- video-motion/assets/motionly/
135
- ```
136
-
137
- Example:
138
-
139
- ```motion
140
- canvas {
141
- size 1920x1080
142
- fps 60
143
- duration 8s
144
- background #020308
145
- }
146
-
147
- camera {
148
- zoom 1
149
- x 0
150
- y 0
151
- }
152
-
153
- audio "/assets/my-project/background.mp3"
154
-
155
- import "/video-motion/assets/my-project/logo.svg" as mark
156
- import "/video-motion/assets/my-project/video.mp4" as bgVideo
157
-
158
- mark {
159
- center
160
- layer hero
161
- width 220
162
- opacity 0
163
- animation maskReveal(delay 1s duration 900ms direction down ease power3.out)
164
- }
165
-
166
- text title {
167
- value "Motion graphics, written."
168
- center
169
- layer text
170
- size 72
171
- textAnimation keynoteText(split words stagger 80ms duration 800ms delay 1s ease power3.out)
172
- }
173
-
174
- clip bgVideo {
175
- track 1
176
- start 0s
177
- duration 5s
178
- trimIn 0s
179
- trimOut 0s
180
- }
181
- ```
182
-
183
- Motionly supports semantic layers, camera animation, reusable presets, SVG/image assets, text reveals, generated background effects, timeline clips, audio, preview playback, and MP4 export.
184
-
185
- ### Use Your Own Assets
186
-
187
- For a new animation:
188
-
189
- 1. Copy `video-motion/motionly.motion` to a new `.motion` file or replace its contents.
190
- 2. Remove sample files you do not need from `video-motion/assets/motionly/`.
191
- 3. Prefer creating a separate folder such as `video-motion/assets/my-project/`.
192
- 4. Add your own images, SVGs, logos, audio files, and videos.
193
- 5. Update every `import` path in the `.motion` project.
194
- 6. Open the project in Motionly and finish positioning and timing visually.
195
- 7. Or drag assets from the Assets panel onto the timeline to create clips.
196
-
197
- Images, SVGs, and videos can be imported and used as timeline clips. Audio persists in `.motion` format. Drag assets onto the timeline to create clips that persist in the project file.
198
-
199
- **Note:** Timeline clips reference assets by filename. Keep original files in the same location to reload projects with clips.
200
-
201
- See [AI Authoring Guide](docs/agents/ai-authoring.mdx) for a complete asset and prompting workflow.
202
-
203
- ---
204
-
205
- ## Agent And LLM Support
206
-
207
- Motionly includes a built-in AI Chat panel and repository guidance for external agent tools.
208
-
209
- Open Motionly Assistant beside Assets, enter your own provider key, and describe the animation you want. Motionly detects OpenAI, Anthropic, OpenRouter, Google Gemini, and Hugging Face keys, or accepts a custom OpenAI-compatible endpoint. You can leave the model blank for Motionly's default or enter an exact model ID. The key and chat history stay in browser storage; requests go directly from the browser to that provider, never through a Motionly server. The assistant receives the current project and imported asset list, returns a `.motion` draft, and exposes a **Load into Editor** action that validates the source through the normal parser and scene-graph pipeline.
210
-
211
- **Model quality matters.** The AI model you choose directly affects composition, timing, and correct preset use. Smaller models may generate valid syntax but weaker visual decisions. Prefer a current, high-capability model with strong code-generation and instruction-following performance.
212
-
213
- For coding agents working inside a project, install the skill with `npx motionly skills add` (or `npx motionly init`, which asks which agent). This writes the `SKILL.md` contract plus a full `references/` library into your agent's folder — Codex (`.agents/`), Claude Code (`.claude/`), Gemini CLI (`.gemini/`), opencode (`.opencode/`), or Kiro (`.kiro/`):
214
-
215
- | Path | Purpose |
216
- |---|---|
217
- | `<agent>/skills/motionly/SKILL.md` | Quick `.motion` contract |
218
- | `<agent>/skills/motionly/references/llms.txt` | Discovery index for the focused skills |
219
- | `<agent>/skills/motionly/references/skills/*/SKILL.md` | Full library: `motion-dsl`, `svg`, `animation`, `timeline`, and more |
220
-
221
- Point the agent at `AGENTS.md` and the installed `SKILL.md`, then let it load `references/llms.txt` and the reference skills the task needs. Working inside a clone of this repository instead? The same guidance lives at `AGENTS.md` and `.agents/skills/write-motionly/`. See the [AI Authoring Guide](docs/agents/ai-authoring.mdx) for prompting details.
222
-
223
- Use this short prompt with an LLM or agent working inside the repository:
224
-
225
- ```text
226
- Read AGENTS.md and .agents/skills/write-motionly/SKILL.md first.
227
- Inspect my assets, storyboard the animation, then create a valid .motion project.
228
- Use only supported Motionly syntax and presets. Keep one focal subject per shot,
229
- avoid overlap and repeated fade-only scenes, and validate the final project.
230
- Open the result for visual refinement instead of treating the generated file as final.
231
- ```
232
-
233
- The in-app assistant or external agent creates the first editable version. Motionly remains the place where you preview, adjust, save, and export it.
234
-
235
- ---
236
-
237
- ## Goals
238
-
239
- Current product goals:
240
-
241
- - Make visual editing, selection, timeline trimming, and saving feel reliable.
242
- - Improve preview and MP4 frame pacing on longer projects.
243
- - Add visual canvas controls for FPS, resolution, duration, and aspect ratio.
244
- - Add image, video, and persistent audio clips to the timeline.
245
- - Improve existing animation presets and add a small set of distinct transitions.
246
- - Add more export formats only after MP4 is dependable.
247
- - Provide a hosted editor/sandbox without removing local or self-hosted use.
248
- - Explore optional Remotion and Hyperframe support for code-based composition and rendering workflows while keeping `.motion` as the editable source format.
249
- - Keep BYOK AI drafting optional, local-first, and compatible with external providers.
250
-
251
- See the [Roadmap](ROADMAP.md) for the planned order of work.
252
51
 
253
- ---
254
-
255
- ## Architecture
256
-
257
- ```text
258
- .motion source
259
- -> parser
260
- -> AST
261
- -> scene graph
262
- -> animation preset compiler
263
- -> animation evaluator
264
- -> canvas renderer
265
- -> preview / export
266
- ```
267
-
268
- Core folders:
269
-
270
- | Path | Purpose |
271
- |---|---|
272
- | `AGENTS.md` | Agent guidance and product boundaries |
273
- | `.agents/skills/write-motionly` | Reusable agent skill for authoring `.motion` |
274
- | `src/ui` | Svelte editor and app shell |
275
- | `src/language` | Tokenizer, parser, AST, and serializer |
276
- | `src/scene` | Scene graph normalization and layer/camera structure |
277
- | `src/animation` | Deterministic animation evaluation |
278
- | `src/animation-library` | Reusable animation presets |
279
- | `src/render` | Canvas renderer |
280
- | `src/export` | MP4 and export pipeline |
281
- | `video-motion` | Sample `.motion` projects and assets |
282
-
283
- ---
284
52
 
285
- ## Open Source
286
53
 
287
- Motionly is licensed under the Apache License 2.0.
288
54
 
289
- Project docs:
290
-
291
- - [Introduction](docs/introduction.mdx)
292
- - [Quick Start](docs/quickstart.mdx)
293
- - [Installation](docs/installation.mdx)
294
- - [User Guide](docs/guides/user-guide.mdx)
295
- - [UI Guide](docs/editor/ui-guide.mdx)
296
- - [Motion Language Overview](docs/motion-language/overview.mdx)
297
- - [Animation Presets](docs/animation/presets.mdx)
298
- - [Export Overview](docs/export/overview.mdx)
299
- - [AI Authoring Guide](docs/agents/ai-authoring.mdx)
300
- - [Contributing](CONTRIBUTING.md)
301
- - [Code of Conduct](CODE_OF_CONDUCT.md)
302
- - [Security Policy](SECURITY.md)
303
- - [Roadmap](ROADMAP.md)
304
- - [Changelog](CHANGELOG.md)
305
55
 
306
56
  ---
307
57
 
308
- ## Export
309
-
310
- Motionly currently exposes MP4 export through the editor when the browser supports MP4 `MediaRecorder` output.
311
-
312
- Known limitations:
58
+ ## Features
313
59
 
314
- - Export runs in real time and still needs pacing and reliability improvements.
315
- - Attached audio is not included yet.
316
- - Resolution and FPS use the current canvas settings.
317
- - WebM, GIF, PNG, and image-sequence export are roadmap work.
60
+ Motionly combines a canvas, timeline, and visual controls with an editable `.motion` source format.
318
61
 
319
- ---
62
+ - Preview, select, position, scale, rotate, and style elements visually
63
+ - Edit timing, keyframes, easing, clips, transitions, and audio on the timeline
64
+ - Use smooth animation presets for text, images, SVGs, and video
65
+ - Draft editable projects with the optional BYOK AI assistant
66
+ - Save projects as readable `.motion` files and export MP4
320
67
 
321
- ## Install and use
68
+ AI-generated work always goes through Motionly's parser and remains fully editable in the visual editor.
322
69
 
323
- Motionly ships on npm — no clone and no global install. It needs Node.js `20.19.0` or newer, and every command runs through `npx`.
70
+ ## Quick Start
324
71
 
325
- ### Create a project
72
+ Requires Node.js `20.19.0` or newer.
326
73
 
327
74
  ```bash
328
- npx motionly init demo
75
+ npx @coppsary/motionly init my-video
329
76
  ```
330
77
 
331
- `init` scaffolds the project and asks **which agent you're using**, then installs the Motionly agent skill for just that one (or choose "All supported agents"). Supported agents: **Codex, Claude Code, Gemini CLI, opencode, and Kiro**. The install is not a single file: it writes the `SKILL.md` contract plus a full `references/` library (`motion-dsl`, `svg`, `animation`, `timeline`, and more) with an `llms.txt` discovery index.
332
-
333
- Skip the prompt with flags:
78
+ The setup creates a project, optionally installs the Motionly skill for your coding agent, and opens the editor. To return later:
334
79
 
335
80
  ```bash
336
- npx motionly init demo --provider opencode # install for one agent, no prompt
337
- npx motionly init demo --all # every supported agent
338
- npx motionly init demo --skip-skills # no agent skills
81
+ cd my-video
82
+ npx @coppsary/motionly dev
339
83
  ```
340
84
 
341
- Provider names are `codex`, `claude`, `gemini`, `opencode`, and `kiro`. Use `--scope project` (default) or `--scope global` to install for every project on your machine.
342
-
343
- The scaffolded project:
344
-
345
- ```text
346
- demo/
347
- ├── AGENTS.md
348
- ├── assets/
349
- ├── project.motion
350
- ├── meta.json
351
- └── README.md
352
- ```
353
-
354
- ### Add skills to an existing project
85
+ Want the editor without creating a project?
355
86
 
356
87
  ```bash
357
- npx motionly skills add # pick scope and agents
358
- npx motionly skills add --all --scope project
359
- npx motionly skills add --provider codex --scope global
88
+ npx @coppsary/motionly
360
89
  ```
361
90
 
362
- Re-running is safe: existing skill files are kept, never overwritten.
91
+ See the [Quick Start](https://motionly.mintlify.app/quickstart) and [Installation Guide](https://motionly.mintlify.app/installation) for editing, export, CLI options, agent setup, and requirements.
363
92
 
364
- ### Open and edit
365
-
366
- ```bash
367
- cd demo
368
- npx motionly dev
369
- ```
370
-
371
- Motionly opens `http://localhost:4173/editor`, loads `project.motion`, serves media from `assets/`, and saves editor changes back to the project. Add `--port <n>` to change the port or `--no-open` to skip launching the browser. For the no-setup browser editor, run `npx motionly`.
372
-
373
- ## Development from source
374
-
375
- For local development from source:
93
+ ## Development
376
94
 
377
95
  ```bash
96
+ git clone https://github.com/COPPSARY/Motionly.git
97
+ cd Motionly
378
98
  npm install
379
99
  npm run dev
380
100
  ```
381
101
 
382
- Open:
383
-
384
- ```text
385
- http://localhost:5173
386
- ```
387
-
388
- To serve your own production build locally:
389
-
390
- ```bash
391
- npm run build
392
- npm run serve
393
- ```
394
-
395
- ---
396
-
397
- ## Test
102
+ Before opening a pull request:
398
103
 
399
104
  ```bash
105
+ npm run test:run
400
106
  npm run build
401
- npm test -- --run
402
107
  ```
403
108
 
404
- ---
405
-
406
-
407
- ## Contributing
408
-
409
- Repository:
109
+ See [Contributing](CONTRIBUTING.md), the [Roadmap](ROADMAP.md), and the [documentation](https://motionly.mintlify.app/) for project details.
410
110
 
411
- https://github.com/COPPSARY/Motionly
111
+ ## License
412
112
 
413
- Contribution priorities:
414
-
415
- 1. Improve the visual editor and timeline experience.
416
- 2. Fix preview and MP4 export performance and correctness.
417
- 3. Add focused tests for parser, serialization, presets, editor workflows, and export.
418
- 4. Keep `.motion` examples and implementation files readable.
419
- 5. Avoid large dependencies unless they clearly simplify the core workflow.
420
-
421
- Before opening a PR:
422
-
423
- - Run `npm test -- --run`
424
- - Run `npm run build`
425
- - Keep `.motion` examples readable
426
- - Avoid hidden state in rendering
427
- - Do not mutate imported assets
428
- - Prefer deterministic frame evaluation over runtime side effects
429
-
430
- ---
431
-
432
- ## Links
433
-
434
- <div align="center">
435
-
436
- | Platform | Link |
437
- |---|---|
438
- | GitHub | [COPPSARY](https://github.com/COPPSARY) |
439
- | Facebook | [COPPSARY](https://web.facebook.com/profile.php?id=61567582710788) |
440
-
441
- </div>
113
+ Licensed under the [Apache License 2.0](LICENSE).
442
114
 
443
115
  ---
444
116
 
445
117
  <div align="center">
446
118
  <p><em>Effortless Animation</em></p>
119
+ <p>
120
+ <a href="https://github.com/COPPSARY">GitHub</a> &middot;
121
+ <a href="https://web.facebook.com/profile.php?id=61567582710788">Facebook</a>
122
+ </p>
447
123
  </div>