A port of Terraria to the browser using WebAssembly and fna-wasm-threads
Read the writeup for more information on how this works.
Go to the releases page and download the latest release. Extract the contents of terraria-wasm-build.zip to your web server. Cross site isolation headers are required for this to work, so make sure your web server is configured to send the following headers:
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
dotnet tool install --global ilspycmd --version 9.0.0.7889
bash tools/decompile.sh ~/.local/share/Steam/steamapps/common/Terraria/Terraria.exe
bash tools/applypatches.sh Vanilla
make serve
To build the frontend for production, run:
pnpm vite build
$ claude mcp add terraria-wasm \
-- python -m otcore.mcp_server <graph>