Also, as @AkosLukacs says, if you do want to use a capacitor, lower voltage ones tend to be smaller.
You could also look at surface mount capacitors. As you get to the bigger sizes they're pretty easy to hand solder. So for instance if you search for 4V surface mount capacitors there are a few around the 330uF size: https://www.mouser.co.uk/ProductDetail/Murata-Electronics/GRM32ER60G337ME05K?qs=qkDYIeTQ%252BEkpntsfMHJ5WA%3D%3D
That one's 3.2mm x 2.5mm - so you it's small enough to tuck away somewhere but big enough to solder without too much pain.
@Gordon started
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.
Also, as @AkosLukacs says, if you do want to use a capacitor, lower voltage ones tend to be smaller.
You could also look at surface mount capacitors. As you get to the bigger sizes they're pretty easy to hand solder. So for instance if you search for 4V surface mount capacitors there are a few around the 330uF size: https://www.mouser.co.uk/ProductDetail/Murata-Electronics/GRM32ER60G337ME05K?qs=qkDYIeTQ%252BEkpntsfMHJ5WA%3D%3D
That one's 3.2mm x 2.5mm - so you it's small enough to tuck away somewhere but big enough to solder without too much pain.