Terraforming Mars in your browser.
Play with friends or AI opponents on a 3D Mars board. No account needed.
Original music by Lucas. Thanks for the soundtrack!
Open Mars is a fan-made, open-source project, unaffiliated with FryxGames, Asmodee Digital, or Steam. If you enjoy playing, please support the creators and buy the physical board game.
Build cities, plant forests and fill oceans as you compete to terraform the planet. Rotate Mars and zoom in to place tiles directly on its surface, or take a look around the solar system between turns. Cities rise and forests grow as you build them.
You can play on desktop or on a phone in landscape.
Choose from hundreds of cards, with corporations, milestones and awards to shape your strategy. Open Mars includes the base game, Corporate Era, Prelude, Venus Next, Colonies and Turmoil.
Create a lobby, pick a map and your game options, then share the invite link. Friends and AI opponents can play in the same game. If you lose your connection, you can rejoin and carry on.
Install Go, Bun, Rust via rustup, just and Git LFS.
git clone https://github.com/openmars-app/openmars.git
cd openmars
git lfs pull
just deps
just devOpen http://localhost:3000 to create a game. The backend runs on port 3001.
The repository pins the Rust toolchain. just deps installs the engine's WebAssembly target and binding tools, along with the other project dependencies. Git LFS downloads the source models, images and audio needed to build.
| Part | Technology |
|---|---|
| Interface | React, TypeScript, Tailwind CSS |
| 3D world | Rust, Bevy, WebAssembly, WebGPU / WebGL2 |
| Server | Go, Gorilla WebSocket, Gorilla Mux |
| Development tools | Tygo for generated TypeScript, Air for backend reloads |
The Go backend handles game rules and state. React handles the interface and networking; Bevy renders the 3D world. The renderer uses WebGPU when available and falls back to WebGL2.
Game logic lives in backend/, the interface in frontend/, and the renderer in engine/. Bug reports and pull requests are welcome.
just test # Backend and gateway tests
just lint # Lint all modules
just format # Format source files
just prepare-for-commit # Format, regenerate types and run the CI checksRun just to see all available commands.
MIT.



