Skip to content

Warper v6.0.0 - Stable & Production Ready

Choose a tag to compare

@itsmeadarsh2008 itsmeadarsh2008 released this 06 Jan 15:03
· 17 commits to main since this release

The first stable release of Warper - an ultra-fast React virtualization library powered by Rust and WebAssembly.

What's New

  • Production-ready API
  • Stable useVirtualizer hook
  • WarperComponent for quick integration
  • Full TypeScript support
  • Proper npm package structure with React hooks and WASM core

Performance

  • 120+ FPS with 10M+ items
  • O(1) scroll position lookups via Fenwick trees
  • O(log n) range calculations
  • Zero garbage collection during scroll
  • ~45KB gzipped bundle (including WASM)

Installation

npm install @itsmeadarsh/warper

Quick Start

import { useVirtualizer } from '@itsmeadarsh/warper';

function App() {
  const { scrollElementRef, range, totalHeight } = useVirtualizer({
    itemCount: 1_000_000,
    estimateSize: () => 50,
  });

  return (
    <div ref={scrollElementRef} style={{ height: 500, overflow: 'auto' }}>
      <div style={{ height: totalHeight, position: 'relative' }}>
        {range.items.map((index, i) => (
          <div key={index} style={{
            position: 'absolute',
            transform: `translateY(${range.offsets[i]}px)`,
            height: range.sizes[i]
          }}>
            Row {index}
          </div>
        ))}
      </div>
    </div>
  );
}

Links

Requirements

  • React 18+
  • Bundler with WASM support (Vite recommended)

Full Changelog: https://github.com/warper-org/warper/commits/v6.0.0