r/lua 2d ago

lua-grpc

Hi r/lua — I’m working on lua-grpc, a native gRPC implementation for Lua.

It provides:

  • Pure-Lua gRPC runtime over HTTP/2
  • Protocol Buffers through lua-protobuf
  • Unary, server-streaming, client-streaming, and bidirectional-streaming RPCs
  • Lua server support
  • protoc-gen-lua-grpc generator for Lua client/service bindings
  • Hello World examples for all four gRPC call types

The project uses lua-http for HTTP/2 and is packaged for LuaRocks. The generator is a small Go executable, while generated bindings and the runtime are Lua.

It’s still early-stage. Compression, interceptor execution, and connection pooling are the main gaps I’m planning to address next.

I’d really appreciate feedback from Lua developers—especially around API ergonomics, Lua version support, and real-world gRPC interoperability.

Repo: https://github.com/Protocol-Lattice/lua-grpc

8 Upvotes

0 comments sorted by