Skip to content

ewd3v/luau-vm-compress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luau-vm-compress

A Luau code compression utility
(Luau bytecode + zstd compression + minified Fiu vm fork = compression)

Not an obfuscator, but I suppose it works as one.
(Notice: extracting bytecode from the output is easy, but the full source code will be hidden).

Getting Started

(Requires Bun, might work with npm / node, but I haven't tested.)

To install dependencies:

bun install

Testing

Check the /test directory and add a input.luau file, then run:

bun run test

You should now see a output.luau containing your processed code.

VM

If you want to make modifications to the vm, then first get the proper tooling with Rokit:

rokit install

(You can also just manually install darklua.)


After making changes to vm/vm.luau run:

bun run gen

This should generate a vm_output.luau file, copy it's contents and paste it into the default export of src/vm.js

Notes

This project was created using bun init in bun v1.1.42. Bun is a fast all-in-one JavaScript runtime.

Uses http requests to compile Luau (check src/index.js).

The vm being used for compressed files is a fork of Fiu

About

A Luau code compression utility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published