Publishing creates a revision of the current draft. Exporting packages the game and its assets into a standalone player for someone without access to your project.
Construction apply saves a draft. Publication accepts a revision. Export then packages the selected game content.
Publish an accepted draft
Validate and play the draft, then choose Publish. The player opens a published revision. Its URL requires authenticated access and is not a public sharing link. Restoring an older revision replaces the draft and clears its undo history, so inspect the revision before confirming that operation.
Keep the acceptance evidence with the revision: objective route, recovery route, replay result, representative frames, and any platform limitations.
Export for the web
Choose Export build in the editor, ask the agent to build it, or use:
nodetool game build game.json --out game-build --assets-dir game-assets
nodetool game smoke game-build --json
The build contains the player, document, runtime, and resolved assets. It does not include provider API keys. Preparation, digest checks, and media decoding happen before the output is accepted. Bound images and audio are fully decoded in process, with no FFmpeg binary needed. Invalid fonts and undecodable images or audio stop the build before publication. Serve it over HTTPS or loopback HTTP so required browser security APIs are available. Opening an HTML file directly is not the supported distribution path.
The player verifies local asset paths and content digests before use. Audio receives a local Blob URL backed by the verified bytes, so playback cannot fetch a different response from the original asset URL. Streamed music retains its encoded source for the player’s lifetime and avoids a decoded PCM buffer. Closing the player stops audio and releases its media URLs.
Editor and agent exports cache a revision with its generated player, runtime, and template fingerprint. Each cache hit checks every output file against its recorded size and SHA-256 digest. Missing or changed files trigger a rebuild. A runtime upgrade creates a separate output directory even when the game revision is unchanged.
The smoke command runs the exported player in Chromium with outside network access blocked. It checks rendered-frame progress and reports console errors, failed requests, page errors, and stalled ticks. Also test the controls and sound manually on the devices you intend to support.
2D players can fall back to Canvas2D, with optional GPU effects omitted. A game that requires those effects may fail on an unsupported browser. 3D needs WebGL2. Rendering support lists the current feature boundaries.
Build a desktop application
Select the desktop target or run:
nodetool game build game.json --out game-desktop --assets-dir game-assets \
--target tauri --name "My Game"
The Tauri project includes the web player and native shell. Compile on the target platform with Rust and the platform toolchain. The local editor can stream executable build output into its Console. Hosted servers refuse local compiler execution. Windows, macOS, and Linux installers are built on their respective platforms.
System web views differ in graphics support. Check the packaged application rather than assuming desktop export matches Chrome. See the desktop export instructions for prerequisites and output locations.
Build a mobile application
Select the mobile target or run:
nodetool game build game.json --out game-mobile --assets-dir game-assets \
--target expo --name "My Game"
The Expo project shows the game full screen in a WebView. The whole game is one offline page that serves its own files, so the app needs no server. Try it in Expo Go with npx expo start, and build store apps with EAS. See the mobile export instructions.
Play on a phone
The NodeTool mobile app plays a game’s published revision from the same web build, served under a short-lived signed link. See Play on a phone.