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 pygame-web.github.io Public

    Run python and pygame code in your html

    47 20

  2. pygbag pygbag Public

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

    Python 344 40

  3. pkg-porting-wasm pkg-porting-wasm Public

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

    5

  4. python-wasm-sdk python-wasm-sdk Public

    Tooling for building CPython+support libs on WebAssembly

    Python 8 3

Repositories

Showing 10 of 31 repositories
  • archives Public

    archived prebuilts

    pygame-web/archives’s past year of commit activity
    JavaScript 10 5 0 0 Updated Dec 15, 2024
  • pygbag Public

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

    pygame-web/pygbag’s past year of commit activity
    Python 344 MIT 40 54 (13 issues need help) 4 Updated Dec 15, 2024
  • platform_wasm Public

    support and helpers for various packages on wasm platform

    pygame-web/platform_wasm’s past year of commit activity
    Python 1 MIT 1 1 1 Updated Dec 15, 2024
  • portable-sdk Public

    alpine based wasm sdk

    pygame-web/portable-sdk’s past year of commit activity
    Python 1 MIT 0 0 0 Updated Dec 12, 2024
  • python-wasm-sdk-extra Public

    extra third parties for complex build - highly untested !

    pygame-web/python-wasm-sdk-extra’s past year of commit activity
    Shell 0 MIT 0 0 0 Updated Dec 4, 2024
  • python-wasi-sdk Public

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

    pygame-web/python-wasi-sdk’s past year of commit activity
    Python 0 MIT 1 0 0 Updated Dec 3, 2024
  • python-wasm-sdk Public

    Tooling for building CPython+support libs on WebAssembly

    pygame-web/python-wasm-sdk’s past year of commit activity
    Python 8 MIT 3 8 0 Updated Dec 3, 2024
  • showroom Public

    Game on !

    pygame-web/showroom’s past year of commit activity
    HTML 6 2 0 1 Updated Nov 24, 2024
  • pygame-web.github.io Public

    Run python and pygame code in your html

    pygame-web/pygame-web.github.io’s past year of commit activity
    47 20 2 0 Updated Nov 23, 2024
  • pcpp Public Forked from ned14/pcpp

    A C99 preprocessor written in pure Python

    pygame-web/pcpp’s past year of commit activity
    Python 0 41 0 0 Updated Nov 9, 2024