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

vue-screener

v0.16.2

Published

Easily search and filter data in Vue3.

Readme

Vue Screener

Install

npm install vue-screener
# or
yarn add vue-screener

Basic Usage

<template>
  <VueScreener :data="[
    { category: 'Technology', product: 'Laptop', price: 799 },
    { category: 'Clothing', product: 'Sneakers', price: 60 }
  ]" />
</template>

<script setup>
import { VueScreener } from 'vue-screener'
import 'vue-screener/style.css'
</script>

Remote Control

Control the state externally using the useVueScreener hook:

<template>
  <VueScreener :screener="screener" />
</template>

<script setup>
import { VueScreener, useVueScreener } from 'vue-screener'
import 'vue-screener/style.css'

const screener = useVueScreener(data, {
  height: '400px',
  defaultCurrentPage: 1,
  defaultRowsPerPage: 10,
  defaultSortField: 'id',
  defaultSortDirection: 'desc',
  columns: {
    id: { width: '50px', order: 0 },
    name: { width: '150px', order: 1 },
    email: { width: '200px', order: 2 }
  }
})
</script>

Component Props

You can also configure options directly through VueScreener component props:

<template>
  <VueScreener
    :data="data"
    contentHeight="400px"
    :defaultCurrentPage="1"
    :defaultRowsPerPage="10"
    defaultSortField="id"
    defaultSortDirection="desc"
    :columns="{
      id: { width: '50px', order: 0 },
      name: { width: '150px', order: 1 }
    }"
    :disableSearchHighlight="false"
    :loading="false"
    title="My Table"
  />
</template>

Custom Styling

You can customize the appearance and layout by composing your own table using individual components. Here's an example:

<template>
  <VueScreener :screener="screener">
    <VueScreenerSearch :screener="screener" class="custom-search" />
    <VueScreenerTableView :screener="screener">
      <VueScreenerTableHead>
        <VueScreenerTableHeadCell
          v-for="column in screener.columns.value"
          :key="column.field"
          :screener="screener"
          :column="column"
          class="custom-header"
        />
      </VueScreenerTableHead>
      <VueScreenerTableRow
        v-for="row in screener.paginatedRows.value"
        :key="row.id"
        class="custom-row"
      >
        <VueScreenerTableCell
          v-for="column in screener.columns.value"
          :key="column.field"
          :screener="screener"
          :column="column"
          :row="row"
          class="custom-cell"
        />
      </VueScreenerTableRow>
    </VueScreenerTableView>
    <VueScreenerPagination :screener="screener" class="custom-pagination" />
  </VueScreener>
</template>

<script setup>
import {
  VueScreener,
  VueScreenerSearch,
  VueScreenerTableView,
  VueScreenerTableHead,
  VueScreenerTableHeadCell,
  VueScreenerTableRow,
  VueScreenerTableCell,
  VueScreenerPagination,
  useVueScreener
} from 'vue-screener'
import 'vue-screener/style.css'

const screener = useVueScreener(data)
</script>

Configuration Options

useVueScreener Options

  • contentHeight: String - CSS height value for fixed height with scroll (optional)
  • defaultCurrentPage: Number (default: 1)
  • defaultRowsPerPage: Number (default: 10)
  • defaultSortField: String
  • defaultSortDirection: 'asc' | 'desc'
  • columns: Column configuration object
  • disableSearchHighlight: Boolean (default: false)
  • loading: Boolean (default: false)

VueScreener Props

  • data: Array of data (optional)
  • screener: VueScreener state from useVueScreener (optional)
  • class: String (optional)
  • contentHeight: String - CSS height value for fixed height with scroll (optional)
  • defaultCurrentPage: Number (default: 1)
  • defaultRowsPerPage: Number (default: 10)
  • defaultSortField: String
  • defaultSortDirection: 'asc' | 'desc'
  • columns: Column configuration object
  • disableSearchHighlight: Boolean (default: false)
  • loading: Boolean (default: false)
  • title: String (optional)

Column Configuration

interface Column {
  width?: string | number
  label?: string
  order?: number
  isPinned?: boolean
  isSortable?: boolean
  hidden?: boolean
  format?: (value: any, row: Row) => string
}

Updating Options After Initialization

You can update options after initialization via the props or using the setOptions action:

screener.actions.setOptions({
  contentHeight: '600px',
  disableSearchHighlight: true,
  loading: true
})

License

MIT