Artroom
A RAW photo editor that develops on the GPU, in the browser.
Open a camera RAW file in a browser tab and edit it like in a desktop editor: decoded on your machine, developed by WebGPU shaders, exported as JPEG, PNG, WebP or AVIF. Nothing is uploaded.
- Role
- Solo: architecture, colour science, GPU engine, interface and test suite.
- Status
- v1.1.0, live demo, Apache-2.0
- Stack
- TypeScript, WebGPU, WGSL, WebAssembly, LibRaw, React 19, Vite, Web Workers, IndexedDB, Playwright
- 7.1 ms
- exposure slider to pixels, p95, against a 16.7 ms budget
- 326 ms
- to open a 24 MP RAW file and draw its first frame
- 0.18
- worst ΔE2000 between GPU and CPU reference; about 1 is visible
- 13
- cameras from 12 makers, each checked against golden images
The problem
Browser photo editors usually stop at JPEG. RAW files need a real decoder, real colour management and a GPU pipeline fast enough that a slider feels attached to the photo, and all of it has to stay on the device.
From file to pixels
- 01DecodeLibRaw compiled to WebAssembly, in a Worker
- 02DemosaicPPG on the GPU, cached once per photo
- 03Colourcamera to XYZ to linear Rec.2020
- 04Editexposure, tone, curves and HSL in OKLCh
- 05Displaygamut map to sRGB or P3, dither
- 06Exporttiled, Lanczos-3 in linear light, WASM codecs
Decisions that mattered
A CPU reference as the spec
Every operation exists twice: as a WGSL shader and as plain TypeScript. CI compares them pixel by pixel in ΔE2000 on 205 synthetic and 260 real-photo cases. The worst pixel is 0.18 against a threshold of 1.0.
Budgets, published with the misses
Performance budgets are an architecture decision (ADR-0010), measured on a reference Mac and written to the README from committed result files. Two sliders miss their budget, and the README says so.
Every slider change lands in the next frame
A frame scheduler presents each change in the frame that draws it: 1,200 of 1,200 in the benchmark. Exposure reaches the screen in 7.1 ms at p95.
Built to survive the GPU going away
A memory ledger counts every texture to the byte, and a lost GPU device is recovered by reopening the photo from the mosaic it still holds. An end-to-end test destroys the device in CI.
A library for 10,000 photos
Folders are read where they are, never copied. The grid is virtualised and tested in CI on synthetic catalogs of 10,000 and 50,000 photos; filtering 50,000 takes 38.1 ms at p95.
Accessible down to the tone curve
Every view works by keyboard alone, the tone curve included. axe reports no violations, and the accessibility spec runs in Chromium and WebKit.


What it doesn't do yet
- Checked in Chrome so far. Without WebGPU it develops on the processor, correctly but slowly.
- The noise-reduction and straighten sliders miss the 16.7 ms budget on the reference Mac.
- GPU parity runs on software GPUs in CI: it proves what the shaders compute, not how fast a real GPU runs them.