Custom app support
Create a custom app support for bruce firmware like flipper zero. There might be a repo and people submit their apps and users can just install new apps in Bruce without changing firmware. Apps are created for separate features. For example A person needs an air mouse to control the TV user just install a new app that is created by other users. Example 2 A person at presentation needs to use a presentor, just add a new app and get things done. There might be an app for Android and iOS and users can connect devices with Bluetooth and install new apps from the app.
You should ask chatgpt, I've used it in the past for Arduino stuff and its great.
The JS part is precisely so people can create their own scripts and execute functions without having to implement them in code. Since the base is JavaScript, it's easier for most people to understand and write what they need.
We also took into account the code limitations, size, and performance of the ESP32.