Skip to content

the examples run in the browser with WASM #9

Open

Description

@catilac

It would be absolutely incredible if the examples could run in the browser with WASM where possible.

Activity

  1. xinemata commented on Nov 13, 2026

    @xinemata

    Running the examples on WASM would be absolutely amazing – do we have a sense of how far away we might be from achieving this goal? Since the website is being shared in promotional materials now, would it make sense to introduce a temporary solution before WASM is ready to use? I'd be happy to contribute a few visuals if that's allowed :)

  2. Nitish-bot commented on Nov 13, 2026

    @Nitish-bot

    Hey! wasm api coverage (libprocessing #193) is a precursor to a lot of examples so that's something that should go along with this issue. For this one I was thinking we could

    • build processing_wasm and drop the .js and .wasm files into this repo, although I'm not sure if we wanna track these (this should be done by CI later on)
    • add a small astro component ExampleRunner with a canvas and a “run” button. if the browser doesn’t have webgpu it just shows the normal image

    couple things i noticed while looking:

    • crates/processing_wasm/examples/index.html is a bit out of date, it calls createSurface / fill / loadImage, which aren’t exported anymore. I'd be happy to fix those while I am at it
    • I haven’t actually built it yet so i don’t know how big the wasm ends up. Cloudflare caps static files at 25mb, so if it’s over that we might need to host it somewhere else.
  3. catilac commented on Nov 13, 2026

    @catilac
    ContributorAuthor

    hi @Nitish-bot! thank you for your interest. it sounds like you'll be working in the libprocessing codebase. Let's start small, how about you make that that change you're talking about with catching up processing_wasm with the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions