hyperframes 0.1.0 → 0.1.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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cli.js +7 -9
  3. package/package.json +14 -14
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 HeyGen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/cli.js CHANGED
@@ -21520,14 +21520,13 @@ async function renderDocker(projectDir, outputPath, options) {
21520
21520
  const producer = await loadProducer();
21521
21521
  const startTime = Date.now();
21522
21522
  try {
21523
- await producer.renderComposition(projectDir, {
21524
- output: outputPath,
21523
+ const job = producer.createRenderJob({
21525
21524
  fps: options.fps,
21526
21525
  quality: options.quality,
21527
- workers: options.workers ?? null,
21528
- gpu: options.gpu,
21529
- quiet: options.quiet
21526
+ workers: options.workers,
21527
+ useGpu: options.gpu
21530
21528
  });
21529
+ await producer.executeRenderJob(job, projectDir, outputPath);
21531
21530
  } catch (error) {
21532
21531
  const message = error instanceof Error ? error.message : String(error);
21533
21532
  errorBox("Render failed", message, "Try --docker for containerized rendering");
@@ -22375,13 +22374,12 @@ var init_benchmark = __esm({
22375
22374
  const outputPath = join21(benchDir, `${config.label.replace(/[^a-zA-Z0-9]/g, "_")}_run${i}.mp4`);
22376
22375
  try {
22377
22376
  const startTime = Date.now();
22378
- await producer.renderComposition(project.dir, {
22379
- output: outputPath,
22377
+ const job = producer.createRenderJob({
22380
22378
  fps: config.fps,
22381
22379
  quality: config.quality,
22382
- workers: config.workers,
22383
- quiet: true
22380
+ workers: config.workers
22384
22381
  });
22382
+ await producer.executeRenderJob(job, project.dir, outputPath);
22385
22383
  const elapsedMs = Date.now() - startTime;
22386
22384
  let fileSize = null;
22387
22385
  if (existsSync21(outputPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyperframes",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "HyperFrames CLI — create, preview, and render HTML video compositions",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,14 +9,6 @@
9
9
  "files": [
10
10
  "dist"
11
11
  ],
12
- "scripts": {
13
- "dev": "tsx src/cli.ts",
14
- "build": "pnpm build:studio && tsup && pnpm build:runtime && pnpm build:copy",
15
- "build:studio": "cd ../studio && pnpm build",
16
- "build:runtime": "tsx scripts/build-runtime.ts",
17
- "build:copy": "mkdir -p dist/studio dist/docs dist/templates && cp -r ../studio/dist/* dist/studio/ && cp -r src/templates/warm-grain src/templates/play-mode src/templates/swiss-grid src/templates/vignelli dist/templates/ && (cp src/docs/*.md dist/docs/ 2>/dev/null || true)",
18
- "typecheck": "tsc --noEmit"
19
- },
20
12
  "dependencies": {
21
13
  "@hono/node-server": "^1.8.0",
22
14
  "@puppeteer/browsers": "^2.13.0",
@@ -30,11 +22,8 @@
30
22
  "puppeteer-core": "^24.39.1"
31
23
  },
32
24
  "devDependencies": {
33
- "@hyperframes/core": "workspace:*",
34
25
  "@clack/prompts": "^1.1.0",
35
26
  "@hono/node-server": "^1.0.0",
36
- "@hyperframes/engine": "workspace:*",
37
- "@hyperframes/producer": "workspace:*",
38
27
  "@types/adm-zip": "^0.5.7",
39
28
  "@types/mime-types": "^3.0.1",
40
29
  "@types/node": "^22.0.0",
@@ -46,9 +35,20 @@
46
35
  "picocolors": "^1.1.1",
47
36
  "tsup": "^8.0.0",
48
37
  "tsx": "^4.0.0",
49
- "typescript": "^5.0.0"
38
+ "typescript": "^5.0.0",
39
+ "@hyperframes/core": "0.1.1",
40
+ "@hyperframes/engine": "0.1.1",
41
+ "@hyperframes/producer": "0.1.1"
50
42
  },
51
43
  "engines": {
52
44
  "node": ">=22"
45
+ },
46
+ "scripts": {
47
+ "dev": "tsx src/cli.ts",
48
+ "build": "pnpm build:studio && tsup && pnpm build:runtime && pnpm build:copy",
49
+ "build:studio": "cd ../studio && pnpm build",
50
+ "build:runtime": "tsx scripts/build-runtime.ts",
51
+ "build:copy": "mkdir -p dist/studio dist/docs dist/templates && cp -r ../studio/dist/* dist/studio/ && cp -r src/templates/warm-grain src/templates/play-mode src/templates/swiss-grid src/templates/vignelli dist/templates/ && (cp src/docs/*.md dist/docs/ 2>/dev/null || true)",
52
+ "typecheck": "tsc --noEmit"
53
53
  }
54
- }
54
+ }