Stock Elements

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, window.casthub.elements.user.

chat

Gives a broadly supported Chat layout with easy message management.

Documentation

counter

Renders a counter with a background chart and optional label.

Documentation

emote_counter

Renders an Emote Counter which sorts based on the amount of times an Emote is used.

Documentation

feed

A live-feed for small, consumable data.

Documentation

list

Shows a customizable, reactive Items List with Avatar support.

Documentation

player

Shows a Media Player with Album cover, useful for playing remote Media. An example of this is the Spotify Player Module.

Documentation

scenes

Show a configurable Scenes List for broadcasting software.

Documentation

stream_status

A simple OFFLINE/LIVE indicator with some customizability for showing the status of a Livestream.

Documentation

user

Shows an Avatar with various Labels/Counts, useful for things like showing Followers/Subscribers/Views. Examples of this include the Twitch, Mixer and YouTube User Modules.

Documentation