Embedding it is then.
I have a local RPi5 powered NAS, and I'm using https://github.com/chenxiaolong/RSAF as provider to abstract it for apps like Poweramp [via sftp, but it supports many many protocols]. It's simple and it works without any fuss [albeit a tad slow to scan initially].
NAS is dlna/upnp enbaled too, so it would be great if Poweramp decided to implement it eventually.