Hey all! I'm building an alternate touchpanel to Lovelace which I'll be making available to the community as an addon, my question relates to best-practices as far as how I build this thing (note that I'm new to addon development and welcome the communities expertise).
Previously, I built my touchpanel app using Node.js and ran the Node server on whatever device I wanted to use as a touchpanel. The node server hosted the touchpanel and the touchpanel communicated with the HA REST API and websocket API via the frontend (fetch calls directly to HA API and frontend websocket directly to HA API).
As I port this to an Addon where the server will now be hosted on the HA machine itself, can I essentially just do the same thing? Implement a node server in my addon and communicate with the API from the front-end, or is it better to have my server connect to the supervisor API's and establish a websocket connection and then have my front-end communicate through my Node.js server to HA API?