# Install darklua with Homebrew, Nix

Command-line tool that transforms Lua code. Version 0.19.0 via Homebrew; verified 2026-06-11.

## Install

```sh
sudo av install brew:darklua
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install darklua
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#darklua
```

  Evidence: nixpkgs package indexes: pkgs/by-name/da/darklua/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:darklua
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/darklua>
- **Version:** 0.19.0
- **Source summary:** Command-line tool that transforms Lua code
- **Homepage:** <https://darklua.com/>
- **Repository:** <https://github.com/seaofvoices/darklua>
- **Upstream docs:** <https://darklua.com/docs>
- **License:** MIT
- **Source archive:** <https://github.com/seaofvoices/darklua/archive/refs/tags/v0.19.0.tar.gz>
- **Last updated:** 2026-06-11T00:07:22Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- darklua (cli)
- darklua (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.19.0
- Package-manager updated: 2026-06-11
- Local data: ok
- Upstream repository: https://github.com/seaofvoices/darklua
- Upstream latest detected: v0.19.0 (current)
## Project history and usage

darklua is a Rust command-line tool for transforming Lua 5.1 and Roblox Luau code with configurable rules.

### Project history

The official README presents darklua as a configurable Lua and Luau transformer with a documentation site, browser try-it page, prebuilt GitHub releases, and installation instructions for Roblox-oriented toolchains such as Rokit and Foreman.

### Adoption history

The changelog shows an early 0.x evolution from basic processing rules into Luau support, bundling, sourcemap work, typed Luau handling, file watching, content loaders, and richer code-generation options. README badges point to crates.io packaging and GitHub release downloads.

### How it is used

Users run darklua to process or bundle Lua and Luau source trees. The docs say darklua auto-detects .darklua.json or .darklua.json5 in the current working folder, accepts an explicit --config path, and reads .luaurc data for Luau alias handling in relevant bundling modes.

### Why package nerds care

darklua is notable in package catalogs because it connects Rust-distributed CLI tooling with the Roblox/Luau ecosystem, giving Lua projects a packageable transformer/minifier/bundler workflow similar to what JavaScript developers expect from build tools.

### Timeline

- 0.1.0: Initial changelog entry.
- 0.5.0: Added Luau syntax support through full-moon.
- 0.10.0: Added path-require bundling and snake_case configuration.
- 0.16.0: Added .luaurc path alias reading for Luau configuration.
- 2026: v0.19.0 added content loaders and expanded file-processing support.

### Related projects

- The README and docs connect darklua to Luau, Roblox, Rokit, Foreman, crates.io, full-moon, and Rojo-style sourcemap workflows.

### Sources

- <https://darklua.com/docs>
- <https://github.com/seaofvoices/darklua>
- <https://github.com/seaofvoices/darklua/blob/main/CHANGELOG.md>
- <https://github.com/seaofvoices/darklua/releases>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .darklua.json, .darklua.json5, .luaurc
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** darklua
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - darklua: normalized package name match | nixpkgs package indexes: pkgs/by-name/da/darklua/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [coccinelle](https://www.automicvault.com/pkg/brew/coccinelle/) - Shares av.db curated category or tags: cli, code-transformation, developer-tools.
- [comby](https://www.automicvault.com/pkg/brew/comby/) - Shares av.db curated category or tags: cli, code-transformation, developer-tools.
- [stylua](https://www.automicvault.com/pkg/brew/stylua/) - Shares av.db curated category or tags: cli, developer-tools, lua, luau.
- [autogen](https://www.automicvault.com/pkg/brew/autogen/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [autorest](https://www.automicvault.com/pkg/brew/autorest/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [bam](https://www.automicvault.com/pkg/brew/bam/) - Shares av.db curated category or tags: cli, developer-tools, lua.
- [buf](https://www.automicvault.com/pkg/brew/buf/) - Shares av.db curated category or tags: cli, code-generation, developer-tools.
- [busted](https://www.automicvault.com/pkg/brew/busted/) - Shares av.db curated category or tags: cli, developer-tools, lua.
- [grex](https://www.automicvault.com/pkg/brew/grex/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, command-line, developer.
- [go-bindata](https://www.automicvault.com/pkg/brew/go-bindata/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/darklua.yml](https://github.com/automic-vault/db/blob/main/combined/darklua.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
