[Urgent]Chrome Extension Development with WXT-Pyodide

Job ID: 38778510

Budget: $10 – $30 USD

I'm trying to load pyodide (https://www.npmjs.com/package/pyodide) into a Chrome extension so the extension can run user-defined python code.

This is definitely possible - there are other extensions that do it, but I can't figure out how.

I'm using the WXT (https://wxt.dev/) extension framework, which slightly complicates it. The docs on WASM aren't written yet: https://wxt.dev/guide/essentials/assets#wasm

The load is failing with 'wasm instantiation failed!'.

Here is the starter repo: https://github.com/andycloke/wxt-pyodide

I think we need to load it via a web worker, probably in a background script, but I’m not sure.

So the task is:
- Find a way to get pyodide to load correctly, so that in the extension when we click 'Run code' it actually runs (locally, in browser, no backend)

Please tell me your rough approach in the cover letter.