@mevdragon/vidfarm-devcli 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/.env.example +11 -4
  2. package/PLATFORM_SPEC.md +142 -2
  3. package/README.md +165 -16
  4. package/SKILL.developer.md +577 -0
  5. package/dist/infra/cdk/bin/vidfarm-prod.js +59 -0
  6. package/dist/infra/cdk/lib/vidfarm-prod-stack.js +212 -0
  7. package/dist/src/account-pages.js +578 -0
  8. package/dist/src/app.js +887 -66
  9. package/dist/src/cli.js +284 -5
  10. package/dist/src/config.js +24 -4
  11. package/dist/src/db.js +427 -18
  12. package/dist/src/dev-app.js +59 -12
  13. package/dist/src/homepage.js +441 -0
  14. package/dist/src/index.js +12 -7
  15. package/dist/src/lib/crypto.js +14 -0
  16. package/dist/src/lib/template-dna.js +542 -0
  17. package/dist/src/lib/template-style-options.js +49 -0
  18. package/dist/src/registry.js +54 -7
  19. package/dist/src/runtime.js +3 -1
  20. package/dist/src/services/auth.js +69 -5
  21. package/dist/src/services/jobs.js +23 -4
  22. package/dist/src/services/providers.js +74 -12
  23. package/dist/src/services/storage.js +52 -18
  24. package/dist/src/services/template-certification.js +160 -0
  25. package/dist/src/services/template-loader.js +37 -0
  26. package/dist/src/services/template-sources.js +135 -0
  27. package/dist/src/worker.js +19 -7
  28. package/dist/templates/template_0000/src/lib/images.js +242 -0
  29. package/dist/templates/template_0000/src/remotion/Root.js +33 -0
  30. package/dist/templates/template_0000/src/sdk.js +3 -0
  31. package/dist/templates/template_0000/src/style-options.js +51 -0
  32. package/dist/templates/template_0000/src/template-dna.js +9 -0
  33. package/dist/templates/template_0000/src/template.js +1217 -0
  34. package/package.json +9 -1
  35. package/templates/template_0000/README.md +121 -0
  36. package/templates/template_0000/SKILL.md +193 -0
  37. package/templates/template_0000/assets/Abel-Regular.ttf +0 -0
  38. package/templates/template_0000/assets/DMSerifDisplay-Regular.ttf +0 -0
  39. package/templates/template_0000/assets/Montserrat[wght].ttf +0 -0
  40. package/templates/template_0000/assets/SourceCodePro[wght].ttf +0 -0
  41. package/templates/template_0000/assets/TikTokSans-SemiBold.ttf +0 -0
  42. package/templates/template_0000/assets/Yesteryear-Regular.ttf +0 -0
  43. package/templates/template_0000/composition.json +11 -0
  44. package/templates/template_0000/package-lock.json +5137 -0
  45. package/templates/template_0000/package.json +30 -0
  46. package/templates/template_0000/research/preview/.gitkeep +1 -0
  47. package/templates/template_0000/research/source_notes.md +7 -0
  48. package/templates/template_0000/scripts/create-site.mjs +27 -0
  49. package/templates/template_0000/scripts/render-cloud.mjs +72 -0
  50. package/templates/template_0000/src/lib/images.ts +284 -0
  51. package/templates/template_0000/src/remotion/Root.js +33 -0
  52. package/templates/template_0000/src/remotion/Root.tsx +75 -0
  53. package/templates/template_0000/src/remotion/index.tsx +4 -0
  54. package/templates/template_0000/src/sdk.ts +122 -0
  55. package/templates/template_0000/src/style-options.js +51 -0
  56. package/templates/template_0000/src/style-options.ts +60 -0
  57. package/templates/template_0000/src/template-dna.ts +15 -0
  58. package/templates/template_0000/src/template.ts +1747 -0
  59. package/templates/template_0000/template.config.json +26 -0
  60. package/templates/template_0000/tsconfig.json +19 -0
  61. package/dist/templates/template_0000/demo-template.js +0 -196
  62. package/dist/templates/template_0000/remotion/Root.js +0 -66
  63. /package/dist/templates/template_0000/{remotion → src/remotion}/index.js +0 -0
@@ -0,0 +1,51 @@
1
+ export const TEMPLATE_FONT_OPTIONS = [
2
+ {
3
+ id: "source_code_pro",
4
+ label: "Source Code Pro",
5
+ family: "Source Code Pro",
6
+ assetFile: "SourceCodePro[wght].ttf"
7
+ },
8
+ {
9
+ id: "montserrat",
10
+ label: "Montserrat",
11
+ family: "Montserrat",
12
+ assetFile: "Montserrat[wght].ttf"
13
+ },
14
+ {
15
+ id: "yesteryear",
16
+ label: "Yesteryear",
17
+ family: "Yesteryear",
18
+ assetFile: "Yesteryear-Regular.ttf"
19
+ },
20
+ {
21
+ id: "dm_serif_display",
22
+ label: "DM Serif Display",
23
+ family: "DM Serif Display",
24
+ assetFile: "DMSerifDisplay-Regular.ttf"
25
+ },
26
+ {
27
+ id: "abel",
28
+ label: "Abel",
29
+ family: "Abel",
30
+ assetFile: "Abel-Regular.ttf"
31
+ }
32
+ ];
33
+ export const TEMPLATE_TEXT_BACKGROUND_COLOR_OPTIONS = [
34
+ { id: "black", label: "Black", hex: "#000000" },
35
+ { id: "red", label: "Red", hex: "#EA403F" },
36
+ { id: "orange", label: "Orange", hex: "#FF933D" },
37
+ { id: "yellow", label: "Yellow", hex: "#F2CD46" },
38
+ { id: "lime_green", label: "Lime Green", hex: "#78C25E" },
39
+ { id: "teal", label: "Teal", hex: "#77C8A6" },
40
+ { id: "light_blue", label: "Light Blue", hex: "#3496F0" },
41
+ { id: "dark_blue", label: "Dark Blue", hex: "#3496F0" },
42
+ { id: "violet", label: "Violet", hex: "#5756D4" },
43
+ { id: "pink", label: "Pink", hex: "#F7D7E9" },
44
+ { id: "brown", label: "Brown", hex: "#A3895B" },
45
+ { id: "dark_green", label: "Dark Green", hex: "#32523B" },
46
+ { id: "blue_gray", label: "Blue Gray", hex: "#2F688C" },
47
+ { id: "light_gray", label: "Light Gray", hex: "#92979E" },
48
+ { id: "dark_gray", label: "Dark Gray", hex: "#333333" }
49
+ ];
50
+ export const TEMPLATE_FONT_IDS = TEMPLATE_FONT_OPTIONS.map((option) => option.id);
51
+ export const TEMPLATE_TEXT_BACKGROUND_COLOR_IDS = TEMPLATE_TEXT_BACKGROUND_COLOR_OPTIONS.map((option) => option.id);
@@ -0,0 +1,60 @@
1
+ export const TEMPLATE_FONT_OPTIONS = [
2
+ {
3
+ id: "source_code_pro",
4
+ label: "Source Code Pro",
5
+ family: "Source Code Pro",
6
+ assetFile: "SourceCodePro[wght].ttf"
7
+ },
8
+ {
9
+ id: "montserrat",
10
+ label: "Montserrat",
11
+ family: "Montserrat",
12
+ assetFile: "Montserrat[wght].ttf"
13
+ },
14
+ {
15
+ id: "yesteryear",
16
+ label: "Yesteryear",
17
+ family: "Yesteryear",
18
+ assetFile: "Yesteryear-Regular.ttf"
19
+ },
20
+ {
21
+ id: "dm_serif_display",
22
+ label: "DM Serif Display",
23
+ family: "DM Serif Display",
24
+ assetFile: "DMSerifDisplay-Regular.ttf"
25
+ },
26
+ {
27
+ id: "abel",
28
+ label: "Abel",
29
+ family: "Abel",
30
+ assetFile: "Abel-Regular.ttf"
31
+ }
32
+ ] as const;
33
+
34
+ export const TEMPLATE_TEXT_BACKGROUND_COLOR_OPTIONS = [
35
+ { id: "black", label: "Black", hex: "#000000" },
36
+ { id: "red", label: "Red", hex: "#EA403F" },
37
+ { id: "orange", label: "Orange", hex: "#FF933D" },
38
+ { id: "yellow", label: "Yellow", hex: "#F2CD46" },
39
+ { id: "lime_green", label: "Lime Green", hex: "#78C25E" },
40
+ { id: "teal", label: "Teal", hex: "#77C8A6" },
41
+ { id: "light_blue", label: "Light Blue", hex: "#3496F0" },
42
+ { id: "dark_blue", label: "Dark Blue", hex: "#3496F0" },
43
+ { id: "violet", label: "Violet", hex: "#5756D4" },
44
+ { id: "pink", label: "Pink", hex: "#F7D7E9" },
45
+ { id: "brown", label: "Brown", hex: "#A3895B" },
46
+ { id: "dark_green", label: "Dark Green", hex: "#32523B" },
47
+ { id: "blue_gray", label: "Blue Gray", hex: "#2F688C" },
48
+ { id: "light_gray", label: "Light Gray", hex: "#92979E" },
49
+ { id: "dark_gray", label: "Dark Gray", hex: "#333333" }
50
+ ] as const;
51
+
52
+ export type TemplateFontOption = (typeof TEMPLATE_FONT_OPTIONS)[number];
53
+ export type TemplateFontId = TemplateFontOption["id"];
54
+ export type TemplateTextBackgroundColorOption = (typeof TEMPLATE_TEXT_BACKGROUND_COLOR_OPTIONS)[number];
55
+ export type TemplateTextBackgroundColorId = TemplateTextBackgroundColorOption["id"];
56
+
57
+ export const TEMPLATE_FONT_IDS = TEMPLATE_FONT_OPTIONS.map((option) => option.id) as [TemplateFontId, ...TemplateFontId[]];
58
+ export const TEMPLATE_TEXT_BACKGROUND_COLOR_IDS = TEMPLATE_TEXT_BACKGROUND_COLOR_OPTIONS.map(
59
+ (option) => option.id
60
+ ) as [TemplateTextBackgroundColorId, ...TemplateTextBackgroundColorId[]];
@@ -0,0 +1,15 @@
1
+ // Generated by `vidfarm analyze-viral-dna` and `vidfarm analyze-visual-dna`.
2
+ // Keep source notes in `research/source_notes.md` and reference media in `research/preview/`.
3
+
4
+ export const templateLinkToOriginal = "";
5
+ export const templateSourceNotesPath = "research/source_notes.md";
6
+ export const templatePreviewMediaRelativePaths = [] as const;
7
+
8
+ export const templateViralDna =
9
+ "Run `vidfarm analyze-viral-dna --template-dir .` after adding source notes and preview media.";
10
+ export const templateVisualDna =
11
+ "Run `vidfarm analyze-visual-dna --template-dir .` after adding source notes and preview media.";
12
+
13
+ export const templateViralDnaAnalysis = null;
14
+
15
+ export const templateVisualDnaAnalysis = null;