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

velu

v0.1.3

Published

A modern Vue 3 UI component library with TypeScript support

Readme

Velu

A modern Vue 3 UI component library with TypeScript support.

Features

  • 🚀 Vue 3 + TypeScript: Built with Vue 3 Composition API and full TypeScript support
  • Virtual Scrolling: High-performance virtual scroll component for large datasets
  • 🎨 Customizable: Flexible styling and configuration options
  • 📦 Tree Shakable: Import only what you need
  • 🔧 Developer Friendly: Excellent TypeScript IntelliSense support

Installation

npm install velu --save
# or
pnpm add velu
# or
yarn add velu

Quick Start

Global Registration

// main.ts
import { createApp } from 'vue'
import Velu, { install } from 'velu'
import 'velu/style.css'

const app = createApp(App)
app.use(install)

Component Registration

<script setup lang="ts">
import { VirtualScroll } from 'velu'
import 'velu/style.css'

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

<template>
  <VirtualScroll
    :items="items"
    :item-height="50"
    :container-height="400"
    @visible-change="onVisibleChange"
  >
    <template #default="{ item, index }">
      <div class="item">
        {{ index }}: {{ item.name }}
      </div>
    </template>
  </VirtualScroll>
</template>

Components

VirtualScroll

High-performance virtual scrolling component for rendering large lists.

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | items | T[] | [] | Array of items to render | | itemHeight | number | - | Height of each item in pixels | | containerHeight | number | undefined | Max height of the container | | buffer | number | 5 | Number of items to render outside visible area |

Events

| Event | Payload | Description | |-------|---------|-------------| | visible-change | { start: number, end: number } | Fired when visible range changes |

Slots

| Slot | Props | Description | |------|-------|-------------| | default | { item: T, index: number } | Template for each item |

Exposed Methods

| Method | Parameters | Description | |--------|------------|-------------| | scrollToIndex | (index: number) | Scroll to specific item index |

Example Usage

<template>
  <VirtualScroll
    :items="largeDataset"
    :item-height="60"
    :container-height="500"
    :buffer="10"
    @visible-change="handleVisibleChange"
  >
    <template #default="{ item, index }">
      <div class="custom-item">
        <h3>{{ item.title }}</h3>
        <p>{{ item.description }}</p>
        <small>Index: {{ index }}</small>
      </div>
    </template>
  </VirtualScroll>
</template>

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

interface Item {
  id: number
  title: string
  description: string
}

const largeDataset = ref<Item[]>(
  Array.from({ length: 100000 }, (_, i) => ({
    id: i,
    title: `Item ${i}`,
    description: `Description for item ${i}`
  }))
)

const handleVisibleChange = ({ start, end }: { start: number; end: number }) => {
  console.log(`Visible items: ${start} - ${end}`)
}
</script>

<style>
.custom-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
}
</style>

TypeScript Support

Velu is written in TypeScript and provides full type definitions:

import type { VirtualScrollProps } from 'velu'

// Generic type support
interface MyItem {
  id: number
  name: string
}

const items: MyItem[] = [...]

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT