r/lua • u/thelabertasch • Jan 19 '26
Project Open sourced Luat: server-side Lua for web apps. Curious if I’m alone liking this direction.
https://github.com/maravilla-labs/luatHi r/lua,
I just open sourced a side project called Luat and I’m mainly interested in feedback on the direction and template design.
What I wanted was server-side Lua for web development without pulling in a frontend framework, but still keeping a nice dev experience: readable templates, component-style composition, clean routing, and small progressive-enhancement interactions instead of a full SPA.
Luat compiles templates to plain Lua modules and runs them in a Lua runtime. The template syntax is inspired by modern component-based approaches (Svelte-ish), but there’s no client-side runtime or hydration involved.
To make it easy to evaluate, I compiled Luat to WebAssembly so you can try the syntax directly in the browser and preview the rendered HTML output instantly.
Repo:
https://github.com/maravilla-labs/luat
Getting started docs:
https://luat.maravillalabs.com/docs/getting-started
I’m genuinely curious:
- am I the only one who wants this kind of server-side Lua + modern DX?
- does this template style feel appealing or off-putting?
4
u/Apiek Jan 20 '26
Sounds like a great idea, I look forward to taking a look.
1
u/mouseannoying Jan 21 '26
Looking pretty good. Is it Rust or Lua doing the heavy lifting?
1
u/HelioDex Jan 21 '26
This is really cool! I did something reminiscent of this a few years ago for a school project, also inspired by Svelte and Kit. It wasn't tremendously executed and I didn't get a great mark for it, so now I mostly build Lua web applications in a much more basic way though missing the nice syntax.
This, however, looks like a much better execution. Syntax and data loading look well-thought-out, and the KV store and frontend tools are both awesome to have built in!
2
u/jjoesmama Feb 12 '26
The world would be 1000x better if people used Lua instead of JS, GREAT PROJECT!!
1
u/xoner2 Jan 20 '26
The templates remind me of Smarty PHP. It's an ok style.
1
u/weregod Feb 02 '26
There was Kepler project for Lua-based web server. Project is abandoned now but some modules are still maintained in lunar modules.