lde is a modern package manager and toolkit for Lua, written in Lua.
It bundles a LuaJIT runtime, a test runner, and a compiler that turns your Lua programs into single executables under 1mB — alongside a package registry with proper version locking and project-local isolation.
To get started, read the docs.
lde new/lde init— scaffold a new projectlde run— Run your project, installing dependencies automaticallylde test— Run tests with the built-inlde-testframeworklde compile— Compile your project into a single distributable executablelde bundle— Bundle your project into a single Lua filelde add— Add dependencies from a path, git repo, or the registrylde x/ldx— Execute a remote project directly, great for CLIslde tree— Visualize your dependency graphlde update— Update dependencies to their latest versionslde publish— Submit your package to the registry
| OS | Architecture |
|---|---|
| Linux | x86-64, ARM64 |
| macOS | x86-64, ARM64 |
| Windows | x86-64, ARM64 |
| Android | ARM64 |
| OS | Command |
|---|---|
| Linux & macOS | curl -fsSL https://lde.sh/install | sh |
| Windows | irm https://lde.sh/install.ps1 | iex |
Already installed? Run lde upgrade to update.
lde new myproject && cd myproject
lde add hood --git https://github.com/codebycruz/hood
echo "print(require('hood'))" > ./src/init.lua
lde run
# Output: table: 0x7f53326fd030Or run a remote project in one command:
ldx triangle --git https://github.com/codebycruz/hoodSee this table for a comparison with other common tools.