Write the app in its own folder, such as app/, with index.html on top.
Bundle everything: scripts, styles, fonts and images are files in the folder.
It cannot load from other sites, call APIs or open windows.
Data it shows is a file saved with files.write and expect, such as
data/deals.json, named under data when you publish. To keep it current,
set source to a routine's id from apps.routines; each run updates it.
To read it, parent.postMessage({type:'melete.data',id,name:'deals'},'*'); the
answer is a message from parent: {type:'melete.reply',id,ok,value}.
Browser storage is lost on reload: to keep a viewer's ticks, declare a state
collection, save with melete.save (collection, record), read with melete.load.
Publish with apps.publish: the folder, a short name, and who may open it
(only_me unless the person named people or everyone here). It asks the
person only when it reaches new people, uses WebRTC or shows new data.