# How to ship a web game on Steam

Steam installs and launches desktop programs, so an HTML5 game ships wrapped in one. Electron and NW.js bundle Chromium (large downloads but the same engine on every machine), with Steamworks bridges such as steamworks.js for Electron and Greenworks for NW.js. Tauri and WebView2-based wrappers use the system's web view (small builds, but the engine varies by machine), with Steamworks through a native bridge such as the steamworks Rust crate. Engines with their own export, such as Construct, ship their own Steam plugin. Pick a wrapper with a maintained Steamworks bridge if you need achievements or the overlay, test offline play, saves and fullscreen, and ship a Linux build or test under Proton for the Steam Deck.

Source: https://flockbay.com/blog/html5-game-on-steam/ · Updated 2026-10-18

## Steam does not run web pages

Plenty of Steam games began in a browser: jam games, idle games, puzzle games built with Phaser, PixiJS, Three.js or a web-first engine. A game made for the browser has to become a program before Steam can install it, because Steam downloads files and launches an executable. That is all a wrapper does: open a native window, load your game's HTML inside a browser engine, and give you access to the file system and, through a bridge, to Steam.

The obvious choice is whichever wrapper you have heard of. The better question is which browser engine you want your game to run on, because that decides download size, consistency across machines, and which Steam bridge you can use.

## The wrappers compared

The main options, with their Steam bridges and activity on GitHub on 18 October 2026:

Sources: [steamworks.js (GitHub)](https://github.com/ceifa/steamworks.js), [Greenworks (GitHub)](https://github.com/greenheartgames/greenworks), [steamworks-rs (GitHub)](https://github.com/Noxime/steamworks-rs), [Tauri: Webview Versions](https://v2.tauri.app/reference/webview-versions/), [Electron: Introduction](https://www.electronjs.org/docs/latest/).

| Wrapper | Browser engine | Download size | Steam bridge |
| --- | --- | --- | --- |
| Electron | Bundled Chromium (same everywhere) | Large | steamworks.js (MIT, active in 2026) |
| NW.js | Bundled Chromium (same everywhere) | Large | Greenworks (MIT); RPG Maker MV and MZ use NW.js |
| Tauri | The system's web view (WebView2 on Windows, WebKit elsewhere) | Small | steamworks crate for Rust (Apache-2.0, active) |
| Engine exports | Varies; Construct uses WebView2, CEF or WKWebView | Small to medium | The engine's own plugin, such as Scirra's Steamworks |

Sources: each project's repository and documentation, with activity from GitHub's API, read 18 October 2026. Bridges change; check each one's support for your wrapper's version.

## Bundled Chromium or the system web view?

Electron and NW.js ship their own copy of Chromium with every game. That costs download size, but the game runs on exactly the engine you tested, on every player's machine, and WebGL or WebGPU behaves the same everywhere. Tauri and WebView2-based wrappers use the web view already on the system: tiny downloads, but on Linux and macOS the engine is WebKit, not Chromium, and features or performance can differ from what you tested in Chrome.

For a game, consistency usually wins over a smaller download: a player who installed a 150 MB game that runs is happier than one who installed a 10 MB game that shows a black screen. Choose the system web view when the game is light, uses well-supported web features, and you will test on every platform you ship.

## Adding Steam features

A wrapper alone gives you a Steam game with no Steam features, which is fine for a first release. For achievements, the overlay, cloud saves or rich presence you need a bridge to Valve's Steamworks SDK:

- **steamworks.js** for Electron: a maintained Node binding covering common features, with a helper to enable the Steam overlay inside Electron's window.

- **Greenworks** for NW.js and Electron: the long-standing Node addon, compiled against specific runtime versions, so match the version its documentation lists.

- **The steamworks Rust crate** for Tauri, called from Tauri commands.

- **Engine plugins**, such as Scirra's Steamworks plugin for Construct's exports.

Whatever the bridge, the Steam side is the same: create and publish achievements in Steamworks, ship Valve's steam_api library beside the executable as the bridge instructs, and never ship steam_appid.txt.

Sources: [steamworks.js (GitHub)](https://github.com/ceifa/steamworks.js), [Steamworks API Overview](https://partner.steamgames.com/doc/sdk/api).

## Where saves should go in each wrapper

Browser storage (localStorage, IndexedDB) lives inside the wrapper's profile and can be wiped by a reinstall or a wrapper update, which is the most painful bug a wrapped game can ship. Write saves as files in the platform's app data folder instead: Electron gives it as app.getPath('userData'), NW.js as nw.App.dataPath, and Tauri through appDataDir() in its path API. A fixed folder of save files is also what Steam Auto-Cloud needs to sync saves between a desktop and a Steam Deck with no code.

Sources: [Electron: app](https://www.electronjs.org/docs/latest/api/app), [NW.js: App](https://docs.nwjs.io/References/App/), [Tauri: path API](https://v2.tauri.app/reference/javascript/api/namespacepath/), [Steam Cloud](https://partner.steamgames.com/doc/features/cloud).

## What to check before you upload

- [ ] **The game works offline**, from local files, with no CDN fonts, scripts or analytics it waits on.

- [ ] **Saves go to the user's app data folder** through the wrapper's file API, not browser storage that the wrapper or the player can clear.

- [ ] **Fullscreen and resizing** work, and the game starts fullscreen or remembers the window.

- [ ] **No browser behaviour leaks through**: right-click menus, text selection, the backspace key navigating back, devtools shortcuts.

- [ ] **The Steam overlay** opens over the game, if you use it.

- [ ] **Controller support** through the Gamepad API, with every menu reachable.

- [ ] **The Steam bridge is maintained** for your wrapper's exact version.

## Shipping and the Steam Deck

Build the wrapper for Windows (and Linux and macOS if you support them), upload each as its own depot with SteamPipe, and set a launch option per platform; see [uploading a build with SteamPipe](/blog/steampipe-upload-build/). For the Steam Deck, Electron, NW.js and Tauri can all build for Linux, which Valve tests first in its Deck review; otherwise test the Windows build under Proton. Web games are usually light enough for the Deck's 30 fps bar; the gaps are controller navigation and text sized for a mouse-and-monitor page.

Valve's Steamworks documentation: [Platforms](https://partner.steamgames.com/doc/store/application/platforms), [Steam Deck and Steam Machine Compatibility Review](https://partner.steamgames.com/doc/steamhardware/compat).

## Where the principle breaks

A wrapper makes a web game installable; it does not make it feel like a PC game. Players on Steam judge a wrapped game by the same standards as a native one, and a game that loads slowly, stutters when the browser engine collects garbage, or shows a web-style UI reads as a port. If the game will grow, or the team is starting fresh, an engine that exports native desktop builds avoids the wrapper entirely; if the game already exists for the web and runs well, a wrapper is the shortest honest path to Steam.

## Where Flockbay fits

Flockbay builds games on the official Godot engine, which exports native desktop builds for Windows, Linux and macOS directly, with no wrapper, and GodotSteam for Steam features. For a web game you already have, the wrappers above are the route. Building in Flockbay is free.

## Questions

### Can I put an HTML5 game on Steam?

Yes, wrapped as a desktop program with Electron, NW.js, Tauri or an engine's own desktop export, then uploaded with SteamPipe like any other game.

### How do I add Steam achievements to a web game?

Through a Steamworks bridge for your wrapper: steamworks.js for Electron, Greenworks for NW.js, the steamworks Rust crate for Tauri, or your engine's plugin. Create and publish the achievements in Steamworks first.

### Where should a wrapped web game save its files?

As files in the app data folder (Electron's app.getPath('userData'), NW.js's nw.App.dataPath, Tauri's appDataDir()), not in browser storage, which a reinstall or update can wipe. That folder can also be synced by Steam Auto-Cloud.

### Electron or Tauri for a Steam game?

Electron bundles Chromium, so the game runs the same everywhere at the cost of a larger download; Tauri uses the system web view, so builds are small but the engine differs on Linux and macOS. For most games, consistency matters more.

Download Flockbay free: Flockbay builds Godot games for free, which export as native desktop builds for Steam. https://flockbay.com/free-ai-game-maker/

Related: [The indie game publishing guide](/blog/indie-game-publishing-guide/), [Put a Construct 3 game on Steam](/blog/construct-3-steam/), [Upload a build with SteamPipe](/blog/steampipe-upload-build/), [Steam game maker](/steam-game-maker/)
