Simple example calculator for playing with Delta Chat apps
Vanilla JS code from this link
The actual app is calc.xdc
file, you can modify the other files and use the included webxdc-dev to create a new one.
Just drop it into any chat and you should have a calculator.