It’s not exactly what you’re wanting, but there is Remote Video Camera on F-Droid.
If I were doing it, I would look for an app that just implements the same basic functionality as a network-connected camera. Then video storage, alerting, motion detection, etc. would all be handled by something like zoneminder.
Codeberg is one option. I think they run Forgejo.