Pierre Computer Ships CodeView: Virtualization-First Diff Rendering
Pierre Computer Company, known for its developer tools, has released CodeView, a new component for rendering code diffs at any scale. The component is part of the @pierre/diffs package on npm and is designed to handle massive pull requests without blanking or performance degradation.
The Problem: Diffs Are Not Just Text
Rendering diffs in a browser seems simple, but a good review surface needs syntax highlighting, line numbers, annotations, comments, theming, split/unified layouts, and wrapping modes. Each feature adds DOM complexity and processing overhead. For large reviews—like those generated by AI agents touching hundreds of files—the cost multiplies. The team identified three core problems: rendering (DOM complexity), processing (highlighting and layout), and memory (data structures).
The Inverse Sticky Technique
CodeView introduces a novel virtualization approach called the Inverse Sticky Technique. Traditional virtualization uses a scrollable container with estimated total height, but fast scrolling can expose blank regions (blanking) before JavaScript catches up. Alternative approaches like sticky containers or emulated scrolling sacrifice native scroll feel or introduce stutter.
The Inverse Sticky Technique inverts CSS position: sticky. Instead of pinning the top of the rendered content to the viewport, the bottom edge sticks to the bottom when scrolling past it, and the top edge sticks to the top when scrolling back up. This preserves native scrolling while making blanking impossible. The formula for the sticky offsets is (contentHeight - viewportHeight) * -1 for both top and bottom.
Performance and Scalability
CodeView is built to handle "any diff" at any scale. The team's goal was to render nearly any pull request from GitHub nearly instantly. The component uses a simple virtualizer that avoids rendering off-screen code and moves syntax highlighting to worker threads. The Inverse Sticky Technique eliminates blanking even during large scrollbar jumps.
How to Use CodeView
You can try CodeView directly at DiffsHub.com by replacing github with diffshub in any GitHub pull request URL. The npm package @pierre/diffs includes the CodeView component, File and FileDiff components, and a virtualizer. The documentation is available at the Pierre Computer website.
Technical Details
- The Inverse Sticky Technique uses CSS
position: stickywith negativetopandbottomvalues calculated dynamically. - Syntax highlighting runs in worker threads via the component's API.
- The virtualizer only renders content near the viewport, reducing DOM size and memory usage.
- CodeView supports both split and unified diff views, theming, and custom annotations.
Why It Matters
Large pull requests—especially those generated by AI—are becoming common. Existing code review tools struggle with performance, forcing teams to build workarounds. CodeView aims to make diff rendering a solved problem, letting teams focus on review workflows, automation, and collaboration.
Next Steps
If you're building a code review tool or integrating diff rendering into an existing product, try the @pierre/diffs package on npm. Experiment with the CodeView component on DiffsHub.com to see how it handles your largest repos. The source code and documentation are available on Pierre Computer's website.



