Lightweight β‘ Fast π Productive π‘ Run Lua scripts, build self-contained binaries, and ship projects with zero hassle.
# Run a Lua script
luna run main.lua
# Initialize a project
luna init
# Build a self-contained binary
luna build
# Start interactive REPL
luna replLuna is not just Lua, itβs a modern developer experience:
- π Cross-platform β Linux, macOS, Windows binaries
- π¦ Embedded assets β package scripts & resources in one binary
- π Fast CLI β intuitive commands and flags
- π Secure sandboxing β control filesystem & network access
- π Rich STD Library β async tasks, HTTP, SQLite, JSON, TOML, YAML, and more
$ luna --help
Luna: A modern lua runtime
Usage: luna [command] [flags]
Commands:
build Compile the script into a self-contained executable
clean Remove the build directory
completion Generate the autocompletion script for the specified shell
docs View Luna's documentation
eval Evaluate a Lua snippet
init Initialize a new project
repl Start an interactive Lua Read-Eval-Print Loop (REPL)
run Run a Lua script or project
task Run or list tasks
test Run tests
Flags:
-h, --help help for luna
-v, --version Print version
Luna comes with a powerful and modern STD:
| Module | Purpose |
|---|---|
base64 |
Encode/decode Base64 strings |
crypto |
Hash, HMAC, UUID, randomness |
env |
Load & manage environment variables (.env) |
http |
Client & server |
ipc |
Inter-process communication utilities |
math |
Extended math functions |
random |
Random int/float, shuffle, choice |
sqlite |
Embedded SQLite DB with transactions |
tablex |
Extended table utilities |
test |
Unit testing helpers |
time |
Time & date helpers |
.
βββ src/ # Your Lua scripts
βββ dist/ # Generated binaries
βββ Luna.toml # Project config
- π Cross-platform build β Linux, macOS, Windows, ARM64
- π§© Embedded resources β package images, configs, and scripts together
- π Hot REPL β edit scripts live, preserve context, watch mode
- π Integrated documentation β
luna docs - π§ͺ Unit testing β simple, readable test suite (
luna test)
I β€οΈ contributors!
git clone https://github.com/wuX4an/luna.git
cd luna
luna run build.luaCheck CONTRIBUTING for details.
βLightweight as Lua, productive as JS, portable as Go, modern as Rust.β