#647·pyxel

PocketPy as a lightweight alternative to Pyodide for Pyxel

Author: CodeLazierCreated Aug 30, 2025Updated Mar 29, 2026

Currently Pyxel’s web export relies on Pyodide, which makes the package quite large (~9MB+) and slow to start. This can be a barrier for small retro games.

I’d like to suggest exploring PocketPy as an alternative scripting backend:

Much smaller size (1–2MB WASM vs ~9MB with Pyodide).

Faster startup and execution (closer to Lua-level performance).

Good fit for Pyxel’s design goals: lightweight, portable, retro-friendly.

The main trade-off is reduced compatibility (no full Python stdlib), but for game logic this might be enough.