r/lua • u/Revolutionary_Sir140 • 9h 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
- A
protoc-gen-lua-grpcgenerator 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.