Porting Blender, Inkscape, and TrenchBroom to the Web
Back in 2010 I wrote that native applications are doomed. By that, I meant that the web platform would eventually have all the pieces required to run software equivalent to desktop native software.
Sixteen years later, I was curious to see how existing desktop software could be ported to the client-side web without emulating the whole Linux kernel. Using Gemini 4 Neon, I ported three open-source C++ creative apps to run 100% locally in the browser, ending up with three different approaches depending on each app's desktop stack.
Inkscape (Inkweb)
Compiled the headless C++ core and graphics stack to WebAssembly, replacing the GTK4 UI with a pure vanilla JS canvas UI.
Try it at inkscape.client-side.app (source).
Here's what my agent wrote about how it works:
Inkscape's C++ engine (
SPDocument,Cairo,Pango,HarfBuzz,2Geom,Livarot,Potrace,LittleCMS2) compiles to a 12 MB SIMD WebAssembly module running inside a Web Worker with zero-copyArrayBuffertransfers and dirty-rect Cairo blitting at up to 2× DPR. The vanilla JS frontend recreates desktop manipulation (handles, Bezier nodes, inline text editing, Live Path Effects, Shape Builder, Potrace tracing, and File System Access local open/save) and lazy-loads PDF.js, Pyodide, and WebRTC collaboration on demand.
Blender (BlendWeb)
Adapted the native C++ desktop app (built on OS windowing and OpenGL/Vulkan/Metal) to WebAssembly with a new WebGPU backend and frame-stepped rendering.
Try it at blendweb.client-side.app (source, requires a WebGPU browser).
Here's what my agent wrote:
Because Blender draws its entire UI on the GPU, the full C++ app and Python runtime compile via Emscripten (94 MB stripped
blender.wasm) behind two new browser backends:GHOST_SystemWebfor input and browser File System Access pickers, and a ~7,500-line C++ WebGPU backend translating GLSL/BSL shaders through SPIR-V and Naga to WGSL at runtime. Workbench and EEVEE run on WebGPU, Cycles CPU steps single-threaded on the main loop without pthreads orCOOP/COEP, viewport picking uses CPU BVH raycasts, and F12 renders step acrossrequestAnimationFramewith async WebGPU readback.
TrenchBroom
Its C++ / Qt 6 / OpenGL stack compiled very well to WebAssembly and WebGL, keeping the entire desktop UI intact.
Try it at trenchbroom.client-side.app (source).
Here's what my agent wrote:
Built with Emscripten and Qt 6 for WebAssembly (
wasm_singlethread, 20 MBTrenchBroom.wasm), porting legacy GLSL 120 shaders to WebGL 2.0 / GLES 3.0. All 3D/2D viewports share a single offscreen WebGL 2.0 context with 4× MSAA FBOs blitted GPU-to-GPU via Canvas2D into the Qt Shadow DOM (avoidingglReadPixelsstalls), synchronous dialogs are converted to non-blocking.open()flows, and the build adds Pointer Lock mouse look, IndexedDB persistence, a bundled starter Quake WAD2 pack and courtyard map, and offline PWA support.
All three live alongside other local browser tools at client-side.app.