@trendyvideo/template-types
v1.0.2
Published
Canonical type definitions for Trendy Video clip templates (title/subtitle/watermark/etc.) — single source of truth shared across frontend, timeline-builder, and render-server
Maintainers
Readme
@trendyvideo/template-types
Canonical TypeScript types for Trendy Video clip templates. Single source of truth shared by:
trendy-frontend(template editor read/write,lib/api/templates.ts)trendy-timeline-builder(apply settings to Remotion timeline,RemotionTemplateMapper.ts)trendy-render-server(Lambda input props)
Why this package exists
Each service used to declare its own copy of TemplateSettings. They drifted: editor saved fields the timeline-builder didn't declare, so they silently dropped on the way through. Title backgrounds, subtitle line-height, watermark dimensions — all real bugs that traced back to schema drift.
Anything extract-template-styling.ts saves on the frontend MUST be declared here. Anything declared here MUST be assigned by the apply functions in timeline-builder.
Versioning
Bump the minor version when adding fields. Bump the major version only on breaking shape changes — all three consumers will need a coordinated upgrade.
Publish
cd packages/template-types
npm version minor # or patch / major
npm publish --access publicThen bump consumers' package.json and follow the same deploy chain as @trendyvideo/billing / @trendyvideo/storage.
