This example shows how to use the library with JavaScript or rather mJS.
Setup Mongoose OS as described here: https://mongoose-os.com/docs/mongoose-os/quickstart/setup.md
Please note that the chosen configuration is for a Adafruit HUZZAH ESP32 or a Adadafruit HUZZAH ESP8266, and a (monochrome) ePaper Display FeatherWing. So please adjust the configuration (GPIOs, display width/height/driver, etc. in the config_schema section) in mos.yml accordingly for your setup.
git checkout https://github.com/bbilger/mgos-arduino-adafruit-epd
cd mgos-arduino-adafruit-epd/examples/hello_js
mos build --local --platform esp32 && mos flash && mos console
# or
mos build --local --platform esp8266 && mos flash && mos console