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