Check WEMScript documentation for documentation and typical widget structure outline.
Check Widgets on MyWEM Forum for example widgets, technical explanations and active discussions.
See widgets.live.wem.io for examples and descriptions of most of our available widgets from the global library.