@donkeyclip/motorcortex

中文文档
9.25.0发布于 2026/05/04proprietaryTypeScriptES Module近 30 天下载 7994

Dynamic Video for the Web

原始使用文档
文档目录6 节
  1. MotorCortex is a dynamic video technology for the Web
  2. Concepts
  3. Animations and Effects
  4. Dynamic Custom Entities
  5. License
  6. Links

MotorCortex

npm version Coverage Maintainability Rating

MotorCortex is a dynamic video technology for the Web

What you can create with MotorCortex is donkeyclips. donkeyclips are just dynamic video components that accept parameters on runtime. You can even edit the donkeyclip on runtime by adding or removing incidents.

Concepts

  • Anything that occurs at a specific point in time and has a very specific duration is an Incident

  • We separate context with action. context is your setting. E.g. in an HTML video your context would be the HTML and all of its elements, while on a 3D clip the context would be all the models, the lights etc. All of your available material.

    The action on the other hand is a change (e.g. color, movement, etc) that happens in and on the context.

  • A full story, consisting of both context and action (Incidents) is called a Clip

  • A full Clip can enter the timeline of another Clip taking both a “physical” and a time position on it

  • Always at the top there is a root Clip, which is the only playable clip. We call it the donkeyclip

MotorCortex implements these concepts as es6 Classes providing all the building blocks needed and an easy API to compose donkeyclips.

Animations and Effects

All Classes are extendable making it very easy to create:

  • Animations: Pre-configured Clips with pre-configured (yet parametric) context and action
  • Effects: Incidents that alter the state and attributes of elements of the context
  • Totally new Clip types, such as canvas, audio etc. Animations, Effects and new Clip types can easily be exposed by Plugins.

Dynamic Custom Entities

Clips support dynamically adding and removing custom entities at runtime via addCustomEntity and removeCustomEntity. Each entity has a birthtime and optional removalTime that control when it is visible to selectors. A dedicated VisibilityChannel manages show/hide events on the timeline, calling showElement/hideElement on the clip at the appropriate moments during playback and seeking. This allows plugins to create entities that appear and disappear at specific points on the timeline while remaining fully compatible with seeking, flash, and export.

License


Home page: https://motorcortexjs.com

FOSSA Status

版本与发布记录

@donkeyclip/motorcortex 共发布 92 个版本,首次发布于 2021/09/23;过去 12 个月发布了 3 个版本。

版本发布日期距今
9.25.0latest2026/05/046 个月前
9.24.12026/05/016 个月前
9.24.02026/04/306 个月前
9.23.102025/10/231.1 年前
9.23.82025/08/011.3 年前
9.23.72025/07/091.3 年前

关于 @donkeyclip/motorcortex 的常见问题

@donkeyclip/motorcortex 是什么?

Dynamic Video for the Web

如何安装 @donkeyclip/motorcortex?

在项目目录运行 npm install @donkeyclip/motorcortex,或使用 pnpm add / yarn add / bun add。

@donkeyclip/motorcortex 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@donkeyclip/motorcortex 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@donkeyclip/motorcortex 可以商用吗?

@donkeyclip/motorcortex 使用 proprietary 许可。声明的许可为 proprietary,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@donkeyclip/motorcortex 的下载量有多少?

根据 npm 官方下载统计,@donkeyclip/motorcortex 在 2026/10/13 – 2026/11/11 这 30 天内被下载 7,994 次,日均约 266 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@donkeyclip/motorcortex 还在维护吗?

最新版本 9.25.0 发布于 2026/05/04(6 个月前);至今共发布 92 个版本,其中过去 12 个月发布了 3 个;首次发布于 2021/09/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。