I've implemented a custom element for recurring tasks. I found this easier than implementing the same thing as a widget module, which seems to require constructing HTML indirectly via objects describing elements.
How should this best be organized as a TW5 plugin? My initial thoughts are that the JS that defines the custom element and calls customElements.define should be a "startup" module while the template could be stored in an HTML tiddler.