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

neoway-components

v1.0.6

Published

A collection of Lit web components

Readme

Neoway Lit Components Challenge

A lightweight npm package containing reusable, accessible, and performant web components built with Lit. This package includes a virtualized table, debounced search input, and an accessible modal component.

Installation

npm install neoway-components
yarn add neoway-components

Components

Virtualized Table

A high-performance virtualized table component for displaying large datasets efficiently.

Usage

import "neoway-components";
<virtualized-table
  .columns="${columns}"
  .data="${data}"
  height="500"
  @row-click="${handleRowClick}"
></virtualized-table>

Properties

  • columns (Array, required): Array of column configuration objects
    const columns = [
      { key: "id", header: "ID", width: 100 },
      { key: "name", header: "Name", width: 200, align: "left" },
      { key: "status", header: "Status", sortable: true, align: "center" },
    ];
  • data (Array, required): Array of data objects to display
  • height (String, optional): Minimum height in pixels of the table (e.g., "500", "150")

Events

  • row-click: Dispatched when a row is clicked
    handleRowClick(event) {
      const rowData = event.detail;
      console.log('Clicked row:', rowData);
    }

Features

  • Virtualization: Only renders visible rows for optimal performance
  • Fixed headers: Headers remain visible while scrolling
  • Customizable columns: Flexible column configuration
  • Click handling: Easy row interaction

Search Input

A debounced search input component with customizable delay.

Usage

import "neoway-components";
<search-input
  placeholder="Search items..."
  debounce="300"
  @search="${handleSearch}"
></search-input>

Properties

  • placeholder (String): Placeholder text displayed in the input
  • debounce (Number): Debounce time in milliseconds (default: 300)

Events

  • search: Dispatched after debounce delay with the search query
    handleSearch(event) {
      const query = event.detail;
      console.log('Search query:', query);
      // Perform search operation
    }

Features

  • Debounced input: Reduces API calls and improves performance
  • Accessible: Proper ARIA labels and keyboard navigation
  • Flexible timing: Customizable debounce delay

Accessible Modal

A fully accessible modal dialog component with proper focus management and keyboard support.

Usage

import "neoway-components";
<accessible-modal
  title="Modal Title"
  .open="${isModalOpen}"
  @modal-close="${handleModalClose}"
>
  <p>Your modal content goes here</p>
  <button @click="${handleAction}">Action Button</button>
</accessible-modal>

Properties

  • title (String): Title displayed in the modal header
  • open (Boolean): Controls modal visibility

Events

  • modal-close: Dispatched when user clicks outside modal, on close button or press ESC.

    handleModalClose() {
      this.isModalOpen = false;
    }

Features

  • Focus trapping: Keeps focus within the modal when open
  • Keyboard navigation: ESC key to close, proper tab order
  • Backdrop click: Click outside to close
  • Accessible: ARIA labels, proper roles, and screen reader support
  • Animated: Smooth open/close transitions

Useful Commands

Storybook

npm run storybook

Tests

npm run test
npm run test:watch
npm run test:coverage