because I'm experienced in ESP32 and not in STM8. But now that you mention it, a little seed started to grow. Thank you kind stranger, lemme get back to you when this will probably 2 years from now on and another $2000 in research/playing around.
I said stm8 but there are a lot's of cheap microcontroller, I don't know what you use to program your esp32 but you should have a look at platform.io . I use that list https://registry.platformio.org/search?t=platform&p=1 to select MCU's for my projects.
The thing I like the most about it is that I don't have to manually install and managed various tool chains and it's a lot more flexible than the Arduino ide.
I use Free Pascal/Lazarus to target anything, ESP32 included. As for IDE where it runs, in a nice VM with plenty of processing power and memory on my PC so I can fast iterate code to production.