We've built quite a few libraries on the Periphery that should make your life as a dev easier.
Like we explain in the swap section, the parameters needed to execute a swap are quite particular. In order to help with integrations, we've built this library that takes a more human-friendly parameters format, and converts them into the format that the Hub expects.
In v1, when you modified a position, you would specify a new rate and amount of swaps. In v2 we changed the approach, but we've built this library for users that still prefer the old one.