Interactive dynamic instrumentation app built on Frida. All business logic lives in LumaCore, a cross-platform Swift package; the current shipping frontend is a macOS SwiftUI app, with a GTK/Adwaita frontend for Linux on the way.
Sources/LumaCore/ # cross-platform Swift package — engine, sessions,
# persistence, disassembly, collaboration, hook
# packs, GitHub auth, address annotations, …
Agent/ # TypeScript agent injected into the target process
Luma/ # macOS SwiftUI frontend
Luma.xcodeproj/ # Xcode project (Luma app + LumaBundleCompiler)
Package.swift # SPM manifest for LumaCore
- macOS ≥ 15.0
- Xcode ≥ 26 (with the Metal toolchain installed — open Xcode once and accept the Metal SDK download prompt, or install it via Settings → Components)
LumaCore itself only needs Swift 6 and the package dependencies
listed in Package.swift. It builds on Linux too:
swift build --target LumaCore-
Open the project:
open Luma.xcodeproj
-
Ensure the build destination is set to My Mac (Luma currently uses AppKit-only components and does not yet build for iOS).
-
Choose Product → Build (⌘B).
This performs an incremental build and is the most convenient workflow during development.
A Makefile is provided for building Luma without opening Xcode.
This build is also incremental, because it uses a persistent
derived-data directory.
The output app is produced in ./build/, and intermediate build
files are stored in ./build/.derived.
To build:
makeTo clean:
make cleanThe resulting app will be located at:
build/Luma.app
Luma provides a Nix flake for running and installing on Linux:
nix run github:frida/luma # run Luma without installing
nix shell github:frida/luma # shell with luma in PATH
nix build github:frida/luma # build into the Nix storeThe flake exposes an overlay so you can add Luma to your own Nix configuration:
inputs.luma.url = "github:frida/luma";
nixpkgs.overlays = [ luma.overlays.default ];After applying the overlay, pkgs.luma is available in your
package set.
Install the toolchains and -devel packages for Luma and its native
dependencies:
sudo dnf install -y \
gcc-c++ libstdc++-static patch golang-bin nodejs swift-lang \
libadwaita-devel atk-devel webkitgtk6.0-devel \
libepoxy-devel librsvg2-devel \
libgee-devel json-glib-devel libsoup3-devel \
libunwind-devel libdwarf-devel libnice-devel \
ngtcp2-crypto-ossl-devel libbpf-devel capstone-devel \
lzfse-develBuild and install frida-core into /usr/local (Fedora's libbpf
is too old, so force a subproject fallback):
cd ~/src
git clone git@github.com:frida/frida-core.git
cd frida-core
./configure --enable-shared --without-prebuilds=sdk \
--enable-barebone-backend --enable-compiler-backend \
-- --force-fallback-for=libbpf
make
sudo make installBuild and install radare2 into /usr/local. The stock
sys/install.sh builds without optimization, so override CFLAGS
and strip unused code with --gc-sections:
cd ~/src
git clone git@github.com:radareorg/radare2.git
cd radare2
CFLAGS="-O2 -g -ffunction-sections -fdata-sections" \
LDFLAGS="-Wl,--gc-sections" \
./sys/install.sh --installFrom LumaGtk/:
make # incremental build → .build/debug/LumaGtk
make run # build + launch
make install PREFIX=/usr/localRequires Swift for Windows, Visual Studio 2022 (for cl.exe),
vcpkg with gtk4, and prebuilt frida-core / radare2 / pharo-vm
prefixes.
No distribution packages a Pharo VM, so build one from our fork, which carries the Meson build and the tweaks that make it compile with MSVC. It generates its own interpreter sources, so Meson, Ninja and Python are all it needs beyond the compiler:
git clone -b pharo-12 https://github.com/frida/pharo-vm.git C:\src\pharo-vm
cd C:\src\pharo-vm
meson setup build --prefix C:/src/pharo
meson install -C buildThen launch a Developer PowerShell for VS and run from LumaGtk/:
.\scripts\windows\build.ps1 # debug
.\scripts\windows\build.ps1 -Configuration release
.\scripts\windows\package-msi.ps1 -Version 0.1.0 # build\Luma-*.msi
.\scripts\windows\run.ps1 # launch with DLL PATH setPrefix locations default to C:\vcpkg\installed\x64-windows-release,
C:\src\dist and C:\src\pharo; override with -VcpkgPrefix,
-FridaPrefix, -R2Prefix, -PharoPrefix (or $env:VCPKG_PREFIX
etc.).