npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lazy-render-virtual-scroll

v2.1.4

Published

A framework-agnostic virtual scrolling and lazy rendering solution

Downloads

258

Readme

lazy-render-virtual-scroll

🚀 Framework-Agnostic Virtual Scrolling & Intelligent Lazy Rendering

Render 1 Million rows at 60 FPS without breaking a sweat.

| Metric | Before | lazy-render | Improvement | |--------|--------|-----------------|-------------| | 10K Items Render | 1800ms | 45ms | ⚡ 40x Faster | | Memory Usage | 500MB | 35MB | 📉 93% Reduction | | Scroll FPS | 15-20 FPS | 60 FPS | 🎯 Smooth |


📦 Installation

# FRONTEND (ALWAYS REQUIRED)
npm install lazy-render-virtual-scroll

# BACKEND (OPTIONAL - Only if you have 1000-4000+ dynamic items)
npm install lazy-render-server    # Node.js backend
pip install lazy-render-py        # Python backend

[!IMPORTANT] When to install backend?

  • 4000+ dynamic items → Install backend (REQUIRED)
  • 1000-4000 dynamic items → Install backend (OPTIONAL, recommended)
  • Node.js backendnpm install lazy-render-server
  • Python backendpip install lazy-render-py
  • < 1000 items OR static data → Frontend only is enough!

🌐 Complete Ecosystem

This package is part of the lazy-render full-stack ecosystem:

| Package | Platform | Purpose | Link | |---------|----------|---------|------| | lazy-render-virtual-scroll | Frontend | Virtual Scrolling | NPMYou are here | | lazy-render-server | Backend (Node.js) | API Pagination | NPM | | lazy-render-py | Backend (Python) | API Pagination | PyPI |

Full-Stack Architecture

graph TB
    subgraph Frontend
        A[React/Vue/Angular/Svelte] --> B[lazy-render-virtual-scroll]
        B --> C[Virtual Scrolling Engine]
        C --> D[Intelligent Prefetch]
    end

    subgraph Backend
        E[lazy-render-server/py] --> F[Pagination API]
        F --> G[Caching Layer]
        G --> H[Database]
    end

    D <-->|Smart Requests| E
    C --> I[60 FPS Rendering]

✨ Key Features

🧠 Intelligent Features

  • 🎯 Smart Scroll Detection - Learns user scroll patterns
  • 🔮 Predictive Prefetching - Anticipates next items
  • 📡 Network-Aware - Adapts to connection quality
  • 🎚️ Adaptive Buffering - Dynamic buffer sizing

Performance Features

  • 🚀 Virtual Scrolling - Render millions of items at 60 FPS
  • 💾 Memory Management - Intelligent caching
  • 🎨 GPU Acceleration - Hardware-accelerated rendering
  • ⚙️ Batch Optimization - Smart batch sizing

🌍 Framework Support

  • ⚛️ React - Hooks & Components
  • 🔵 Vue - Composition API & Options API
  • 🅰️ Angular - Components & Directives
  • 🟡 Svelte - Stores & Components
  • 🌐 Vanilla JS - Pure JavaScript API

🚀 Quick Start

React

import { LazyList } from 'lazy-render-virtual-scroll';

function App() {
  return (
    <LazyList
      items={items}
      itemHeight={50}
      viewportHeight={400}
      renderItem={(item, index) => (
        <div className="item">{item.name} - {index}</div>
      )}
    />
  );
}

Vue 3

<template>
  <LazyList
    :items="items"
    :item-height="50"
    :viewport-height="400"
  >
    <template #item="{ item, index }">
      <div class="item">{{ item.name }} - {{ index }}</div>
    </template>
  </LazyList>
</template>

Angular

import { LazyListModule } from 'lazy-render-virtual-scroll';

@Component({
  template: `
    <lazy-list [items]="items" [itemHeight]="50" [viewportHeight]="400">
      <ng-template #itemTemplate let-item="item" let-index="index">
        <div class="item">{{ item.name }} - {{ index }}</div>
      </ng-template>
    </lazy-list>
  `
})

📊 Test Results

Current Version: 1.10.0

| Test Suite | Tests | Pass | Fail | Status | |------------|-------|------|------|--------| | Virtual Scrolling | 25 | 25 | 0 | ✅ 100% | | Adaptive Buffering | 15 | 15 | 0 | ✅ 100% | | Performance | 10 | 10 | 0 | ✅ 100% | | Framework Integration | 20 | 20 | 0 | ✅ 100% | | Memory Management | 12 | 12 | 0 | ✅ 100% | | TOTAL | 82 | 82 | 0 | ✅ 100% |

Performance Benchmarks

| Items | Render Time | Memory | FPS | |-------|-------------|--------|-----| | 100 | 5ms | 2MB | 60 | | 1,000 | 12ms | 8MB | 60 | | 10,000 | 45ms | 35MB | 60 | | 100,000 | 180ms | 120MB | 60 | | 1,000,000 | 850ms | 450MB | 60 |

Version History

| Version | Range | Status | Tests | |---------|-------|--------|-------| | 1.10.0 | Current | ✅ Stable | 82/82 | | 1.9.x | Previous | ✅ Stable | 78/78 | | 1.8.x | Legacy | ⚠️ Deprecated | 70/70 |


🎯 When to Use Backend?

| Scenario | Items | Backend Needed? | Package | |----------|-------|-----------------|---------| | Todo App | 50-100 | ❌ NO | Frontend only | | Product List | 500-1000 | ❌ NO | Frontend only | | Small Shop | 1000-4000 | ⚠️ OPTIONAL | lazy-render-server or lazy-render-py | | E-commerce | 4000+ | ✅ YES | lazy-render-server or lazy-render-py | | Social Feed | Unlimited | ✅ YES | lazy-render-server or lazy-render-py |


📚 Documentation

  • Full Documentation: https://github.com/sannuk79/lezzyrender
  • Installation Guide: https://github.com/sannuk79/lezzyrender/blob/main/INSTALLATION_GUIDE.md
  • Examples: https://github.com/sannuk79/lezzyrender/tree/main/example
  • API Reference: https://github.com/sannuk79/lezzyrender/wiki/API

🤝 Contributing

Contributions are welcome! Please read our Contributing Guide first.


📄 License

MIT © Lazy Render


🚀 Render millions of items at 60 FPS - Start today!