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

virtual-list-vue

v1.0.4

Published

**`virtual-list-vue`** is a small virtual list component for **Vue 3**. It only renders the visible items in a scrollable container, which keeps your app fast even with tens of thousands of rows.

Downloads

520

Readme

virtual-list-vue

virtual-list-vue is a small virtual list component for Vue 3.
It only renders the visible items in a scrollable container, which keeps your app fast even with tens of thousands of rows.

Keywords

  • virtual list
  • virtual scroll
  • windowing
  • infinite list
  • large list
  • vue 3
  • vue virtual list
  • virtualization
  • performance

Install

npm install virtual-list-vue
# or
yarn add virtual-list-vue

Peer dependency:

  • vue ^3.3.0

Basic usage

Register the plugin in your Vue app:

// main.ts
import { createApp } from 'vue';
import App from './App.vue';
import VirtualListVue from 'virtual-list-vue';

createApp(App)
  .use(VirtualListVue)
  .mount('#app');

Now you can use the VirtualList component anywhere.

<script setup lang="ts">
import { ref } from 'vue';

const items = ref(
  Array.from({ length: 10000 }, (_, i) => `Item #${i + 1}`)
);
</script>

<template>
  <VirtualList
    :items="items"
    :height="400"
    :item-height="40"
    :overscan="5"
  >
    <template #default="{ item, index }">
      <div
        :style="{
          height: '40px',
          display: 'flex',
          alignItems: 'center',
          padding: '0 12px',
          borderBottom: '1px solid #e5e7eb',
          background: index % 2 === 0 ? '#f9fafb' : '#ffffff'
        }"
      >
        <span style="font-variant-numeric: tabular-nums; width: 72px; color: #6b7280;">
          #{{ index + 1 }}
        </span>
        <span>{{ item }}</span>
      </div>
    </template>
  </VirtualList>
</template>

Props

  • items (any[], required): Full array of items to render virtually.
  • height (number, required): Height of the scroll container in pixels.
  • item-height (number, required): Fixed height of each row in pixels.
  • overscan (number, optional, default 5): Extra items rendered above and below the viewport to make scrolling smoother.

Slots

  • default slot: Receives an object { item, index } for each visible item.

Example:

<VirtualList :items="items" :height="400" :item-height="40">
  <template #default="{ item, index }">
    <div>{{ index }} – {{ item }}</div>
  </template>
</VirtualList>

Local development demo

This repository already contains a small demo using virtual-list-vue.

npm install
npm run dev

Then open the printed URL in your browser to see the virtual list in action.