All of the esp32 boards I have seen are 4mb - because of the RTOS and libs, the firmware is bigger so you need that size. I have heard good things about the wemos esp8266 too, but have had not direct experience. I think it should be suitable.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
All of the esp32 boards I have seen are 4mb - because of the RTOS and libs, the firmware is bigger so you need that size. I have heard good things about the wemos esp8266 too, but have had not direct experience. I think it should be suitable.