Other idea how we could use Takaaki WebKit Utilities.
On my local machine I have netdata setup to visual resources in beautiful way.
more info: https://learn.netdata.cloud/docs/agent/packaging/installer/methods/macos
Instead of using Safari or any web UI to display the output we could use AS to make applet.
Ref to WebKit Utilites: http://piyocast.com/as/archives/9488
use AppleScript version "2.4"
use scripting additions
use webLib : script "WebKit Utilities" -- by Takaaki Naganoya, Piyomaru Software
-- This AS Script use netdata, able from brew.
-- https://learn.netdata.cloud/docs/agent/packaging/installer/methods/macos
set theURL to "http://localhost:19999/#,theme=slate"
display URL theURL window size {1024, 850}