The modern #Snakemake architecture makes this fairly easy! I just wrote a wasm executor plugin and used the API to build the dag and run the workflow in pyodide. Massive credit to @johanneskoester.bsky.social and the core team for making Snakemake to interoperable.