Read entites by javascript


I made a visualisation by Node-red:

I would like made another visualization without Node-red.

My first idea is to create a “visualization.js” file that contains the HTML codes and the scripts to update the HTML variables

First question:
How can I read the Entities from HA and export to the HTML?
Second question:
Who can send for me the simple example (with 1-2 entities)?

Thank you!
Best regards
Zoltan Marti