Ask HN: Server-side Lua?

7 points by dccoolgai ↗ HN
Does anyone have recommendations for server-side frameworks in Lua? Ideally, I'd be interested in something that is less opinionated/MVC-ish like Node but I just want to get a general sense of what folks use. I've had a passing interest in Lua for a long time and now I want to mess around with it a little more.

5 comments

[ 4.5 ms ] story [ 24.0 ms ] thread
Since you mentioned node, I'd recommend checking out luvit. It's essentially node for lua: https://luvit.io
I've been working with openresty (ngx+lua) for a few months now and I love it. If you know nginx you can get started with it in a couple of days.

The idea behind it is simple. It introduces a set of directives that allow you to execute lua code. Some of these directives are completely new while others are meant to compliment nginx's native directives. Eg:

the `access_by_lua` directives is meant to execute lua code after nginx's access phase handler. Where as `content_by_lua` has no nginx equivalent.

I haven't used the MVC frameworks built with openresty myself but that was only due to lack of research on my part! I wish I had taken time to see what options were available.