# How to use protobuffer in lua

**URL:** <https://forum.heroiclabs.com/t/how-to-use-protobuffer-in-lua/341>\
**Category:** Game Design\
**Created:** [November 28, 2019, 6:11pm UTC](https://forum.heroiclabs.com/t/how-to-use-protobuffer-in-lua/341 "2019-11-28T18:11:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yongyiqi](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yongyiqi](https://forum.heroiclabs.com/u/yongyiqi)\
**Post date:** [November 28, 2019, 6:11pm UTC](https://forum.heroiclabs.com/t/how-to-use-protobuffer-in-lua/341/1 "2019-11-28T18:11:15Z")

</div>

is there a tutorial about use protobuf in lua ?Should I build the lua lib myself?

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [November 30, 2019, 10:57am UTC](https://forum.heroiclabs.com/t/how-to-use-protobuffer-in-lua/341/2 "2019-11-30T10:57:27Z")

</div>

Hi @yongyiqi. Which protobuf library do you want to use with your Lua code?

---

<div class="post-metadata">

**Author:** ![yongyiqi](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yongyiqi](https://forum.heroiclabs.com/u/yongyiqi)\
**Post date:** [December 2, 2019, 3:13am UTC](https://forum.heroiclabs.com/t/how-to-use-protobuffer-in-lua/341/3 "2019-12-02T03:13:28Z")

</div>

hi novabyte:  
I found 2 lib on github :

> **[starwing/lua-protobuf](https://github.com/starwing/lua-protobuf)**
>
> A Lua module to work with Google protobuf. Contribute to starwing/lua-protobuf development by creating an account on GitHub.

  

> **[sean-lin/protoc-gen-lua](https://github.com/sean-lin/protoc-gen-lua)**
>
> Google's Protocol Buffers project, ported to Lua. Contribute to sean-lin/protoc-gen-lua development by creating an account on GitHub.

How to integrate them into nakama？Thanks！
