Skip to content

Welcome everyone,

Here you will get to run your python/pygame code directly inside web browsers.

Visit pygame-web.github.io page (this is the documentation for pygbag the ready made tool you want to try first)

Porting binary module (eg c/c++) is possible too, but is not documented at the moment and requires github CI (or a Linux based operating system) see https://github.com/pygame-web/pkg-porting-wasm/issues for more.


Pygbag C runtime uses libpython WebAssembly from:

CPython Wasm builds

and contains code adapted from :

Panda3D and WebGLport support modules doc

Please note that though pygame-web hosts a Panda3D wasm wheel it is not production ready (but worth trying !).


But really, how does it work ?

Witchcraft of course !

But better read the Real Answer


Special Thanks apply to our sponsors :

https://www.browserstack.com : for ability to test iOS/Safari

pygbag network api

Please note that thanks to some recent money donations we will be able to provide a hub+api for multiplayer games for at least one year. Of course donors are granted as much applications ID they need as long the service costs can be splitted amongst them.

For others please apply on pygame-web channel of Pygame Community Discord for temporary free access (all developpers IP addresses will be required in case of teams).

No adult content whatsoever will be tolerated and lobbies/chats/ingame will be monitored for abuse or ill behaviour on the standard network (websockets). Please adopt self moderation behaviour.

WebRTC should not be monitored, you are welcome to implement your bootstrap as long as you do not advertise for it and do not ask for it. Be smart and use friend-to-friend topology.

Funding

I (pmp-p, lead dev.) would like to be able to sponsor :

So if you fund pygame-web you will know where part of the flow is going.


Pinned Loading

  1. pygame-web.github.io Public

    Run python and pygame code in your html

    50 21

  2. pygbag Public

    python and pygame wasm for everyone ( packager + test server + simulator )

    Python 366 39

  3. pkg-porting-wasm Public

    Tracks porting efforts on some modules you'd like to have working in pygbag

    5

  4. python-wasm-sdk Public

    Tooling for building CPython+support libs on WebAssembly

    Python 8 3

Repositories

Showing 10 of 33 repositories
  • postgres Public Forked from postgres/postgres

    [WIP] repo for wasm integration

    C 0 4,765 0 2 Updated Jan 30, 2025
  • python-wasm-sdk-extra Public

    extra third parties for complex build - highly untested !

    Shell 0 MIT 0 0 0 Updated Jan 28, 2025
  • portable-sdk Public

    alpine based wasm sdk

    Python 1 MIT 1 0 0 Updated Jan 23, 2025
  • pygame-web.github.io Public

    Run python and pygame code in your html

    50 21 2 0 Updated Jan 22, 2025
  • python-wasm-sdk Public

    Tooling for building CPython+support libs on WebAssembly

    Python 8 MIT 3 8 0 Updated Jan 22, 2025
  • .github Public
    0 0 0 0 Updated Jan 12, 2025
  • python-wasi-sdk Public

    Tooling for building CPython+support libs on WebAssembly with wasi-sdk

    Python 0 MIT 1 0 0 Updated Jan 9, 2025
  • bigbag Public

    wip

    0 0 0 0 Updated Jan 9, 2025
  • pygbag Public

    python and pygame wasm for everyone ( packager + test server + simulator )

    Python 366 MIT 39 56 (13 issues need help) 3 Updated Jan 6, 2025
  • archives Public

    archived prebuilts

    JavaScript 10 5 0 0 Updated Dec 15, 2024