penpot/render-wasm
Elena Torró bbac5d050e
Merge pull request #6623 from penpot/ladybenko-11106-send-all-fills
 Send all fills of a shape in a single wasm call
2025-06-04 09:18:39 +02:00
..
docs 📚 Add tile rendering documentation (#6568) 2025-05-28 09:41:07 +02:00
src Merge pull request #6623 from penpot/ladybenko-11106-send-all-fills 2025-06-04 09:18:39 +02:00
.gitignore
_build_env 🐛 Fix frontend build (#6608) 2025-06-02 12:03:08 +02:00
build 🎉 Add comparison tool to WASM playground 2025-05-29 10:46:38 +02:00
Cargo.lock
Cargo.toml
lint
README.md
test
watch
watch_test

render-wasm

Canvas-based WebAssembly render engine for Penpot.

This is a Rust crate that targets Emscripten (wasm32-unknown-emscripten). Underneath, it uses Skia via custom binaries of the rust-skia crate.

How to build

With the Penpot Development Environment running, create a new tab in the tmux.

cd penpot/render-wasm
./build

The build script will compile the project and copy the .js and .wasm files to their correct location within the frontend app.

Edit your local frontend/resources/public/js/config.js to add the following flags:

  • enable-feature-render-wasm to enable this render engine.
  • enable-render-wasm-dpr (optional), to enable using the device pixel ratio.

Docs