DocumentationTry itGitHub


Transform Lua code.

Preserve stack traces

When generating code, darklua keeps the line numbers aligned with the original code to keep stack traces easily actionable.

Inject global variables

Inline a global directly in the code, like an environment configuration value. Use the same source but produce artifacts with debug information or optimization enabled.

Process Roblox Luau

darklua can parse and process Roblox Luau.

Minify Lua source

Compress Lua text source to its limits

Bundle code

Generate a single file from an entire project. Darklua can even load data files (json, yaml, toml) and convert them into Lua code.

Use path require for Roblox development

Darklua can convert path requires into Roblox requires. No more confusing 'script.Parent' chains.

Not convinced?

You can try it directly in your browser
Try it