Depends what is the performance you’re looking for. I used a Raspberry Pi 3 with Alpine (diskless install) to connect to wifi (WAN) and act as a router on the ethernet port (with all that entails, like dhcp, dns forwarding etc.). Now my main router is a RockPro64 (doing basically the same).
Both had their ethernet port configured with VLANs, but you can use the port as a single LAN (the classic way).
I’m pretty sure OpenWRT / LibreCMC can do the same, but I never configured them in such a configuration, so do your own research (I’m pretty sure network chuck did a video ages ago on his pi VPN router running openwrt, about a month after my Easy to Follow Roadwarrior multi-client single VPN setup). So technically speaking if a router supports openwrt, it can support wifi WAN and routing the ethernet port as LAN.
My setup allows me to VPN my whole network to outbound in another location, but you don’t have to do the VPN part.