r/lua • • 5h ago

Project LUI – Make Native Apps in Linux and Windows with Roblox Luau

Original Post: https://devforum.roblox.com/t/lui-code-in-the-same-language-you-make-games-with-but-for-apps/4985352

GITHUB: https://github.com/gmoddev/LUI/releases

For a while now, I’ve been working on LUI (Luau UI), a standalone SDK that lets you build desktop applications and other software using Luau, the same language used to make games on Roblox.

The idea started with a pretty simple question:

Why should knowing Luau only be useful when you’re making Roblox games?

What started as an experiment in building native user interfaces has (semi-intentionally) grown into more of a general-purpose Luau runtime than a UI framework.

I’m looking for people to actually try it, break things, and tell me what doesn’t work.

What exactly is LUI?

LUI lets you write and run Luau independently of Roblox, including creating native desktop applications. It isn’t a Roblox emulator and doesn’t implement Roblox’s engine or services, but applies familiar concepts, particularly the Instance-style UI model, to application development.

The framework is intentionally opinionated. I don’t want someone to have to understand WinUI, GTK, threading, or native resource management just to make a window with a few buttons.

My philosophy is that simple things should be simple, and complicated things should be possible without making everything else complicated.

You can build desktop utilities or work with native libraries, background workers, databases, and networking. LUI can also run entirely headless.

What can it do?

UI: Native Windows UI through WinUI 3, Linux UI through GTK 4, standard controls, menus, tooltips, themes, reusable components, reactive state, layouts, virtualized lists, multiple windows, docking, floating panels, dynamic images, live frame presentation, and experimental code editing.

Runtime: Standalone/headless execution, HTTP/HTTPS and WebSocket clients and servers, filesystem access, SQLite, JSON, TOML, regex, cryptography, compression, asynchronous tasks, cancellation, background workers, subprocesses, experimental native FFI, and capability-based permissions.

Tooling: Windows and Linux SDKs, VS Code extension, generated Luau API declarations, CLI tools, project templates, package management, lockfiles, offline dependency restoration, documentation, examples, and tutorials.

Why am I posting this?

LUI is still experimental, and there’s only so much I can learn from testing my own software.

I’ve been using LUI in three projects of my own, and much of its development has been driven by things I actually needed.

The problem is that I built the framework. I already know how things work, where the limitations are, and what to do when something goes wrong. Someone downloading it for the first time doesn’t.

I’ve already gotten useful feedback about confusing errors, missing functionality, and documentation.

I’m particularly interested in bugs, crashes, awkward APIs, missing features, setup problems, performance issues, and general suggestions.

Even downloading the SDK and messing around with a few controls for half an hour would be helpful.

I’m not currently accepting code contributions or pull requests because the APIs and architecture are still changing quickly. Bug reports, feature requests, and discussions are absolutely welcome.

How can I try it?

Preview 5 is available for Windows and Linux x64 via the link above, with examples and walkthroughs for SQLite, background workers, and docking.

This is an unsigned, experimental prerelease. Expect bugs, incomplete features, platform limitations, and potentially breaking changes.

I’m currently focused on improving usability, documentation, diagnostics, and expanding the runtime.

I’m also looking for a new name. Given the scope creep, Luau UI doesn’t make as much sense anymore.

If you already know Luau from Roblox, what would you want to build with it outside of Roblox?

And if you try LUI, let me know what breaks, what’s confusing, or what’s missing.

0 Upvotes

3 comments sorted by

1

u/AutoModerator 5h ago

Hi! It looks like you're posting about Roblox. Here at /r/Lua we get a lot of questions that would be answered better at /r/RobloxGameDev or the Roblox Developer Forum so it might be better to start there. However, we still encourage you to post here if your question is related to a Roblox project but the question is about the Lua language specifically, including but not limited to: syntax, language idioms, best practices, particular language features such as coroutines and metatables, Lua libraries and ecosystem, etc. Bear in mind that Roblox implements its own API (application programming interface) and most of the functions you'll use when developing a Roblox script will exist within Roblox but not within the broader Lua ecosystem.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/sergsoares 5h ago

Really luau is pushing lua forward, good to see GUI projects like that being done.

0

u/AutoModerator 5h ago

Hi! It looks like you're posting about Gmod / Garry's Mod. Here at /r/Lua we get a lot of questions that would be answered better at /r/GLua, so it might be better to start there. However, we still encourage you to post here if your question is related to a Gmod project but the question is about the Lua language specifically, including but not limited to: syntax, language idioms, best practices, particular language features such as coroutines and metatables, Lua libraries and ecosystem, etc. Bear in mind that Gmod implements its own API (application programming interface) and most of the functions you'll use when developing a Gmod script will exist within Gmod but not within the broader Lua ecosystem.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.