lmb is a Lua function runner
- Evaluate Lua scripts.
- Handle HTTP requests via Lua scripts.
- Schedule Lua scripts with cron.
- Rust ≥1.81.0
git clone https://github.com/henry40408/lmb
cd lmb
cargo install --path . --locked
Find some examples:
lmb example ls
Evaluate an example:
lmb example eval --name hello
Evaluate a Lua script:
$ lmb eval --file lua-examples/hello.lua
hello, world!
Handle HTTP requests with a single script:
$ lmb serve --bind 127.0.0.1:3000 --file lua-examples/echo.lua
(another shell session) $ curl -X POST http://localhost:3000 -d $'hello'
hello
MIT