ticktoon 1.0.0 → 1.0.1
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 +24 -21
- package/README.zh-CN.md +24 -19
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<picture>
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="assets/ticktoon_logo.png">
|
|
4
|
-
<img src="assets/ticktoon_logo_dark_text.png" alt="Ticktoon" width="640">
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/shidongdi/ticktoon/main/assets/ticktoon_logo.png">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/shidongdi/ticktoon/main/assets/ticktoon_logo_dark_text.png" alt="Ticktoon" width="640">
|
|
5
5
|
</picture>
|
|
6
6
|
|
|
7
7
|
<p><strong>Programmable video. Rendered in a browser.</strong></p>
|
|
@@ -9,37 +9,35 @@
|
|
|
9
9
|
<p>
|
|
10
10
|
<a href="https://www.typescriptlang.org/"><img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-5.9-3178C6?style=flat-square&logo=typescript&logoColor=white"></a>
|
|
11
11
|
<a href="https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API"><img alt="Canvas and WebCodecs" src="https://img.shields.io/badge/Canvas%20%2B%20WebCodecs-browser-08A9E6?style=flat-square"></a>
|
|
12
|
-
<a href="examples"><img alt="Platform: Chrome" src="https://img.shields.io/badge/Platform-Chrome-263238?style=flat-square&logo=googlechrome&logoColor=white"></a>
|
|
13
|
-
<a href="https://github.com/
|
|
14
|
-
<a href="LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/badge/License-Apache--2.0-27C9A5?style=flat-square"></a>
|
|
12
|
+
<a href="https://github.com/shidongdi/ticktoon/tree/main/examples"><img alt="Platform: Chrome" src="https://img.shields.io/badge/Platform-Chrome-263238?style=flat-square&logo=googlechrome&logoColor=white"></a>
|
|
13
|
+
<a href="https://github.com/shidongdi/ticktoon/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/shidongdi/ticktoon?style=flat-square&logo=github&label=Stars"></a>
|
|
14
|
+
<a href="https://github.com/shidongdi/ticktoon/blob/main/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/badge/License-Apache--2.0-27C9A5?style=flat-square"></a>
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
|
-
<p><strong>English</strong> · <a href="README.zh-CN.md">简体中文</a></p>
|
|
17
|
+
<p><strong>English</strong> · <a href="https://github.com/shidongdi/ticktoon/blob/main/README.zh-CN.md">简体中文</a></p>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
20
|
**Ticktoon is a video rendering engine for AI video creation.**
|
|
21
21
|
|
|
22
|
-
**Ticktoon is a stable canvas rendering core.** The protocol and public API are frozen at v1.0; feature development and AI workflow tooling live in [`ticktoon-skill`](https://github.com/
|
|
22
|
+
**Ticktoon is a stable canvas rendering core.** The protocol and public API are frozen at v1.0; feature development and AI workflow tooling live in [`ticktoon-skill`](https://github.com/shidongdi/ticktoon-skill).
|
|
23
23
|
|
|
24
24
|
The authoring layer can use AI models such as Claude Opus 5.5 to generate Canvas code; Ticktoon previews and exports video through canvas video rendering and WebCodecs. At the core of the engine:
|
|
25
25
|
|
|
26
26
|
- One function, `tick(t)` — give it a time, get that frame back synchronously. Export and preview call the same one.
|
|
27
27
|
- Everything drawn on canvas — no Playwright capture, no external FFmpeg executable, just a browser.
|
|
28
28
|
|
|
29
|
-
Once the cut exists, reviewing it (play, step, pen annotations), style packages and voice-over live in the sibling repo [`ticktoon-skill`](https://github.com/
|
|
29
|
+
Once the cut exists, reviewing it (play, step, pen annotations), style packages and voice-over live in the sibling repo [`ticktoon-skill`](https://github.com/shidongdi/ticktoon-skill).
|
|
30
30
|
|
|
31
|
-
**Demo** — play, step, and in-browser export, recorded from the [`examples`](examples) page:
|
|
31
|
+
**Demo** — play, step, and in-browser export, recorded from the [`examples`](https://github.com/shidongdi/ticktoon/tree/main/examples) page:
|
|
32
32
|
|
|
33
|
-

|
|
33
|
+

|
|
34
34
|
|
|
35
|
-
To run the example, preview frames, and export video: [`examples`](examples).
|
|
35
|
+
To run the example, preview frames, and export video: [`examples`](https://github.com/shidongdi/ticktoon/tree/main/examples).
|
|
36
36
|
|
|
37
|
-
##
|
|
37
|
+
## Install
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
|
|
41
|
-
git clone https://github.com/ticktoon/ticktoon
|
|
42
|
-
cd ticktoon && npm install && npm run build
|
|
40
|
+
npm install ticktoon
|
|
43
41
|
```
|
|
44
42
|
|
|
45
43
|
```ts
|
|
@@ -61,15 +59,20 @@ const mp4 = await exportComposition(composition);
|
|
|
61
59
|
// Consume the ReadableStream<Uint8Array>: await mp4.pipeTo(destination);
|
|
62
60
|
```
|
|
63
61
|
|
|
62
|
+
## Run from source
|
|
64
63
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
```bash
|
|
65
|
+
# Chrome 120+ only, for now
|
|
66
|
+
git clone https://github.com/shidongdi/ticktoon
|
|
67
|
+
cd ticktoon && npm install && npm run build
|
|
68
|
+
```
|
|
70
69
|
|
|
70
|
+
## Details
|
|
71
71
|
|
|
72
|
+
* Engine guide and SDK usage: [English](https://github.com/shidongdi/ticktoon/blob/main/docs/engine.md) · [简体中文](https://github.com/shidongdi/ticktoon/blob/main/docs/engine.zh-CN.md).
|
|
73
|
+
* Content protocol and preview integration: [`spec/v1.0.md`](https://github.com/shidongdi/ticktoon/blob/main/docs/spec/v1.0.md) · [简体中文](https://github.com/shidongdi/ticktoon/blob/main/docs/spec/v1.0.zh-CN.md).
|
|
74
|
+
* Writing scene code: [English](https://github.com/shidongdi/ticktoon/blob/main/docs/scene.md) · [简体中文](https://github.com/shidongdi/ticktoon/blob/main/docs/scene.zh-CN.md).
|
|
72
75
|
|
|
73
76
|
## License
|
|
74
77
|
|
|
75
|
-
Ticktoon source is Apache-2.0; see [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE). Commercial use, closed-source forks and bundling into your own product are allowed without a separate software license. Third-party keep their own licenses, tracked in [`THIRD_PARTY_LICENSES.md`](THIRD_PARTY_LICENSES.md)
|
|
78
|
+
Ticktoon source is Apache-2.0; see [`LICENSE`](https://github.com/shidongdi/ticktoon/blob/main/LICENSE) and [`NOTICE`](https://github.com/shidongdi/ticktoon/blob/main/NOTICE). Commercial use, closed-source forks and bundling into your own product are allowed without a separate software license. Third-party keep their own licenses, tracked in [`THIRD_PARTY_LICENSES.md`](https://github.com/shidongdi/ticktoon/blob/main/THIRD_PARTY_LICENSES.md)
|
package/README.zh-CN.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<picture>
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="assets/ticktoon_logo.png">
|
|
4
|
-
<img src="assets/ticktoon_logo_dark_text.png" alt="Ticktoon" width="640">
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/shidongdi/ticktoon/main/assets/ticktoon_logo.png">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/shidongdi/ticktoon/main/assets/ticktoon_logo_dark_text.png" alt="Ticktoon" width="640">
|
|
5
5
|
</picture>
|
|
6
6
|
|
|
7
7
|
<p><strong>可编程视频,浏览器出片。</strong></p>
|
|
@@ -9,37 +9,35 @@
|
|
|
9
9
|
<p>
|
|
10
10
|
<a href="https://www.typescriptlang.org/"><img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-5.9-3178C6?style=flat-square&logo=typescript&logoColor=white"></a>
|
|
11
11
|
<a href="https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API"><img alt="Canvas 和 WebCodecs" src="https://img.shields.io/badge/Canvas%20%2B%20WebCodecs-browser-08A9E6?style=flat-square"></a>
|
|
12
|
-
<a href="examples"><img alt="适用平台:Chrome" src="https://img.shields.io/badge/Platform-Chrome-263238?style=flat-square&logo=googlechrome&logoColor=white"></a>
|
|
13
|
-
<a href="https://github.com/
|
|
14
|
-
<a href="LICENSE"><img alt="许可证:Apache-2.0" src="https://img.shields.io/badge/License-Apache--2.0-27C9A5?style=flat-square"></a>
|
|
12
|
+
<a href="https://github.com/shidongdi/ticktoon/tree/main/examples"><img alt="适用平台:Chrome" src="https://img.shields.io/badge/Platform-Chrome-263238?style=flat-square&logo=googlechrome&logoColor=white"></a>
|
|
13
|
+
<a href="https://github.com/shidongdi/ticktoon/stargazers"><img alt="GitHub Stars" src="https://img.shields.io/github/stars/shidongdi/ticktoon?style=flat-square&logo=github&label=Stars"></a>
|
|
14
|
+
<a href="https://github.com/shidongdi/ticktoon/blob/main/LICENSE"><img alt="许可证:Apache-2.0" src="https://img.shields.io/badge/License-Apache--2.0-27C9A5?style=flat-square"></a>
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
|
-
<p><a href="README.md">English</a> · <strong>简体中文</strong></p>
|
|
17
|
+
<p><a href="https://github.com/shidongdi/ticktoon/blob/main/README.md">English</a> · <strong>简体中文</strong></p>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
20
|
**Ticktoon 是面向 AI 视频创作的渲染引擎。**
|
|
21
21
|
|
|
22
|
-
**Ticktoon 是稳定的 Canvas 渲染内核。** 协议与公共 API 已在 v1.0 冻结;功能演进与 AI 工作流工具在 [`ticktoon-skill`](https://github.com/
|
|
22
|
+
**Ticktoon 是稳定的 Canvas 渲染内核。** 协议与公共 API 已在 v1.0 冻结;功能演进与 AI 工作流工具在 [`ticktoon-skill`](https://github.com/shidongdi/ticktoon-skill)。
|
|
23
23
|
|
|
24
24
|
创作层可以用 Claude Opus 5.5 等 AI 模型生成的 Canvas 代码;Ticktoon 通过 canvas video rendering 和 WebCodecs,预览与导出视频。引擎核心的:
|
|
25
25
|
|
|
26
26
|
- 一个函数 `tick(t)`——给时间,同步返回那一帧,导出和预览调的是同一个。
|
|
27
27
|
- 全部画在 canvas 上——没有 Playwright 逐帧截图,不依赖外部 FFmpeg 可执行文件,一个浏览器就够了。
|
|
28
28
|
|
|
29
|
-
片子出来以后,审片(播放、逐帧、画笔批注)、风格包、配音都在姊妹仓 [`ticktoon-skill`](https://github.com/
|
|
29
|
+
片子出来以后,审片(播放、逐帧、画笔批注)、风格包、配音都在姊妹仓 [`ticktoon-skill`](https://github.com/shidongdi/ticktoon-skill)。
|
|
30
30
|
|
|
31
|
-
**演示** —— 播放、逐帧、浏览器内导出,录自 [`examples`](examples) 页面:
|
|
31
|
+
**演示** —— 播放、逐帧、浏览器内导出,录自 [`examples`](https://github.com/shidongdi/ticktoon/tree/main/examples) 页面:
|
|
32
32
|
|
|
33
|
-

|
|
33
|
+

|
|
34
34
|
|
|
35
|
-
预览画面、导出视频示例: [`examples`](examples)。
|
|
35
|
+
预览画面、导出视频示例: [`examples`](https://github.com/shidongdi/ticktoon/tree/main/examples)。
|
|
36
36
|
|
|
37
|
-
##
|
|
37
|
+
## 安装
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
|
|
41
|
-
git clone https://github.com/ticktoon/ticktoon
|
|
42
|
-
cd ticktoon && npm install && npm run build
|
|
40
|
+
npm install ticktoon
|
|
43
41
|
```
|
|
44
42
|
|
|
45
43
|
```ts
|
|
@@ -61,13 +59,20 @@ const mp4 = await exportComposition(composition);
|
|
|
61
59
|
// 消费 ReadableStream<Uint8Array>:await mp4.pipeTo(destination);
|
|
62
60
|
```
|
|
63
61
|
|
|
62
|
+
## 从源码运行
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# 目前只验过 Chrome 120+
|
|
66
|
+
git clone https://github.com/shidongdi/ticktoon
|
|
67
|
+
cd ticktoon && npm install && npm run build
|
|
68
|
+
```
|
|
64
69
|
|
|
65
70
|
## 说明
|
|
66
71
|
|
|
67
|
-
* 引擎说明:[English](docs/engine.md) · [中文](docs/engine.zh-CN.md)。
|
|
68
|
-
* 内容协议与预览接入:英文规范源 [`spec/v1.0.md`](docs/spec/v1.0.md) · [中文译本](docs/spec/v1.0.zh-CN.md)。
|
|
69
|
-
* 场景编写:[English](docs/scene.md) · [中文](docs/scene.zh-CN.md)。
|
|
72
|
+
* 引擎说明:[English](https://github.com/shidongdi/ticktoon/blob/main/docs/engine.md) · [中文](https://github.com/shidongdi/ticktoon/blob/main/docs/engine.zh-CN.md)。
|
|
73
|
+
* 内容协议与预览接入:英文规范源 [`spec/v1.0.md`](https://github.com/shidongdi/ticktoon/blob/main/docs/spec/v1.0.md) · [中文译本](https://github.com/shidongdi/ticktoon/blob/main/docs/spec/v1.0.zh-CN.md)。
|
|
74
|
+
* 场景编写:[English](https://github.com/shidongdi/ticktoon/blob/main/docs/scene.md) · [中文](https://github.com/shidongdi/ticktoon/blob/main/docs/scene.zh-CN.md)。
|
|
70
75
|
|
|
71
76
|
## 许可证
|
|
72
77
|
|
|
73
|
-
Ticktoon 源码采用 Apache-2.0,见 [`LICENSE`](LICENSE) 和 [`NOTICE`](NOTICE)。商用、闭源衍生、打包进自己的产品都可以,不用另外申请软件许可。第三方许可证记录在 [`THIRD_PARTY_LICENSES.md`](THIRD_PARTY_LICENSES.md) 。
|
|
78
|
+
Ticktoon 源码采用 Apache-2.0,见 [`LICENSE`](https://github.com/shidongdi/ticktoon/blob/main/LICENSE) 和 [`NOTICE`](https://github.com/shidongdi/ticktoon/blob/main/NOTICE)。商用、闭源衍生、打包进自己的产品都可以,不用另外申请软件许可。第三方许可证记录在 [`THIRD_PARTY_LICENSES.md`](https://github.com/shidongdi/ticktoon/blob/main/THIRD_PARTY_LICENSES.md) 。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ticktoon",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Deterministic frame engine for LLM-authored video",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
],
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/
|
|
18
|
+
"url": "git+https://github.com/shidongdi/ticktoon.git"
|
|
19
19
|
},
|
|
20
|
-
"homepage": "https://github.com/
|
|
20
|
+
"homepage": "https://github.com/shidongdi/ticktoon#readme",
|
|
21
21
|
"bugs": {
|
|
22
|
-
"url": "https://github.com/
|
|
22
|
+
"url": "https://github.com/shidongdi/ticktoon/issues"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
25
|
".": {
|