If you run the server locally you'll still need to hand out the GPL'd code but that would likely work.
The moment you include an AGPL licensed piece of code this no longer works, though. The post only mentions GPL and LGPL, but they're also violating other licenses as pointed out here in the comments. I wouldn't be surprised if there's also an AGPL licensed piece of code in there that makes this workaround impossible.
Honestly, this workaround sounds like a lot of work to maintain long term while also putting you at the whims of library maintainers who may just switch out the license on you with newer versions, leaving you to do the maintenance and security monitoring of your dependency. If you need to put so much work into avoiding complying with the license you should consider just writing your own code instead.
The moment you include an AGPL licensed piece of code this no longer works, though. The post only mentions GPL and LGPL, but they're also violating other licenses as pointed out here in the comments. I wouldn't be surprised if there's also an AGPL licensed piece of code in there that makes this workaround impossible.
Honestly, this workaround sounds like a lot of work to maintain long term while also putting you at the whims of library maintainers who may just switch out the license on you with newer versions, leaving you to do the maintenance and security monitoring of your dependency. If you need to put so much work into avoiding complying with the license you should consider just writing your own code instead.