Neal.fun – About
Neal.fun is a website that offers interactive and educational web-based projects. It aims to entertain and inform users through creative online experiences. (neal.fun)
The HTML-in-Canvas API is an experimental Chrome feature, available in an origin trial (Chrome 148-150) that lets developers render real DOM content into 2D canvas or WebGL/WebGPU textures while preserving interactivity, accessibility, and browser integrations. It removes the traditional tradeoff between DOM semantics (rich text layout, form controls, selection, find-in-page, accessibility tree, extensions, DevTools inspection, indexing) and canvas performance (pixel-level 2D/3D rendering used by games, WebXR, and complex apps). By drawing HTML into canvas-backed textures, applications can keep native text layout and browser features, shrink custom UI code and bundle size, and embed functional web UI inside 3D scenes or heavyweight canvas apps.
Using the API follows three phases: enable the origin trial (test on Chrome Canary 149+ with chrome://flags/#canvas-draw-element), prepare the canvas (add layoutsubtree to expose nested content and size the canvas to device pixel ratio), then render and sync transforms. For 2D use ctx.drawElementImage and apply the returned transform to element.style.transform. For WebGL use gl.texElementImage2D; for WebGPU use device.queue.copyElementImageToTexture. When shaders alter positioning, compute a DOM transform from the WebGL MVP via element.getElementTransform (normalize element size, map to viewport, flip Y, and combine matrices) so pointer events and selection align with rendered pixels.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
Neal.fun is a website that offers interactive and educational web-based projects. It aims to entertain and inform users through creative online experiences. (neal.fun)
Cyberpunk 2077 is now playable directly in the browser using WebGPU technology. Users report it works despite some loading and audio issues. (twitter.com)
Railpass is a product created by Sami Smith. It appears to be related to train travel or passes. (train.samismith.com)
Arc will be officially discontinued and become inaccessible on December 22, 2026, with all user accounts deactivated and data deleted within 30 days. Users are encouraged to switch to alternative browsers such as Zen, which is built on Firefox. (resources.arc.net)
A mobile app allows users to build virtual worlds on their phones and explore them in extended reality using Vision Pro and Quest headsets. The platform supports creating immersive experiences accessible through XR devices. (3d.camilleworld.com)
The project offers UI micro interaction prompts designed to guide AI behavior and responses. It aims to improve user experience by integrating these prompts into AI interfaces. (typeui.sh)
Today's best Hacker News stories, summarized and screenshotted, one email a day.