Files
Compass/media-creator/package.json
MartinBraquet fab7c5e07b Add script for fetching web fonts for OG card rendering
- Introduced `fetch-fonts.mjs` to download brand web fonts from Google Fonts into `public/fonts/`.
- Integrated font fetching into the `still:og` script to ensure rendering dependencies are prepared automatically.
- Updated `package.json`, README, and font-related modules to document usage and improve reproducibility.
- Ensured rendering fails cleanly if fonts are missing or invalid, maintaining visual consistency.
2026-07-24 19:03:48 +02:00

47 lines
2.4 KiB
JSON

{
"name": "compass-media-creator",
"version": "0.1.0",
"private": true,
"description": "Standalone Remotion studio for Compass media creation. Intentionally NOT part of the root yarn workspaces — install and run it on its own with npm.",
"license": "MIT",
"scripts": {
"capture:alert": "node scripts/capture-alert.mjs --theme light",
"capture:alert:dark": "node scripts/capture-alert.mjs --theme dark",
"capture:profile": "node scripts/capture-profile.mjs",
"capture:search": "node scripts/capture-search.mjs --theme light",
"capture:search:dark": "node scripts/capture-search.mjs --theme dark",
"capture:vote": "node scripts/capture-vote.mjs",
"fonts": "node scripts/fetch-fonts.mjs",
"render": "npm run render:post",
"render:alert": "remotion render SearchAlertLight out/compass-search-alert-light.mp4 --crf 30",
"render:alert:dark": "remotion render SearchAlertDark out/compass-search-alert-dark.mp4 --crf 30",
"render:carousel": "node scripts/render-carousel.mjs",
"render:post": "remotion render IntroPost out/compass-intro-post.mp4",
"render:search": "remotion render SearchDemoLight out/compass-search-demo-light.mp4 --crf 30",
"render:search:dark": "remotion render SearchDemoDark out/compass-search-demo-dark.mp4 --crf 30",
"render:story": "remotion render IntroStory out/compass-intro-story.mp4",
"render:tour": "remotion render ProfileTourStory out/compass-profile-tour-story.mp4",
"render:tour:post": "remotion render ProfileTourPost out/compass-profile-tour-post.mp4",
"still:alert": "remotion still SearchAlertLight out/compass-alert-poster-light.png --frame=0",
"still:alert:dark": "remotion still SearchAlertDark out/compass-alert-poster-dark.png --frame=0",
"still:og": "npm run fonts && remotion still OgCard out/compass-og-card.jpg --image-format=jpeg --jpeg-quality=92",
"still:search": "remotion still SearchDemoLight out/compass-search-poster-light.png --frame=0",
"still:search:dark": "remotion still SearchDemoDark out/compass-search-poster-dark.png --frame=0",
"studio": "remotion studio",
"typecheck": "tsc --noEmit",
"upgrade": "remotion upgrade",
"upload:media": "bash scripts/upload-media.sh"
},
"dependencies": {
"@remotion/cli": "4.0.290",
"react": "19.2.3",
"react-dom": "19.2.3",
"remotion": "4.0.290"
},
"devDependencies": {
"@types/react": "19.2.3",
"@types/react-dom": "19.2.3",
"typescript": "5.5.4"
}
}