Modules have access to some pre-made Stock Elements maintained by CastHub. This helps to keep the general theme of CastHub aligned as well as help speed-up prototyping.
All Stock Elements are instances of
window.casthub.module and as such can be extended as the main export of a Module. They all live within the
window.casthub.elements namespace, for example,
Gives a broadly supported Chat layout with easy message management.
Renders a counter with a background chart and optional label.
Renders an Emote Counter which sorts based on the amount of times an Emote is used.
A live-feed for small, consumable data.
Shows a customizable, reactive Items List with Avatar support.
Shows a Media Player with Album cover, useful for playing remote Media. An example of this is the Spotify Player Module.
Show a configurable Scenes List for broadcasting software.
A simple OFFLINE/LIVE indicator with some customizability for showing the status of a Livestream.
Shows an Avatar with various Labels/Counts, useful for things like showing Followers/Subscribers/Views. Examples of this include the Twitch and YouTube User Modules.