Skip to content

🎥 Make videos programmatically with React

create-video: Remove JavaScript and two Next.js starter variants

JonnyBurger885b73646c9f
diff --git a/bun.lock b/bun.lock
index 95b917d6c2..6d645a3ea5 100644
--- a/bun.lock
+++ b/bun.lock
@@ -2149,22 +2149,6 @@
"typescript": "5.9.3",
},
},
- "packages/template-javascript": {
- "name": "template-javascript",
- "version": "1.0.0",
- "dependencies": {
- "@remotion/cli": "workspace:*",
- "react": "19.2.3",
- "react-dom": "19.2.3",
- "remotion": "workspace:*",
- "zod": "4.5.4",
- },
- "devDependencies": {
- "@remotion/eslint-config-flat": "workspace:*",
- "eslint": "9.19.0",
- "prettier": "3.8.1",
- },
- },
"packages/template-music-visualization": {
"name": "template-music-visualization",
"version": "1.0.0",
@@ -2189,43 +2173,6 @@
"typescript": "5.9.3",
},
},
- "packages/template-next-app": {
- "name": "template-next-app",
- "version": "0.1.0",
- "dependencies": {
- "@remotion/bundler": "workspace:*",
- "@remotion/cli": "workspace:*",
- "@remotion/google-fonts": "workspace:*",
- "@remotion/lambda": "workspace:*",
- "@remotion/paths": "workspace:*",
- "@remotion/player": "workspace:*",
- "@remotion/shapes": "workspace:*",
- "next": "16.3.3",
- "react": "19.2.3",
- "react-dom": "19.2.3",
- "remotion": "workspace:*",
- "zod": "4.5.4",
- },
- "devDependencies": {
- "@eslint/eslintrc": "3.1.0",
- "@eslint/js": "9.38.0",
- "@next/eslint-plugin-next": "15.1.6",
- "@remotion/eslint-config-flat": "workspace:*",
- "@remotion/eslint-plugin": "workspace:*",
- "@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",
- "dotenv": "17.3.1",
- "eslint": "9.19.0",
- "eslint-config-next": "15.1.6",
- "prettier": "3.8.1",
- "typescript": "5.9.3",
- "typescript-eslint": "8.46.0",
- },
- },
"packages/template-next-app-tailwind": {
"name": "template-next-app-tailwind",
"version": "0.1.0",
@@ -2269,42 +2216,6 @@
"typescript-eslint": "8.46.0",
},
},
- "packages/template-next-pages": {
- "name": "template-next-pages",
- "version": "0.1.0",
- "dependencies": {
- "@remotion/bundler": "workspace:*",
- "@remotion/cli": "workspace:*",
- "@remotion/google-fonts": "workspace:*",
- "@remotion/lambda": "workspace:*",
- "@remotion/paths": "workspace:*",
- "@remotion/player": "workspace:*",
- "@remotion/shapes": "workspace:*",
- "next": "16.3.3",
- "react": "19.2.3",
- "react-dom": "19.2.3",
- "remotion": "workspace:*",
- "zod": "4.5.4",
- },
- "devDependencies": {
- "@eslint/eslintrc": "3.1.0",
- "@eslint/js": "9.38.0",
- "@next/eslint-plugin-next": "15.1.6",
- "@remotion/eslint-plugin": "workspace:*",
- "@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",
- "dotenv": "17.3.1",
- "eslint": "9.19.0",
- "eslint-config-next": "15.1.6",
- "prettier": "3.8.1",
- "typescript": "5.9.3",
- "typescript-eslint": "8.46.0",
- },
- },
"packages/template-overlay": {
"name": "template-overlay",
"version": "1.0.0",
@@ -8743,16 +8654,10 @@
"template-helloworld": ["template-helloworld@workspace:packages/template-helloworld"],
- "template-javascript": ["template-javascript@workspace:packages/template-javascript"],
-
"template-music-visualization": ["template-music-visualization@workspace:packages/template-music-visualization"],
- "template-next-app": ["template-next-app@workspace:packages/template-next-app"],
-
"template-next-app-tailwind": ["template-next-app-tailwind@workspace:packages/template-next-app-tailwind"],
- "template-next-pages": ["template-next-pages@workspace:packages/template-next-pages"],
-
"template-overlay": ["template-overlay@workspace:packages/template-overlay"],
"template-prompt-to-motion-graphics": ["template-prompt-to-motion-graphics@workspace:packages/template-prompt-to-motion-graphics"],
@@ -12827,26 +12732,10 @@
"template-helloworld/react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.3" } }, "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg=="],
- "template-javascript/react": ["[email protected]", "", {}, "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA=="],
-
- "template-javascript/react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.3" } }, "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg=="],
-
"template-music-visualization/react": ["[email protected]", "", {}, "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA=="],
"template-music-visualization/react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.3" } }, "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg=="],
- "template-next-app/@eslint/js": ["@eslint/[email protected]", "", {}, "sha512-UZ1VpFvXf9J06YG9xQBdnzU+kthors6KjhMAl6f4gH4usHyh31rUf2DLGInT8RFYIReYXNSydgPY0V2LuWgl7A=="],
-
- "template-next-app/@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-next-app/@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-next-app/react": ["[email protected]", "", {}, "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA=="],
-
- "template-next-app/react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.3" } }, "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg=="],
-
- "template-next-app/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=="],
-
"template-next-app-tailwind/@eslint/js": ["@eslint/[email protected]", "", {}, "sha512-UZ1VpFvXf9J06YG9xQBdnzU+kthors6KjhMAl6f4gH4usHyh31rUf2DLGInT8RFYIReYXNSydgPY0V2LuWgl7A=="],
"template-next-app-tailwind/@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=="],
@@ -12863,18 +12752,6 @@
"template-next-app-tailwind/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=="],
- "template-next-pages/@eslint/js": ["@eslint/[email protected]", "", {}, "sha512-UZ1VpFvXf9J06YG9xQBdnzU+kthors6KjhMAl6f4gH4usHyh31rUf2DLGInT8RFYIReYXNSydgPY0V2LuWgl7A=="],
-
- "template-next-pages/@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-next-pages/@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-next-pages/react": ["[email protected]", "", {}, "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA=="],
-
- "template-next-pages/react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.3" } }, "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg=="],
-
- "template-next-pages/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=="],
-
"template-overlay/react": ["[email protected]", "", {}, "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA=="],
"template-overlay/react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.3" } }, "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg=="],
@@ -18371,58 +18248,6 @@
"template-next-app-tailwind/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=="],
- "template-next-app/@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-next-app/@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-next-app/@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-next-app/@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-next-app/@typescript-eslint/eslint-plugin/ignore": ["[email protected]", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="],
-
- "template-next-app/@typescript-eslint/eslint-plugin/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],
-
- "template-next-app/@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-next-app/@typescript-eslint/parser/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-app/@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-next-app/@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-next-app/@typescript-eslint/parser/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],
-
- "template-next-app/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-next-app/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=="],
-
- "template-next-pages/@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-next-pages/@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-next-pages/@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-next-pages/@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-next-pages/@typescript-eslint/eslint-plugin/ignore": ["[email protected]", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="],
-
- "template-next-pages/@typescript-eslint/eslint-plugin/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],
-
- "template-next-pages/@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-next-pages/@typescript-eslint/parser/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-pages/@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-next-pages/@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-next-pages/@typescript-eslint/parser/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],
-
- "template-next-pages/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-next-pages/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=="],
-
"template-prompt-to-motion-graphics/@radix-ui/react-select/@radix-ui/number": ["@radix-ui/[email protected]", "", {}, "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g=="],
"template-prompt-to-motion-graphics/@radix-ui/react-select/@radix-ui/primitive": ["@radix-ui/[email protected]", "", {}, "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg=="],
@@ -25073,78 +24898,6 @@
"template-next-app-tailwind/typescript-eslint/@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
- "template-next-app/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-app/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-app/@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-next-app/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],
-
- "template-next-app/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-app/@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-next-app/@typescript-eslint/eslint-plugin/@typescript-eslint/visitor-keys/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-app/@typescript-eslint/parser/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
-
- "template-next-app/@typescript-eslint/parser/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
-
- "template-next-app/@typescript-eslint/parser/@typescript-eslint/typescript-estree/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],
-
- "template-next-app/typescript-eslint/@typescript-eslint/typescript-estree/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-app/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-next-app/typescript-eslint/@typescript-eslint/typescript-estree/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],
-
- "template-next-app/typescript-eslint/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
-
- "template-next-app/typescript-eslint/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
-
- "template-next-app/typescript-eslint/@typescript-eslint/typescript-estree/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],
-
- "template-next-app/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-next-app/typescript-eslint/@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-pages/@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-pages/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-pages/@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-next-pages/@typescript-eslint/eslint-plugin/@typescript-eslint/type-utils/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],
-
- "template-next-pages/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-pages/@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-next-pages/@typescript-eslint/eslint-plugin/@typescript-eslint/visitor-keys/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-pages/@typescript-eslint/parser/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
-
- "template-next-pages/@typescript-eslint/parser/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
-
- "template-next-pages/@typescript-eslint/parser/@typescript-eslint/typescript-estree/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],
-
- "template-next-pages/typescript-eslint/@typescript-eslint/typescript-estree/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
- "template-next-pages/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-next-pages/typescript-eslint/@typescript-eslint/typescript-estree/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],
-
- "template-next-pages/typescript-eslint/@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
-
- "template-next-pages/typescript-eslint/@typescript-eslint/typescript-estree/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
-
- "template-next-pages/typescript-eslint/@typescript-eslint/typescript-estree/ts-api-utils": ["[email protected]", "", { "peerDependencies": { "typescript": "5.7.3" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="],
-
- "template-next-pages/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-next-pages/typescript-eslint/@typescript-eslint/utils/@typescript-eslint/types": ["@typescript-eslint/[email protected]", "", {}, "sha512-bHGGJyVjSE4dJJIO5yyEWt/cHyNwga/zXGJbJJ8TiO01aVREK6gCTu3L+5wrkb1FbDkQ+TKjMNe9R/QQQP9+rA=="],
-
"template-prompt-to-motion-graphics/@radix-ui/react-select/@radix-ui/react-collection/react": ["[email protected]", "", {}, "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ=="],
"template-prompt-to-motion-graphics/@radix-ui/react-select/@radix-ui/react-collection/react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "0.25.0" }, "peerDependencies": { "react": "19.0.0" } }, "sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ=="],
@@ -29281,38 +29034,6 @@
"template-next-app-tailwind/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=="],
- "template-next-app/@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-next-app/@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-next-app/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],
-
- "template-next-app/@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-next-app/@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-next-app/@typescript-eslint/parser/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],
-
- "template-next-app/typescript-eslint/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],
-
- "template-next-app/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=="],
-
- "template-next-pages/@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-next-pages/@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-next-pages/@typescript-eslint/eslint-plugin/@typescript-eslint/utils/@typescript-eslint/typescript-estree/debug": ["[email protected]", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="],
-
- "template-next-pages/@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-next-pages/@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-next-pages/@typescript-eslint/parser/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],
-
- "template-next-pages/typescript-eslint/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "1.0.2" } }, "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA=="],
-
- "template-next-pages/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=="],
-
"template-prompt-to-motion-graphics/@radix-ui/react-select/@radix-ui/react-collection/react-dom/scheduler": ["[email protected]", "", {}, "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA=="],
"template-prompt-to-motion-graphics/@radix-ui/react-select/@radix-ui/react-popper/@radix-ui/react-arrow/react": ["[email protected]", "", {}, "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ=="],
@@ -30089,14 +29810,6 @@
"template-next-app-tailwind/@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-next-app/@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-next-app/@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-next-pages/@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-next-pages/@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-prompt-to-motion-graphics/@radix-ui/react-select/@radix-ui/react-popper/@radix-ui/react-arrow/react-dom/scheduler": ["[email protected]", "", {}, "sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA=="],
"template-prompt-to-motion-graphics/@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=="],
diff --git a/packages/codex-plugin/skills/remotion-best-practices/remotion-saas/framework.md b/packages/codex-plugin/skills/remotion-best-practices/remotion-saas/framework.md
index afb3b7793c..9d0719b5f0 100644
--- a/packages/codex-plugin/skills/remotion-best-practices/remotion-saas/framework.md
+++ b/packages/codex-plugin/skills/remotion-best-practices/remotion-saas/framework.md
@@ -10,8 +10,6 @@ Remotion can be used with any React framework.
We offer the following templates:
- Next.js App Router with Tailwind: https://github.com/remotion-dev/template-next-app-dir-tailwind. Uses Lambda as default rendering choice.
-- Next.js App Router without Tailwind: https://www.remotion.dev/templates/next-no-tailwind. Uses Lambda as default rendering choice.
-- Next.js Pages Router: https://github.com/remotion-dev/template-next-pages-dir. Uses Lambda as default rendering choice.
- Vercel Sandbox rendering: https://github.com/remotion-dev/template-vercel. Uses Vercel as default rendering choice.
- React Router 7: https://github.com/remotion-dev/template-react-router. Uses Lambda as default rendering choice.
- Express.js render server: `packages/template-render-server`: https://github.com/remotion-dev/template-render-server. Uses Node.js as default rendering choice.
diff --git a/packages/codex-plugin/skills/remotion-saas/framework.md b/packages/codex-plugin/skills/remotion-saas/framework.md
index afb3b7793c..9d0719b5f0 100644
--- a/packages/codex-plugin/skills/remotion-saas/framework.md
+++ b/packages/codex-plugin/skills/remotion-saas/framework.md
@@ -10,8 +10,6 @@ Remotion can be used with any React framework.
We offer the following templates:
- Next.js App Router with Tailwind: https://github.com/remotion-dev/template-next-app-dir-tailwind. Uses Lambda as default rendering choice.
-- Next.js App Router without Tailwind: https://www.remotion.dev/templates/next-no-tailwind. Uses Lambda as default rendering choice.
-- Next.js Pages Router: https://github.com/remotion-dev/template-next-pages-dir. Uses Lambda as default rendering choice.
- Vercel Sandbox rendering: https://github.com/remotion-dev/template-vercel. Uses Vercel as default rendering choice.
- React Router 7: https://github.com/remotion-dev/template-react-router. Uses Lambda as default rendering choice.
- Express.js render server: `packages/template-render-server`: https://github.com/remotion-dev/template-render-server. Uses Node.js as default rendering choice.
diff --git a/packages/create-video/src/pkg-managers.ts b/packages/create-video/src/pkg-managers.ts
index b45fbafd74..37889523ec 100644
--- a/packages/create-video/src/pkg-managers.ts
+++ b/packages/create-video/src/pkg-managers.ts
@@ -177,12 +177,7 @@ export const getUpgradeCommand = (manager: PackageManager) => {
};
export const getDevCommand = (manager: PackageManager, template: Template) => {
- if (
- template.cliId === 'react-router' ||
- template.cliId === 'next' ||
- template.cliId === 'next-no-tailwind' ||
- template.cliId === 'next-pages-dir'
- ) {
+ if (template.cliId === 'react-router' || template.cliId === 'next') {
return `${getRunCommand(manager)} dev`;
}
diff --git a/packages/create-video/src/templates.ts b/packages/create-video/src/templates.ts
index d7c2b90099..c3b69cd175 100644
--- a/packages/create-video/src/templates.ts
+++ b/packages/create-video/src/templates.ts
@@ -25,11 +25,8 @@ export type Template = {
longerDescription: string;
cliId:
| 'hello-world'
- | 'javascript'
| 'blank'
| 'next'
- | 'next-no-tailwind'
- | 'next-pages-dir'
| 'react-router'
| 'three'
| 'still'
@@ -160,55 +157,6 @@ export const FEATURED_TEMPLATES: Template[] = [
showStackblitz: false,
previewLabel: 'Live Demo',
},
- {
- homePageLabel: 'Next.js (No Tailwind)',
- shortName: 'Next.js (No Tailwind)',
- org: 'remotion-dev',
- repoName: 'template-next-app-dir',
- description: 'SaaS template for video generation apps',
- longerDescription:
- 'A SaaS starter kit which has the Remotion Player and rendering via Remotion Lambda built-in. Our recommended choice for people who want to build an app that can generate videos.',
- promoVideo: {
- width: 1280,
- height: 720,
- muxId: 'RufnZIJZh6L1MAaeG02jnXuM9pK96tNuHRxmXHbWqCBI',
- },
- cliId: 'next-no-tailwind' as const,
- type: 'video' as const,
- defaultBranch: 'main',
- featuredOnHomePage: null,
- previewURL: 'https://next.remotion.dev',
- templateInMonorepo: 'template-next-app',
- previewLabel: 'Live Demo',
- allowEnableTailwind: false,
- contributedBy: null,
- showStackblitz: true,
- },
- {
- homePageLabel: 'Next.js (Pages dir)',
- shortName: 'Next.js (Pages dir)',
- org: 'remotion-dev',
- repoName: 'template-next-pages-dir',
- description: 'SaaS template for video generation apps',
- longerDescription:
- 'A SaaS starter kit which has the Remotion Player and rendering via Remotion Lambda built-in. Our recommended choice for people who want to build an app that can generate videos.',
- promoVideo: {
- width: 1280,
- height: 720,
- muxId: 'RufnZIJZh6L1MAaeG02jnXuM9pK96tNuHRxmXHbWqCBI',
- },
- cliId: 'next-pages-dir' as const,
- type: 'video' as const,
- defaultBranch: 'main',
- featuredOnHomePage: null,
- previewURL: 'https://next.remotion.dev',
- previewLabel: 'Live Demo',
- templateInMonorepo: 'template-next-pages',
- allowEnableTailwind: false,
- contributedBy: null,
- showStackblitz: true,
- },
-
{
homePageLabel: 'Recorder',
shortName: 'Recorder',
@@ -257,31 +205,6 @@ export const FEATURED_TEMPLATES: Template[] = [
contributedBy: 'ASchwad',
showStackblitz: false,
},
- {
- homePageLabel: 'JavaScript',
- shortName: 'Hello World (JavaScript)',
- org: 'remotion-dev',
- repoName: 'template-helloworld-javascript',
- description: 'The default starter template in plain JS',
- longerDescription:
- 'The Hello World template, but in plain JavaScript. Recommended for people who detest TypeScript.',
- promoVideo: {
- muxId: 'dRIuc00f8QWnKedM8GBGPqXJWqU01DPJFgPTHpJgixxas',
- width: 1920,
- height: 1080,
- },
- cliId: 'javascript' as const,
- type: 'video' as const,
- defaultBranch: 'main',
- featuredOnHomePage: null,
- previewURL:
- 'https://template-helloworld-javascript.vercel.app/?/HelloWorld',
- previewLabel: null,
- templateInMonorepo: 'template-javascript',
- allowEnableTailwind: true,
- contributedBy: null,
- showStackblitz: true,
- },
{
homePageLabel: 'Render Server (Express.js)',
shortName: 'Render Server',
diff --git a/packages/docs/docs/player-into-remotion-project.mdx b/packages/docs/docs/player-into-remotion-project.mdx
index 0099a7aeaa..f7ed86448f 100644
--- a/packages/docs/docs/player-into-remotion-project.mdx
+++ b/packages/docs/docs/player-into-remotion-project.mdx
@@ -20,8 +20,6 @@ templates, the Studio is already installed and can be started using the command
:<br />
- [Next.js (App dir)](/templates/next)
-- [Next.js (App dir, no TailwindCSS)](/templates/next-no-tailwind)
-- [Next.js (Pages dir)](/templates/next-pages-dir)
- [Next.js (App dir, Rendering in Vercel Sandbox)](/templates/vercel)
- [React Router 7 (Remix)](/templates/react-router)
diff --git a/packages/docs/docs/player/index.mdx b/packages/docs/docs/player/index.mdx
index a2517ac240..72ce030c83 100644
--- a/packages/docs/docs/player/index.mdx
+++ b/packages/docs/docs/player/index.mdx
@@ -21,8 +21,6 @@ See the [source code](https://github.com/remotion-dev/remotion/blob/main/package
The following templates include the Player and Lambda rendering and are a good starting point for building a video app:
- [Next.js (App dir)](/templates/next)
-- [Next.js (App dir, no TailwindCSS)](/templates/next-no-tailwind)
-- [Next.js (Pages dir)](/templates/next-pages-dir)
- [Next.js (App dir, Rendering in Vercel Sandbox instead Lambda)](/templates/vercel)
- [React Router 7 (Remix)](/templates/react-router)
diff --git a/packages/docs/docs/player/player-integration.mdx b/packages/docs/docs/player/player-integration.mdx
index e0a33ff4e5..e2aec539de 100644
--- a/packages/docs/docs/player/player-integration.mdx
+++ b/packages/docs/docs/player/player-integration.mdx
@@ -19,8 +19,6 @@ Remotion and your React app use different bundler configurations. Therefore, if
Use one of our starter templates:
- [Next.js (App dir)](/templates/next)
-- [Next.js (App dir, no TailwindCSS)](/templates/next-no-tailwind)
-- [Next.js (Pages dir)](/templates/next-pages-dir)
- [Next.js (App dir, Rendering in Vercel Sandbox instead Lambda)](/templates/vercel)
- [React Router 7 (Remix)](/templates/react-router)
diff --git a/packages/docs/docs/resources.mdx b/packages/docs/docs/resources.mdx
index fdb2e1c5e2..6fbf5fdbd5 100644
--- a/packages/docs/docs/resources.mdx
+++ b/packages/docs/docs/resources.mdx
@@ -9,7 +9,6 @@ This list tries to compile all templates, libraries, building blocks and example
## Templates
- Hello World (TypeScript) ([Source code](https://github.com/remotion-dev/template-helloworld), [Preview](https://remotion-helloworld.vercel.app/))
-- Hello World (JavaScript) ([Source code](https://github.com/remotion-dev/template-helloworld-javascript), [Preview](https://template-helloworld-javascript.vercel.app/))
- Blank ([Source code](https://github.com/remotion-dev/template-empty), [Preview](https://template-empty.vercel.app/))
- React Three Fiber ([Source code](https://github.com/remotion-dev/template-three), [Preview](https://template-three-remotion.vercel.app/))
- Stills ([Source code](https://github.com/remotion-dev/template-still), [Preview](https://template-still.vercel.app/))
diff --git a/packages/docs/docs/studio-app.mdx b/packages/docs/docs/studio-app.mdx
index 50dd6e670a..cd1bdb9f97 100644
--- a/packages/docs/docs/studio-app.mdx
+++ b/packages/docs/docs/studio-app.mdx
@@ -13,8 +13,6 @@ If you would like to now turn your project into an app, follow these steps.
<Step>1</Step> Scaffold a new project using one of those templates:
- [Next.js (App dir)](/templates/next)
-- [Next.js (App dir, no TailwindCSS)](/templates/next-no-tailwind)
-- [Next.js (Pages dir)](/templates/next-pages-dir)
- [Next.js (App dir, Rendering in Vercel Sandbox)](/templates/vercel)
- [React Router 7 (Remix)](/templates/react-router)
@@ -27,10 +25,6 @@ no errors anymore.
<Step>4</Step> Find where the <code>{'<Player>'}</code> is rendered:
<ul>
- <li>
- <strong>In the Next.js Pages Dir template:</strong> Under{' '}
- <code>pages/index.tsx</code>.
- </li>
<li>
<strong>In the Next.js App Dir template:</strong> Under{' '}
<code>app/page.tsx</code>.
diff --git a/packages/docs/docs/vercel.mdx b/packages/docs/docs/vercel.mdx
index ac70926121..58a51f5404 100644
--- a/packages/docs/docs/vercel.mdx
+++ b/packages/docs/docs/vercel.mdx
@@ -90,8 +90,6 @@ See also:
- [App router - Example Render endpoint](https://github.com/remotion-dev/remotion/blob/main/packages/template-next-app-tailwind/src/app/api/lambda/render/route.ts)
- [App router - Example Progress endpoint](https://github.com/remotion-dev/remotion/blob/main/packages/template-next-app-tailwind/src/app/api/lambda/progress/route.ts)
-- [Pages router - Example Render endpoint](https://github.com/remotion-dev/remotion/blob/main/packages/template-next-pages/src/pages/api/lambda/render.ts)
-- [Pages router - Example Progress endpoint](https://github.com/remotion-dev/remotion/blob/main/packages/template-next-pages/src/pages/api/lambda/progress.ts)
## Rendering from a Vercel deployment
@@ -118,8 +116,6 @@ The template does not include rate limiting or caching. Implement these before m
## Templates
- [Next.js (App dir)](/templates/next)
-- [Next.js (App dir, no TailwindCSS)](/templates/next-no-tailwind)
-- [Next.js (Pages dir)](/templates/next-pages-dir)
- [Next.js (App dir, Rendering in Vercel Sandbox)](/templates/vercel)
- [React Router 7 (Remix)](/templates/react-router)
diff --git a/packages/docs/src/components/IconForTemplate.tsx b/packages/docs/src/components/IconForTemplate.tsx
index 532ad56b94..f016432013 100644
--- a/packages/docs/src/components/IconForTemplate.tsx
+++ b/packages/docs/src/components/IconForTemplate.tsx
@@ -5,7 +5,6 @@ import {BrainIcon} from './icons/brain';
import {CodeHike} from './icons/code-hike';
import {Cubes} from './icons/cubes';
import {ElectronIcon} from './icons/electron';
-import {JSIcon} from './icons/js';
import {MusicIcon} from './icons/music';
import {NextIcon} from './icons/next';
import {OverlayIcon} from './icons/overlay';
@@ -54,16 +53,6 @@ export const IconForTemplate: React.FC<{
return <ElectronIcon style={{height: scale * 36}} />;
}
- if (template.cliId === 'javascript') {
- return (
- <JSIcon
- style={{
- height: scale * 40,
- }}
- />
- );
- }
-
if (template.cliId === 'three') {
return (
<Cubes
@@ -132,11 +121,7 @@ export const IconForTemplate: React.FC<{
return <Recorder style={{height: scale * 36}} />;
}
- if (
- template.cliId === 'next' ||
- template.cliId === 'next-no-tailwind' ||
- template.cliId === 'next-pages-dir'
- ) {
+ if (template.cliId === 'next') {
return <NextIcon style={{height: scale * 36}} />;
}
diff --git a/packages/docs/src/components/icons/js.tsx b/packages/docs/src/components/icons/js.tsx
deleted file mode 100644
index b39c93f70e..0000000000
--- a/packages/docs/src/components/icons/js.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import type {SVGProps} from 'react';
-import React from 'react';
-
-export const JSIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg
- className="svg-inline--fa fa-js-square fa-w-14"
- viewBox="0 0 448 512"
- {...props}
- >
- <path
- fill="currentColor"
- d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM243.8 381.4c0 43.6-25.6 63.5-62.9 63.5-33.7 0-53.2-17.4-63.2-38.5l34.3-20.7c6.6 11.7 12.6 21.6 27.1 21.6 13.8 0 22.6-5.4 22.6-26.5V237.7h42.1v143.7zm99.6 63.5c-39.1 0-64.4-18.6-76.7-43l34.3-19.8c9 14.7 20.8 25.6 41.5 25.6 17.4 0 28.6-8.7 28.6-20.8 0-14.4-11.4-19.5-30.7-28l-10.5-4.5c-30.4-12.9-50.5-29.2-50.5-63.5 0-31.6 24.1-55.6 61.6-55.6 26.8 0 46 9.3 59.8 33.7L368 290c-7.2-12.9-15-18-27.1-18-12.3 0-20.1 7.8-20.1 18 0 12.6 7.8 17.7 25.9 25.6l10.5 4.5c35.8 15.3 55.9 31 55.9 66.2 0 37.8-29.8 58.6-69.7 58.6z"
- />
- </svg>
- );
-};
diff --git a/packages/docs/src/remotion/Template.tsx b/packages/docs/src/remotion/Template.tsx
index e7bd2f2dce..36e05e31be 100644
--- a/packages/docs/src/remotion/Template.tsx
+++ b/packages/docs/src/remotion/Template.tsx
@@ -67,9 +67,7 @@ export const TemplateComp: React.FC<{
alignItems: 'center',
}}
>
- {template!.cliId === 'next' ||
- template!.cliId === 'next-tailwind' ||
- template!.cliId === 'next-pages-dir' ? null : (
+ {template!.cliId === 'next' ? null : (
<>
<IconForTemplate scale={1.6} template={template!} />{' '}
<div
diff --git a/packages/docs/static/generated/template-javascript.png b/packages/docs/static/generated/template-javascript.png
deleted file mode 100644
index 137cdef102..0000000000
Binary files a/packages/docs/static/generated/template-javascript.png and /dev/null differ
diff --git a/packages/docs/static/generated/template-next-no-tailwind.png b/packages/docs/static/generated/template-next-no-tailwind.png
deleted file mode 100644
index 0a7786e066..0000000000
Binary files a/packages/docs/static/generated/template-next-no-tailwind.png and /dev/null differ
diff --git a/packages/docs/static/generated/template-next-pages-dir.png b/packages/docs/static/generated/template-next-pages-dir.png
deleted file mode 100644
index 24f1a2380c..0000000000
Binary files a/packages/docs/static/generated/template-next-pages-dir.png and /dev/null differ
diff --git a/packages/promo-pages/src/components/homepage/IconForTemplate.tsx b/packages/promo-pages/src/components/homepage/IconForTemplate.tsx
index 393d373ef6..23ca399a72 100644
--- a/packages/promo-pages/src/components/homepage/IconForTemplate.tsx
+++ b/packages/promo-pages/src/components/homepage/IconForTemplate.tsx
@@ -5,7 +5,6 @@ import {BrainIcon} from '../icons/brain';
import {CodeHike} from '../icons/code-hike';
import {Cubes} from '../icons/cubes';
import {ElectronIcon} from '../icons/electron';
-import {JSIcon} from '../icons/js';
import {MusicIcon} from '../icons/music';
import {NextIcon} from '../icons/next';
import {OverlayIcon} from '../icons/overlay';
@@ -46,16 +45,6 @@ export const IconForTemplate: React.FC<{
);
}
- if (template.cliId === 'javascript') {
- return (
- <JSIcon
- style={{
- height: scale * 40,
- }}
- />
- );
- }
-
if (template.cliId === 'three') {
return (
<Cubes
@@ -132,11 +121,7 @@ export const IconForTemplate: React.FC<{
return <Recorder style={{height: scale * 36}} />;
}
- if (
- template.cliId === 'next' ||
- template.cliId === 'next-no-tailwind' ||
- template.cliId === 'next-pages-dir'
- ) {
+ if (template.cliId === 'next') {
return <NextIcon style={{height: scale * 36}} />;
}
diff --git a/packages/promo-pages/src/components/icons/js.tsx b/packages/promo-pages/src/components/icons/js.tsx
deleted file mode 100644
index b39c93f70e..0000000000
--- a/packages/promo-pages/src/components/icons/js.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import type {SVGProps} from 'react';
-import React from 'react';
-
-export const JSIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {
- return (
- <svg
- className="svg-inline--fa fa-js-square fa-w-14"
- viewBox="0 0 448 512"
- {...props}
- >
- <path
- fill="currentColor"
- d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM243.8 381.4c0 43.6-25.6 63.5-62.9 63.5-33.7 0-53.2-17.4-63.2-38.5l34.3-20.7c6.6 11.7 12.6 21.6 27.1 21.6 13.8 0 22.6-5.4 22.6-26.5V237.7h42.1v143.7zm99.6 63.5c-39.1 0-64.4-18.6-76.7-43l34.3-19.8c9 14.7 20.8 25.6 41.5 25.6 17.4 0 28.6-8.7 28.6-20.8 0-14.4-11.4-19.5-30.7-28l-10.5-4.5c-30.4-12.9-50.5-29.2-50.5-63.5 0-31.6 24.1-55.6 61.6-55.6 26.8 0 46 9.3 59.8 33.7L368 290c-7.2-12.9-15-18-27.1-18-12.3 0-20.1 7.8-20.1 18 0 12.6 7.8 17.7 25.9 25.6l10.5 4.5c35.8 15.3 55.9 31 55.9 66.2 0 37.8-29.8 58.6-69.7 58.6z"
- />
- </svg>
- );
-};
diff --git a/packages/skills/skills/remotion-saas/framework.md b/packages/skills/skills/remotion-saas/framework.md
index afb3b7793c..9d0719b5f0 100644
--- a/packages/skills/skills/remotion-saas/framework.md
+++ b/packages/skills/skills/remotion-saas/framework.md
@@ -10,8 +10,6 @@ Remotion can be used with any React framework.
We offer the following templates:
- Next.js App Router with Tailwind: https://github.com/remotion-dev/template-next-app-dir-tailwind. Uses Lambda as default rendering choice.
-- Next.js App Router without Tailwind: https://www.remotion.dev/templates/next-no-tailwind. Uses Lambda as default rendering choice.
-- Next.js Pages Router: https://github.com/remotion-dev/template-next-pages-dir. Uses Lambda as default rendering choice.
- Vercel Sandbox rendering: https://github.com/remotion-dev/template-vercel. Uses Vercel as default rendering choice.
- React Router 7: https://github.com/remotion-dev/template-react-router. Uses Lambda as default rendering choice.
- Express.js render server: `packages/template-render-server`: https://github.com/remotion-dev/template-render-server. Uses Node.js as default rendering choice.
diff --git a/packages/template-javascript/.gitignore b/packages/template-javascript/.gitignore
deleted file mode 100644
index 4beb836bb8..0000000000
--- a/packages/template-javascript/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-node_modules
-dist
-.DS_Store
-.env
-
-out
diff --git a/packages/template-javascript/.prettierrc b/packages/template-javascript/.prettierrc
deleted file mode 100644
index 37d5071748..0000000000
--- a/packages/template-javascript/.prettierrc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "useTabs": false,
- "bracketSpacing": true,
- "tabWidth": 2
-}
diff --git a/packages/template-javascript/README.md b/packages/template-javascript/README.md
deleted file mode 100644
index c19f8c366c..0000000000
--- a/packages/template-javascript/README.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# Remotion video
-
-<p align="center">
- <a href="https://github.com/remotion-dev/logo">
- <picture>
- <source media="(prefers-color-scheme: dark)" srcset="https://github.com/remotion-dev/logo/raw/main/animated-logo-banner-dark.apng">
- <img alt="Animated Remotion Logo" src="https://github.com/remotion-dev/logo/raw/main/animated-logo-banner-light.gif">
- </picture>
- </a>
-</p>
-
-Welcome to your Remotion project!
-
-## Commands
-
-**Install Dependencies**
-
-```console
-npm install
-```
-
-**Start Preview**
-
-```console
-npm run dev
-```
-
-**Render video**
-
-```console
-npx remotion render
-```
-
-**Upgrade Remotion**
-
-```console
-npx remotion upgrade
-```
-
-## 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://discord.gg/6VzzNDwUwV).
-
-## Issues
-
-Found an issue with Remotion? [File an issue here](https://github.com/remotion-dev/remotion/issues/new).
-
-## 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-javascript/eslint.config.mjs b/packages/template-javascript/eslint.config.mjs
deleted file mode 100644
index 13b44a0d65..0000000000
--- a/packages/template-javascript/eslint.config.mjs
+++ /dev/null
@@ -1,3 +0,0 @@
-import { config } from "@remotion/eslint-config-flat";
-
-export default config;
diff --git a/packages/template-javascript/package.json b/packages/template-javascript/package.json
deleted file mode 100644
index e892dc4f21..0000000000
--- a/packages/template-javascript/package.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "name": "template-javascript",
- "version": "1.0.0",
- "description": "My Remotion video",
- "scripts": {
- "dev": "remotion studio",
- "build": "remotion bundle",
- "upgrade": "remotion upgrade",
- "lint": "eslint src"
- },
- "repository": {},
- "license": "UNLICENSED",
- "dependencies": {
- "@remotion/cli": "workspace:*",
- "react": "19.2.3",
- "react-dom": "19.2.3",
- "remotion": "workspace:*",
- "zod": "4.5.4"
- },
- "devDependencies": {
- "@remotion/eslint-config-flat": "workspace:*",
- "prettier": "3.8.1",
- "eslint": "9.19.0"
- },
- "private": true
-}
diff --git a/packages/template-javascript/remotion.config.js b/packages/template-javascript/remotion.config.js
deleted file mode 100644
index 2bd749d8d9..0000000000
--- a/packages/template-javascript/remotion.config.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 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.setRspack(true);
-Config.setVideoImageFormat("jpeg");
diff --git a/packages/template-javascript/src/HelloWorld/Arc.jsx b/packages/template-javascript/src/HelloWorld/Arc.jsx
deleted file mode 100644
index 64d3f859db..0000000000
--- a/packages/template-javascript/src/HelloWorld/Arc.jsx
+++ /dev/null
@@ -1,50 +0,0 @@
-import { useState } from "react";
-import { random, useVideoConfig } from "remotion";
-import { COLOR_1, COLOR_2 } from "./constants";
-
-const getCircumferenceOfArc = (rx, ry) => {
- return Math.PI * 2 * Math.sqrt((rx * rx + ry * ry) / 2);
-};
-
-const rx = 135;
-const ry = 300;
-const cx = 960;
-const cy = 540;
-const arcLength = getCircumferenceOfArc(rx, ry);
-const strokeWidth = 30;
-
-export const Arc = ({ progress, rotation, rotateProgress }) => {
- const { width, height } = useVideoConfig();
-
- // Each svg Id must be unique to not conflict with each other
- const [gradientId] = useState(() => String(random(null)));
-
- return (
- <svg
- viewBox={`0 0 ${width} ${height}`}
- style={{
- position: "absolute",
- transform: `rotate(${rotation * rotateProgress}deg)`,
- }}
- >
- <defs>
- <linearGradient id={gradientId} x1="0%" y1="0%" x2="0%" y2="100%">
- <stop offset="0%" stopColor={COLOR_1} />
- <stop offset="100%" stopColor={COLOR_2} />
- </linearGradient>
- </defs>
- <ellipse
- cx={cx}
- cy={cy}
- rx={rx}
- ry={ry}
- fill="none"
- stroke={`url(#${gradientId})`}
- strokeDasharray={arcLength}
- strokeDashoffset={arcLength - arcLength * progress}
- strokeLinecap="round"
- strokeWidth={strokeWidth}
- />
- </svg>
- );
-};
diff --git a/packages/template-javascript/src/HelloWorld/Atom.jsx b/packages/template-javascript/src/HelloWorld/Atom.jsx
deleted file mode 100644
index 6fe1a6cce8..0000000000
--- a/packages/template-javascript/src/HelloWorld/Atom.jsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import { useState } from "react";
-import { random, useVideoConfig } from "remotion";
-import { COLOR_1, COLOR_2 } from "./constants";
-
-export const Atom = ({ scale }) => {
- const config = useVideoConfig();
-
- // Each SVG ID must be unique to not conflict with each other
- const [gradientId] = useState(() => String(random(null)));
-
- return (
- <svg
- viewBox={`0 0 ${config.width} ${config.height}`}
- style={{
- position: "absolute",
- transform: `scale(${scale})`,
- }}
- >
- <defs>
- <linearGradient id={gradientId} x1="0%" y1="0%" x2="100%" y2="0%">
- <stop offset="0%" stopColor={COLOR_1} />
- <stop offset="100%" stopColor={COLOR_2} />
- </linearGradient>
- </defs>
- <circle
- r={70}
- cx={config.width / 2}
- cy={config.height / 2}
- fill={`url(#${gradientId})`}
- />
- </svg>
- );
-};
diff --git a/packages/template-javascript/src/HelloWorld/Logo.jsx b/packages/template-javascript/src/HelloWorld/Logo.jsx
deleted file mode 100644
index 117d0e9774..0000000000
--- a/packages/template-javascript/src/HelloWorld/Logo.jsx
+++ /dev/null
@@ -1,71 +0,0 @@
-import {
- AbsoluteFill,
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
-import { Arc } from "./Arc";
-import { Atom } from "./Atom";
-
-export const Logo = () => {
- const videoConfig = useVideoConfig();
- const frame = useCurrentFrame();
-
- const development = spring({
- config: {
- damping: 100,
- mass: 0.5,
- },
- fps: videoConfig.fps,
- frame,
- });
-
- const rotationDevelopment = spring({
- config: {
- damping: 100,
- mass: 0.5,
- },
- fps: videoConfig.fps,
- frame,
- });
-
- const scale = spring({
- frame,
- config: {
- mass: 0.5,
- },
- fps: videoConfig.fps,
- });
-
- const logoRotation = interpolate(
- frame,
- [0, videoConfig.durationInFrames],
- [0, 360],
- );
-
- return (
- <AbsoluteFill
- style={{
- transform: `scale(${scale}) rotate(${logoRotation}deg)`,
- }}
- >
- <Arc
- rotateProgress={rotationDevelopment}
- progress={development}
- rotation={30}
- />
- <Arc
- rotateProgress={rotationDevelopment}
- rotation={90}
- progress={development}
- />
- <Arc
- rotateProgress={rotationDevelopment}
- rotation={-30}
- progress={development}
- />
- <Atom scale={rotationDevelopment} />
- </AbsoluteFill>
- );
-};
diff --git a/packages/template-javascript/src/HelloWorld/Subtitle.jsx b/packages/template-javascript/src/HelloWorld/Subtitle.jsx
deleted file mode 100644
index bab76655d5..0000000000
--- a/packages/template-javascript/src/HelloWorld/Subtitle.jsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { interpolate, useCurrentFrame } from "remotion";
-import { COLOR_1, FONT_FAMILY } from "./constants";
-
-const subtitle = {
- fontFamily: FONT_FAMILY,
- fontSize: 40,
- textAlign: "center",
- position: "absolute",
- bottom: 140,
- width: "100%",
-};
-
-const codeStyle = {
- color: COLOR_1,
-};
-
-export const Subtitle = () => {
- const frame = useCurrentFrame();
- const opacity = interpolate(frame, [0, 30], [0, 1]);
- return (
- <div style={{ ...subtitle, opacity }}>
- Edit <code style={codeStyle}>src/Root.jsx</code> and save to reload.
- </div>
- );
-};
diff --git a/packages/template-javascript/src/HelloWorld/Title.jsx b/packages/template-javascript/src/HelloWorld/Title.jsx
deleted file mode 100644
index 6b8577fc53..0000000000
--- a/packages/template-javascript/src/HelloWorld/Title.jsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import { spring, useCurrentFrame, useVideoConfig } from "remotion";
-import { FONT_FAMILY } from "./constants";
-
-const title = {
- fontFamily: FONT_FAMILY,
- fontWeight: "bold",
- fontSize: 100,
- textAlign: "center",
- position: "absolute",
- bottom: 160,
- width: "100%",
-};
-
-const word = {
- marginLeft: 10,
- marginRight: 10,
- display: "inline-block",
-};
-
-export const Title = ({ titleText, titleColor }) => {
- const videoConfig = useVideoConfig();
- const frame = useCurrentFrame();
-
- const words = titleText.split(" ");
-
- return (
- <h1 style={title}>
- {words.map((t, i) => {
- const delay = i * 5;
-
- const scale = spring({
- fps: videoConfig.fps,
- frame: frame - delay,
- config: {
- damping: 200,
- },
- });
-
- return (
- <span
- key={t}
- style={{
- ...word,
- color: titleColor,
- transform: `scale(${scale})`,
- }}
- >
- {t}
- </span>
- );
- })}
- </h1>
- );
-};
diff --git a/packages/template-javascript/src/HelloWorld/constants.js b/packages/template-javascript/src/HelloWorld/constants.js
deleted file mode 100644
index 050c59d413..0000000000
--- a/packages/template-javascript/src/HelloWorld/constants.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// Change any of these to update your video live.
-
-export const COLOR_1 = "#86A8E7";
-export const COLOR_2 = "#91EAE4";
-
-export const FONT_FAMILY = "SF Pro Text, Helvetica, Arial, sans-serif";
diff --git a/packages/template-javascript/src/HelloWorld/index.jsx b/packages/template-javascript/src/HelloWorld/index.jsx
deleted file mode 100644
index 6d736c381e..0000000000
--- a/packages/template-javascript/src/HelloWorld/index.jsx
+++ /dev/null
@@ -1,62 +0,0 @@
-import {
- AbsoluteFill,
- interpolate,
- Sequence,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
-import { Logo } from "./Logo";
-import { Subtitle } from "./Subtitle";
-import { Title } from "./Title";
-
-export const HelloWorld = ({ titleText, titleColor }) => {
- const frame = useCurrentFrame();
- const { durationInFrames, fps } = useVideoConfig();
-
- // Animate from 0 to 1 after 25 frames
- const logoTranslationProgress = spring({
- frame: frame - 25,
- fps,
- config: {
- damping: 100,
- },
- });
-
- // Move the logo up by 150 pixels once the transition starts
- const logoTranslation = interpolate(
- logoTranslationProgress,
- [0, 1],
- [0, -150],
- );
-
- // Fade out the animation at the end
- const opacity = interpolate(
- frame,
- [durationInFrames - 25, durationInFrames - 15],
- [1, 0],
- {
- extrapolateLeft: "clamp",
- extrapolateRight: "clamp",
- },
- );
-
- // A <AbsoluteFill> is just a absolutely positioned <div>!
- return (
- <AbsoluteFill style={{ backgroundColor: "white" }}>
- <AbsoluteFill style={{ opacity }}>
- <AbsoluteFill style={{ transform: `translateY(${logoTranslation}px)` }}>
- <Logo />
- </AbsoluteFill>
- {/* Sequences can shift the time for its children! */}
- <Sequence from={35}>
- <Title titleText={titleText} titleColor={titleColor} />
- </Sequence>
- {/* The subtitle will only enter on the 75th frame. */}
- <Sequence from={75}>
- <Subtitle />
- </Sequence>
- </AbsoluteFill>
- </AbsoluteFill>
- );
-};
diff --git a/packages/template-javascript/src/Root.jsx b/packages/template-javascript/src/Root.jsx
deleted file mode 100644
index 44536d4c68..0000000000
--- a/packages/template-javascript/src/Root.jsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import { Composition } from "remotion";
-import { HelloWorld } from "./HelloWorld";
-import { Logo } from "./HelloWorld/Logo";
-
-// Each <Composition> is an entry in the sidebar!
-
-export const RemotionRoot = () => {
- return (
- <>
- <Composition
- // You can take the "id" to render a video:
- // npx remotion render HelloWorld
- id="HelloWorld"
- component={HelloWorld}
- durationInFrames={150}
- fps={30}
- width={1920}
- height={1080}
- // You can override these props for each render:
- // https://www.remotion.dev/docs/parametrized-rendering
- defaultProps={{
- titleText: "Welcome to Remotion",
- titleColor: "black",
- }}
- />
- {/* Mount any React component to make it show up in the sidebar and work on it individually! */}
- <Composition
- id="OnlyLogo"
- component={Logo}
- durationInFrames={150}
- fps={30}
- width={1920}
- height={1080}
- />
- </>
- );
-};
diff --git a/packages/template-javascript/src/index.js b/packages/template-javascript/src/index.js
deleted file mode 100644
index 14dff4c457..0000000000
--- a/packages/template-javascript/src/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-// This is your entry file! Refer to it when you render:
-// npx remotion render <entry-file> HelloWorld out/video.mp4
-
-import { registerRoot } from "remotion";
-import { RemotionRoot } from "./Root";
-
-registerRoot(RemotionRoot);
diff --git a/packages/template-next-app-tailwind/README.md b/packages/template-next-app-tailwind/README.md
index f3ce3caad1..d72509f6b6 100644
--- a/packages/template-next-app-tailwind/README.md
+++ b/packages/template-next-app-tailwind/README.md
@@ -4,7 +4,7 @@
This is a Next.js template for building programmatic video apps, with [`@remotion/player`](https://remotion.dev/player) and [`@remotion/lambda`](https://remotion.dev/lambda) built in.
-This template uses the Next.js App directory, with TailwindCSS. There is a [Non-TailwindCSS version](https://github.com/remotion-dev/template-next-app-dir), and a [Pages directory version](https://github.com/remotion-dev/template-next-pages-dir) of this template available.
+This template uses the Next.js App directory with TailwindCSS.
<img src="https://github.com/remotion-dev/template-next/assets/1629785/c9c2e5ca-2637-4ec8-8e40-a8feb5740d88" />
@@ -19,7 +19,7 @@ npm i
afterwards. Alternatively, use this command to scaffold a project:
```
-npx create-video@latest --next-tailwind
+npx create-video@latest --next
```
## Commands
diff --git a/packages/template-next-app-tailwind/src/components/Tips.tsx b/packages/template-next-app-tailwind/src/components/Tips.tsx
index 4e0d16cf4e..9699afc641 100644
--- a/packages/template-next-app-tailwind/src/components/Tips.tsx
+++ b/packages/template-next-app-tailwind/src/components/Tips.tsx
@@ -39,7 +39,7 @@ export const Tips: React.FC = () => {
description="Learn how to customize this video written in React."
></Tip>
<Tip
- href="https://github.com/remotion-dev/template-next-app-dir"
+ href="https://github.com/remotion-dev/template-next-app-dir-tailwind"
title="See source"
description="Visit the GitHub repository for this app."
></Tip>
diff --git a/packages/template-next-app/.env.example b/packages/template-next-app/.env.example
deleted file mode 100644
index 23c2bac312..0000000000
--- a/packages/template-next-app/.env.example
+++ /dev/null
@@ -1,2 +0,0 @@
-REMOTION_AWS_ACCESS_KEY_ID=""
-REMOTION_AWS_SECRET_ACCESS_KEY=""
diff --git a/packages/template-next-app/.gitignore b/packages/template-next-app/.gitignore
deleted file mode 100644
index cc9b35922b..0000000000
--- a/packages/template-next-app/.gitignore
+++ /dev/null
@@ -1,38 +0,0 @@
-# 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
\ No newline at end of file
diff --git a/packages/template-next-app/.npmrc b/packages/template-next-app/.npmrc
deleted file mode 100644
index 3e775efb0f..0000000000
--- a/packages/template-next-app/.npmrc
+++ /dev/null
@@ -1 +0,0 @@
-auto-install-peers=true
diff --git a/packages/template-next-app/.prettierrc b/packages/template-next-app/.prettierrc
deleted file mode 100644
index 37d5071748..0000000000
--- a/packages/template-next-app/.prettierrc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "useTabs": false,
- "bracketSpacing": true,
- "tabWidth": 2
-}
diff --git a/packages/template-next-app/README.md b/packages/template-next-app/README.md
deleted file mode 100644
index 2d68f954cf..0000000000
--- a/packages/template-next-app/README.md
+++ /dev/null
@@ -1,88 +0,0 @@
-<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 [`@remotion/lambda`](https://remotion.dev/lambda) built in.
-
-This template uses the Next.js App directory. There is a [Tailwind CSS version](https://github.com/remotion-dev/template-next-app-dir-tailwind) and a [Pages directory version](https://github.com/remotion-dev/template-next-pages-dir) of this template available.
-
-<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-next-app-dir&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 --next
-```
-
-## Commands
-
-Start the Next.js dev server:
-
-```
-npm run dev
-```
-
-Open the Remotion Studio:
-
-```
-npm run remotion
-```
-
-Render a video locally:
-
-```
-npx remotion render
-```
-
-Upgrade Remotion:
-
-```
-npx remotion upgrade
-```
-
-The following script will set up your Remotion Bundle and Lambda function on AWS:
-
-```
-node deploy.mjs
-```
-
-You should run this script after:
-
-- changing the video template
-- changing `config.mjs`
-- upgrading Remotion to a newer version
-
-## Set up rendering on AWS Lambda
-
-This template supports rendering the videos via [Remotion Lambda](https://remotion.dev/lambda).
-
-1. Copy the `.env.example` file to `.env` and fill in the values.
- Complete the [Lambda setup guide](https://www.remotion.dev/docs/lambda/setup) to get your AWS credentials.
-
-1. Edit the `config.mjs` file to your desired Lambda settings.
-
-1. Run `node deploy.mjs` to deploy your Lambda function and Remotion Bundle.
-
-## 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-next-app/config.mjs b/packages/template-next-app/config.mjs
deleted file mode 100644
index b18ed95152..0000000000
--- a/packages/template-next-app/config.mjs
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Use autocomplete to get a list of available regions.
- * @type {import('@remotion/lambda').AwsRegion}
- */
-export const REGION = "us-east-1";
-
-export const SITE_NAME = "my-next-app";
-export const RAM = 3009;
-export const DISK = 10240;
-export const TIMEOUT = 240;
diff --git a/packages/template-next-app/deploy.mjs b/packages/template-next-app/deploy.mjs
deleted file mode 100644
index 311ab27e5a..0000000000
--- a/packages/template-next-app/deploy.mjs
+++ /dev/null
@@ -1,77 +0,0 @@
-import {
- deployFunction,
- deploySite,
- getOrCreateBucket,
-} from "@remotion/lambda";
-import dotenv from "dotenv";
-import path from "path";
-import { DISK, RAM, REGION, SITE_NAME, TIMEOUT } from "./config.mjs";
-
-console.log("Selected region:", REGION);
-dotenv.config({quiet: true});
-
-if (!process.env.AWS_ACCESS_KEY_ID && !process.env.REMOTION_AWS_ACCESS_KEY_ID) {
- console.log(
- 'The environment variable "REMOTION_AWS_ACCESS_KEY_ID" is not set.',
- );
- console.log("Lambda renders were not set up.");
- console.log(
- "Complete the Lambda setup: at https://www.remotion.dev/docs/lambda/setup",
- );
- process.exit(0);
-}
-if (
- !process.env.AWS_SECRET_ACCESS_KEY &&
- !process.env.REMOTION_AWS_SECRET_ACCESS_KEY
-) {
- console.log(
- 'The environment variable "REMOTION_REMOTION_AWS_SECRET_ACCESS_KEY" is not set.',
- );
- console.log("Lambda renders were not set up.");
- console.log(
- "Complete the Lambda setup: at https://www.remotion.dev/docs/lambda/setup",
- );
- process.exit(0);
-}
-
-process.stdout.write("Deploying Lambda function... ");
-
-const { functionName, alreadyExisted: functionAlreadyExisted } =
- await deployFunction({
- createCloudWatchLogGroup: true,
- memorySizeInMb: RAM,
- region: REGION,
- timeoutInSeconds: TIMEOUT,
- diskSizeInMb: DISK,
- });
-console.log(
- functionName,
- functionAlreadyExisted ? "(already existed)" : "(created)",
-);
-
-process.stdout.write("Ensuring bucket... ");
-const { bucketName, alreadyExisted: bucketAlreadyExisted } =
- await getOrCreateBucket({
- region: REGION,
- });
-console.log(
- bucketName,
- bucketAlreadyExisted ? "(already existed)" : "(created)",
-);
-
-process.stdout.write("Deploying site... ");
-const { siteName } = await deploySite({
- bucketName,
- entryPoint: path.join(process.cwd(), "src", "remotion", "index.ts"),
- siteName: SITE_NAME,
- region: REGION,
-});
-
-console.log(siteName);
-
-console.log();
-console.log("You now have everything you need to render videos!");
-console.log("Re-run this command when:");
-console.log(" 1) you changed the video template");
-console.log(" 2) you changed config.mjs");
-console.log(" 3) you upgraded Remotion to a newer version");
diff --git a/packages/template-next-app/eslint.config.mjs b/packages/template-next-app/eslint.config.mjs
deleted file mode 100644
index b37f42b202..0000000000
--- a/packages/template-next-app/eslint.config.mjs
+++ /dev/null
@@ -1,53 +0,0 @@
-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",
- "deploy.mjs",
- ],
- },
- // 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-next-app/next.config.js b/packages/template-next-app/next.config.js
deleted file mode 100644
index 91ef62f0db..0000000000
--- a/packages/template-next-app/next.config.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/** @type {import('next').NextConfig} */
-const nextConfig = {
- reactStrictMode: true,
-};
-
-module.exports = nextConfig;
diff --git a/packages/template-next-app/package.json b/packages/template-next-app/package.json
deleted file mode 100644
index 2296988d57..0000000000
--- a/packages/template-next-app/package.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "name": "template-next-app",
- "version": "0.1.0",
- "private": true,
- "scripts": {
- "dev": "next dev",
- "build": "next build",
- "start": "next start",
- "lint": "eslint .",
- "remotion": "remotion studio",
- "render": "remotion render",
- "deploy": "node deploy.mjs"
- },
- "dependencies": {
- "@remotion/bundler": "workspace:*",
- "@remotion/cli": "workspace:*",
- "@remotion/google-fonts": "workspace:*",
- "@remotion/lambda": "workspace:*",
- "@remotion/paths": "workspace:*",
- "@remotion/player": "workspace:*",
- "@remotion/shapes": "workspace:*",
- "next": "16.3.3",
- "react": "19.2.3",
- "react-dom": "19.2.3",
- "remotion": "workspace:*",
- "zod": "4.5.4"
- },
- "devDependencies": {
- "@remotion/eslint-config-flat": "workspace:*",
- "@remotion/eslint-plugin": "workspace:*",
- "@types/node": "20.12.14",
- "@eslint/js": "9.38.0",
- "@types/react": "19.2.7",
- "@types/react-dom": "19.2.3",
- "@types/web": "0.0.166",
- "dotenv": "17.3.1",
- "eslint": "9.19.0",
- "@next/eslint-plugin-next": "15.1.6",
- "@typescript-eslint/eslint-plugin": "8.46.0",
- "@typescript-eslint/parser": "8.46.0",
- "eslint-config-next": "15.1.6",
- "typescript": "5.9.3",
- "typescript-eslint": "8.46.0",
- "prettier": "3.8.1",
- "@eslint/eslintrc": "3.1.0"
- }
-}
diff --git a/packages/template-next-app/remotion.config.ts b/packages/template-next-app/remotion.config.ts
deleted file mode 100644
index 41acb5e954..0000000000
--- a/packages/template-next-app/remotion.config.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// 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.setRspack(true);
-Config.setVideoImageFormat("jpeg");
diff --git a/packages/template-next-app/src/app/api/lambda/progress/route.ts b/packages/template-next-app/src/app/api/lambda/progress/route.ts
deleted file mode 100644
index 948cee4d12..0000000000
--- a/packages/template-next-app/src/app/api/lambda/progress/route.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import {
- AwsRegion,
- getRenderProgress,
- speculateFunctionName,
-} from "@remotion/lambda/client";
-import { DISK, RAM, REGION, TIMEOUT } from "../../../../../config.mjs";
-import { executeApi } from "../../../../helpers/api-response";
-import { ProgressRequest, ProgressResponse } from "../../../../types/schema";
-
-export const POST = executeApi<ProgressResponse, typeof ProgressRequest>(
- ProgressRequest,
- async (req, body) => {
- const renderProgress = await getRenderProgress({
- bucketName: body.bucketName,
- functionName: speculateFunctionName({
- diskSizeInMb: DISK,
- memorySizeInMb: RAM,
- timeoutInSeconds: TIMEOUT,
- }),
- region: REGION as AwsRegion,
- renderId: body.id,
- });
-
- if (renderProgress.fatalErrorEncountered) {
- return {
- type: "error",
- message: renderProgress.errors[0].message,
- };
- }
-
- if (renderProgress.done) {
- return {
- type: "done",
- url: renderProgress.outputFile as string,
- size: renderProgress.outputSizeInBytes as number,
- };
- }
-
- return {
- type: "progress",
- progress: Math.max(0.03, renderProgress.overallProgress),
- };
- },
-);
diff --git a/packages/template-next-app/src/app/api/lambda/render/route.ts b/packages/template-next-app/src/app/api/lambda/render/route.ts
deleted file mode 100644
index c3b0b0de60..0000000000
--- a/packages/template-next-app/src/app/api/lambda/render/route.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-import {
- AwsRegion,
- renderMediaOnLambda,
- RenderMediaOnLambdaOutput,
- speculateFunctionName,
-} from "@remotion/lambda/client";
-import {
- DISK,
- RAM,
- REGION,
- SITE_NAME,
- TIMEOUT,
-} from "../../../../../config.mjs";
-import { executeApi } from "../../../../helpers/api-response";
-import { RenderRequest } from "../../../../types/schema";
-
-export const POST = executeApi<RenderMediaOnLambdaOutput, typeof RenderRequest>(
- RenderRequest,
- async (req, body) => {
- if (
- !process.env.AWS_ACCESS_KEY_ID &&
- !process.env.REMOTION_AWS_ACCESS_KEY_ID
- ) {
- throw new TypeError(
- "Set up Remotion Lambda to render videos. See the README.md for how to do so.",
- );
- }
- if (
- !process.env.AWS_SECRET_ACCESS_KEY &&
- !process.env.REMOTION_AWS_SECRET_ACCESS_KEY
- ) {
- throw new TypeError(
- "The environment variable REMOTION_AWS_SECRET_ACCESS_KEY is missing. Add it to your .env file.",
- );
- }
-
- const result = await renderMediaOnLambda({
- codec: "h264",
- functionName: speculateFunctionName({
- diskSizeInMb: DISK,
- memorySizeInMb: RAM,
- timeoutInSeconds: TIMEOUT,
- }),
- region: REGION as AwsRegion,
- serveUrl: SITE_NAME,
- composition: body.id,
- inputProps: body.inputProps,
- framesPerLambda: 10,
- downloadBehavior: {
- type: "download",
- fileName: "video.mp4",
- },
- });
-
- return result;
- },
-);
diff --git a/packages/template-next-app/src/app/favicon.ico b/packages/template-next-app/src/app/favicon.ico
deleted file mode 100644
index 718d6fea48..0000000000
Binary files a/packages/template-next-app/src/app/favicon.ico and /dev/null differ
diff --git a/packages/template-next-app/src/app/layout.tsx b/packages/template-next-app/src/app/layout.tsx
deleted file mode 100644
index 0ab7e91947..0000000000
--- a/packages/template-next-app/src/app/layout.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import { Metadata, Viewport } from "next";
-import "../../styles/global.css";
-
-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({
- // Layouts must accept a children prop.
- // This will be populated with nested layouts or pages
- children,
-}: {
- children: React.ReactNode;
-}) {
- return (
- <html lang="en">
- <body>{children}</body>
- </html>
- );
-}
diff --git a/packages/template-next-app/src/app/page.tsx b/packages/template-next-app/src/app/page.tsx
deleted file mode 100644
index 53ef2b581c..0000000000
--- a/packages/template-next-app/src/app/page.tsx
+++ /dev/null
@@ -1,82 +0,0 @@
-"use client";
-
-import { Player } from "@remotion/player";
-import type { NextPage } from "next";
-import React, { useMemo, useState } from "react";
-import { z } from "zod";
-import { RenderControls } from "../components/RenderControls";
-import { Spacing } from "../components/Spacing";
-import { Tips } from "../components/Tips/Tips";
-import { Main } from "../remotion/MyComp/Main";
-import {
- CompositionProps,
- defaultMyCompProps,
- DURATION_IN_FRAMES,
- VIDEO_FPS,
- VIDEO_HEIGHT,
- VIDEO_WIDTH,
-} from "../types/constants";
-
-const container: React.CSSProperties = {
- maxWidth: 768,
- margin: "auto",
- marginBottom: 20,
- paddingLeft: 16,
- paddingRight: 16,
-};
-
-const outer: React.CSSProperties = {
- borderRadius: "var(--geist-border-radius)",
- overflow: "hidden",
- boxShadow: "0 0 200px rgba(0, 0, 0, 0.15)",
- marginBottom: 40,
- marginTop: 60,
-};
-
-const player: React.CSSProperties = {
- width: "100%",
-};
-
-const Home: NextPage = () => {
- const [text, setText] = useState<string>(defaultMyCompProps.title);
-
- const inputProps: z.infer<typeof CompositionProps> = useMemo(() => {
- return {
- title: text,
- };
- }, [text]);
-
- return (
- <div>
- <div style={container}>
- <div className="cinematics" style={outer}>
- <Player
- component={Main}
- inputProps={inputProps}
- durationInFrames={DURATION_IN_FRAMES}
- fps={VIDEO_FPS}
- compositionHeight={VIDEO_HEIGHT}
- compositionWidth={VIDEO_WIDTH}
- style={player}
- controls
- autoPlay
- loop
- initiallyMuted
- />
- </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-next-app/src/components/AlignEnd.tsx b/packages/template-next-app/src/components/AlignEnd.tsx
deleted file mode 100644
index f08aa29ad5..0000000000
--- a/packages/template-next-app/src/components/AlignEnd.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import React from "react";
-
-const container: React.CSSProperties = {
- alignSelf: "flex-end",
-};
-
-export const AlignEnd: React.FC<{
- children: React.ReactNode;
-}> = ({ children }) => {
- return <div style={container}>{children}</div>;
-};
diff --git a/packages/template-next-app/src/components/Button/Button.tsx b/packages/template-next-app/src/components/Button/Button.tsx
deleted file mode 100644
index b697c90314..0000000000
--- a/packages/template-next-app/src/components/Button/Button.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import React, { forwardRef } from "react";
-import { Spacing } from "../Spacing";
-import { Spinner } from "../Spinner/Spinner";
-import styles from "./styles.module.css";
-
-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={[
- styles.button,
- secondary ? styles.secondarybutton : undefined,
- ].join(" ")}
- onClick={onClick}
- disabled={disabled}
- >
- {loading && (
- <>
- <Spinner size={20}></Spinner>
- <Spacing></Spacing>
- </>
- )}
- {children}
- </button>
- );
-};
-
-export const Button = forwardRef(ButtonForward);
diff --git a/packages/template-next-app/src/components/Button/styles.module.css b/packages/template-next-app/src/components/Button/styles.module.css
deleted file mode 100644
index 143543e9e8..0000000000
--- a/packages/template-next-app/src/components/Button/styles.module.css
+++ /dev/null
@@ -1,37 +0,0 @@
-.button {
- border: 1px solid var(--foreground);
- border-radius: var(--geist-border-radius);
- background-color: var(--foreground);
- color: var(--background);
- padding-left: var(--geist-half-pad);
- padding-right: var(--geist-half-pad);
- height: 40px;
- font-family: var(--geist-font);
- font-weight: 500;
- transition: all 0.15s ease;
- display: inline-flex;
- flex-direction: row;
- align-items: center;
- appearance: none;
- font-size: 14px;
-}
-
-.secondarybutton {
- background-color: var(--background);
- color: var(--foreground);
- border-color: var(--unfocused-border-color);
-}
-
-.button:hover {
- background-color: var(--background);
- cursor: pointer;
- color: var(--foreground);
- border-color: var(--focused-border-color);
-}
-
-.button:disabled {
- background-color: var(--button-disabled-color);
- color: var(--disabled-text-color);
- border-color: var(--unfocused-border-color);
- cursor: not-allowed;
-}
diff --git a/packages/template-next-app/src/components/Container.tsx b/packages/template-next-app/src/components/Container.tsx
deleted file mode 100644
index 71fe2f9b7e..0000000000
--- a/packages/template-next-app/src/components/Container.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from "react";
-
-const inputContainer: React.CSSProperties = {
- border: "1px solid var(--unfocused-border-color)",
- padding: "var(--geist-pad)",
- borderRadius: "var(--geist-border-radius)",
- backgroundColor: "var(--background)",
- display: "flex",
- flexDirection: "column",
-};
-
-export const InputContainer: React.FC<{
- children: React.ReactNode;
-}> = ({ children }) => {
- return <div style={inputContainer}>{children}</div>;
-};
diff --git a/packages/template-next-app/src/components/DownloadButton.tsx b/packages/template-next-app/src/components/DownloadButton.tsx
deleted file mode 100644
index 5e60c49486..0000000000
--- a/packages/template-next-app/src/components/DownloadButton.tsx
+++ /dev/null
@@ -1,69 +0,0 @@
-import React from "react";
-import { State } from "../helpers/use-rendering";
-import { Button } from "./Button/Button";
-import { Spacing } from "./Spacing";
-
-const light: React.CSSProperties = {
- opacity: 0.6,
-};
-
-const link: React.CSSProperties = {
- textDecoration: "none",
-};
-
-const row: React.CSSProperties = {
- display: "flex",
- flexDirection: "row",
-};
-
-const Megabytes: React.FC<{
- sizeInBytes: number;
-}> = ({ sizeInBytes }) => {
- const megabytes = Intl.NumberFormat("en", {
- notation: "compact",
- style: "unit",
- unit: "byte",
- unitDisplay: "narrow",
- }).format(sizeInBytes);
- return <span style={light}>{megabytes}</span>;
-};
-
-export const DownloadButton: React.FC<{
- state: State;
- undo: () => void;
-}> = ({ state, undo }) => {
- if (state.status === "rendering") {
- return <Button disabled>Download video</Button>;
- }
-
- if (state.status !== "done") {
- throw new Error("Download button should not be rendered when not done");
- }
-
- return (
- <div style={row}>
- <Button secondary onClick={undo}>
- <UndoIcon></UndoIcon>
- </Button>
- <Spacing></Spacing>
- <a style={link} 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-next-app/src/components/Error.tsx b/packages/template-next-app/src/components/Error.tsx
deleted file mode 100644
index 7fa5d80fb3..0000000000
--- a/packages/template-next-app/src/components/Error.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React from "react";
-
-const container: React.CSSProperties = {
- color: "var(--geist-error)",
- fontFamily: "var(--geist-font)",
- paddingTop: "var(--geist-half-pad)",
- paddingBottom: "var(--geist-half-pad)",
-};
-
-const icon: React.CSSProperties = {
- height: 20,
- verticalAlign: "text-bottom",
- marginRight: 6,
-};
-
-export const ErrorComp: React.FC<{
- message: string;
-}> = ({ message }) => {
- return (
- <div style={container}>
- <svg
- fill="none"
- shapeRendering="geometricPrecision"
- stroke="currentColor"
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth="2"
- viewBox="0 0 24 24"
- style={icon}
- >
- <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-next-app/src/components/Input.tsx b/packages/template-next-app/src/components/Input.tsx
deleted file mode 100644
index 8dc0661480..0000000000
--- a/packages/template-next-app/src/components/Input.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { useCallback } from "react";
-
-const textarea: React.CSSProperties = {
- resize: "none",
- lineHeight: 1.7,
- display: "block",
- width: "100%",
- borderRadius: "var(--geist-border-radius)",
- backgroundColor: "var(--background)",
- padding: "var(--geist-half-pad)",
- color: "var(--foreground)",
- fontSize: 14,
-};
-
-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
- type="search"
- autoComplete="off"
- disabled={disabled}
- name="title"
- style={textarea}
- value={text}
- onChange={onChange}
- />
- );
-};
diff --git a/packages/template-next-app/src/components/ProgressBar.tsx b/packages/template-next-app/src/components/ProgressBar.tsx
deleted file mode 100644
index f383f994cd..0000000000
--- a/packages/template-next-app/src/components/ProgressBar.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { useMemo } from "react";
-
-export const ProgressBar: React.FC<{
- progress: number;
-}> = ({ progress }) => {
- const style: React.CSSProperties = useMemo(() => {
- return {
- width: "100%",
- height: 10,
- borderRadius: 5,
- appearance: "none",
- backgroundColor: "var(--unfocused-border-color)",
- marginTop: 10,
- marginBottom: 25,
- };
- }, []);
-
- const fill: React.CSSProperties = useMemo(() => {
- return {
- backgroundColor: "var(--foreground)",
- height: 10,
- borderRadius: 5,
- transition: "width 0.1s ease-in-out",
- width: `${progress * 100}%`,
- };
- }, [progress]);
-
- return (
- <div>
- <div style={style}>
- <div style={fill}></div>
- </div>
- </div>
- );
-};
diff --git a/packages/template-next-app/src/components/RenderControls.tsx b/packages/template-next-app/src/components/RenderControls.tsx
deleted file mode 100644
index 76c4c6df0a..0000000000
--- a/packages/template-next-app/src/components/RenderControls.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import { z } from "zod";
-import { useRendering } from "../helpers/use-rendering";
-import { COMP_NAME, CompositionProps } from "../types/constants";
-import { AlignEnd } from "./AlignEnd";
-import { Button } from "./Button/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";
-
-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 === "error" ? (
- <ErrorComp message={state.error.message}></ErrorComp>
- ) : null}
- </>
- ) : null}
- {state.status === "rendering" || state.status === "done" ? (
- <>
- <ProgressBar
- progress={state.status === "rendering" ? state.progress : 1}
- />
- <Spacing></Spacing>
- <AlignEnd>
- <DownloadButton undo={undo} state={state}></DownloadButton>
- </AlignEnd>
- </>
- ) : null}
- </InputContainer>
- );
-};
diff --git a/packages/template-next-app/src/components/Spacing.tsx b/packages/template-next-app/src/components/Spacing.tsx
deleted file mode 100644
index 31965a480c..0000000000
--- a/packages/template-next-app/src/components/Spacing.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import React from "react";
-
-export const Spacing: React.FC = () => {
- return (
- <div
- style={{
- height: "var(--geist-quarter-pad)",
- width: "var(--geist-quarter-pad)",
- }}
- />
- );
-};
diff --git a/packages/template-next-app/src/components/Spinner/Spinner.tsx b/packages/template-next-app/src/components/Spinner/Spinner.tsx
deleted file mode 100644
index a15056424e..0000000000
--- a/packages/template-next-app/src/components/Spinner/Spinner.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import { translatePath } from "@remotion/paths";
-import { makeRect } from "@remotion/shapes";
-import React, { useMemo } from "react";
-import styles from "./styles.module.css";
-
-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={styles.line}
- 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-next-app/src/components/Spinner/styles.module.css b/packages/template-next-app/src/components/Spinner/styles.module.css
deleted file mode 100644
index 00419b05e1..0000000000
--- a/packages/template-next-app/src/components/Spinner/styles.module.css
+++ /dev/null
@@ -1,12 +0,0 @@
-@keyframes spinner {
- 0% {
- opacity: 1;
- }
- 100% {
- opacity: 0.15;
- }
-}
-
-.line {
- animation: spinner 1.2s linear infinite;
-}
diff --git a/packages/template-next-app/src/components/Tips/Tips.tsx b/packages/template-next-app/src/components/Tips/Tips.tsx
deleted file mode 100644
index a6cea969b3..0000000000
--- a/packages/template-next-app/src/components/Tips/Tips.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-import React from "react";
-import styles from "./styles.module.css";
-
-const titlerow: React.CSSProperties = {
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
- justifyContent: "flex-start",
-};
-
-const titlestyle: React.CSSProperties = {
- marginBottom: "0.75em",
- marginTop: "0.75em",
- color: "var(--foreground)",
-};
-
-const a: React.CSSProperties = {
- textDecoration: "none",
- color: "inherit",
- flex: 1,
-};
-
-const Tip: React.FC<{
- title: React.ReactNode;
- description: React.ReactNode;
- href: string;
-}> = ({ title, description, href }) => {
- return (
- <a href={href} target="_blank" rel="noreferrer" style={a}>
- <div className={styles.item}>
- <div style={titlerow}>
- <h4 style={titlestyle}>{title}</h4>
- <div className={styles.flex}></div>
- <svg className={styles.icon} 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={styles.p}>{description}</p>
- </div>
- </a>
- );
-};
-
-export const Tips: React.FC = () => {
- return (
- <div className={styles.row}>
- <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-next-app-dir"
- 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-next-app/src/components/Tips/styles.module.css b/packages/template-next-app/src/components/Tips/styles.module.css
deleted file mode 100644
index af17b0837e..0000000000
--- a/packages/template-next-app/src/components/Tips/styles.module.css
+++ /dev/null
@@ -1,40 +0,0 @@
-.row {
- display: flex;
- flex-direction: row;
- font-family: Inter;
-}
-
-.item {
- cursor: pointer;
- transition: transform 0.2s ease-in-out;
- padding: 10px;
-}
-
-.icon {
- opacity: 0;
- transition: opacity 0.2s ease-in-out;
-}
-
-.item:hover {
- transform: translateY(-2px);
- .icon {
- opacity: 1;
- }
-}
-
-.p {
- font-size: 14px;
- margin-top: 0;
- line-height: 1.5;
- color: var(--subtitle);
-}
-
-.flex {
- flex: 1;
-}
-
-@media (max-width: 768px) {
- .row {
- flex-direction: column;
- }
-}
diff --git a/packages/template-next-app/src/helpers/api-response.ts b/packages/template-next-app/src/helpers/api-response.ts
deleted file mode 100644
index d4da4ce786..0000000000
--- a/packages/template-next-app/src/helpers/api-response.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-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-next-app/src/helpers/use-rendering.ts b/packages/template-next-app/src/helpers/use-rendering.ts
deleted file mode 100644
index ca64477f5e..0000000000
--- a/packages/template-next-app/src/helpers/use-rendering.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-import { useCallback, useMemo, useState } from "react";
-import { z } from "zod";
-import { getProgress, renderVideo } from "../lambda/api";
-import { CompositionProps } from "../types/constants";
-
-export type State =
- | {
- status: "init";
- }
- | {
- status: "invoking";
- }
- | {
- renderId: string;
- bucketName: string;
- progress: number;
- status: "rendering";
- }
- | {
- renderId: string | null;
- status: "error";
- error: Error;
- }
- | {
- url: string;
- size: number;
- status: "done";
- };
-
-const wait = async (milliSeconds: number) => {
- await new Promise<void>((resolve) => {
- setTimeout(() => {
- resolve();
- }, milliSeconds);
- });
-};
-
-export const useRendering = (
- id: string,
- inputProps: z.infer<typeof CompositionProps>,
-) => {
- const [state, setState] = useState<State>({
- status: "init",
- });
-
- const renderMedia = useCallback(async () => {
- setState({
- status: "invoking",
- });
- try {
- const { renderId, bucketName } = await renderVideo({ id, inputProps });
- setState({
- status: "rendering",
- progress: 0,
- renderId: renderId,
- bucketName: bucketName,
- });
-
- let pending = true;
-
- while (pending) {
- const result = await getProgress({
- id: renderId,
- bucketName: bucketName,
- });
- switch (result.type) {
- case "error": {
- setState({
- status: "error",
- renderId: renderId,
- error: new Error(result.message),
- });
- pending = false;
- break;
- }
- case "done": {
- setState({
- size: result.size,
- url: result.url,
- status: "done",
- });
- pending = false;
- break;
- }
- case "progress": {
- setState({
- status: "rendering",
- bucketName: bucketName,
- progress: result.progress,
- renderId: renderId,
- });
- await wait(1000);
- }
- }
- }
- } catch (err) {
- setState({
- status: "error",
- error: err as Error,
- renderId: null,
- });
- }
- }, [id, inputProps]);
-
- const undo = useCallback(() => {
- setState({ status: "init" });
- }, []);
-
- return useMemo(() => {
- return {
- renderMedia,
- state,
- undo,
- };
- }, [renderMedia, state, undo]);
-};
diff --git a/packages/template-next-app/src/lambda/api.ts b/packages/template-next-app/src/lambda/api.ts
deleted file mode 100644
index badd624433..0000000000
--- a/packages/template-next-app/src/lambda/api.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-import type { RenderMediaOnLambdaOutput } from "@remotion/lambda/client";
-import { z } from "zod";
-import { ApiResponse } from "../helpers/api-response";
-import { CompositionProps } from "../types/constants";
-import {
- ProgressRequest,
- ProgressResponse,
- RenderRequest,
-} from "../types/schema";
-
-const makeRequest = async <Res>(
- endpoint: string,
- body: unknown,
-): Promise<Res> => {
- const result = await fetch(endpoint, {
- method: "post",
- body: JSON.stringify(body),
- headers: {
- "content-type": "application/json",
- },
- });
- const json = (await result.json()) as ApiResponse<Res>;
- if (json.type === "error") {
- throw new Error(json.message);
- }
-
- return json.data;
-};
-
-export const renderVideo = async ({
- id,
- inputProps,
-}: {
- id: string;
- inputProps: z.infer<typeof CompositionProps>;
-}) => {
- const body: z.infer<typeof RenderRequest> = {
- id,
- inputProps,
- };
-
- return makeRequest<RenderMediaOnLambdaOutput>("/api/lambda/render", body);
-};
-
-export const getProgress = async ({
- id,
- bucketName,
-}: {
- id: string;
- bucketName: string;
-}) => {
- const body: z.infer<typeof ProgressRequest> = {
- id,
- bucketName,
- };
-
- return makeRequest<ProgressResponse>("/api/lambda/progress", body);
-};
diff --git a/packages/template-next-app/src/remotion/MyComp/Main.tsx b/packages/template-next-app/src/remotion/MyComp/Main.tsx
deleted file mode 100644
index 8e7f57c2c8..0000000000
--- a/packages/template-next-app/src/remotion/MyComp/Main.tsx
+++ /dev/null
@@ -1,66 +0,0 @@
-import { fontFamily, loadFont } from "@remotion/google-fonts/Inter";
-import React, { useMemo } from "react";
-import {
- AbsoluteFill,
- Sequence,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
-import { z } from "zod";
-import { CompositionProps } from "../../types/constants";
-import { NextLogo } from "./NextLogo";
-import { Rings } from "./Rings";
-import { TextFade } from "./TextFade";
-
-loadFont("normal", {
- subsets: ["latin"],
- weights: ["400", "700"],
-});
-
-const container: React.CSSProperties = {
- backgroundColor: "white",
-};
-
-const logo: React.CSSProperties = {
- justifyContent: "center",
- alignItems: "center",
-};
-
-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,
- });
-
- const titleStyle: React.CSSProperties = useMemo(() => {
- return { fontFamily, fontSize: 70 };
- }, []);
-
- return (
- <AbsoluteFill style={container}>
- <Sequence durationInFrames={transitionStart + transitionDuration}>
- <Rings outProgress={logoOut}></Rings>
- <AbsoluteFill style={logo}>
- <NextLogo outProgress={logoOut}></NextLogo>
- </AbsoluteFill>
- </Sequence>
- <Sequence from={transitionStart + transitionDuration / 2}>
- <TextFade>
- <h1 style={titleStyle}>{title}</h1>
- </TextFade>
- </Sequence>
- </AbsoluteFill>
- );
-};
diff --git a/packages/template-next-app/src/remotion/MyComp/NextLogo.tsx b/packages/template-next-app/src/remotion/MyComp/NextLogo.tsx
deleted file mode 100644
index 5d0f03ab6a..0000000000
--- a/packages/template-next-app/src/remotion/MyComp/NextLogo.tsx
+++ /dev/null
@@ -1,119 +0,0 @@
-import { evolvePath } from "@remotion/paths";
-import React, { useMemo } from "react";
-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
-
-const mask: React.CSSProperties = {
- maskType: "alpha",
-};
-
-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" style={mask} width="180" x="0" y="0">
- <circle cx="90" cy="90" fill="black" r="90"></circle>
- </mask>
- <mask id="n-mask" style={mask}>
- <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-next-app/src/remotion/MyComp/Rings.tsx b/packages/template-next-app/src/remotion/MyComp/Rings.tsx
deleted file mode 100644
index 68adad5429..0000000000
--- a/packages/template-next-app/src/remotion/MyComp/Rings.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-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,
- borderRadius: "50%",
- backgroundColor: color,
- position: "absolute",
- // eslint-disable-next-line @remotion/slow-css-property
- boxShadow: "0 0 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-next-app/src/remotion/MyComp/TextFade.tsx b/packages/template-next-app/src/remotion/MyComp/TextFade.tsx
deleted file mode 100644
index a9a0891aaa..0000000000
--- a/packages/template-next-app/src/remotion/MyComp/TextFade.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import React, { useMemo } from "react";
-import {
- AbsoluteFill,
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
-
-const outer: React.CSSProperties = {};
-
-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 container: React.CSSProperties = useMemo(() => {
- return {
- justifyContent: "center",
- alignItems: "center",
- };
- }, []);
-
- const content: React.CSSProperties = useMemo(() => {
- return {
- maskImage,
- WebkitMaskImage: maskImage,
- };
- }, [maskImage]);
-
- return (
- <AbsoluteFill style={outer}>
- <AbsoluteFill style={container}>
- <div style={content}>{children}</div>
- </AbsoluteFill>
- </AbsoluteFill>
- );
-};
diff --git a/packages/template-next-app/src/remotion/Root.tsx b/packages/template-next-app/src/remotion/Root.tsx
deleted file mode 100644
index 9cecdca9f6..0000000000
--- a/packages/template-next-app/src/remotion/Root.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import { Composition } from "remotion";
-import {
- COMP_NAME,
- defaultMyCompProps,
- DURATION_IN_FRAMES,
- VIDEO_FPS,
- VIDEO_HEIGHT,
- VIDEO_WIDTH,
-} from "../types/constants";
-import { Main } from "./MyComp/Main";
-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-next-app/src/remotion/index.ts b/packages/template-next-app/src/remotion/index.ts
deleted file mode 100644
index f31c790edb..0000000000
--- a/packages/template-next-app/src/remotion/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { registerRoot } from "remotion";
-import { RemotionRoot } from "./Root";
-
-registerRoot(RemotionRoot);
diff --git a/packages/template-next-app/src/types/constants.ts b/packages/template-next-app/src/types/constants.ts
deleted file mode 100644
index 4767c5e80f..0000000000
--- a/packages/template-next-app/src/types/constants.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-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-next-app/src/types/schema.ts b/packages/template-next-app/src/types/schema.ts
deleted file mode 100644
index da1562f334..0000000000
--- a/packages/template-next-app/src/types/schema.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { z } from "zod";
-import { CompositionProps } from "./constants";
-
-export const RenderRequest = z.object({
- id: z.string(),
- inputProps: CompositionProps,
-});
-
-export const ProgressRequest = z.object({
- bucketName: z.string(),
- id: z.string(),
-});
-
-export type ProgressResponse =
- | {
- type: "error";
- message: string;
- }
- | {
- type: "progress";
- progress: number;
- }
- | {
- type: "done";
- url: string;
- size: number;
- };
diff --git a/packages/template-next-app/styles/global.css b/packages/template-next-app/styles/global.css
deleted file mode 100644
index 6aa2d70cb6..0000000000
--- a/packages/template-next-app/styles/global.css
+++ /dev/null
@@ -1,58 +0,0 @@
-: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;
-}
-
-* {
- box-sizing: border-box;
-}
-
-.cinematics {
- box-shadow: 0 0 200px rgba(0, 0, 0, 0.15);
-}
-
-@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
-
- }
- .cinematics {
- box-shadow: 0 0 200px rgba(255, 255, 255, 0.15);
- }
-}
-
-body {
- background-color: var(--background);
-}
-
-
-input {
- border: 1px solid var(--unfocused-border-color);
- transition: border-color 0.15s ease;
- outline: none;
-}
-
-input:focus {
- border-color: var(--focused-border-color);
-}
diff --git a/packages/template-next-app/tsconfig.json b/packages/template-next-app/tsconfig.json
deleted file mode 100644
index 3690bdf15b..0000000000
--- a/packages/template-next-app/tsconfig.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "compilerOptions": {
- "target": "es5",
- "lib": [
- "dom",
- "dom.iterable",
- "esnext"
- ],
- "allowJs": true,
- "skipLibCheck": true,
- "strict": true,
- "forceConsistentCasingInFileNames": true,
- "noEmit": true,
- "esModuleInterop": true,
- "module": "esnext",
- "moduleResolution": "Bundler",
- "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-next-app/vercel.json b/packages/template-next-app/vercel.json
deleted file mode 100644
index b2129dd8ec..0000000000
--- a/packages/template-next-app/vercel.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "buildCommand": "node deploy.mjs && next build"
- }
-
\ No newline at end of file
diff --git a/packages/template-next-pages/.env.example b/packages/template-next-pages/.env.example
deleted file mode 100644
index 23c2bac312..0000000000
--- a/packages/template-next-pages/.env.example
+++ /dev/null
@@ -1,2 +0,0 @@
-REMOTION_AWS_ACCESS_KEY_ID=""
-REMOTION_AWS_SECRET_ACCESS_KEY=""
diff --git a/packages/template-next-pages/.gitignore b/packages/template-next-pages/.gitignore
deleted file mode 100644
index cc9b35922b..0000000000
--- a/packages/template-next-pages/.gitignore
+++ /dev/null
@@ -1,38 +0,0 @@
-# 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
\ No newline at end of file
diff --git a/packages/template-next-pages/.npmrc b/packages/template-next-pages/.npmrc
deleted file mode 100644
index 3e775efb0f..0000000000
--- a/packages/template-next-pages/.npmrc
+++ /dev/null
@@ -1 +0,0 @@
-auto-install-peers=true
diff --git a/packages/template-next-pages/.prettierrc b/packages/template-next-pages/.prettierrc
deleted file mode 100644
index 37d5071748..0000000000
--- a/packages/template-next-pages/.prettierrc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "useTabs": false,
- "bracketSpacing": true,
- "tabWidth": 2
-}
diff --git a/packages/template-next-pages/README.md b/packages/template-next-pages/README.md
deleted file mode 100644
index 9ddba22b9b..0000000000
--- a/packages/template-next-pages/README.md
+++ /dev/null
@@ -1,88 +0,0 @@
-<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 [`@remotion/lambda`](https://remotion.dev/lambda) built in.
-
-This template uses the Next.js Pages directory. There is a [App directory version](https://github.com/remotion-dev/template-next-app-dir) of this template available.
-
-<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-next-pages-dir&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 --next-pages-dir
-```
-
-## 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
-```
-
-The following script will set up your Remotion Bundle and Lambda function on AWS:
-
-```
-node deploy.mjs
-```
-
-You should run this script after:
-
-- changing the video template
-- changing `config.mjs`
-- upgrading Remotion to a newer version
-
-## Set up rendering on AWS Lambda
-
-This template supports rendering the videos via [Remotion Lambda](https://remotion.dev/lambda).
-
-1. Copy the `.env.example` file to `.env` and fill in the values.
- Complete the [Lambda setup guide](https://www.remotion.dev/docs/lambda/setup) to get your AWS credentials.
-
-1. Edit the `config.mjs` file to your desired Lambda settings.
-
-1. Run `node deploy.mjs` to deploy your Lambda function and Remotion Bundle.
-
-## 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-next-pages/config.mjs b/packages/template-next-pages/config.mjs
deleted file mode 100644
index b18ed95152..0000000000
--- a/packages/template-next-pages/config.mjs
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Use autocomplete to get a list of available regions.
- * @type {import('@remotion/lambda').AwsRegion}
- */
-export const REGION = "us-east-1";
-
-export const SITE_NAME = "my-next-app";
-export const RAM = 3009;
-export const DISK = 10240;
-export const TIMEOUT = 240;
diff --git a/packages/template-next-pages/deploy.mjs b/packages/template-next-pages/deploy.mjs
deleted file mode 100644
index 311ab27e5a..0000000000
--- a/packages/template-next-pages/deploy.mjs
+++ /dev/null
@@ -1,77 +0,0 @@
-import {
- deployFunction,
- deploySite,
- getOrCreateBucket,
-} from "@remotion/lambda";
-import dotenv from "dotenv";
-import path from "path";
-import { DISK, RAM, REGION, SITE_NAME, TIMEOUT } from "./config.mjs";
-
-console.log("Selected region:", REGION);
-dotenv.config({quiet: true});
-
-if (!process.env.AWS_ACCESS_KEY_ID && !process.env.REMOTION_AWS_ACCESS_KEY_ID) {
- console.log(
- 'The environment variable "REMOTION_AWS_ACCESS_KEY_ID" is not set.',
- );
- console.log("Lambda renders were not set up.");
- console.log(
- "Complete the Lambda setup: at https://www.remotion.dev/docs/lambda/setup",
- );
- process.exit(0);
-}
-if (
- !process.env.AWS_SECRET_ACCESS_KEY &&
- !process.env.REMOTION_AWS_SECRET_ACCESS_KEY
-) {
- console.log(
- 'The environment variable "REMOTION_REMOTION_AWS_SECRET_ACCESS_KEY" is not set.',
- );
- console.log("Lambda renders were not set up.");
- console.log(
- "Complete the Lambda setup: at https://www.remotion.dev/docs/lambda/setup",
- );
- process.exit(0);
-}
-
-process.stdout.write("Deploying Lambda function... ");
-
-const { functionName, alreadyExisted: functionAlreadyExisted } =
- await deployFunction({
- createCloudWatchLogGroup: true,
- memorySizeInMb: RAM,
- region: REGION,
- timeoutInSeconds: TIMEOUT,
- diskSizeInMb: DISK,
- });
-console.log(
- functionName,
- functionAlreadyExisted ? "(already existed)" : "(created)",
-);
-
-process.stdout.write("Ensuring bucket... ");
-const { bucketName, alreadyExisted: bucketAlreadyExisted } =
- await getOrCreateBucket({
- region: REGION,
- });
-console.log(
- bucketName,
- bucketAlreadyExisted ? "(already existed)" : "(created)",
-);
-
-process.stdout.write("Deploying site... ");
-const { siteName } = await deploySite({
- bucketName,
- entryPoint: path.join(process.cwd(), "src", "remotion", "index.ts"),
- siteName: SITE_NAME,
- region: REGION,
-});
-
-console.log(siteName);
-
-console.log();
-console.log("You now have everything you need to render videos!");
-console.log("Re-run this command when:");
-console.log(" 1) you changed the video template");
-console.log(" 2) you changed config.mjs");
-console.log(" 3) you upgraded Remotion to a newer version");
diff --git a/packages/template-next-pages/eslint.config.mjs b/packages/template-next-pages/eslint.config.mjs
deleted file mode 100644
index c38a4c8e94..0000000000
--- a/packages/template-next-pages/eslint.config.mjs
+++ /dev/null
@@ -1,53 +0,0 @@
-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",
- "deploy.mjs",
- "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-next-pages/next-env.d.ts b/packages/template-next-pages/next-env.d.ts
deleted file mode 100644
index 19709046af..0000000000
--- a/packages/template-next-pages/next-env.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/// <reference types="next" />
-/// <reference types="next/image-types/global" />
-import "./.next/types/routes.d.ts";
-
-// NOTE: This file should not be edited
-// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
diff --git a/packages/template-next-pages/next.config.js b/packages/template-next-pages/next.config.js
deleted file mode 100644
index 91ef62f0db..0000000000
--- a/packages/template-next-pages/next.config.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/** @type {import('next').NextConfig} */
-const nextConfig = {
- reactStrictMode: true,
-};
-
-module.exports = nextConfig;
diff --git a/packages/template-next-pages/package.json b/packages/template-next-pages/package.json
deleted file mode 100644
index 8e4d45f7e8..0000000000
--- a/packages/template-next-pages/package.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "name": "template-next-pages",
- "version": "0.1.0",
- "private": true,
- "scripts": {
- "dev": "next dev",
- "build": "next build",
- "start": "next start",
- "lint": "eslint .",
- "remotion": "remotion studio",
- "render": "remotion render",
- "deploy": "node deploy.mjs"
- },
- "dependencies": {
- "@remotion/cli": "workspace:*",
- "@remotion/google-fonts": "workspace:*",
- "@remotion/bundler": "workspace:*",
- "@remotion/lambda": "workspace:*",
- "@remotion/paths": "workspace:*",
- "@remotion/player": "workspace:*",
- "@remotion/shapes": "workspace:*",
- "next": "16.3.3",
- "react": "19.2.3",
- "react-dom": "19.2.3",
- "remotion": "workspace:*",
- "zod": "4.5.4"
- },
- "devDependencies": {
- "@eslint/eslintrc": "3.1.0",
- "@eslint/js": "9.38.0",
- "@next/eslint-plugin-next": "15.1.6",
- "@remotion/eslint-plugin": "workspace:*",
- "@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",
- "dotenv": "17.3.1",
- "eslint": "9.19.0",
- "eslint-config-next": "15.1.6",
- "prettier": "3.8.1",
- "typescript": "5.9.3",
- "typescript-eslint": "8.46.0"
- }
-}
diff --git a/packages/template-next-pages/public/favicon.ico b/packages/template-next-pages/public/favicon.ico
deleted file mode 100644
index 718d6fea48..0000000000
Binary files a/packages/template-next-pages/public/favicon.ico and /dev/null differ
diff --git a/packages/template-next-pages/public/vercel.svg b/packages/template-next-pages/public/vercel.svg
deleted file mode 100644
index fbf0e25a65..0000000000
--- a/packages/template-next-pages/public/vercel.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg width="283" height="64" viewBox="0 0 283 64" fill="none"
- xmlns="http://www.w3.org/2000/svg">
- <path d="M141.04 16c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.46 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5h-18.9zM248.72 16c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.45 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5h-18.9zM200.24 34c0 6 3.92 10 10 10 4.12 0 7.21-1.87 8.8-4.92l7.68 4.43c-3.18 5.3-9.14 8.49-16.48 8.49-11.05 0-19-7.2-19-18s7.96-18 19-18c7.34 0 13.29 3.19 16.48 8.49l-7.68 4.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07 0-10 4-10 10zm82.48-29v46h-9V5h9zM36.95 0L73.9 64H0L36.95 0zm92.38 5l-27.71 48L73.91 5H84.3l17.32 30 17.32-30h10.39zm58.91 12v9.69c-1-.29-2.06-.49-3.2-.49-5.81 0-10 4-10 10V51h-9V17h9v9.2c0-5.08 5.91-9.2 13.2-9.2z" fill="#000"/>
-</svg>
\ No newline at end of file
diff --git a/packages/template-next-pages/remotion.config.ts b/packages/template-next-pages/remotion.config.ts
deleted file mode 100644
index 41acb5e954..0000000000
--- a/packages/template-next-pages/remotion.config.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// 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.setRspack(true);
-Config.setVideoImageFormat("jpeg");
diff --git a/packages/template-next-pages/src/components/AlignEnd.tsx b/packages/template-next-pages/src/components/AlignEnd.tsx
deleted file mode 100644
index f08aa29ad5..0000000000
--- a/packages/template-next-pages/src/components/AlignEnd.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import React from "react";
-
-const container: React.CSSProperties = {
- alignSelf: "flex-end",
-};
-
-export const AlignEnd: React.FC<{
- children: React.ReactNode;
-}> = ({ children }) => {
- return <div style={container}>{children}</div>;
-};
diff --git a/packages/template-next-pages/src/components/Button/Button.tsx b/packages/template-next-pages/src/components/Button/Button.tsx
deleted file mode 100644
index b697c90314..0000000000
--- a/packages/template-next-pages/src/components/Button/Button.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import React, { forwardRef } from "react";
-import { Spacing } from "../Spacing";
-import { Spinner } from "../Spinner/Spinner";
-import styles from "./styles.module.css";
-
-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={[
- styles.button,
- secondary ? styles.secondarybutton : undefined,
- ].join(" ")}
- onClick={onClick}
- disabled={disabled}
- >
- {loading && (
- <>
- <Spinner size={20}></Spinner>
- <Spacing></Spacing>
- </>
- )}
- {children}
- </button>
- );
-};
-
-export const Button = forwardRef(ButtonForward);
diff --git a/packages/template-next-pages/src/components/Button/styles.module.css b/packages/template-next-pages/src/components/Button/styles.module.css
deleted file mode 100644
index 143543e9e8..0000000000
--- a/packages/template-next-pages/src/components/Button/styles.module.css
+++ /dev/null
@@ -1,37 +0,0 @@
-.button {
- border: 1px solid var(--foreground);
- border-radius: var(--geist-border-radius);
- background-color: var(--foreground);
- color: var(--background);
- padding-left: var(--geist-half-pad);
- padding-right: var(--geist-half-pad);
- height: 40px;
- font-family: var(--geist-font);
- font-weight: 500;
- transition: all 0.15s ease;
- display: inline-flex;
- flex-direction: row;
- align-items: center;
- appearance: none;
- font-size: 14px;
-}
-
-.secondarybutton {
- background-color: var(--background);
- color: var(--foreground);
- border-color: var(--unfocused-border-color);
-}
-
-.button:hover {
- background-color: var(--background);
- cursor: pointer;
- color: var(--foreground);
- border-color: var(--focused-border-color);
-}
-
-.button:disabled {
- background-color: var(--button-disabled-color);
- color: var(--disabled-text-color);
- border-color: var(--unfocused-border-color);
- cursor: not-allowed;
-}
diff --git a/packages/template-next-pages/src/components/Container.tsx b/packages/template-next-pages/src/components/Container.tsx
deleted file mode 100644
index 71fe2f9b7e..0000000000
--- a/packages/template-next-pages/src/components/Container.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from "react";
-
-const inputContainer: React.CSSProperties = {
- border: "1px solid var(--unfocused-border-color)",
- padding: "var(--geist-pad)",
- borderRadius: "var(--geist-border-radius)",
- backgroundColor: "var(--background)",
- display: "flex",
- flexDirection: "column",
-};
-
-export const InputContainer: React.FC<{
- children: React.ReactNode;
-}> = ({ children }) => {
- return <div style={inputContainer}>{children}</div>;
-};
diff --git a/packages/template-next-pages/src/components/DownloadButton.tsx b/packages/template-next-pages/src/components/DownloadButton.tsx
deleted file mode 100644
index ac1b8fd5a7..0000000000
--- a/packages/template-next-pages/src/components/DownloadButton.tsx
+++ /dev/null
@@ -1,70 +0,0 @@
-import Link from "next/link";
-import React from "react";
-import { State } from "../helpers/use-rendering";
-import { Button } from "./Button/Button";
-import { Spacing } from "./Spacing";
-
-const light: React.CSSProperties = {
- opacity: 0.6,
-};
-
-const link: React.CSSProperties = {
- textDecoration: "none",
-};
-
-const row: React.CSSProperties = {
- display: "flex",
- flexDirection: "row",
-};
-
-const Megabytes: React.FC<{
- sizeInBytes: number;
-}> = ({ sizeInBytes }) => {
- const megabytes = Intl.NumberFormat("en", {
- notation: "compact",
- style: "unit",
- unit: "byte",
- unitDisplay: "narrow",
- }).format(sizeInBytes);
- return <span style={light}>{megabytes}</span>;
-};
-
-export const DownloadButton: React.FC<{
- state: State;
- undo: () => void;
-}> = ({ state, undo }) => {
- if (state.status === "rendering") {
- return <Button disabled>Download video</Button>;
- }
-
- if (state.status !== "done") {
- throw new Error("Download button should not be rendered when not done");
- }
-
- return (
- <div style={row}>
- <Button secondary onClick={undo}>
- <UndoIcon></UndoIcon>
- </Button>
- <Spacing></Spacing>
- <Link style={link} href={state.url}>
- <Button>
- Download video
- <Spacing></Spacing>
- <Megabytes sizeInBytes={state.size}></Megabytes>
- </Button>
- </Link>
- </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-next-pages/src/components/Error.tsx b/packages/template-next-pages/src/components/Error.tsx
deleted file mode 100644
index 7fa5d80fb3..0000000000
--- a/packages/template-next-pages/src/components/Error.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React from "react";
-
-const container: React.CSSProperties = {
- color: "var(--geist-error)",
- fontFamily: "var(--geist-font)",
- paddingTop: "var(--geist-half-pad)",
- paddingBottom: "var(--geist-half-pad)",
-};
-
-const icon: React.CSSProperties = {
- height: 20,
- verticalAlign: "text-bottom",
- marginRight: 6,
-};
-
-export const ErrorComp: React.FC<{
- message: string;
-}> = ({ message }) => {
- return (
- <div style={container}>
- <svg
- fill="none"
- shapeRendering="geometricPrecision"
- stroke="currentColor"
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth="2"
- viewBox="0 0 24 24"
- style={icon}
- >
- <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-next-pages/src/components/Input.tsx b/packages/template-next-pages/src/components/Input.tsx
deleted file mode 100644
index 8dc0661480..0000000000
--- a/packages/template-next-pages/src/components/Input.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React, { useCallback } from "react";
-
-const textarea: React.CSSProperties = {
- resize: "none",
- lineHeight: 1.7,
- display: "block",
- width: "100%",
- borderRadius: "var(--geist-border-radius)",
- backgroundColor: "var(--background)",
- padding: "var(--geist-half-pad)",
- color: "var(--foreground)",
- fontSize: 14,
-};
-
-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
- type="search"
- autoComplete="off"
- disabled={disabled}
- name="title"
- style={textarea}
- value={text}
- onChange={onChange}
- />
- );
-};
diff --git a/packages/template-next-pages/src/components/ProgressBar.tsx b/packages/template-next-pages/src/components/ProgressBar.tsx
deleted file mode 100644
index f383f994cd..0000000000
--- a/packages/template-next-pages/src/components/ProgressBar.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import React, { useMemo } from "react";
-
-export const ProgressBar: React.FC<{
- progress: number;
-}> = ({ progress }) => {
- const style: React.CSSProperties = useMemo(() => {
- return {
- width: "100%",
- height: 10,
- borderRadius: 5,
- appearance: "none",
- backgroundColor: "var(--unfocused-border-color)",
- marginTop: 10,
- marginBottom: 25,
- };
- }, []);
-
- const fill: React.CSSProperties = useMemo(() => {
- return {
- backgroundColor: "var(--foreground)",
- height: 10,
- borderRadius: 5,
- transition: "width 0.1s ease-in-out",
- width: `${progress * 100}%`,
- };
- }, [progress]);
-
- return (
- <div>
- <div style={style}>
- <div style={fill}></div>
- </div>
- </div>
- );
-};
diff --git a/packages/template-next-pages/src/components/RenderControls.tsx b/packages/template-next-pages/src/components/RenderControls.tsx
deleted file mode 100644
index 3e5c9dd772..0000000000
--- a/packages/template-next-pages/src/components/RenderControls.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-import { z } from "zod";
-import { COMP_NAME, CompositionProps } from "../../types/constants";
-import { useRendering } from "../helpers/use-rendering";
-import { AlignEnd } from "./AlignEnd";
-import { Button } from "./Button/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";
-
-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 === "error" ? (
- <ErrorComp message={state.error.message}></ErrorComp>
- ) : null}
- </>
- ) : null}
- {state.status === "rendering" || state.status === "done" ? (
- <>
- <ProgressBar
- progress={state.status === "rendering" ? state.progress : 1}
- />
- <Spacing></Spacing>
- <AlignEnd>
- <DownloadButton undo={undo} state={state}></DownloadButton>
- </AlignEnd>
- </>
- ) : null}
- </InputContainer>
- );
-};
diff --git a/packages/template-next-pages/src/components/Spacing.tsx b/packages/template-next-pages/src/components/Spacing.tsx
deleted file mode 100644
index 31965a480c..0000000000
--- a/packages/template-next-pages/src/components/Spacing.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import React from "react";
-
-export const Spacing: React.FC = () => {
- return (
- <div
- style={{
- height: "var(--geist-quarter-pad)",
- width: "var(--geist-quarter-pad)",
- }}
- />
- );
-};
diff --git a/packages/template-next-pages/src/components/Spinner/Spinner.tsx b/packages/template-next-pages/src/components/Spinner/Spinner.tsx
deleted file mode 100644
index a15056424e..0000000000
--- a/packages/template-next-pages/src/components/Spinner/Spinner.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import { translatePath } from "@remotion/paths";
-import { makeRect } from "@remotion/shapes";
-import React, { useMemo } from "react";
-import styles from "./styles.module.css";
-
-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={styles.line}
- 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-next-pages/src/components/Spinner/styles.module.css b/packages/template-next-pages/src/components/Spinner/styles.module.css
deleted file mode 100644
index 00419b05e1..0000000000
--- a/packages/template-next-pages/src/components/Spinner/styles.module.css
+++ /dev/null
@@ -1,12 +0,0 @@
-@keyframes spinner {
- 0% {
- opacity: 1;
- }
- 100% {
- opacity: 0.15;
- }
-}
-
-.line {
- animation: spinner 1.2s linear infinite;
-}
diff --git a/packages/template-next-pages/src/components/Tips/Tips.tsx b/packages/template-next-pages/src/components/Tips/Tips.tsx
deleted file mode 100644
index 3b26ca9c0b..0000000000
--- a/packages/template-next-pages/src/components/Tips/Tips.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-import React from "react";
-import styles from "./styles.module.css";
-
-const titlerow: React.CSSProperties = {
- display: "flex",
- flexDirection: "row",
- alignItems: "center",
- justifyContent: "flex-start",
-};
-
-const titlestyle: React.CSSProperties = {
- marginBottom: "0.75em",
- marginTop: "0.75em",
- color: "var(--foreground)",
-};
-
-const a: React.CSSProperties = {
- textDecoration: "none",
- color: "inherit",
- flex: 1,
-};
-
-const Tip: React.FC<{
- title: React.ReactNode;
- description: React.ReactNode;
- href: string;
-}> = ({ title, description, href }) => {
- return (
- <a href={href} target="_blank" rel="noreferrer" style={a}>
- <div className={styles.item}>
- <div style={titlerow}>
- <h4 style={titlestyle}>{title}</h4>
- <div className={styles.flex}></div>
- <svg className={styles.icon} 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={styles.p}>{description}</p>
- </div>
- </a>
- );
-};
-
-export const Tips: React.FC = () => {
- return (
- <div className={styles.row}>
- <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-next"
- 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-next-pages/src/components/Tips/styles.module.css b/packages/template-next-pages/src/components/Tips/styles.module.css
deleted file mode 100644
index af17b0837e..0000000000
--- a/packages/template-next-pages/src/components/Tips/styles.module.css
+++ /dev/null
@@ -1,40 +0,0 @@
-.row {
- display: flex;
- flex-direction: row;
- font-family: Inter;
-}
-
-.item {
- cursor: pointer;
- transition: transform 0.2s ease-in-out;
- padding: 10px;
-}
-
-.icon {
- opacity: 0;
- transition: opacity 0.2s ease-in-out;
-}
-
-.item:hover {
- transform: translateY(-2px);
- .icon {
- opacity: 1;
- }
-}
-
-.p {
- font-size: 14px;
- margin-top: 0;
- line-height: 1.5;
- color: var(--subtitle);
-}
-
-.flex {
- flex: 1;
-}
-
-@media (max-width: 768px) {
- .row {
- flex-direction: column;
- }
-}
diff --git a/packages/template-next-pages/src/helpers/api-response.ts b/packages/template-next-pages/src/helpers/api-response.ts
deleted file mode 100644
index 33a9cb8afd..0000000000
--- a/packages/template-next-pages/src/helpers/api-response.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import { NextApiRequest, NextApiResponse } from "next";
-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: NextApiRequest,
- body: z.infer<Req>,
- res: NextApiResponse<ApiResponse<Res>>,
- ) => Promise<Res>,
- ) =>
- async (req: NextApiRequest, res: NextApiResponse<ApiResponse<Res>>) => {
- try {
- const parsed = schema.parse(req.body);
- const data = await handler(req, parsed, res);
- res.status(200).json({
- type: "success",
- data: data,
- });
- } catch (err) {
- res.status(500).json({ type: "error", message: (err as Error).message });
- }
- };
diff --git a/packages/template-next-pages/src/helpers/use-rendering.ts b/packages/template-next-pages/src/helpers/use-rendering.ts
deleted file mode 100644
index 072b4e93d0..0000000000
--- a/packages/template-next-pages/src/helpers/use-rendering.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-import { useCallback, useMemo, useState } from "react";
-import { z } from "zod";
-import { CompositionProps } from "../../types/constants";
-import { getProgress, renderVideo } from "../lambda/api";
-
-export type State =
- | {
- status: "init";
- }
- | {
- status: "invoking";
- }
- | {
- renderId: string;
- bucketName: string;
- progress: number;
- status: "rendering";
- }
- | {
- renderId: string | null;
- status: "error";
- error: Error;
- }
- | {
- url: string;
- size: number;
- status: "done";
- };
-
-const wait = async (milliSeconds: number) => {
- await new Promise<void>((resolve) => {
- setTimeout(() => {
- resolve();
- }, milliSeconds);
- });
-};
-
-export const useRendering = (
- id: string,
- inputProps: z.infer<typeof CompositionProps>,
-) => {
- const [state, setState] = useState<State>({
- status: "init",
- });
-
- const renderMedia = useCallback(async () => {
- setState({
- status: "invoking",
- });
- try {
- const { renderId, bucketName } = await renderVideo({ id, inputProps });
- setState({
- status: "rendering",
- progress: 0,
- renderId: renderId,
- bucketName: bucketName,
- });
-
- let pending = true;
-
- while (pending) {
- const result = await getProgress({
- id: renderId,
- bucketName: bucketName,
- });
- switch (result.type) {
- case "error": {
- setState({
- status: "error",
- renderId: renderId,
- error: new Error(result.message),
- });
- pending = false;
- break;
- }
- case "done": {
- setState({
- size: result.size,
- url: result.url,
- status: "done",
- });
- pending = false;
- break;
- }
- case "progress": {
- setState({
- status: "rendering",
- bucketName: bucketName,
- progress: result.progress,
- renderId: renderId,
- });
- await wait(1000);
- }
- }
- }
- } catch (err) {
- setState({
- status: "error",
- error: err as Error,
- renderId: null,
- });
- }
- }, [id, inputProps]);
-
- const undo = useCallback(() => {
- setState({ status: "init" });
- }, []);
-
- return useMemo(() => {
- return {
- renderMedia,
- state,
- undo,
- };
- }, [renderMedia, state, undo]);
-};
diff --git a/packages/template-next-pages/src/lambda/api.ts b/packages/template-next-pages/src/lambda/api.ts
deleted file mode 100644
index 74a8e55056..0000000000
--- a/packages/template-next-pages/src/lambda/api.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-import type { RenderMediaOnLambdaOutput } from "@remotion/lambda/client";
-import { z } from "zod";
-import { CompositionProps } from "../../types/constants";
-import {
- ProgressRequest,
- ProgressResponse,
- RenderRequest,
-} from "../../types/schema";
-import { ApiResponse } from "../helpers/api-response";
-
-const makeRequest = async <Res>(
- endpoint: string,
- body: unknown,
-): Promise<Res> => {
- const result = await fetch(endpoint, {
- method: "post",
- body: JSON.stringify(body),
- headers: {
- "content-type": "application/json",
- },
- });
- const json = (await result.json()) as ApiResponse<Res>;
- if (json.type === "error") {
- throw new Error(json.message);
- }
-
- return json.data;
-};
-
-export const renderVideo = async ({
- id,
- inputProps,
-}: {
- id: string;
- inputProps: z.infer<typeof CompositionProps>;
-}) => {
- const body: z.infer<typeof RenderRequest> = {
- id,
- inputProps,
- };
-
- return makeRequest<RenderMediaOnLambdaOutput>("/api/lambda/render", body);
-};
-
-export const getProgress = async ({
- id,
- bucketName,
-}: {
- id: string;
- bucketName: string;
-}) => {
- const body: z.infer<typeof ProgressRequest> = {
- id,
- bucketName,
- };
-
- return makeRequest<ProgressResponse>("/api/lambda/progress", body);
-};
diff --git a/packages/template-next-pages/src/pages/_app.tsx b/packages/template-next-pages/src/pages/_app.tsx
deleted file mode 100644
index a8f5489dcf..0000000000
--- a/packages/template-next-pages/src/pages/_app.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-import type { AppProps } from "next/app";
-import "../../styles/global.css";
-
-function MyApp({ Component, pageProps }: AppProps) {
- return <Component {...pageProps} />;
-}
-
-export default MyApp;
diff --git a/packages/template-next-pages/src/pages/api/lambda/progress.ts b/packages/template-next-pages/src/pages/api/lambda/progress.ts
deleted file mode 100644
index 456106b01c..0000000000
--- a/packages/template-next-pages/src/pages/api/lambda/progress.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import {
- AwsRegion,
- getRenderProgress,
- speculateFunctionName,
-} from "@remotion/lambda/client";
-import { DISK, RAM, REGION, TIMEOUT } from "../../../../config.mjs";
-import { ProgressRequest, ProgressResponse } from "../../../../types/schema";
-import { executeApi } from "../../../helpers/api-response";
-
-const progress = executeApi<ProgressResponse, typeof ProgressRequest>(
- ProgressRequest,
- async (req, body) => {
- if (req.method !== "POST") {
- throw new Error("Only POST requests are allowed");
- }
-
- const renderProgress = await getRenderProgress({
- bucketName: body.bucketName,
- functionName: speculateFunctionName({
- diskSizeInMb: DISK,
- memorySizeInMb: RAM,
- timeoutInSeconds: TIMEOUT,
- }),
- region: REGION as AwsRegion,
- renderId: body.id,
- });
-
- if (renderProgress.fatalErrorEncountered) {
- return {
- type: "error",
- message: renderProgress.errors[0].message,
- };
- }
-
- if (renderProgress.done) {
- return {
- type: "done",
- url: renderProgress.outputFile as string,
- size: renderProgress.outputSizeInBytes as number,
- };
- }
-
- return {
- type: "progress",
- progress: Math.max(0.03, renderProgress.overallProgress),
- };
- },
-);
-
-export default progress;
diff --git a/packages/template-next-pages/src/pages/api/lambda/render.ts b/packages/template-next-pages/src/pages/api/lambda/render.ts
deleted file mode 100644
index 4f22b1846d..0000000000
--- a/packages/template-next-pages/src/pages/api/lambda/render.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-import {
- AwsRegion,
- renderMediaOnLambda,
- RenderMediaOnLambdaOutput,
- speculateFunctionName,
-} from "@remotion/lambda/client";
-import { DISK, RAM, REGION, SITE_NAME, TIMEOUT } from "../../../../config.mjs";
-import { RenderRequest } from "../../../../types/schema";
-import { executeApi } from "../../../helpers/api-response";
-
-const render = executeApi<RenderMediaOnLambdaOutput, typeof RenderRequest>(
- RenderRequest,
- async (req, body) => {
- if (req.method !== "POST") {
- throw new Error("Only POST requests are allowed");
- }
-
- if (
- !process.env.AWS_ACCESS_KEY_ID &&
- !process.env.REMOTION_AWS_ACCESS_KEY_ID
- ) {
- throw new TypeError(
- "Set up Remotion Lambda to render videos. See the README.md for how to do so.",
- );
- }
- if (
- !process.env.AWS_SECRET_ACCESS_KEY &&
- !process.env.REMOTION_AWS_SECRET_ACCESS_KEY
- ) {
- throw new TypeError(
- "The environment variable REMOTION_AWS_SECRET_ACCESS_KEY is missing. Add it to your .env file.",
- );
- }
-
- const result = await renderMediaOnLambda({
- codec: "h264",
- functionName: speculateFunctionName({
- diskSizeInMb: DISK,
- memorySizeInMb: RAM,
- timeoutInSeconds: TIMEOUT,
- }),
- region: REGION as AwsRegion,
- serveUrl: SITE_NAME,
- composition: body.id,
- inputProps: body.inputProps,
- framesPerLambda: 10,
- downloadBehavior: {
- type: "download",
- fileName: "video.mp4",
- },
- });
-
- return result;
- },
-);
-
-export default render;
diff --git a/packages/template-next-pages/src/pages/index.tsx b/packages/template-next-pages/src/pages/index.tsx
deleted file mode 100644
index b6d5abb66a..0000000000
--- a/packages/template-next-pages/src/pages/index.tsx
+++ /dev/null
@@ -1,90 +0,0 @@
-import { Player } from "@remotion/player";
-import type { NextPage } from "next";
-import Head from "next/head";
-import React, { useMemo, useState } from "react";
-import { z } from "zod";
-import {
- CompositionProps,
- defaultMyCompProps,
- 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/Tips";
-import { Main } from "../remotion/MyComp/Main";
-
-const container: React.CSSProperties = {
- maxWidth: 768,
- margin: "auto",
- marginBottom: 20,
- paddingLeft: 16,
- paddingRight: 16,
-};
-
-const outer: React.CSSProperties = {
- borderRadius: "var(--geist-border-radius)",
- overflow: "hidden",
- boxShadow: "0 0 200px rgba(0, 0, 0, 0.15)",
- marginBottom: 40,
- marginTop: 60,
-};
-
-const player: React.CSSProperties = {
- width: "100%",
-};
-
-const Home: NextPage = () => {
- const [text, setText] = useState<string>(defaultMyCompProps.title);
-
- const inputProps: z.infer<typeof CompositionProps> = useMemo(() => {
- return {
- title: text,
- };
- }, [text]);
-
- return (
- <div>
- <Head>
- <title>Remotion and Next.js</title>
- <meta name="description" content="Remotion and Next.js" />
- <meta
- name="viewport"
- content="width=device-width, initial-scale=1, maximum-scale=1"
- />
- <link rel="icon" href="/favicon.ico" />
- </Head>
- <div style={container}>
- <div className="cinematics" style={outer}>
- <Player
- component={Main}
- inputProps={inputProps}
- durationInFrames={DURATION_IN_FRAMES}
- fps={VIDEO_FPS}
- compositionHeight={VIDEO_HEIGHT}
- compositionWidth={VIDEO_WIDTH}
- style={player}
- controls
- autoPlay
- loop
- initiallyMuted
- />
- </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-next-pages/src/remotion/MyComp/Main.tsx b/packages/template-next-pages/src/remotion/MyComp/Main.tsx
deleted file mode 100644
index 1cd39c471e..0000000000
--- a/packages/template-next-pages/src/remotion/MyComp/Main.tsx
+++ /dev/null
@@ -1,66 +0,0 @@
-import { fontFamily, loadFont } from "@remotion/google-fonts/Inter";
-import React, { useMemo } from "react";
-import {
- AbsoluteFill,
- Sequence,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
-import { z } from "zod";
-import { CompositionProps } from "../../../types/constants";
-import { NextLogo } from "./NextLogo";
-import { Rings } from "./Rings";
-import { TextFade } from "./TextFade";
-
-loadFont("normal", {
- subsets: ["latin"],
- weights: ["400", "700"],
-});
-
-const container: React.CSSProperties = {
- backgroundColor: "white",
-};
-
-const logo: React.CSSProperties = {
- justifyContent: "center",
- alignItems: "center",
-};
-
-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,
- });
-
- const titleStyle: React.CSSProperties = useMemo(() => {
- return { fontFamily, fontSize: 70 };
- }, []);
-
- return (
- <AbsoluteFill style={container}>
- <Sequence durationInFrames={transitionStart + transitionDuration}>
- <Rings outProgress={logoOut}></Rings>
- <AbsoluteFill style={logo}>
- <NextLogo outProgress={logoOut}></NextLogo>
- </AbsoluteFill>
- </Sequence>
- <Sequence from={transitionStart + transitionDuration / 2}>
- <TextFade>
- <h1 style={titleStyle}>{title}</h1>
- </TextFade>
- </Sequence>
- </AbsoluteFill>
- );
-};
diff --git a/packages/template-next-pages/src/remotion/MyComp/NextLogo.tsx b/packages/template-next-pages/src/remotion/MyComp/NextLogo.tsx
deleted file mode 100644
index 5d0f03ab6a..0000000000
--- a/packages/template-next-pages/src/remotion/MyComp/NextLogo.tsx
+++ /dev/null
@@ -1,119 +0,0 @@
-import { evolvePath } from "@remotion/paths";
-import React, { useMemo } from "react";
-import { interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion";
-
-const mask: React.CSSProperties = {
- maskType: "alpha",
-};
-
-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" style={mask} width="180" x="0" y="0">
- <circle cx="90" cy="90" fill="black" r="90"></circle>
- </mask>
- <mask id="n-mask" style={mask}>
- <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-next-pages/src/remotion/MyComp/Rings.tsx b/packages/template-next-pages/src/remotion/MyComp/Rings.tsx
deleted file mode 100644
index c886f4460f..0000000000
--- a/packages/template-next-pages/src/remotion/MyComp/Rings.tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-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,
- borderRadius: "50%",
- backgroundColor: color,
- position: "absolute",
- boxShadow: "0 0 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-next-pages/src/remotion/MyComp/TextFade.tsx b/packages/template-next-pages/src/remotion/MyComp/TextFade.tsx
deleted file mode 100644
index a9a0891aaa..0000000000
--- a/packages/template-next-pages/src/remotion/MyComp/TextFade.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import React, { useMemo } from "react";
-import {
- AbsoluteFill,
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from "remotion";
-
-const outer: React.CSSProperties = {};
-
-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 container: React.CSSProperties = useMemo(() => {
- return {
- justifyContent: "center",
- alignItems: "center",
- };
- }, []);
-
- const content: React.CSSProperties = useMemo(() => {
- return {
- maskImage,
- WebkitMaskImage: maskImage,
- };
- }, [maskImage]);
-
- return (
- <AbsoluteFill style={outer}>
- <AbsoluteFill style={container}>
- <div style={content}>{children}</div>
- </AbsoluteFill>
- </AbsoluteFill>
- );
-};
diff --git a/packages/template-next-pages/src/remotion/Root.tsx b/packages/template-next-pages/src/remotion/Root.tsx
deleted file mode 100644
index 35901f2f06..0000000000
--- a/packages/template-next-pages/src/remotion/Root.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import { Composition } from "remotion";
-import {
- COMP_NAME,
- defaultMyCompProps,
- DURATION_IN_FRAMES,
- VIDEO_FPS,
- VIDEO_HEIGHT,
- VIDEO_WIDTH,
-} from "../../types/constants";
-import { Main } from "./MyComp/Main";
-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-next-pages/src/remotion/index.ts b/packages/template-next-pages/src/remotion/index.ts
deleted file mode 100644
index f31c790edb..0000000000
--- a/packages/template-next-pages/src/remotion/index.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { registerRoot } from "remotion";
-import { RemotionRoot } from "./Root";
-
-registerRoot(RemotionRoot);
diff --git a/packages/template-next-pages/styles/global.css b/packages/template-next-pages/styles/global.css
deleted file mode 100644
index cd9f595cab..0000000000
--- a/packages/template-next-pages/styles/global.css
+++ /dev/null
@@ -1,56 +0,0 @@
-: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;
-}
-
-* {
- box-sizing: border-box;
-}
-
-.cinematics {
- box-shadow: 0 0 200px rgba(0, 0, 0, 0.15);
-}
-
-@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;
- }
- .cinematics {
- box-shadow: 0 0 200px rgba(255, 255, 255, 0.15);
- }
-}
-
-body {
- background-color: var(--background);
-}
-
-input {
- border: 1px solid var(--unfocused-border-color);
- transition: border-color 0.15s ease;
- outline: none;
-}
-
-input:focus {
- border-color: var(--focused-border-color);
-}
diff --git a/packages/template-next-pages/tsconfig.json b/packages/template-next-pages/tsconfig.json
deleted file mode 100644
index aebe4af899..0000000000
--- a/packages/template-next-pages/tsconfig.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "compilerOptions": {
- "target": "es5",
- "lib": [
- "dom",
- "dom.iterable",
- "esnext"
- ],
- "allowJs": true,
- "skipLibCheck": true,
- "strict": true,
- "forceConsistentCasingInFileNames": true,
- "noEmit": true,
- "esModuleInterop": true,
- "module": "esnext",
- "moduleResolution": "Bundler",
- "resolveJsonModule": true,
- "isolatedModules": true,
- "jsx": "react-jsx",
- "noUnusedLocals": true,
- "incremental": true
- },
- "include": [
- "next-env.d.ts",
- "**/*.ts",
- "**/*.tsx"
- ],
- "exclude": [
- "node_modules",
- "remotion.config.ts"
- ]
-}
diff --git a/packages/template-next-pages/types/constants.ts b/packages/template-next-pages/types/constants.ts
deleted file mode 100644
index 4767c5e80f..0000000000
--- a/packages/template-next-pages/types/constants.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-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-next-pages/types/schema.ts b/packages/template-next-pages/types/schema.ts
deleted file mode 100644
index da1562f334..0000000000
--- a/packages/template-next-pages/types/schema.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { z } from "zod";
-import { CompositionProps } from "./constants";
-
-export const RenderRequest = z.object({
- id: z.string(),
- inputProps: CompositionProps,
-});
-
-export const ProgressRequest = z.object({
- bucketName: z.string(),
- id: z.string(),
-});
-
-export type ProgressResponse =
- | {
- type: "error";
- message: string;
- }
- | {
- type: "progress";
- progress: number;
- }
- | {
- type: "done";
- url: string;
- size: number;
- };
diff --git a/packages/template-next-pages/vercel.json b/packages/template-next-pages/vercel.json
deleted file mode 100644
index 6f90a2210b..0000000000
--- a/packages/template-next-pages/vercel.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "buildCommand": "node deploy.mjs && next build"
-}
diff --git a/tsconfig.json b/tsconfig.json
index bc5486d424..519564aa81 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -156,12 +156,6 @@
{
"path": "./packages/template-electron"
},
- {
- "path": "./packages/template-next-pages"
- },
- {
- "path": "./packages/template-next-app"
- },
{
"path": "./packages/template-next-app-tailwind"
},