Esper Lab
2026 · Rust · WebAssembly · Image Processing · Web Audio · China X100V Archive
« Enhance 224 to 176. Track 45 right. Stop. Give me a hard copy right there. »
Everyone who loves cyberpunk remembers Deckard sitting in front of the glowing ESPER CRT in Blade Runner, barking coordinates at a machine that magnifies a Polaroid past the limits of glass, peers around a corner, sharpens a blurred reflection pass by pass, and spits out a forensic print. Most web tributes fake it with CSS scale() and contrast().
Esper Lab is a real optical image-processing workbench compiled from zero-dependency Rust to 36 KB of WebAssembly (esper.wasm) and loaded straight with eight full-resolution Fujifilm X100V night and brutalist frames from my China photography archive — or any photo you drag onto the tube locally (nothing is ever uploaded). Hit ▶ deckard auto to watch an automated zoom-and-enhance sequence, type real commands into the ESPER > console (enhance 224 176, track 45 right, zoom 6, edge, hard copy), drag the 3D Parallax Gimbal to tilt perspective around foreground buildings, and track down 3 hidden forensic anomalies embedded across the Shanghai night plates that link directly into Radio Lab and Cyberspace.
Inside the 36 KB Rust/Wasm optical pipeline
Every pixel inside the CRT viewport — and every bin in the live histogram — is computed directly in site/crates/esper/src/lib.rs with zero external crates:
- Catmull–Rom 4×4 bicubic magnification — Rather than letting the browser bilinear-blur crops past
4×,esper.wasmevaluates exact cubic Catmull–Rom basis weights across a 16-tap neighborhood on the full1680×1120source frame so architectural lines and distant neon glyphs stay clean under deep zoom. - Depth-estimated 3D parallax look-around — When you drag the 3D Parallax Gimbal (or
Shift+dragon the CRT), the engine computes a structural depth field Z(x,y) from vertical architectural perspective, local luminance prominence, and Sobel gradient density, smooths it with a separable Gaussian pass, and warps every Catmull–Rom sample along the viewing ray (u', v') = (u + \theta_x Z, v + \theta_y Z) to peer slightly around foreground structures. - Iterative Richardson–Lucy Bayesian deconvolution — Clicking ENHANCE animates real iterative deconvolution passes in YCbCr luminance space:
\hat{I}_{k+1} = \hat{I}_k \cdot \left[\left(\frac{I_{\text{obs}}}{\hat{I}_k * \text{PSF}}\right) * \text{PSF}^\top\right]
with a noise-floor clamp over dark night skies so illuminated signage and window grids tighten visibly pass-by-pass without blowing up shadow grain — tracked live by a real Tenengrad gradient sharpness meter.
4. Five optical analysis modes + Hard Copy export — Switch instantaneously between true-color Optical, Amber P3 CRT, directional Sobel Edge (horizontal amber / vertical cyan structural lines), false-color Thermal, and the live Depth Map; then hit hard copy to render a 1200×920 annotated LAPD/ESPER forensic printout PNG complete with Fujifilm X100V EXIF metadata, exact sector coordinates, sharpness delta, and a crop-locator minimap inset.
Three forensic anomalies hidden in Shanghai
Plates B31 (Pudong Art Monolith), B45 (Neon Pudong Riverfront), and B52 (Pudong Night Crossing) each contain a live signal anomaly waiting to be isolated. Watch the SIGNAL % proximity badge climb as you magnify toward the right architectural detail, then trigger ENHANCE (RL ≥ 3) to lock the target and decode cross-site coordinates for Radio Lab (16910.0 kHz & E03 pad) and Cyberspace.
Back to Labs · browse all 176 frames in Photography · tune the intercepted frequencies in Radio Lab · step onto the skyline in Cyberspace.