How to write, test, debug and ship World of Warcraft AddOns with wowlua, in reading order. The specification is the complete, normative reference behind these pages.
Guide
- Installation — install the wowlua binary on macOS, Linux or Windows, update it and pin a version
- Getting started — create an addon, run it in the game, test it and build a release
- VS Code — errors as you type, completion, formatting and the debugger in the editor
- Testing your addon —
wowlua test: tests in the emulated client, mocks, world profiles and screenshots - Debugging — the dev window in game,
wowlua trace, and the debugger in the emulated client - AI agents —
wowlua mcp: let an agent run, see and debug your addon - Libraries and dependencies — depend on libraries and other packages, and share your own
- Building and publishing — release builds, and uploads to CurseForge, Wago, WoWInterface and GitHub
- Bring your addon — move an existing addon to wowlua, including one built with the BigWigs packager
- Command cheat sheet — every
wowluacommand at a glance
Language
- A tour of wowlua — the language on one page, for Lua programmers
- Syntax and sugar — what wowlua adds to Lua's syntax, and the Lua it compiles to
- Types — annotations, inference, narrowing, generics and strict mode
- Functions — typed parameters and returns, optional and variadic parameters
- Classes — classes, inheritance, methods and fields
- Interfaces and enums — structural interfaces and enums
- Frames as classes — widget classes: frames and their scripts as classes
- Decorators — the built-in decorators, and writing your own
- Modules —
importandexport, load order and plain Lua files - Build info and profiles —
wowlua:meta, flavors, build profiles and conditional compilation - Debugging helpers —
wowlua:debug,wowlua:reflect, profiling, tracing and runtime checks
Standard library
- Overview — the
wowlua:*modules and what each is for - Events and lifecycle —
wowlua:eventsandwowlua:lifecycle - Saved variables —
wowlua:saved: typed saved variables with defaults, profiles and migrations - Slash commands —
wowlua:slash: commands, subcommands and arguments - Timers and background jobs —
wowlua:timerandwowlua:jobs - Settings, minimap button and keybindings —
wowlua:settings,wowlua:launcherandwowlua:bindings - Localization —
wowlua:locale: typed translations - Frames, lists and menus —
wowlua:frames,wowlua:pool,wowlua:list,wowlua:menu,wowlua:dialog,wowlua:colorandwowlua:media - Chat, logging and alerts —
wowlua:log,wowlua:chat,wowlua:linksandwowlua:alert - Talking to other addons —
wowlua:comm,wowlua:serialize,wowlua:callbacksandwowlua:version - Units, auras, spells and items —
wowlua:unit,wowlua:aura,wowlua:spell,wowlua:item,wowlua:tooltipandwowlua:secret - Combat, secure code and hooks —
wowlua:combat,wowlua:secureandwowlua:hooks - Tables, text and formatting —
wowlua:table,wowlua:collections,wowlua:utf8,wowlua:formatandwowlua:errors
Reference
- WoW API — every function, event and widget method of the game, and how far the emulated client implements it
- wowlua.json — the manifest, field by field
- Errors and warnings — what the codes mean, and every error and warning by area
- Emulator coverage — how much of the WoW client
wowlua testemulates, verified against the real client (generated) - Embedding wowlua —
@wowlua/web: the compiler, language server and emulated client as WebAssembly