🎥 Make videos programmatically with React
WIP: `template-vercel` (Rendering via Vercel Sandbox)
Jonny Burger0cb6ccbcfa5a
diff --git a/bun.lock b/bun.lockindex 6ba744f706..4001515f68 100644--- a/bun.lock+++ b/bun.lock@@ -2091,6 +2091,48 @@"typescript": "5.9.3",},},+ "packages/template-vercel": {+ "name": "template-vercel",+ "version": "0.1.0",+ "dependencies": {+ "@remotion/cli": "workspace:*",+ "@remotion/google-fonts": "workspace:*",+ "@remotion/paths": "workspace:*",+ "@remotion/player": "workspace:*",+ "@remotion/shapes": "workspace:*",+ "@remotion/tailwind-v4": "workspace:*",+ "@vercel/sandbox": "^1.3.1",+ "clsx": "2.1.1",+ "next": "16.0.10",+ "react": "19.2.3",+ "react-dom": "19.2.3",+ "remotion": "workspace:*",+ "tailwind-merge": "3.0.1",+ "zod": "3.22.3",+ },+ "devDependencies": {+ "@eslint/eslintrc": "3.1.0",+ "@eslint/js": "9.38.0",+ "@next/eslint-plugin-next": "15.1.6",+ "@remotion/eslint-plugin": "workspace:*",+ "@tailwindcss/postcss": "4.1.1",+ "@types/node": "20.12.14",+ "@types/react": "19.2.7",+ "@types/react-dom": "19.2.3",+ "@types/web": "0.0.166",+ "@typescript-eslint/eslint-plugin": "8.46.0",+ "@typescript-eslint/parser": "8.46.0",+ "autoprefixer": "10.4.20",+ "dotenv": "16.0.3",+ "eslint": "9.19.0",+ "eslint-config-next": "15.1.6",+ "postcss": "8.4.47",+ "prettier": "3.6.0",+ "tailwindcss": "4.0.3",+ "typescript": "5.9.3",+ "typescript-eslint": "8.46.0",+ },+ },"packages/test-utils": {"name": "@remotion/test-utils","version": "4.0.409",@@ -4496,6 +4538,8 @@"@vercel/remix": ["@vercel/[email protected]", "", { "dependencies": { "@vercel/static-config": "3.0.0", "isbot": "3.8.0", "ts-morph": "12.0.0" }, "peerDependencies": { "@remix-run/dev": "2.15.2", "@remix-run/node": "2.15.2", "@remix-run/server-runtime": "2.15.2", "react": "19.0.0", "react-dom": "19.0.0" } }, "sha512-JZJmuM/pZl5zLACRHzq2uOamzTOeiKRnco0o07A+hUxTKemhS1tqc2R9PdQ6Mf/8ZcXY5ZxW5tah3zjBea6D4w=="],+ "@vercel/sandbox": ["@vercel/[email protected]", "", { "dependencies": { "@vercel/oidc": "^3.1.0", "async-retry": "1.3.3", "jsonlines": "0.1.1", "ms": "2.1.3", "picocolors": "^1.1.1", "tar-stream": "3.1.7", "undici": "^7.16.0", "xdg-app-paths": "5.1.0", "zod": "3.24.4" } }, "sha512-FFeeJgb4mcm89LSS2ta5kUlAbJ4FsjBbi6otK6Au50GJh9ubzdZuaxiVhWas9NlQ9EnE3FZsIslLLLvjN7Onlw=="],+"@vercel/static-config": ["@vercel/[email protected]", "", { "dependencies": { "ajv": "8.6.3", "json-schema-to-ts": "1.6.4", "ts-morph": "12.0.0" } }, "sha512-2qtvcBJ1bGY0dYGYh3iM7yGKkk971FujLEDXzuW5wcZsPr1GSEjO/w2iSr3qve6nDDtBImsGoDEnus5FI4+fIw=="],"@vitejs/plugin-react": ["@vitejs/[email protected]", "", { "dependencies": { "@babel/core": "7.23.2", "@babel/plugin-transform-react-jsx-self": "7.27.1", "@babel/plugin-transform-react-jsx-source": "7.27.1", "@types/babel__core": "7.20.5", "react-refresh": "0.14.2" }, "peerDependencies": { "vite": "5.4.20" } }, "sha512-rM0SqazU9iqPUraQ2JlIvReeaxOoRj6n+PzB1C0cBzIbd8qP336nC39/R9yPi3wVcah7E7j/kdU1uCUqMEU4OQ=="],@@ -5872,6 +5916,8 @@"jsonfile": ["[email protected]", "", { "dependencies": { "universalify": "2.0.0" }, "optionalDependencies": { "graceful-fs": "4.2.11" } }, "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ=="],+ "jsonlines": ["[email protected]", "", {}, "sha512-ekDrAGso79Cvf+dtm+mL8OBI2bmAOt3gssYs833De/C9NmIpWDWyUO4zPgB5x2/OhY366dkhgfPMYfwZF7yOZA=="],+"jsts": ["[email protected]", "", {}, "sha512-x2wSZHEBK20CY+Wy+BPE7MrFQHW6sIsdaGUMEqmGAio+3gFzQaBYPwLRonUfQf9Ak8pBieqj9tUofX1+WtAEIg=="],"jsx-ast-utils": ["[email protected]", "", { "dependencies": { "array-includes": "3.1.8", "array.prototype.flat": "1.3.2", "object.assign": "4.1.7", "object.values": "1.2.1" } }, "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ=="],@@ -6330,6 +6376,8 @@"ora": ["[email protected]", "", { "dependencies": { "chalk": "^5.6.2", "cli-cursor": "^5.0.0", "cli-spinners": "^3.2.0", "is-interactive": "^2.0.0", "is-unicode-supported": "^2.1.0", "log-symbols": "^7.0.1", "stdin-discarder": "^0.2.2", "string-width": "^8.1.0", "strip-ansi": "^7.1.2" } }, "sha512-m0pg2zscbYgWbqRR6ABga5c3sZdEon7bSgjnlXC64kxtxLOyjRcbbUkLj7HFyy/FTD+P2xdBWu8snGhYI0jc4A=="],+ "os-paths": ["[email protected]", "", {}, "sha512-wrAwOeXp1RRMFfQY8Sy7VaGVmPocaLwSFOYCGKSyo8qmJ+/yaafCl5BCA1IQZWqFSRBrKDYFeR9d/VyQzfH/jg=="],+"outdent": ["[email protected]", "", {}, "sha512-KiOAIsdpUTcAXuykya5fnVVT+/5uS0Q1mrkRHcF89tpieSmY33O/tmc54CqwA+bfhbtEfZUNLHaPUiB9X3jt1A=="],"outvariant": ["[email protected]", "", {}, "sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA=="],@@ -7160,7 +7208,7 @@"tar-fs": ["[email protected]", "", { "dependencies": { "chownr": "1.1.4", "mkdirp-classic": "0.5.3", "pump": "3.0.0", "tar-stream": "2.2.0" } }, "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng=="],- "tar-stream": ["[email protected]", "", { "dependencies": { "bl": "4.1.0", "end-of-stream": "1.4.4", "fs-constants": "1.0.0", "inherits": "2.0.4", "readable-stream": "3.6.0" } }, "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ=="],+ "tar-stream": ["[email protected]", "", { "dependencies": { "b4a": "1.6.6", "fast-fifo": "1.3.2", "streamx": "2.20.0" } }, "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ=="],"teeny-request": ["[email protected]", "", { "dependencies": { "http-proxy-agent": "5.0.0", "https-proxy-agent": "5.0.1", "node-fetch": "2.6.9", "stream-events": "1.0.5", "uuid": "9.0.1" } }, "sha512-resvxdc6Mgb7YEThw6G6bExlXKkv6+YbuzGg9xuXxSgxJF7Ozs+o8Y9+2R3sArdWdW8nOokoQb1yrpFB0pQK2g=="],@@ -7208,6 +7256,8 @@"template-tts-google": ["template-tts-google@workspace:packages/template-tts-google"],+ "template-vercel": ["template-vercel@workspace:packages/template-vercel"],+"terser": ["[email protected]", "", { "dependencies": { "@jridgewell/source-map": "0.3.6", "acorn": "8.14.0", "commander": "2.20.3", "source-map-support": "0.5.21" }, "bin": { "terser": "bin/terser" } }, "sha512-LGyRZVFm/QElZHy/CPr/O4eNZOZIzsrQ92y4v9UJe/pFJjypje2yI3C2FmPtvUEnhadlSbmG2nXtdcjHOjCfxw=="],"terser-webpack-plugin": ["[email protected]", "", { "dependencies": { "@jridgewell/trace-mapping": "0.3.25", "jest-worker": "27.5.1", "schema-utils": "3.3.0", "serialize-javascript": "6.0.1", "terser": "5.31.2" }, "peerDependencies": { "@swc/core": "1.8.0", "webpack": "5.96.1" }, "optionalPeers": ["@swc/core"] }, "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w=="],@@ -7586,8 +7636,12 @@"wsl-utils": ["[email protected]", "", { "dependencies": { "is-wsl": "^3.1.0" } }, "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw=="],+ "xdg-app-paths": ["[email protected]", "", { "dependencies": { "xdg-portable": "^7.0.0" } }, "sha512-RAQ3WkPf4KTU1A8RtFx3gWywzVKe00tfOPFfl2NDGqbIFENQO4kqAJp7mhQjNj/33W5x5hiWWUdyfPq/5SU3QA=="],+"xdg-basedir": ["[email protected]", "", {}, "sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ=="],+ "xdg-portable": ["[email protected]", "", { "dependencies": { "os-paths": "^4.0.1" } }, "sha512-sqMMuL1rc0FmMBOzCpd0yuy9trqF2yTTVe+E9ogwCSWQCdDEtQUwrZPT6AxqtsFGRNxycgncbP/xmOOSPw5ZUw=="],+"xml-js": ["[email protected]", "", { "dependencies": { "sax": "1.2.4" }, "bin": { "xml-js": "./bin/cli.js" } }, "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g=="],"xmlcreate": ["[email protected]", "", {}, "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg=="],@@ -9148,6 +9202,12 @@"@vercel/remix/react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "0.25.0" }, "peerDependencies": { "react": "19.0.0" } }, "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ=="],+ "@vercel/sandbox/@vercel/oidc": ["@vercel/[email protected]", "", {}, "sha512-Fw28YZpRnA3cAHHDlkt7xQHiJ0fcL+NRcIqsocZQUSmbzeIKRpwttJjik5ZGanXP+vlA4SbTg+AbA3bP363l+w=="],++ "@vercel/sandbox/undici": ["[email protected]", "", {}, "sha512-Gpq0iNm5M6cQWlyHQv9MV+uOj1jWk7LpkoE5vSp/7zjb4zMdAcUD+VL5y0nH4p9EbUklq00eVIIX/XcDHzu5xg=="],++ "@vercel/sandbox/zod": ["[email protected]", "", {}, "sha512-OdqJE9UDRPwWsrHjLN2F8bPxvwJBK22EHLWtanu0LSYr5YqzsaaW3RMgmjwr8Rypg5k+meEJdSPXJZXE/yqOMg=="],+"@vercel/static-config/ajv": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "3.1.3", "json-schema-traverse": "1.0.0", "require-from-string": "2.0.2", "uri-js": "4.4.1" } }, "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw=="],"@vitejs/plugin-react/react-refresh": ["[email protected]", "", {}, "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA=="],@@ -9188,8 +9248,6 @@"archiver/readable-stream": ["[email protected]", "", { "dependencies": { "abort-controller": "3.0.0", "buffer": "6.0.3", "events": "3.3.0", "process": "0.11.10", "string_decoder": "1.3.0" } }, "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg=="],- "archiver/tar-stream": ["[email protected]", "", { "dependencies": { "b4a": "1.6.6", "fast-fifo": "1.3.2", "streamx": "2.20.0" } }, "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ=="],-"archiver-utils/readable-stream": ["[email protected]", "", { "dependencies": { "abort-controller": "3.0.0", "buffer": "6.0.3", "events": "3.3.0", "process": "0.11.10", "string_decoder": "1.3.0" } }, "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg=="],"aria-hidden/tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],@@ -10128,6 +10186,8 @@"tar-fs/chownr": ["[email protected]", "", {}, "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="],+ "tar-fs/tar-stream": ["[email protected]", "", { "dependencies": { "bl": "4.1.0", "end-of-stream": "1.4.4", "fs-constants": "1.0.0", "inherits": "2.0.4", "readable-stream": "3.6.0" } }, "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ=="],+"teeny-request/https-proxy-agent": ["[email protected]", "", { "dependencies": { "agent-base": "6.0.2", "debug": "4.4.1" } }, "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA=="],"teeny-request/uuid": ["[email protected]", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA=="],@@ -10256,6 +10316,20 @@"template-tts-google/tsx": ["[email protected]", "", { "dependencies": { "esbuild": "0.25.0", "get-tsconfig": "4.8.1" }, "optionalDependencies": { "fsevents": "2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-4H8vUNGNjQ4V2EOoGw005+c+dGuPSnhpPBPHBtsZdGZBk/iJb4kguGlPWaZTZ3q5nMtFOEsY0nRDlh9PJyd6SQ=="],+ "template-vercel/@eslint/js": ["@eslint/[email protected]", "", {}, "sha512-UZ1VpFvXf9J06YG9xQBdnzU+kthors6KjhMAl6f4gH4usHyh31rUf2DLGInT8RFYIReYXNSydgPY0V2LuWgl7A=="],++ "template-vercel/@typescript-eslint/eslint-plugin": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/type-utils": "8.46.0", "@typescript-eslint/utils": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.46.0", "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-hA8gxBq4ukonVXPy0OKhiaUh/68D0E88GSmtC1iAEnGaieuDi38LhS7jdCHRLi6ErJBNDGCzvh5EnzdPwUc0DA=="],++ "template-vercel/@typescript-eslint/parser": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "debug": "^4.3.4" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-n1H6IcDhmmUEG7TNVSspGmiHHutt7iVKtZwRppD7e04wha5MrkV1h3pti9xQLcCMt6YWsncpoT0HMjkH1FNwWQ=="],++ "template-vercel/dotenv": ["[email protected]", "", {}, "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ=="],++ "template-vercel/tailwind-merge": ["[email protected]", "", {}, "sha512-AvzE8FmSoXC7nC+oU5GlQJbip2UO7tmOhOfQyOmPhrStOGXHU08j8mZEHZ4BmCqY5dWTCo4ClWkNyRNx1wpT0g=="],++ "template-vercel/tailwindcss": ["[email protected]", "", {}, "sha512-ImmZF0Lon5RrQpsEAKGxRvHwCvMgSC4XVlFRqmbzTEDb/3wvin9zfEZrMwgsa3yqBbPqahYcVI6lulM2S7IZAA=="],++ "template-vercel/typescript-eslint": ["[email protected]", "", { "dependencies": { "@typescript-eslint/eslint-plugin": "8.46.0", "@typescript-eslint/parser": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0", "@typescript-eslint/utils": "8.46.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-6+ZrB6y2bT2DX3K+Qd9vn7OFOJR+xSLDj+Aw/N3zBwUt27uTw2sw2TE2+UcY1RiyBZkaGbTkVg9SSdPNUG6aUw=="],+"terser/acorn": ["[email protected]", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA=="],"terser-webpack-plugin/@swc/core": ["@swc/[email protected]", "", { "dependencies": { "@swc/counter": "0.1.3", "@swc/types": "0.1.14" }, "optionalDependencies": { "@swc/core-darwin-arm64": "1.8.0", "@swc/core-darwin-x64": "1.8.0", "@swc/core-linux-arm-gnueabihf": "1.8.0", "@swc/core-linux-arm64-gnu": "1.8.0", "@swc/core-linux-arm64-musl": "1.8.0", "@swc/core-linux-x64-gnu": "1.8.0", "@swc/core-linux-x64-musl": "1.8.0", "@swc/core-win32-arm64-msvc": "1.8.0", "@swc/core-win32-ia32-msvc": "1.8.0", "@swc/core-win32-x64-msvc": "1.8.0" } }, "sha512-EF8C5lp1RKMp3426tAKwQyVbg4Zcn/2FDax3cz8EcOXYQJM/ctB687IvBm9Ciej1wMcQ/dMRg+OB4Xl8BGLBoA=="],@@ -11128,8 +11202,6 @@"@next/eslint-plugin-next/fast-glob/glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "4.0.3" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],- "@puppeteer/browsers/tar-fs/tar-stream": ["[email protected]", "", { "dependencies": { "b4a": "1.6.6", "fast-fifo": "1.3.2", "streamx": "2.20.0" } }, "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ=="],-"@puppeteer/browsers/yargs/cliui": ["[email protected]", "", { "dependencies": { "string-width": "4.2.3", "strip-ansi": "6.0.1", "wrap-ansi": "7.0.0" } }, "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ=="],"@puppeteer/browsers/yargs/string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "8.0.0", "is-fullwidth-code-point": "3.0.0", "strip-ansi": "6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],@@ -12008,8 +12080,6 @@"geckodriver/node-fetch/data-uri-to-buffer": ["[email protected]", "", {}, "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A=="],- "geckodriver/tar-fs/tar-stream": ["[email protected]", "", { "dependencies": { "b4a": "1.6.6", "fast-fifo": "1.3.2", "streamx": "2.20.0" } }, "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ=="],-"geckodriver/which/isexe": ["[email protected]", "", {}, "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ=="],"geojson-polygon-self-intersections/rbush/quickselect": ["[email protected]", "", {}, "sha512-qN0Gqdw4c4KGPsBOQafj6yj/PA6c/L63f6CaZ/DCF/xF4Esu3jVmKLUDYxghFx8Kb/O7y9tI7x2RjTSXwdK1iQ=="],@@ -12590,6 +12660,32 @@"template-tts-google/@types/express/@types/serve-static": ["@types/[email protected]", "", { "dependencies": { "@types/mime": "1.3.2", "@types/node": "20.12.14" } }, "sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ=="],+ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0" } }, "sha512-lWETPa9XGcBes4jqAMYD9fW0j4n6hrPtTJwWDmtqgFO/4HF4jmdH/Q6wggTw5qIT5TXjKzbt7GsZUBnWoO3dqw=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0", "@typescript-eslint/utils": "8.46.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-hy+lvYV1lZpVs2jRaEYvgCblZxUoJiPyCemwbQZ+NGulWkQRy0HRPYAoef/CNSzaLt+MLvMptZsHXHlkEilaeg=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/utils": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-nD6yGWPj1xiOm4Gk0k6hLSZz2XkNXhuYmyIrOWcHoPuAhjT9i5bAG+xbWPgFeNR8HPHHtpNKdYUXJl/D3x7f5g=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-FrvMpAK+hTbFy7vH5j1+tMYHMSKLE6RzluFJlkFNKD0p9YsUT75JlBSmr5so3QRzvMwU5/bIEdeNrxm8du8l3Q=="],++ "template-vercel/@typescript-eslint/eslint-plugin/ignore": ["[email protected]", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="],++ "template-vercel/@typescript-eslint/eslint-plugin/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],++ "template-vercel/@typescript-eslint/parser/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0" } }, "sha512-lWETPa9XGcBes4jqAMYD9fW0j4n6hrPtTJwWDmtqgFO/4HF4jmdH/Q6wggTw5qIT5TXjKzbt7GsZUBnWoO3dqw=="],++ "template-vercel/@typescript-eslint/parser/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-vercel/@typescript-eslint/parser/@typescript-eslint/typescript-estree": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/project-service": "8.46.0", "@typescript-eslint/tsconfig-utils": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ekDCUfVpAKWJbRfm8T1YRrCot1KFxZn21oV76v5Fj4tr7ELyk84OS+ouvYdcDAwZL89WpEkEj2DKQ+qg//+ucg=="],++ "template-vercel/@typescript-eslint/parser/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-FrvMpAK+hTbFy7vH5j1+tMYHMSKLE6RzluFJlkFNKD0p9YsUT75JlBSmr5so3QRzvMwU5/bIEdeNrxm8du8l3Q=="],++ "template-vercel/@typescript-eslint/parser/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],++ "template-vercel/typescript-eslint/@typescript-eslint/typescript-estree": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/project-service": "8.46.0", "@typescript-eslint/tsconfig-utils": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ekDCUfVpAKWJbRfm8T1YRrCot1KFxZn21oV76v5Fj4tr7ELyk84OS+ouvYdcDAwZL89WpEkEj2DKQ+qg//+ucg=="],++ "template-vercel/typescript-eslint/@typescript-eslint/utils": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", "@typescript-eslint/scope-manager": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/typescript-estree": "8.46.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-nD6yGWPj1xiOm4Gk0k6hLSZz2XkNXhuYmyIrOWcHoPuAhjT9i5bAG+xbWPgFeNR8HPHHtpNKdYUXJl/D3x7f5g=="],+"terser-webpack-plugin/@swc/core/@swc/core-darwin-arm64": ["@swc/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-TIus1/SE/Ud4g84hCnchcagu+LfyndSDy5r5qf64nflojejDidPU9Fp1InzQhQpEgIpntnZID/KFCP5rQnvsIw=="],"terser-webpack-plugin/@swc/core/@swc/core-darwin-x64": ["@swc/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-yCb1FHCX/HUmNRGB1X3CFJ1WPKXMosZVUe3K2TrosCGvytwgaLoW5FS0bZg5Qv6cEUERQBg75cJnOUPwLLRCVg=="],@@ -14694,6 +14790,42 @@"template-render-server/express/type-is/media-typer": ["[email protected]", "", {}, "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw=="],+ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/project-service": "8.46.0", "@typescript-eslint/tsconfig-utils": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ekDCUfVpAKWJbRfm8T1YRrCot1KFxZn21oV76v5Fj4tr7ELyk84OS+ouvYdcDAwZL89WpEkEj2DKQ+qg//+ucg=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/project-service": "8.46.0", "@typescript-eslint/tsconfig-utils": "8.46.0", "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-ekDCUfVpAKWJbRfm8T1YRrCot1KFxZn21oV76v5Fj4tr7ELyk84OS+ouvYdcDAwZL89WpEkEj2DKQ+qg//+ucg=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/visitor-keys/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-vercel/@typescript-eslint/parser/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],++ "template-vercel/@typescript-eslint/parser/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],++ "template-vercel/@typescript-eslint/parser/@typescript-eslint/typescript-estree/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],++ "template-vercel/typescript-eslint/@typescript-eslint/typescript-estree/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],++ "template-vercel/typescript-eslint/@typescript-eslint/typescript-estree/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-FrvMpAK+hTbFy7vH5j1+tMYHMSKLE6RzluFJlkFNKD0p9YsUT75JlBSmr5so3QRzvMwU5/bIEdeNrxm8du8l3Q=="],++ "template-vercel/typescript-eslint/@typescript-eslint/typescript-estree/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],++ "template-vercel/typescript-eslint/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],++ "template-vercel/typescript-eslint/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],++ "template-vercel/typescript-eslint/@typescript-eslint/typescript-estree/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],++ "template-vercel/typescript-eslint/@typescript-eslint/utils/@typescript-eslint/scope-manager": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "@typescript-eslint/visitor-keys": "8.46.0" } }, "sha512-lWETPa9XGcBes4jqAMYD9fW0j4n6hrPtTJwWDmtqgFO/4HF4jmdH/Q6wggTw5qIT5TXjKzbt7GsZUBnWoO3dqw=="],++ "template-vercel/typescript-eslint/@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],+"typescript-eslint/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-PAL6LUuQwotLW2a8VsySDBwYMm129vFm4tMVlylzdoTybTHaAi0oBp7Ac6LhSrHHOdLM3efH+nAR6hAWoMF89A=="],"typescript-eslint/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.21.0", "@typescript-eslint/visitor-keys": "8.21.0", "debug": "4.4.1", "fast-glob": "3.3.2", "is-glob": "4.0.3", "minimatch": "9.0.5", "semver": "7.6.3", "ts-api-utils": "2.1.0" }, "peerDependencies": { "typescript": "5.7.3" } }, "sha512-x+aeKh/AjAArSauz0GiQZsjT8ciadNMHdkUSwBB9Z6PrKc/4knM4g3UfHml6oDJmKC88a6//cdxnO/+P2LkMcg=="],@@ -15536,6 +15668,22 @@"template-recorder/@radix-ui/react-dropdown-menu/@radix-ui/react-menu/@radix-ui/react-presence/@radix-ui/react-use-layout-effect": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "19.0.0", "react": "19.0.0" }, "optionalPeers": ["@types/react"] }, "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ=="],+ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],++ "template-vercel/@typescript-eslint/parser/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],++ "template-vercel/typescript-eslint/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],++ "template-vercel/typescript-eslint/@typescript-eslint/utils/@typescript-eslint/scope-manager/@typescript-eslint/visitor-keys": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@typescript-eslint/types": "8.46.0", "eslint-visitor-keys": "^4.2.1" } }, "sha512-FrvMpAK+hTbFy7vH5j1+tMYHMSKLE6RzluFJlkFNKD0p9YsUT75JlBSmr5so3QRzvMwU5/bIEdeNrxm8du8l3Q=="],+"typescript-eslint/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-PAL6LUuQwotLW2a8VsySDBwYMm129vFm4tMVlylzdoTybTHaAi0oBp7Ac6LhSrHHOdLM3efH+nAR6hAWoMF89A=="],"typescript-eslint/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],@@ -15886,6 +16034,10 @@"template-prompt-to-motion-graphics/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],+ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],++ "template-vercel/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],+"typescript-eslint/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],"@docusaurus/babel/@babel/preset-env/@babel/plugin-transform-modules-commonjs/@babel/core/@babel/traverse/@babel/code-frame/@babel/helper-validator-identifier": ["@babel/[email protected]", "", {}, "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow=="],diff --git a/packages/template-vercel/.gitignore b/packages/template-vercel/.gitignorenew file mode 100644index 0000000000..6d07c60754--- /dev/null+++ b/packages/template-vercel/.gitignore@@ -0,0 +1,42 @@+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.++# dependencies+/node_modules+/.pnp+.pnp.js++# testing+/coverage++# next.js+/.next/+/out/++# production+/build++# misc+.DS_Store+*.pem++# debug+npm-debug.log*+yarn-debug.log*+yarn-error.log*+.pnpm-debug.log*++# local env files+.env*.local++# vercel+.vercel++# typescript+*.tsbuildinfo+next-env.d.ts+out/+.env+build++# remotion bundle (generated at build time)+/public/remotion-bundlediff --git a/packages/template-vercel/.npmrc b/packages/template-vercel/.npmrcnew file mode 100644index 0000000000..6c59086d86--- /dev/null+++ b/packages/template-vercel/.npmrc@@ -0,0 +1 @@+enable-pre-post-scripts=truediff --git a/packages/template-vercel/.prettierrc b/packages/template-vercel/.prettierrcnew file mode 100644index 0000000000..565d21bc8f--- /dev/null+++ b/packages/template-vercel/.prettierrc@@ -0,0 +1,4 @@+{+ "useTabs": true,+ "singleQuote": false+}diff --git a/packages/template-vercel/README.md b/packages/template-vercel/README.mdnew file mode 100644index 0000000000..3e2d2ec4fa--- /dev/null+++ b/packages/template-vercel/README.md@@ -0,0 +1,71 @@+<img src="https://github.com/remotion-dev/template-next/assets/1629785/9092db5f-7c0c-4d38-97c4-5f5a61f5cc098" />+<br/>+<br/>++This is a Next.js template for building programmatic video apps with [`@remotion/player`](https://remotion.dev/player) and rendering via [Vercel Sandbox](https://vercel.com/docs/functions/sandbox).++This template uses the Next.js App directory with TailwindCSS. The rendering happens in a Vercel Sandbox environment, making it easy to deploy and scale on Vercel.++<img src="https://github.com/remotion-dev/template-next/assets/1629785/c9c2e5ca-2637-4ec8-8e40-a8feb5740d88" />++## Getting Started++[Use this template](https://github.com/new?template_name=template-vercel&template_owner=remotion-dev) to clone it into your GitHub account. Run++```+npm i+```++afterwards. Alternatively, use this command to scaffold a project:++```+npx create-video@latest --vercel+```++## Commands++Start the Next.js dev server:++```+npm run dev+```++Open the Remotion Studio:++```+npx remotion studio+```++Render a video locally:++```+npx remotion render+```++Upgrade Remotion:++```+npx remotion upgrade+```++## Deploy to Vercel++This template is designed to be deployed on Vercel. Simply connect your GitHub repository to Vercel and it will automatically deploy your app.++The rendering happens via Vercel Sandbox, which provides an isolated environment for running Remotion renders.++## Docs++Get started with Remotion by reading the [fundamentals page](https://www.remotion.dev/docs/the-fundamentals).++## Help++We provide help on our [Discord server](https://remotion.dev/discord).++## Issues++Found an issue with Remotion? [File an issue here](https://remotion.dev/issue).++## License++Note that for some entities a company license is needed. [Read the terms here](https://github.com/remotion-dev/remotion/blob/main/LICENSE.md).diff --git a/packages/template-vercel/eslint.config.mjs b/packages/template-vercel/eslint.config.mjsnew file mode 100644index 0000000000..42b90c2bd3--- /dev/null+++ b/packages/template-vercel/eslint.config.mjs@@ -0,0 +1,52 @@+import js from "@eslint/js";+import nextPlugin from "@next/eslint-plugin-next";+import remotion from "@remotion/eslint-plugin";+import tseslint from "typescript-eslint";++// Build Next.js recommended rules and an "off" map for overrides+const nextRecommended = nextPlugin.configs.recommended ?? { rules: {} };+const nextRecommendedRules = nextRecommended.rules ?? {};+const offNextRules = Object.fromEntries(+ Object.keys(nextRecommendedRules).map((k) => [k, "off"]),+);++export default [+ // Global ignores+ {+ ignores: [+ "node_modules/**",+ ".next/**",+ "out/**",+ "build/**",+ "next-env.d.ts",+ "next.config.js",+ ],+ },+ // Base JS recommended+ js.configs.recommended,+ // TypeScript recommended (non type-checked for speed/simplicity)+ ...tseslint.configs.recommended,+ // Next.js recommended rules applied to app code+ {+ files: ["**/*.{js,jsx,ts,tsx}"],+ plugins: { "@next/next": nextPlugin },+ rules: {+ ...nextRecommendedRules,+ },+ },+ // Remotion rules applied only to remotion files+ {+ files: ["src/remotion/**"],+ ...remotion.flatPlugin,+ rules: {+ ...remotion.flatPlugin.rules,+ },+ },+ // Disable all Next.js rules within remotion files+ {+ files: ["src/remotion/**"],+ rules: {+ ...offNextRules,+ },+ },+];diff --git a/packages/template-vercel/next.config.js b/packages/template-vercel/next.config.jsnew file mode 100644index 0000000000..c93e03460a--- /dev/null+++ b/packages/template-vercel/next.config.js@@ -0,0 +1,9 @@+/** @type {import('next').NextConfig} */+const nextConfig = {+ reactStrictMode: true,+ typescript: {+ ignoreBuildErrors: true,+ },+};++module.exports = nextConfig;diff --git a/packages/template-vercel/package.json b/packages/template-vercel/package.jsonnew file mode 100644index 0000000000..48881e6be9--- /dev/null+++ b/packages/template-vercel/package.json@@ -0,0 +1,56 @@+{+ "name": "template-vercel",+ "version": "0.1.0",+ "private": true,+ "author": {+ "name": "Mohit Yadav",+ "email": "[email protected]",+ "url": "https://mohitya.dev"+ },+ "scripts": {+ "dev": "next dev",+ "build": "next build",+ "start": "next start",+ "lint": "eslint .",+ "remotion": "remotion studio",+ "render": "remotion render"+ },+ "dependencies": {+ "@remotion/cli": "workspace:*",+ "@remotion/google-fonts": "workspace:*",+ "@remotion/paths": "workspace:*",+ "@remotion/player": "workspace:*",+ "@remotion/shapes": "workspace:*",+ "@remotion/tailwind-v4": "workspace:*",+ "@vercel/sandbox": "^1.3.1",+ "clsx": "2.1.1",+ "next": "16.0.10",+ "react": "19.2.3",+ "react-dom": "19.2.3",+ "remotion": "workspace:*",+ "tailwind-merge": "3.0.1",+ "zod": "3.22.3"+ },+ "devDependencies": {+ "@tailwindcss/postcss": "4.1.1",+ "@remotion/eslint-plugin": "workspace:*",+ "@eslint/eslintrc": "3.1.0",+ "@eslint/js": "9.38.0",+ "@types/node": "20.12.14",+ "@types/react": "19.2.7",+ "@types/react-dom": "19.2.3",+ "@types/web": "0.0.166",+ "autoprefixer": "10.4.20",+ "dotenv": "16.0.3",+ "eslint": "9.19.0",+ "@next/eslint-plugin-next": "15.1.6",+ "eslint-config-next": "15.1.6",+ "@typescript-eslint/eslint-plugin": "8.46.0",+ "@typescript-eslint/parser": "8.46.0",+ "postcss": "8.4.47",+ "prettier": "3.6.0",+ "tailwindcss": "4.0.3",+ "typescript": "5.9.3",+ "typescript-eslint": "8.46.0"+ }+}diff --git a/packages/template-vercel/postcss.config.mjs b/packages/template-vercel/postcss.config.mjsnew file mode 100644index 0000000000..7059fe95ad--- /dev/null+++ b/packages/template-vercel/postcss.config.mjs@@ -0,0 +1,6 @@+const config = {+ plugins: {+ "@tailwindcss/postcss": {},+ },+};+export default config;diff --git a/packages/template-vercel/remotion.config.ts b/packages/template-vercel/remotion.config.tsnew file mode 100644index 0000000000..fa14ff0033--- /dev/null+++ b/packages/template-vercel/remotion.config.ts@@ -0,0 +1,8 @@+// See all configuration options: https://remotion.dev/docs/config+// Each option also is available as a CLI flag: https://remotion.dev/docs/cli++// Note: When using the Node.JS APIs, the config file doesn't apply. Instead, pass options directly to the APIs++import { Config } from "@remotion/cli/config";++Config.setVideoImageFormat("jpeg");diff --git a/packages/template-vercel/src/app/api/render/route.ts b/packages/template-vercel/src/app/api/render/route.tsnew file mode 100644index 0000000000..22115f7a10--- /dev/null+++ b/packages/template-vercel/src/app/api/render/route.ts@@ -0,0 +1,171 @@+import { Sandbox } from "@vercel/sandbox";+import { RenderRequest } from "../../../../types/schema";+import {+ COMP_NAME,+ DURATION_IN_FRAMES,+ VIDEO_FPS,+ VIDEO_HEIGHT,+ VIDEO_WIDTH,+} from "../../../../types/constants";++const REPO_URL = "https://github.com/remotion-dev/template-vercel.git";++type SSEMessage =+ | { type: "log"; stream: "stdout" | "stderr"; data: string }+ | { type: "phase"; phase: string }+ | { type: "done"; url: string; size: number }+ | { type: "error"; message: string };++function formatSSE(message: SSEMessage): string {+ return `data: ${JSON.stringify(message)}\n\n`;+}++export async function POST(req: Request) {+ let sandbox: Sandbox | null = null;++ const encoder = new TextEncoder();+ const stream = new TransformStream();+ const writer = stream.writable.getWriter();++ const send = async (message: SSEMessage) => {+ await writer.write(encoder.encode(formatSSE(message)));+ };++ const runRender = async () => {+ try {+ const payload = await req.json();+ const body = RenderRequest.parse(payload);++ await send({ type: "phase", phase: "Creating sandbox..." });++ sandbox = await Sandbox.create({+ runtime: "node24",+ timeout: 5 * 60 * 1000,+ source: {+ type: "git",+ url: REPO_URL,+ },+ });++ await send({ type: "phase", phase: "Installing system dependencies..." });++ const sysInstallCmd = await sandbox.runCommand({+ cmd: "sudo",+ args: [+ "dnf",+ "install",+ "-y",+ "nss",+ "atk",+ "at-spi2-atk",+ "cups-libs",+ "libdrm",+ "libXcomposite",+ "libXdamage",+ "libXrandr",+ "mesa-libgbm",+ "alsa-lib",+ "pango",+ "gtk3",+ ],+ detached: true,+ });++ for await (const log of sysInstallCmd.logs()) {+ await send({ type: "log", stream: log.stream, data: log.data });+ }++ const sysInstallResult = await sysInstallCmd.wait();+ if (sysInstallResult.exitCode !== 0) {+ throw new Error(+ `System dependencies install failed: ${await sysInstallResult.stderr()}`,+ );+ }++ await send({ type: "phase", phase: "Installing npm dependencies..." });++ const installCmd = await sandbox.runCommand({+ cmd: "pnpm",+ args: ["install"],+ detached: true,+ });++ for await (const log of installCmd.logs()) {+ await send({ type: "log", stream: log.stream, data: log.data });+ }++ const installResult = await installCmd.wait();+ if (installResult.exitCode !== 0) {+ throw new Error(`pnpm install failed: ${await installResult.stderr()}`);+ }++ await send({ type: "phase", phase: "Rendering video..." });++ const renderCmd = await sandbox.runCommand({+ cmd: "pnpm",+ args: [+ "exec",+ "remotion",+ "render",+ "src/remotion/index.ts",+ COMP_NAME,+ "out/video.mp4",+ "--props",+ JSON.stringify(body.inputProps),+ "--width",+ String(VIDEO_WIDTH),+ "--height",+ String(VIDEO_HEIGHT),+ "--fps",+ String(VIDEO_FPS),+ "--frames",+ `0-${DURATION_IN_FRAMES - 1}`,+ ],+ detached: true,+ });++ for await (const log of renderCmd.logs()) {+ await send({ type: "log", stream: log.stream, data: log.data });+ }++ const renderResult = await renderCmd.wait();+ if (renderResult.exitCode !== 0) {+ const stderr = await renderResult.stderr();+ const stdout = await renderResult.stdout();+ throw new Error(`Render failed: ${stderr || stdout}`);+ }++ await send({ type: "phase", phase: "Reading output..." });++ const videoBuffer = await sandbox.readFileToBuffer({+ path: "out/video.mp4",+ });+ if (!videoBuffer) {+ throw new Error("Failed to read rendered video");+ }++ await send({+ type: "done",+ url: `data:video/mp4;base64,${videoBuffer.toString("base64")}`,+ size: videoBuffer.length,+ });+ } catch (err) {+ await send({ type: "error", message: (err as Error).message });+ } finally {+ if (sandbox) {+ await sandbox.stop().catch(() => {});+ }+ await writer.close();+ }+ };++ runRender();++ return new Response(stream.readable, {+ headers: {+ "Content-Type": "text/event-stream",+ "Cache-Control": "no-cache",+ Connection: "keep-alive",+ },+ });+}diff --git a/packages/template-vercel/src/app/favicon.ico b/packages/template-vercel/src/app/favicon.iconew file mode 100644index 0000000000..718d6fea48Binary files /dev/null and b/packages/template-vercel/src/app/favicon.ico differdiff --git a/packages/template-vercel/src/app/layout.tsx b/packages/template-vercel/src/app/layout.tsxnew file mode 100644index 0000000000..e19d2dc5cb--- /dev/null+++ b/packages/template-vercel/src/app/layout.tsx@@ -0,0 +1,25 @@+import "../../styles/global.css";+import { Metadata, Viewport } from "next";++export const metadata: Metadata = {+ title: "Remotion and Next.js",+ description: "Remotion and Next.js",+};++export const viewport: Viewport = {+ width: "device-width",+ initialScale: 1,+ maximumScale: 1,+};++export default function RootLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ return (+ <html lang="en">+ <body className="bg-background">{children}</body>+ </html>+ );+}diff --git a/packages/template-vercel/src/app/page.tsx b/packages/template-vercel/src/app/page.tsxnew file mode 100644index 0000000000..1f92cb246a--- /dev/null+++ b/packages/template-vercel/src/app/page.tsx@@ -0,0 +1,65 @@+"use client";++import { Player } from "@remotion/player";+import type { NextPage } from "next";+import { useMemo, useState } from "react";+import { z } from "zod";+import {+ defaultMyCompProps,+ CompositionProps,+ DURATION_IN_FRAMES,+ VIDEO_FPS,+ VIDEO_HEIGHT,+ VIDEO_WIDTH,+} from "../../types/constants";+import { RenderControls } from "../components/RenderControls";+import { Spacing } from "../components/Spacing";+import { Tips } from "../components/Tips";+import { Main } from "../remotion/MyComp/Main";++const Home: NextPage = () => {+ const [text, setText] = useState<string>(defaultMyCompProps.title);++ const inputProps: z.infer<typeof CompositionProps> = useMemo(() => {+ return {+ title: text,+ };+ }, [text]);++ return (+ <div>+ <div className="max-w-screen-md m-auto mb-5">+ <div className="overflow-hidden rounded-geist shadow-[0_0_200px_rgba(0,0,0,0.15)] mb-10 mt-16">+ <Player+ component={Main}+ inputProps={inputProps}+ durationInFrames={DURATION_IN_FRAMES}+ fps={VIDEO_FPS}+ compositionHeight={VIDEO_HEIGHT}+ compositionWidth={VIDEO_WIDTH}+ style={{+ // Can't use tailwind class for width since player's default styles take presedence over tailwind's,+ // but not over inline styles+ width: "100%",+ }}+ controls+ autoPlay+ loop+ />+ </div>+ <RenderControls+ text={text}+ setText={setText}+ inputProps={inputProps}+ ></RenderControls>+ <Spacing></Spacing>+ <Spacing></Spacing>+ <Spacing></Spacing>+ <Spacing></Spacing>+ <Tips></Tips>+ </div>+ </div>+ );+};++export default Home;diff --git a/packages/template-vercel/src/components/AlignEnd.tsx b/packages/template-vercel/src/components/AlignEnd.tsxnew file mode 100644index 0000000000..7ff7ad53bf--- /dev/null+++ b/packages/template-vercel/src/components/AlignEnd.tsx@@ -0,0 +1,7 @@+import React from "react";++export const AlignEnd: React.FC<{+ children: React.ReactNode;+}> = ({ children }) => {+ return <div className="self-end">{children}</div>;+};diff --git a/packages/template-vercel/src/components/Button.tsx b/packages/template-vercel/src/components/Button.tsxnew file mode 100644index 0000000000..4f924f335d--- /dev/null+++ b/packages/template-vercel/src/components/Button.tsx@@ -0,0 +1,39 @@+import React, { forwardRef } from "react";+import { Spacing } from "./Spacing";+import { Spinner } from "./Spinner";+import { cn } from "../lib/utils";++const ButtonForward: React.ForwardRefRenderFunction<+ HTMLButtonElement,+ {+ onClick?: () => void;+ disabled?: boolean;+ children: React.ReactNode;+ loading?: boolean;+ secondary?: boolean;+ }+> = ({ onClick, disabled, children, loading, secondary }, ref) => {+ return (+ <button+ ref={ref}+ className={cn(+ "border-foreground border rounded-geist bg-foreground text-background px-geist-half font-geist h-10 font-medium transition-all duration-150 ease-in-out inline-flex items-center appearance-none text-sm hover:bg-background hover:text-foreground hover:border-focused-border-color disabled:bg-button-disabled-color disabled:text-disabled-text-color disabled:border-unfocused-border-color disabled:cursor-not-allowed",+ secondary+ ? "bg-background text-foreground border-unfocused-border-color"+ : undefined,+ )}+ onClick={onClick}+ disabled={disabled}+ >+ {loading && (+ <>+ <Spinner size={20}></Spinner>+ <Spacing></Spacing>+ </>+ )}+ {children}+ </button>+ );+};++export const Button = forwardRef(ButtonForward);diff --git a/packages/template-vercel/src/components/Container.tsx b/packages/template-vercel/src/components/Container.tsxnew file mode 100644index 0000000000..19cbcb59e5--- /dev/null+++ b/packages/template-vercel/src/components/Container.tsx@@ -0,0 +1,11 @@+import React from "react";++export const InputContainer: React.FC<{+ children: React.ReactNode;+}> = ({ children }) => {+ return (+ <div className="border border-unfocused-border-color p-geist rounded-geist bg-background flex flex-col">+ {children}+ </div>+ );+};diff --git a/packages/template-vercel/src/components/DownloadButton.tsx b/packages/template-vercel/src/components/DownloadButton.tsxnew file mode 100644index 0000000000..0ffa9576ba--- /dev/null+++ b/packages/template-vercel/src/components/DownloadButton.tsx@@ -0,0 +1,52 @@+import React from "react";+import { State } from "../helpers/use-rendering";+import { Button } from "./Button";+import { Spacing } from "./Spacing";++const Megabytes: React.FC<{+ sizeInBytes: number;+}> = ({ sizeInBytes }) => {+ const megabytes = Intl.NumberFormat("en", {+ notation: "compact",+ style: "unit",+ unit: "byte",+ unitDisplay: "narrow",+ }).format(sizeInBytes);+ return <span className="opacity-60">{megabytes}</span>;+};++export const DownloadButton: React.FC<{+ state: State;+ undo: () => void;+}> = ({ state, undo }) => {+ if (state.status !== "done") {+ throw new Error("Download button should not be rendered when not done");+ }++ return (+ <div className="flex">+ <Button secondary onClick={undo}>+ <UndoIcon></UndoIcon>+ </Button>+ <Spacing></Spacing>+ <a href={state.url}>+ <Button>+ Download video+ <Spacing></Spacing>+ <Megabytes sizeInBytes={state.size}></Megabytes>+ </Button>+ </a>+ </div>+ );+};++const UndoIcon: React.FC = () => {+ return (+ <svg height="1em" viewBox="0 0 512 512">+ <path+ fill="var(--foreground)"+ d="M48.5 224H40c-13.3 0-24-10.7-24-24V72c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2L98.6 96.6c87.6-86.5 228.7-86.2 315.8 1c87.5 87.5 87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3c-62.2-62.2-162.7-62.5-225.3-1L185 183c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8H48.5z"+ />+ </svg>+ );+};diff --git a/packages/template-vercel/src/components/Error.tsx b/packages/template-vercel/src/components/Error.tsxnew file mode 100644index 0000000000..28020e53c2--- /dev/null+++ b/packages/template-vercel/src/components/Error.tsx@@ -0,0 +1,25 @@+import React from "react";++export const ErrorComp: React.FC<{+ message: string;+}> = ({ message }) => {+ return (+ <div className="text-geist-error font-geist py-geist-half">+ <svg+ fill="none"+ shapeRendering="geometricPrecision"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="2"+ viewBox="0 0 24 24"+ className="h-5 align-text-bottom mr-1.5 inline"+ >+ <circle cx="12" cy="12" r="10" fill="var(--geist-fill)"></circle>+ <path d="M12 8v4" stroke="currentColor"></path>+ <path d="M12 16h.01" stroke="currentColor"></path>+ </svg>+ <strong>Error:</strong> {message}+ </div>+ );+};diff --git a/packages/template-vercel/src/components/Input.tsx b/packages/template-vercel/src/components/Input.tsxnew file mode 100644index 0000000000..d6dcc0434d--- /dev/null+++ b/packages/template-vercel/src/components/Input.tsx@@ -0,0 +1,24 @@+import React, { useCallback } from "react";++export const Input: React.FC<{+ text: string;+ setText: React.Dispatch<React.SetStateAction<string>>;+ disabled?: boolean;+}> = ({ text, setText, disabled }) => {+ const onChange: React.ChangeEventHandler<HTMLInputElement> = useCallback(+ (e) => {+ setText(e.currentTarget.value);+ },+ [setText],+ );++ return (+ <input+ className="leading-[1.7] block w-full rounded-geist bg-background p-geist-half text-foreground text-sm border border-unfocused-border-color transition-colors duration-150 ease-in-out focus:border-focused-border-color outline-none"+ disabled={disabled}+ name="title"+ value={text}+ onChange={onChange}+ />+ );+};diff --git a/packages/template-vercel/src/components/LogViewer.tsx b/packages/template-vercel/src/components/LogViewer.tsxnew file mode 100644index 0000000000..81fae9a93a--- /dev/null+++ b/packages/template-vercel/src/components/LogViewer.tsx@@ -0,0 +1,36 @@+import { useEffect, useRef } from "react";++export const LogViewer: React.FC<{ logs: string[] }> = ({ logs }) => {+ const containerRef = useRef<HTMLDivElement>(null);++ useEffect(() => {+ if (containerRef.current) {+ containerRef.current.scrollTop = containerRef.current.scrollHeight;+ }+ }, [logs]);++ if (logs.length === 0) return null;++ return (+ <div+ ref={containerRef}+ style={{+ backgroundColor: "#1a1a1a",+ borderRadius: 8,+ padding: 12,+ maxHeight: 200,+ overflowY: "auto",+ fontFamily: "monospace",+ fontSize: 12,+ lineHeight: 1.4,+ color: "#e0e0e0",+ whiteSpace: "pre-wrap",+ wordBreak: "break-all",+ }}+ >+ {logs.map((log, i) => (+ <span key={i}>{log}</span>+ ))}+ </div>+ );+};diff --git a/packages/template-vercel/src/components/ProgressBar.tsx b/packages/template-vercel/src/components/ProgressBar.tsxnew file mode 100644index 0000000000..a4c5886df7--- /dev/null+++ b/packages/template-vercel/src/components/ProgressBar.tsx@@ -0,0 +1,22 @@+import React, { useMemo } from "react";++export const ProgressBar: React.FC<{+ progress: number;+}> = ({ progress }) => {+ const fill: React.CSSProperties = useMemo(() => {+ return {+ width: `${progress * 100}%`,+ };+ }, [progress]);++ return (+ <div>+ <div className="w-full h-2.5 rounded-md appearance-none bg-unfocused-border-color mt-2.5 mb-6">+ <div+ className="bg-foreground h-2.5 rounded-md transition-all ease-in-out duration-100"+ style={fill}+ ></div>+ </div>+ </div>+ );+};diff --git a/packages/template-vercel/src/components/RenderControls.tsx b/packages/template-vercel/src/components/RenderControls.tsxnew file mode 100644index 0000000000..2c61945917--- /dev/null+++ b/packages/template-vercel/src/components/RenderControls.tsx@@ -0,0 +1,70 @@+import { z } from "zod";+import { AlignEnd } from "./AlignEnd";+import { Button } from "./Button";+import { InputContainer } from "./Container";+import { DownloadButton } from "./DownloadButton";+import { ErrorComp } from "./Error";+import { Input } from "./Input";+import { ProgressBar } from "./ProgressBar";+import { Spacing } from "./Spacing";+import { COMP_NAME, CompositionProps } from "../../types/constants";+import { useRendering } from "../helpers/use-rendering";+import { LogViewer } from "./LogViewer";++export const RenderControls: React.FC<{+ text: string;+ setText: React.Dispatch<React.SetStateAction<string>>;+ inputProps: z.infer<typeof CompositionProps>;+}> = ({ text, setText, inputProps }) => {+ const { renderMedia, state, undo } = useRendering(COMP_NAME, inputProps);++ return (+ <InputContainer>+ {state.status === "init" ||+ state.status === "invoking" ||+ state.status === "error" ? (+ <>+ <Input+ disabled={state.status === "invoking"}+ setText={setText}+ text={text}+ ></Input>+ <Spacing></Spacing>+ <AlignEnd>+ <Button+ disabled={state.status === "invoking"}+ loading={state.status === "invoking"}+ onClick={renderMedia}+ >+ Render video+ </Button>+ </AlignEnd>+ {state.status === "invoking" ? (+ <>+ <Spacing></Spacing>+ <div style={{ fontSize: 14, color: "#666", marginBottom: 8 }}>+ {state.phase}+ </div>+ <LogViewer logs={state.logs} />+ </>+ ) : null}+ {state.status === "error" ? (+ <>+ <LogViewer logs={state.logs} />+ <ErrorComp message={state.error.message}></ErrorComp>+ </>+ ) : null}+ </>+ ) : null}+ {state.status === "done" ? (+ <>+ <ProgressBar progress={1} />+ <Spacing></Spacing>+ <AlignEnd>+ <DownloadButton undo={undo} state={state}></DownloadButton>+ </AlignEnd>+ </>+ ) : null}+ </InputContainer>+ );+};diff --git a/packages/template-vercel/src/components/Spacing.tsx b/packages/template-vercel/src/components/Spacing.tsxnew file mode 100644index 0000000000..c901cfdadb--- /dev/null+++ b/packages/template-vercel/src/components/Spacing.tsx@@ -0,0 +1,5 @@+import React from "react";++export const Spacing: React.FC = () => {+ return <div className="w-geist-quarter h-geist-quarter" />;+};diff --git a/packages/template-vercel/src/components/Spinner.tsx b/packages/template-vercel/src/components/Spinner.tsxnew file mode 100644index 0000000000..405f2260c1--- /dev/null+++ b/packages/template-vercel/src/components/Spinner.tsx@@ -0,0 +1,46 @@+import React, { useMemo } from "react";+import { makeRect } from "@remotion/shapes";+import { translatePath } from "@remotion/paths";++const viewBox = 100;+const lines = 12;+const width = viewBox * 0.08;++const { path } = makeRect({+ height: viewBox * 0.24,+ width,+ cornerRadius: width / 2,+});++const translated = translatePath(path, viewBox / 2 - width / 2, viewBox * 0.03);++export const Spinner: React.FC<{+ size: number;+}> = ({ size }) => {+ const style = useMemo(() => {+ return {+ width: size,+ height: size,+ };+ }, [size]);++ return (+ <svg style={style} viewBox={`0 0 ${viewBox} ${viewBox}`}>+ {new Array(lines).fill(true).map((_, index) => {+ return (+ <path+ className="animate-spinner"+ style={{+ rotate: `${(index * Math.PI * 2) / lines}rad`,+ transformOrigin: "center center",+ animationDelay: `${index * 0.1 - lines * 0.1}s`,+ }}+ key={index}+ d={translated}+ fill="var(--foreground)"+ ></path>+ );+ })}+ </svg>+ );+};diff --git a/packages/template-vercel/src/components/Tips.tsx b/packages/template-vercel/src/components/Tips.tsxnew file mode 100644index 0000000000..3f88e15754--- /dev/null+++ b/packages/template-vercel/src/components/Tips.tsx@@ -0,0 +1,53 @@+import React from "react";++const Tip: React.FC<{+ title: React.ReactNode;+ description: React.ReactNode;+ href: string;+}> = ({ title, description, href }) => {+ return (+ <a href={href} target="_blank" rel="noreferrer" className="flex-1">+ <div className="transition-transform duration-200 ease-in-out p-2.5 group hover:-translate-y-0.5">+ <div className="flex flex-row items-center justify-start">+ <h4 className="my-3 font-bold text-foreground">{title}</h4>+ <div className="flex-1"></div>+ <svg+ className="opacity-0 transition-opacity duration-200 ease-in-out group-hover:opacity-100"+ height="1em"+ viewBox="0 0 448 512"+ >+ <path+ fill="var(--foreground)"+ d="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"+ />+ </svg>+ </div>+ <p className="text-sm leading-normal text-subtitle mb-6">+ {description}+ </p>+ </div>+ </a>+ );+};++export const Tips: React.FC = () => {+ return (+ <div className="flex flex-col md:flex-row font-geist">+ <Tip+ href="https://www.remotion.dev/docs/the-fundamentals"+ title="Learn Remotion"+ description="Learn how to customize this video written in React."+ ></Tip>+ <Tip+ href="https://github.com/remotion-dev/template-vercel"+ title="See source"+ description="Visit the GitHub repository for this app."+ ></Tip>+ <Tip+ href="https://remotion.dev/discord"+ title="Join the community"+ description="Chat with others builders on Discord."+ ></Tip>+ </div>+ );+};diff --git a/packages/template-vercel/src/helpers/api-response.ts b/packages/template-vercel/src/helpers/api-response.tsnew file mode 100644index 0000000000..d4da4ce786--- /dev/null+++ b/packages/template-vercel/src/helpers/api-response.ts@@ -0,0 +1,36 @@+import { NextResponse } from "next/server";+import { z, ZodType } from "zod";++export type ApiResponse<Res> =+ | {+ type: "error";+ message: string;+ }+ | {+ type: "success";+ data: Res;+ };++export const executeApi =+ <Res, Req extends ZodType>(+ schema: Req,+ handler: (req: Request, body: z.infer<Req>) => Promise<Res>,+ ) =>+ async (req: Request) => {+ try {+ const payload = await req.json();+ const parsed = schema.parse(payload);+ const data = await handler(req, parsed);+ return NextResponse.json({+ type: "success",+ data: data,+ });+ } catch (err) {+ return NextResponse.json(+ { type: "error", message: (err as Error).message },+ {+ status: 500,+ },+ );+ }+ };diff --git a/packages/template-vercel/src/helpers/use-rendering.ts b/packages/template-vercel/src/helpers/use-rendering.tsnew file mode 100644index 0000000000..c489d387fd--- /dev/null+++ b/packages/template-vercel/src/helpers/use-rendering.ts@@ -0,0 +1,123 @@+import { z } from "zod";+import { useCallback, useMemo, useState } from "react";+import { CompositionProps } from "../../types/constants";+import { SSEMessage } from "../../types/schema";++export type State =+ | {+ status: "init";+ }+ | {+ status: "invoking";+ phase: string;+ logs: string[];+ }+ | {+ status: "error";+ error: Error;+ logs: string[];+ }+ | {+ url: string;+ size: number;+ status: "done";+ logs: string[];+ };++export const useRendering = (+ id: string,+ inputProps: z.infer<typeof CompositionProps>,+) => {+ const [state, setState] = useState<State>({+ status: "init",+ });++ const renderMedia = useCallback(async () => {+ setState({+ status: "invoking",+ phase: "Starting...",+ logs: [],+ });++ try {+ const response = await fetch("/api/render", {+ method: "POST",+ headers: { "content-type": "application/json" },+ body: JSON.stringify({ id, inputProps }),+ });++ if (!response.ok || !response.body) {+ throw new Error("Failed to start render");+ }++ const reader = response.body.getReader();+ const decoder = new TextDecoder();+ let buffer = "";++ while (true) {+ const { done, value } = await reader.read();+ if (done) break;++ buffer += decoder.decode(value, { stream: true });+ const lines = buffer.split("\n\n");+ buffer = lines.pop() || "";++ for (const line of lines) {+ if (!line.startsWith("data: ")) continue;++ const json = line.slice(6);+ const message = JSON.parse(json) as SSEMessage;++ if (message.type === "log") {+ setState((prev) => {+ if (prev.status === "init") return prev;+ return {+ ...prev,+ logs: [...prev.logs, message.data],+ };+ });+ } else if (message.type === "phase") {+ setState((prev) => {+ if (prev.status !== "invoking") return prev;+ return {+ ...prev,+ phase: message.phase,+ };+ });+ } else if (message.type === "done") {+ setState((prev) => ({+ status: "done",+ url: message.url,+ size: message.size,+ logs: prev.status !== "init" ? prev.logs : [],+ }));+ } else if (message.type === "error") {+ setState((prev) => ({+ status: "error",+ error: new Error(message.message),+ logs: prev.status !== "init" ? prev.logs : [],+ }));+ }+ }+ }+ } catch (err) {+ setState((prev) => ({+ status: "error",+ error: err as Error,+ logs: prev.status !== "init" ? prev.logs : [],+ }));+ }+ }, [id, inputProps]);++ const undo = useCallback(() => {+ setState({ status: "init" });+ }, []);++ return useMemo(() => {+ return {+ renderMedia,+ state,+ undo,+ };+ }, [renderMedia, state, undo]);+};diff --git a/packages/template-vercel/src/lib/utils.ts b/packages/template-vercel/src/lib/utils.tsnew file mode 100644index 0000000000..a5ef193506--- /dev/null+++ b/packages/template-vercel/src/lib/utils.ts@@ -0,0 +1,6 @@+import { clsx, type ClassValue } from "clsx";+import { twMerge } from "tailwind-merge";++export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs));+}diff --git a/packages/template-vercel/src/remotion/MyComp/Main.tsx b/packages/template-vercel/src/remotion/MyComp/Main.tsxnew file mode 100644index 0000000000..cf23037a59--- /dev/null+++ b/packages/template-vercel/src/remotion/MyComp/Main.tsx@@ -0,0 +1,58 @@+import { z } from "zod";+import {+ AbsoluteFill,+ Sequence,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";+import { CompositionProps } from "../../../types/constants";+import { NextLogo } from "./NextLogo";+import { loadFont, fontFamily } from "@remotion/google-fonts/Inter";+import { Rings } from "./Rings";+import { TextFade } from "./TextFade";++loadFont("normal", {+ subsets: ["latin"],+ weights: ["400", "700"],+});+export const Main = ({ title }: z.infer<typeof CompositionProps>) => {+ const frame = useCurrentFrame();+ const { fps } = useVideoConfig();++ const transitionStart = 2 * fps;+ const transitionDuration = 1 * fps;++ const logoOut = spring({+ fps,+ frame,+ config: {+ damping: 200,+ },+ durationInFrames: transitionDuration,+ delay: transitionStart,+ });++ return (+ <AbsoluteFill className="bg-white">+ <Sequence durationInFrames={transitionStart + transitionDuration}>+ <Rings outProgress={logoOut}></Rings>+ <AbsoluteFill className="justify-center items-center">+ <NextLogo outProgress={logoOut}></NextLogo>+ </AbsoluteFill>+ </Sequence>+ <Sequence from={transitionStart + transitionDuration / 2}>+ <TextFade>+ <h1+ className="text-[70px] font-bold"+ style={{+ fontFamily,+ }}+ >+ {title}+ </h1>+ </TextFade>+ </Sequence>+ </AbsoluteFill>+ );+};diff --git a/packages/template-vercel/src/remotion/MyComp/NextLogo.tsx b/packages/template-vercel/src/remotion/MyComp/NextLogo.tsxnew file mode 100644index 0000000000..b7f87f6bf2--- /dev/null+++ b/packages/template-vercel/src/remotion/MyComp/NextLogo.tsx@@ -0,0 +1,122 @@+import { evolvePath } from "@remotion/paths";+import React, { useMemo } from "react";+import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";++const nStroke =+ "M149.508 157.52L69.142 54H54V125.97H66.1136V69.3836L139.999 164.845C143.333 162.614 146.509 160.165 149.508 157.52Z";++export const NextLogo: React.FC<{+ outProgress: number;+}> = ({ outProgress }) => {+ const { fps } = useVideoConfig();+ const frame = useCurrentFrame();++ const evolve1 = spring({+ fps,+ frame,+ config: {+ damping: 200,+ },+ });+ const evolve2 = spring({+ fps,+ frame: frame - 15,+ config: {+ damping: 200,+ },+ });+ const evolve3 = spring({+ fps,+ frame: frame - 30,+ config: {+ damping: 200,+ mass: 3,+ },+ durationInFrames: 30,+ });++ const style: React.CSSProperties = useMemo(() => {+ return {+ height: 140,+ borderRadius: 70,+ scale: String(1 - outProgress),+ };+ }, [outProgress]);++ const firstPath = `M 60.0568 54 v 71.97`;+ const secondPath = `M 63.47956 56.17496 L 144.7535 161.1825`;+ const thirdPath = `M 121 54 L 121 126`;++ const evolution1 = evolvePath(evolve1, firstPath);+ const evolution2 = evolvePath(evolve2, secondPath);+ const evolution3 = evolvePath(+ interpolate(evolve3, [0, 1], [0, 0.7]),+ thirdPath,+ );++ return (+ <svg style={style} fill="none" viewBox="0 0 180 180">+ <mask+ height="180"+ id="mask"+ className="[mask-type:alpha]"+ width="180"+ x="0"+ y="0"+ >+ <circle cx="90" cy="90" fill="black" r="90"></circle>+ </mask>+ <mask id="n-mask" className="[mask-type:alpha]">+ <path d={nStroke} fill="black"></path>+ </mask>+ <g mask="url(#mask)">+ <circle cx="90" cy="90" fill="black" r="90"></circle>+ <g stroke="url(#gradient0)" mask="url(#n-mask)">+ <path+ strokeWidth="12.1136"+ d={firstPath}+ strokeDasharray={evolution1.strokeDasharray}+ strokeDashoffset={evolution1.strokeDashoffset}+ ></path>+ <path+ strokeWidth={12.1136}+ d={secondPath}+ strokeDasharray={evolution2.strokeDasharray}+ strokeDashoffset={evolution2.strokeDashoffset}+ ></path>+ </g>+ <path+ stroke="url(#gradient1)"+ d={thirdPath}+ strokeDasharray={evolution3.strokeDasharray}+ strokeDashoffset={evolution3.strokeDashoffset}+ strokeWidth="12"+ ></path>+ </g>+ <defs>+ <linearGradient+ gradientUnits="userSpaceOnUse"+ id="gradient0"+ x1="109"+ x2="144.5"+ y1="116.5"+ y2="160.5"+ >+ <stop stopColor="white"></stop>+ <stop offset="1" stopColor="white" stopOpacity="0"></stop>+ </linearGradient>+ <linearGradient+ gradientUnits="userSpaceOnUse"+ id="gradient1"+ x1="121"+ x2="120.799"+ y1="54"+ y2="106.875"+ >+ <stop stopColor="white"></stop>+ <stop offset="1" stopColor="white" stopOpacity="0"></stop>+ </linearGradient>+ </defs>+ </svg>+ );+};diff --git a/packages/template-vercel/src/remotion/MyComp/Rings.tsx b/packages/template-vercel/src/remotion/MyComp/Rings.tsxnew file mode 100644index 0000000000..8e27bae856--- /dev/null+++ b/packages/template-vercel/src/remotion/MyComp/Rings.tsx@@ -0,0 +1,56 @@+import React from "react";+import { AbsoluteFill, interpolateColors, useVideoConfig } from "remotion";++const RadialGradient: React.FC<{+ radius: number;+ color: string;+}> = ({ radius, color }) => {+ const height = radius * 2;+ const width = radius * 2;++ return (+ <AbsoluteFill+ style={{+ justifyContent: "center",+ alignItems: "center",+ }}+ >+ <div+ style={{+ height,+ width,+ backgroundColor: color,+ }}+ className="rounded-[50%] absolute shadow-[0px_0px_100px_rgba(0,0,0,0.05)]"+ ></div>+ </AbsoluteFill>+ );+};++export const Rings: React.FC<{+ outProgress: number;+}> = ({ outProgress }) => {+ const scale = 1 / (1 - outProgress);+ const { height } = useVideoConfig();++ return (+ <AbsoluteFill+ style={{+ transform: `scale(${scale})`,+ }}+ >+ {new Array(5)+ .fill(true)+ .map((_, i) => {+ return (+ <RadialGradient+ key={i}+ radius={height * 0.3 * i}+ color={interpolateColors(i, [0, 4], ["#fff", "#fff"])}+ />+ );+ })+ .reverse()}+ </AbsoluteFill>+ );+};diff --git a/packages/template-vercel/src/remotion/MyComp/TextFade.tsx b/packages/template-vercel/src/remotion/MyComp/TextFade.tsxnew file mode 100644index 0000000000..1b71930a0b--- /dev/null+++ b/packages/template-vercel/src/remotion/MyComp/TextFade.tsx@@ -0,0 +1,45 @@+import React, { useMemo } from "react";+import {+ AbsoluteFill,+ interpolate,+ spring,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++export const TextFade: React.FC<{+ children: React.ReactNode;+}> = ({ children }) => {+ const { fps } = useVideoConfig();+ const frame = useCurrentFrame();++ const progress = spring({+ fps,+ frame,+ config: {+ damping: 200,+ },+ durationInFrames: 80,+ });++ const rightStop = interpolate(progress, [0, 1], [200, 0]);++ const leftStop = Math.max(0, rightStop - 60);++ const maskImage = `linear-gradient(-45deg, transparent ${leftStop}%, black ${rightStop}%)`;++ const content: React.CSSProperties = useMemo(() => {+ return {+ maskImage,+ WebkitMaskImage: maskImage,+ };+ }, [maskImage]);++ return (+ <AbsoluteFill>+ <AbsoluteFill className="justify-center items-center">+ <div style={content}>{children}</div>+ </AbsoluteFill>+ </AbsoluteFill>+ );+};diff --git a/packages/template-vercel/src/remotion/Root.tsx b/packages/template-vercel/src/remotion/Root.tsxnew file mode 100644index 0000000000..83276274db--- /dev/null+++ b/packages/template-vercel/src/remotion/Root.tsx@@ -0,0 +1,38 @@+import { Composition } from "remotion";+import { Main } from "./MyComp/Main";+import {+ COMP_NAME,+ defaultMyCompProps,+ DURATION_IN_FRAMES,+ VIDEO_FPS,+ VIDEO_HEIGHT,+ VIDEO_WIDTH,+} from "../../types/constants";+import { NextLogo } from "./MyComp/NextLogo";++export const RemotionRoot: React.FC = () => {+ return (+ <>+ <Composition+ id={COMP_NAME}+ component={Main}+ durationInFrames={DURATION_IN_FRAMES}+ fps={VIDEO_FPS}+ width={VIDEO_WIDTH}+ height={VIDEO_HEIGHT}+ defaultProps={defaultMyCompProps}+ />+ <Composition+ id="NextLogo"+ component={NextLogo}+ durationInFrames={300}+ fps={30}+ width={140}+ height={140}+ defaultProps={{+ outProgress: 0,+ }}+ />+ </>+ );+};diff --git a/packages/template-vercel/src/remotion/index.ts b/packages/template-vercel/src/remotion/index.tsnew file mode 100644index 0000000000..23d7a0fb20--- /dev/null+++ b/packages/template-vercel/src/remotion/index.ts@@ -0,0 +1,5 @@+import { registerRoot } from "remotion";+import { RemotionRoot } from "./Root";+import "../../styles/global.css";++registerRoot(RemotionRoot);diff --git a/packages/template-vercel/styles/global.css b/packages/template-vercel/styles/global.cssnew file mode 100644index 0000000000..7a4c3bb0ff--- /dev/null+++ b/packages/template-vercel/styles/global.css@@ -0,0 +1,62 @@+@import "tailwindcss";++:root {+ --background: #fff;+ --foreground: #000;+ --unfocused-border-color: #eaeaea;+ --focused-border-color: #666;++ --button-disabled-color: #fafafa;+ --disabled-text-color: #999;++ --geist-border-radius: 5px;+ --geist-quarter-pad: 6px;+ --geist-half-pad: 12px;+ --geist-pad: 24px;+ --geist-font: "Inter";++ --geist-error: #e00;++ --subtitle: #666;+}++@media (prefers-color-scheme: dark) {+ :root {+ --background: #000000;+ --unfocused-border-color: #333;+ --focused-border-color: #888;+ --foreground: #fff;+ --button-disabled-color: #111;+ --geist-error: red;+ --subtitle: #8d8d8d;+ }+}++@theme {+ --color-foreground: var(--foreground);+ --color-background: var(--background);+ --color-unfocused-border-color: var(--unfocused-border-color);+ --color-focused-border-color: var(--focused-border-color);+ --color-button-disabled-color: var(--button-disabled-color);+ --color-disabled-text-color: var(--disabled-text-color);+ --color-geist-error: var(--geist-error);+ --color-subtitle: var(--subtitle);+ --padding-geist-quarter: var(--geist-quarter-pad);+ --padding-geist-half: var(--geist-half-pad);+ --padding-geist: var(--geist-pad);+ --spacing-geist: var(--geist-pad);+ --spacing-geist-half: var(--geist-half-pad);+ --spacing-geist-quarter: var(--geist-quarter-pad);+ --radius-geist: var(--geist-border-radius);+ --font-geist: var(--geist-font);+ --animate-spinner: spinner 1.2s linear infinite;++ @keyframes spinner {+ 0% {+ opacity: 1;+ }+ 100% {+ opacity: 0.15;+ }+ }+}diff --git a/packages/template-vercel/tsconfig.json b/packages/template-vercel/tsconfig.jsonnew file mode 100644index 0000000000..4657cf4cb2--- /dev/null+++ b/packages/template-vercel/tsconfig.json@@ -0,0 +1,32 @@+{+ "compilerOptions": {+ "target": "es5",+ "lib": ["dom", "dom.iterable", "esnext"],+ "allowJs": true,+ "skipLibCheck": true,+ "strict": true,+ "forceConsistentCasingInFileNames": true,+ "noEmit": true,+ "esModuleInterop": true,+ "module": "esnext",+ "moduleResolution": "node",+ "resolveJsonModule": true,+ "isolatedModules": true,+ "jsx": "react-jsx",+ "noUnusedLocals": true,+ "plugins": [+ {+ "name": "next"+ }+ ],+ "incremental": true+ },+ "include": [+ "next-env.d.ts",+ "**/*.ts",+ "**/*.tsx",+ ".next/types/**/*.ts",+ ".next/dev/types/**/*.ts"+ ],+ "exclude": ["node_modules", "remotion.config.ts"]+}diff --git a/packages/template-vercel/types/constants.ts b/packages/template-vercel/types/constants.tsnew file mode 100644index 0000000000..4767c5e80f--- /dev/null+++ b/packages/template-vercel/types/constants.ts@@ -0,0 +1,15 @@+import { z } from "zod";+export const COMP_NAME = "MyComp";++export const CompositionProps = z.object({+ title: z.string(),+});++export const defaultMyCompProps: z.infer<typeof CompositionProps> = {+ title: "Next.js and Remotion",+};++export const DURATION_IN_FRAMES = 200;+export const VIDEO_WIDTH = 1280;+export const VIDEO_HEIGHT = 720;+export const VIDEO_FPS = 30;diff --git a/packages/template-vercel/types/schema.ts b/packages/template-vercel/types/schema.tsnew file mode 100644index 0000000000..45e9e5a070--- /dev/null+++ b/packages/template-vercel/types/schema.ts@@ -0,0 +1,24 @@+import { z } from "zod";+import { CompositionProps } from "./constants";++export const RenderRequest = z.object({+ id: z.string(),+ inputProps: CompositionProps,+});++export type RenderResponse =+ | {+ type: "error";+ message: string;+ }+ | {+ type: "done";+ url: string;+ size: number;+ };++export type SSEMessage =+ | { type: "log"; stream: "stdout" | "stderr"; data: string }+ | { type: "phase"; phase: string }+ | { type: "done"; url: string; size: number }+ | { type: "error"; message: string };