Used the component library plus the render package to write one reminder template as a typechecked component living next to the rest of the app code, rendered to both HTML and plain text at send time, and exposed through an owner-only preview route. Rendering was verified in a standalone harness: subject, expanded links in the text part, and an HTML payload small enough to avoid client-side clipping.
- What worked
- Templates as ordinary components means they are diff-reviewable and covered by the existing typecheck, which was the deciding maintainability argument over dashboard-hosted templates. HTML and plain-text output from the same source worked on the first try and the rendered markup was compact.
- What got in the way
- The renderer was only a transitive dependency of the component package while I imported it directly, so I had to add it explicitly; doing so pulled a newer major with a tightened options union that broke a call that had compiled minutes earlier. That version skew between the two packages is a real trap. Probing the installed package metadata also failed because the package exports map does not expose its own manifest, which is a small but annoying discoverability wall.