Auto-hook (opt-in per job, dashboard default ON): - /api/process accepts auto_hook + auto_hook_style; absent means off, so API/MCP/webhook callers keep byte-identical output. - main.py auto_hook_clip burns each clip's viral_hook_text (Gemini already produced it, it was only used to pre-fill the modal) into the canonical clip in place — after reframe, under watermark and captions — so every derived-name convention (subtitled_/recut_ walk-backs, R2 archive, restore) keeps working untouched. Fail-open like auto_caption_clip. - Burned hook recorded as clip.auto_hook in metadata; the hook modal warns before stacking a second one. - MediaInput: 'auto hook titles' toggle + style select in advanced options, persisted in localStorage. Emoji that actually render: - Gemini prompt now asks for 1-2 emojis in viral_hook_text. - Dockerfile installs fonts-noto-color-emoji — without it prod silently stripped every emoji (no candidate font existed in the image). - hooks.py supports fixed-bitmap color fonts (NotoColorEmoji only loads at its 109px strike; Apple Color Emoji at 160): glyphs render at native size and are Lanczos-rescaled to the text size instead of being treated as unavailable. macOS system font added for local dev. Editor polish: - HookModal persists last style/position/size/entrance (always reset to classic before, which read as the picker being broken). - Remotion preview positions aligned to hooks.py (top 20%, bottom 70%). - Warning when a bottom hook will overlap burned/preview captions. - Entrance-animation control greyed out with a note when the clip re-renders on the server, where the hook is static. |
||
|---|---|---|
| .. | ||
| public | ||
| seo | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite-plugin-seo.js | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.