Loopic introduces a concept of actions - they are basically a buckets of code that can be added to any keyframe in composition. Actions will be executed at the runtime (while the graphic is playing by CasparCG) and not while in development.
Actions can also be added directly to the composition once it loads (called Composition action). Location of actions in the UI is visible on the screenshot below.
Since Loopic is still in the BETA version, be careful while writing action code - if it breaks, it may break the entire graphic playback.
Actions have a global scope and they can access all API methods and properties. For more information about API, check API docs.
An example action is visible on the screenshot below.