Skip to content

henry40408/lmb

Repository files navigation

lmb

Casual Maintenance Intended GitHub Workflow Status (with event) GitHub codecov

What is lmb?

A standalone Luau runtime.

It is a simple command-line tool that allows you to run Lua scripts and functions directly from the terminal. Its performance is optimized for quick execution of Lua code snippets, making it suitable for low-end hardware such as the Raspberry Pi.

$ cat > hello.lua <<EOF
> function hello()
>     print("Hello, world!")
> end
> return hello
EOF

$ lmb eval --file hello.lua
Hello, world!

For more information, please read the guided tour.

Features

  • Batteries included: Comes with handy libraries such as crypto, http, and json.
  • Easy to use: Run Lua scripts and functions from the command line.
  • Fast: Optimized for quick execution, making it suitable for low-end hardware.
  • Secure: Runs Lua code in a sandboxed environment provided by Luau to prevent unwanted side effects.

Installation

You can install lmb using cargo:

$ cargo install --git https://github.com/henry40408/lmb.git --locked

Similar projects

  • Lune: I discovered this project through an issue in the mlua repository. If you need a Lua runtime with features for the Roblox platform, you might want to try Lune. Since I do not develop for the Roblox platform, I do not plan to add similar features to this project in the near future.

License

MIT

About

A standalone Luau runtime

Resources

License

Stars

Watchers

Forks

Packages