Analysis updated 2026-05-18
Convert an existing Pygame game into a browser-hostable web app without editing source code.
Package a game as a zip file ready to upload to itch.io.
Serve and test a converted game locally in a browser before publishing.
Diagnose conversion failures using the built-in troubleshooting guide and issue template.
| elan456/pygodide | 0marildo/imago | 0xdfi/glm-5.2-1m-4x-dgx-spark | |
|---|---|---|---|
| Stars | 3 | 3 | 3 |
| Language | Python | Python | Python |
| Setup difficulty | easy | easy | hard |
| Complexity | 2/5 | 2/5 | 5/5 |
| Audience | developer | general | researcher |
Figures from each repo's GitHub metadata at analysis time.
Pygodide takes a Pygame project, the popular Python library for making 2D games, and turns it into a browser app with a single command and no changes to your source code. It works by running your game through Pyodide, a version of Python that runs inside the browser, and the project reports it runs about 2.5 times faster than pygbag, a similar existing tool that solves the same problem. The name is meant to be read as a play on words combining Pygame and Pyodide. To use it, you install pygodide with pip from your project's root folder, then run a build command that produces a web-hostable folder, or a zip file ready for uploading to itch.io. A serve command lets you host that build locally so you can open it at localhost in your browser and test it right away. The tool also offers a number of configuration options for cases where a project does not work out of the box. If your game does not convert cleanly, the project provides a troubleshooting guide and a template for filing an issue so the maintainers can fix the underlying problem for everyone. The repository includes several example projects, some of which are playable live on itch.io, covering things like particle effects, audio, and performance benchmarking. Before each release, these example projects are automatically tested in a headless browser to catch anything that breaks, so the maintained examples are treated as reliable, working references rather than just demos. Contributors can set up a development environment with the uv tool, install Playwright for browser testing, and run the same formatting, linting, and test checks used in the project's continuous integration, including a smoke test command that checks a given project actually runs after conversion. The project is released under the MIT license, so it can be used and modified freely with attribution.
A tool that turns any Pygame project into a browser-playable web app with one command, no code changes needed.
Mainly Python. The stack also includes Python, Pygame, Pyodide.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.