A static web app for browsing the Project Zomboid Lua API extracted from decompiled Java sources. https://geromet.github.io/PZJavaDocs/
index.html— the viewer applua_api.json— extracted API data (generated byextract_lua_api.py)
- Create a new GitHub repository (e.g.
PZJavaDocs) - Push the contents of this folder:
git init git add index.html lua_api.json README.md git commit -m "Initial commit" git remote add origin https://github.com/YOUR_USERNAME/PZJavaDocs.git git push -u origin main - Go to the repo on GitHub → Settings → Pages
- Under Source, select Deploy from a branch, choose
main/(root) - Click Save — your site will be live at
https://YOUR_USERNAME.github.io/PZJavaDocs/
Run extract_lua_api.py from the projectzomboid/ source directory. It writes lua_api.json directly into this folder.
compare_api.py compares two generated lua_api.json snapshots without reparsing Java sources. Snapshot identities are required explicitly so reports never guess a Project Zomboid version from timestamps or paths:
python compare_api.py old/lua_api.json new/lua_api.json \
--old-id 42.19 --new-id 42.20 --out api_diff.jsonThe canonical JSON report has stable ordering and reports class/inheritance/exposure, field, method/overload, and global-function additions, removals, and structural changes. Run its dependency-free regression suite with:
python -m unittest discover -s tests -p "test_compare_api.py" -v- Browse 900+ exposed Java classes callable from Lua
- Search classes, methods, and fields
- Filter by
@UsedFromLuaannotation, enums, or classes with methods - Browse 745 global Lua functions
- URL hash navigation (shareable links to specific classes)
- Press
/to focus the search box