Here is it:
https://gist.github.com/lukasnalezenec/8427423
Itst not completely standalone, you need to compile protobufs