I do see there is code to throw an error when it detects an instance is not Lemmy, so it definitely doesn’t work out-of-the-box. But the APIs for each are supposedly similar to each other, so it fortunately should not take any major rewrite to support both in the same wrapper.
https://freamon.github.io/piefed-api/