There are alternate firmwares available for the Wyze Cams. This is mainly due to them being based on a platform that is common to multiple manufacturers. Not sure about the Pan cam or other models, though.
I certianly would not prefer rolling my own replacement for Wyze’s app. Depending on the amount of effort required and how big the functionality gap would be, it might be “easier” to just ditch the Wyze gear and switch to a different manufacturer.
I certianly don’t relish the thought of the barren wasteland of a post-Wyze apocalyptic future.