Makepad is a creative software development platform for Rust that compiles to wasm/webGL, osx/metal, windows/dx11 linux/opengl
Makepad is a creative software development platform for Rust that compiles to wasm/webGL, osx/metal, windows/dx11 linux/opengl
Makepad is an AI-accelerated application and game development environment for Rust. It combines a high-performance UI runtime, a live-editable design language, and a fast iteration loop so you can build native and web apps with a tight feedback cycle.
It also has a large set of AI backends integrated for embedding llms or generative AI models inside applications or run them easily on local hardware
This repository contains the core engine, widgets, tools, and examples.
Rust stable is the toolchain everywhere: https://rustup.rs
macOS — install Rust and the Xcode command line tools, then:
cargo run -p makepad-vj --releaseWindows — install Rust, Visual Studio 2022 (Desktop development with
C++), and the NVIDIA CUDA toolkit (any recent version; the build finds it
by itself). Then the same cargo run -p makepad-vj --release. Without a
CUDA toolkit the build still links — the GPU-AI lanes just stub out.
Linux — the VJ currently only compiles with CUDA present, and the lane is not regularly tested; expect to fix small things. The errors are shallow — point an AI coding assistant at them and it will get you building.
What CUDA is for: the VJ uses the GPU-AI lane for audio source separation (BS-RoFormer splits a track into vocals/drums/bass/other, which drives the stem mutes and the karaoke word timing). The app runs fine without it — those features just stay off.
Model files install from inside the app. The music decks use two
MIT-licensed model files: the BS-RoFormer stem splitter (527 MB) and the
Whisper large-v3-turbo transcriber (1.6 GB, karaoke word timing). On a
machine that lacks them the music page shows an INSTALL MODELS row
under the track explorer — accept the licenses and the app downloads both
(resumable, sha256-verified) into local/ in the checkout. Until then the
VJ reports "stems: model not installed" and carries on. Existing copies
are found via VJ_STEMS_CKPT / MAKEPAD_VOICE_MODEL or the standard
local/ paths.
cargo install --path=./tools/cargo_makepadThen install target toolchains as needed:
cargo makepad wasm install-toolchain
cargo makepad apple ios install-toolchain
cargo makepad apple tvos install-toolchain
cargo makepad android --abi=all install-toolchainLinux build/runtime dependencies are listed in ./tools/linux_deps.sh:
Use the apt-get command below, or run the script on Ubuntu/WSL2:
…Makepad Studio is the main entry point for exploring examples and iterating on UI.
cargo run -p makepad-director --releaseIf you want a local install (note: may lag the repo):
cargo install makepad-directorRun a few representative apps directly from the repo:
# Splash (simple animated demo)
cargo run -p makepad-example-splash --release
# 3D rendering (glTF)
cargo run -p makepad-example-gltf --release
# Maps
cargo run -p makepad-example-map --releaseFor built-in maps and voice support, download the assets first:
./tools/download_map.sh
./tools/download_voice.shcargo makepad wasm install-toolchaincargo makepad wasm run -p makepad-example-splash --releaseFor smaller shipped wasm output, use the shipping-size optimization pass. It keeps the post-link size reduction behavior and pairs well with the existing small profile:
cargo makepad wasm build -p makepad-example-splash --profile=small --stripTo split the wasm payloads, add --split. Bare --split uses an automatic cold-first policy: it first moves defer-safe cold functions into a secondary wasm so startup can begin on the primary first, and if there are no useful cold candidates it falls back to the normal function split. To override the function-splitting threshold directly:
cargo makepad wasm build -p makepad-example-splash --release --strip --split=200For maximum size reduction, combine --wasm-opt (Binaryen IR optimization) and --brotli (compression). Install Binaryen for --wasm-opt (e.g. brew install binaryen or apt install binaryen):
cargo makepad wasm build -p makepad-example-splash --release --wasm-opt --strip --split --brotliNotes:
--strip strips custom sections (names, producers, etc.) for smaller binaries.--strip-custom-sections preserves the old behavior when you only want to remove custom sections.--wasm-opt runs Binaryen wasm-opt -Os for IR-level optimization (optional; requires Binaryen).--brotli compresses .wasm and assets with Brotli for delivery.--profile=small uses smaller fonts and pairs well with --strip.--no-threads trims the web thread bridge and thread exports when threading is disabled.--split emits a primary wasm plus secondary payloads (.secondary.wasm, .data.bin) and implies function splitting.--split uses an automatic cold-first split policy.--split=200 switches to an explicit function-body threshold (bytes).http://127.0.0.1:8010Plug in a device with developer mode enabled, then:
cargo run -p cargo-makepad --release -- android --target=all toolchain-installcargo run -p cargo-makepad --release -- android run -p makepad-example-ironfishcargo-makepad internally for non-standard targets.libs/stitch: no LICENSE file and no license field in Cargo.toml (blocks downstream licence attribution)
wm: top bar stays hidden after a tile leaves fullscreen (float / pop-out / workspace switch / close)
Wayland: app exits silently when flush() returns WouldBlock during EventFlow::Poll (transient EAGAIN treated as fatal)
Linux: HTTPS request fails with SSL unexpected-eof when server closes without close_notify
GLSL ES3 vertex shader compile failure: mangled unpack-helper names (regression in 99c6a3db)
Proposal: public “adopt external GPU texture” API for Makepad Texture
Updating the program interface
WASM crate resources fail to resolve when built on Windows
Duplicate vendored bitflags v2.10.0 (libs/bitflags and libs/vulkan/bitflags) triggers Cargo 'skipping duplicate package' warnings downstream
Bug: iOS TextInput crashes when focusing any field