VIP requires a token from the broadcaster, since only the broadcaster can VIP/UnVIP users
So I doubt you’d find a boilerplate for that.
Your best bet here is to skip Stream Elements all together and build a chat bot.
That will listen for a new subscriber and then VIP the subscriber. But it will need to be logged in as the broadcaster.
You’d probably run out of VIP’s quick, since you only have a finite number of VIP Slots.