My own weather widget, questions about language and architecture

I want to create my own weather widget (using weather source/api/webpage I like).

I have simple version that uses JavaScript? inside main.qml.

My question is: how much memory it uses? does it run separate JS engine? (I’d assume hundreds of megabytes of RAM? )

I want to create super light widget (as the widget should be :slight_smile: ).

What should be proper architecture? I was thinking about periodically (once per 4h for example), running Python script that gets weather (thru REST API) and maybe prepares proper response for a user (whatever format is required) and widget gets that precalculated data from stdout. What is the best way for a widget to display weather? text and possibly a few icons? (like rain, clouds etc.) SVG ? QtQuick.Shapes ? I’m looking for most lightweight option. (but maybe not pure text like only labels)