Roves

Roves player

The desktop player for Windows, macOS and Linux, built on Chromium (CEF), with persistent saves, a project icon, Steam support and an optional local MCP bridge.

Edit on GitHub

Since v0.9.0, Roves runs your game on desktop with the Roves player. The player embeds Chromium through the Chromium Embedded Framework (CEF), so your game gets Chromium's rendering, JavaScript engine and web-platform support on every desktop platform. Roves owns the window, the presentation, the startup screen and the services your game reaches through roves-api.

It replaces the previous Servo-based Shell on desktop. Android and iOS packages are unchanged: see Mobile.

PlatformArchitectureGraphics
Windowsx64Direct3D 12
macOSApple silicon (arm64)Metal
Linuxx64Vulkan; X11, and Wayland through Xwayland

Where no GPU path is available, the player switches to Chromium's software rendering by itself. See Device compatibility.

Downloads

Every engine release from v0.9.0 on publishes the player on the Releases page:

AssetWhat it is
roves_shell_windows.zip, roves_shell_macos.zip, roves_shell_linux.zipThe standard player for each platform.
roves_shell_windows_steam.zip, roves_shell_macos_steam.zip, roves_shell_linux_steam.zipThe same player with Steamworks enabled (see Steam integration).
roves_shell_windows_mcp.zip, roves_shell_macos_mcp.zip, roves_shell_linux_mcp.zipDevelopment only. The standard player with the local MCP bridge turned on, so AI agents can drive the game. Never ship them to players. There is no Steam + MCP package.
SHA256SUMS.txtChecksums of every asset above.

Each zip is the player shell only, without a game. To run your game, put its web build (index.html at its root) in a game/ folder next to the executable (Contents/Resources/game inside the macOS .app). Before every release, each platform's player is tested with a sample game. You don't need to do that by hand: Packmaster and the GitHub Action download the right asset, put your build in game/ (packed into a few archives from v0.9.1, see Content packing), apply your project icon and zip the result.

What the player does

  • One window, one game. No browser toolbar, tabs or address bar. The game is a single document: reloads and navigations away from the game are blocked, so the player can't lose the running game by accident. Routers that use the History API or URL fragments work normally.
  • External links open in the system browser, not inside the game window.
  • A startup screen with the Roves logo and wordmark stays up until your game has loaded and painted its first frame, so players never see a blank white or black window. Input reaches the game from that moment.
  • Your project icon is used for the window (title bar, taskbar, Dock) and, on Windows and macOS, for the executable or app icon. The icon comes from your game's icon.png, else icon.ico or favicon.ico at the root of your build. Without one, the Roves icon is used. Packmaster and the GitHub Action apply it when they package your game.
  • Saves persist. Everything your game stores in localStorage, IndexedDB or Cache Storage, and the files written through roves-api's saves, are kept in the player profile and survive restarts. See Saves.
  • The Chromium sandbox stays on on every platform. Your game's page runs in sandboxed renderer processes, as in Chrome.

If the game can't start (the page fails to load, the renderer crashes or no frame arrives), the startup screen turns into a failure screen and a dialog explains the problem.

Your game

The player opens game/index.html (or, for a packed game, the index.html inside game/code.pack: see Content packing), served from a local address only the player uses (http://127.0.0.1:<port>). Any static web build works: the dist/ folder of a Vite project, or the output of any other bundler. No framework is required. Standard resource hints such as <link rel="modulepreload"> and <link rel="preload"> (including WebAssembly with as="fetch" crossorigin) work, and audio and video get the partial responses they need for seeking.

Every file is revalidated on each launch, so after an update players never run old scripts mixed with new ones.

Known limitations

  • Controller (gamepad) input and IME composition (typing Chinese, Japanese, Korean and similar languages) are not supported yet.
  • The macOS app and the Windows play.exe are not code-signed or notarized. Signing them is part of your own release process.

Package layout

my-game\
  play.exe            start the game here (double click or shortcut)
  play.dll            the player
  libcef.dll, *.pak, locales\, ...   Chromium runtime
  icon.png            your window icon, when your game has one
  game\               your game: a few archives and roves-content.json (or loose files)
  licenses\           license texts (Roves, Chromium and its components, the Rust crates)
                      and a README.txt that lists them
  SHA256SUMS.txt

play.exe always loads the game\ folder next to it, whatever the working directory, so shortcuts work. The package includes everything it needs, including the Microsoft Visual C++ runtime when required: players don't install anything.

Keep the licenses\ folder when you distribute your game: the licenses of Chromium and of the other components inside the player require their texts to travel with it.

A single .app bundle. Your game is in Contents/Resources/game/, the window icon in Contents/Resources/icon.png, and the app icon is the .icns file the bundle names. The license texts, including Chromium's third-party notices, are in Contents/Resources/licenses/.

my-game/
  <executable>        start the game here
  libcef.so, *.pak, locales/, ...   Chromium runtime
  chrome-sandbox      Chromium's sandbox helper
  icon.png            your window icon, when your game has one
  game/               your game: a few archives and roves-content.json (or loose files)
  licenses/           license texts (Roves, Chromium and its components, the Rust crates)
                      and a README.txt that lists them

Extract the zip keeping file permissions (a normal unzip does), so the executable and chrome-sandbox stay executable. The package has no .desktop launcher entry. Don't run the game as root.

Saves: one profile per installation

The player keeps Chromium's storage between launches, in a profile folder per installation:

PlatformProfile folder
Windows%LOCALAPPDATA%\Roves\Player\<exe name>-<hash>
macOS~/Library/Application Support/Roves/Player/<app name>-<hash>
Linux$XDG_CONFIG_HOME/Roves/Player/<name>-<hash>, by default ~/.config/Roves/Player/…
  • The hash comes from the installation folder, so two different games never share saves, even with the same executable name.
  • The page's origin stays the same between launches, so origin-based storage keeps working.
  • Only one copy of an installation runs at a time. A second launch shows "The game is already running" and exits without touching the first one.
  • In the rare case another program holds the port the game used before, the game doesn't start and a dialog asks the player to close that program. The player never switches to a new port, because that would show an empty game with no saves.

Limits:

  • Moving or renaming the game folder starts a new, empty profile. The old profile stays where it was and is not migrated. On macOS, keep the app in a stable place (for example /Applications) before playing; see the first-launch notes below.
  • Profiles aren't removed when the game folder is deleted.

Device compatibility

The player is designed to run on almost any desktop PC from the last several years.

  • With a GPU, the player shares Chromium's frames with its window directly on the GPU (Direct3D 12, Metal or Vulkan), with no CPU copy.
  • Without a usable GPU, or where GPU frame sharing isn't available, the player switches to Chromium's software rendering automatically. This covers PCs without a GPU driver, many virtual machines and some Linux drivers. The game looks and plays the same, but uses more CPU and can run slower, especially in heavy WebGL or animation-intensive scenes.
  • Linux drivers. GPU frame sharing uses DMA-BUF. Where the driver can't provide it (for example NVIDIA's proprietary driver), the player uses software rendering. The game still runs.
  • Wayland. The player runs as an X11 application. On a Wayland desktop it runs through Xwayland, which every major desktop provides by default.
  • Steam Deck. Use the native Linux build.
  • Proton and Wine. Ship and run the native Linux build on Linux instead of the Windows build under Proton or Wine. Chromium's sandbox and GPU path are built for the native platform.

Linux sandbox

Chromium's sandbox needs either unprivileged user namespaces or the setuid chrome-sandbox helper. Most distributions allow user namespaces. Some (Ubuntu 23.10 and later, by default) restrict them; there the game stops with "No usable sandbox!" unless chrome-sandbox is owned by root and setuid. Extracting a zip as a normal user can't set that, so run once in the game folder:

sudo chown root:root chrome-sandbox && sudo chmod 4755 chrome-sandbox

An installer that puts the game in place as root can do the same.

macOS first launch

The app is not notarized, so Gatekeeper blocks a downloaded copy the first time. Right-click (or Control-click) the app, choose Open, then confirm. Alternatively, remove the quarantine attribute:

xattr -dr com.apple.quarantine "My Game.app"

Move the app to its final place (for example /Applications) before the first launch: a quarantined app started from the download folder can run from a temporary location, which would give it a different profile.

Local AI bridge (MCP), off by default

The development packages roves_shell_windows_mcp.zip, roves_shell_macos_mcp.zip and roves_shell_linux_mcp.zip add a local MCP bridge to the player on Windows, macOS and Linux. Through it, an AI agent or an IDE can read the running game's state and console and interact with it during development and playtests, for example to drive an automated playtest. Games built with Pixi'VN can expose its testing bridge (window.pixiVN) to the agent this way.

You get these packages from Packmaster's AI interaction (MCP) option or enable-mcp: 'true' in the GitHub Action. Standard and Steam packages never contain the bridge. Your game can check whether the bridge is running with isMcpEnabled(), for example to switch on development-only test hooks.

Never ship an MCP-enabled package to players

Any program running as your user account can control the game through the bridge. Only use MCP-enabled packages for development and testing.

Connecting a client

The MCP server is a small Node.js program (Node.js 20 or later) in the package's mcp folder, with its dependencies already installed. The folder sits next to your game's game folder:

Platformmcp folderStart the game with
Windowsnext to play.exeplay.exe
macOS<name>.app/Contents/Resources/mcp/the .app
Linuxnext to the game's executablethe executable

Register mcp/server.mjs as a stdio server in your MCP client:

{
  "mcpServers": {
    "roves-game": {
      "command": "node",
      "args": ["C:/Games/my-game/mcp/server.mjs"]
    }
  }
}

Then start the game. The server finds running games on every tool call, so you can start the client and the game in either order. If several games are running, add "--pid", "<PID>" to args; the error message lists the PIDs. mcp/README.md in the package has the full instructions.

ToolWhat it does
get_stateOrigin, URL, title, load and startup state, whether input is ready, window size, frame and input counters, and the last 50 console lines. It runs no page script.
evaluate_scriptRuns synchronous JavaScript in the page (up to 16 KiB) and returns a JSON result (up to 64 KiB). Promises are refused. The page's CSP still applies. It can change the game state.
clickLeft click at a window point, in CSS pixels at zoom 1.
press_keyPresses and releases one key: arrows, Enter, Escape, Space, Tab, Backspace, Delete, Home, End, PageUp, PageDown.
type_textTypes up to 256 printable characters into the focused element.
screenshotReturns an image of what the window shows, canvas included, scaled to a maximum width (JPEG by default; WebP or PNG on request), optionally of one region only. It also says how image pixels map back to window points for click.
watchOptionally sends one click, key or text, then captures a short sequence of frames (up to 20) to show an animation or transition. Frames identical to the previous one are listed but not sent again.
page_snapshotReturns the visible page text and the visible controls (buttons, links, inputs, clickable elements) with their position, ready for click. Cheaper than a screenshot for menus and dialogue.
inspect_elementShows one element, by CSS selector or at a window point: its HTML, box, computed styles, the CSS rules that match it and what covers it.
pixi_sceneLists the PixiJS scene (renderer, FPS, nodes with labels, text, textures, visibility and position in the window) when the game exposes it through PixiJS Devtools' initDevtools() or __PIXI_APP__. Pixi'VN games always do.

click, press_key and type_text are refused until the game accepts input: on Windows once the startup screen has handed over to the game, on macOS and Linux once the page has loaded. A screenshot needs at least one drawn frame.

The roves-playtest agent skill teaches an AI agent to play and test a game with these tools while spending few tokens, and to debug the PixiJS scene. Install it with npx skills add DRincs-Productions/roves --skill roves-playtest.

How it is protected

  • The game never opens a TCP port or a Chromium remote-debugging port. It listens only on one local endpoint per running game: a named pipe that rejects remote clients on Windows, a unix socket on macOS and Linux.

  • Every connection must first send a random 256-bit token. The game writes it, with the endpoint, to a session file in a per-user folder and removes both when it closes:

    PlatformSession folder
    Windows%LOCALAPPDATA%\Roves\mcp
    macOS~/Library/Application Support/Roves/mcp
    Linux$XDG_RUNTIME_DIR/roves/mcp, else ~/.local/state/roves/mcp
  • On macOS and Linux the session folder must belong to you and is private (mode 0700), the socket and session file are readable only by you (0600), and the game also closes any connection from another user.

  • On every platform, any program running as your user account can read the session file and control the game, just as it could already control the game process itself.

  • Nothing is exposed to the page except the isMcpEnabled() flag: the game can't see the token.

Current limits: no screenshot, hover, drag, wheel or modifier-key tool, and one request at a time per connection.

On this page