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

preloop

v0.8.0

Published

Preloop console frontend

Readme

SpaceLit

This directory contains the new Preloop frontend, a modern web application built with Lit, Vite, and TypeScript. It follows the Material v3 design system using Material Web Components.

Description

This frontend is a single-page application (SPA) that provides a rich, interactive user experience for managing issue trackers through the Preloop API. It is designed to be fast, responsive, and maintainable.

Development

Prerequisites

  • Node.js (v18 or higher)
  • npm (v9 or higher)

Installing Dependencies

To install the necessary dependencies, run the following command:

npm install

Running the Development Server

To start the local development server with Hot Module Replacement (HMR), run:

npm run dev

The application will be available at http://localhost:5173 by default.

Building for Production

To create an optimized production build, run:

npm run build

The output files will be placed in the dist/ directory.

Running Tests

To run the test suite using Web Test Runner, use the following command:

npm run test

Architecture

SSR Content Slotting for SEO

The frontend uses a slotting mechanism to provide SEO-friendly server-side rendered content while maintaining the benefits of a single-page application (SPA).

How It Works

  1. Build Time (vite-plugin-brand.ts):

    • The Vite plugin generates static HTML pages (index.html, about.html, pricing.html, etc.)
    • Each page includes pre-rendered content inside web component tags in the light DOM
    • Content is wrapped in appropriate wrapper components:
      • Landing page: <landing-view> with slotted content
      • Static pages: <static-view-wrapper> with article content
    • A data-ssr-route attribute on <lit-app> indicates which route the SSR content is for
  2. Runtime Hydration (lit-app.ts):

    • On page load, firstUpdated() checks if SSR content exists in the light DOM
    • If the SSR route matches the current URL path, the content is moved to the router outlet
    • The router then reuses this existing content instead of creating new components
    • If routes don't match (e.g., SPA navigation), SSR content is removed
  3. Component Consumption:

    • landing-view reads slotted content via named slots (e.g., slot="hero-title")
    • static-view-wrapper uses a default slot to display article content
    • Components can also load content dynamically via JSON/markdown for client-side navigation

File Structure

vite-plugin-brand.ts          # Generates SSR HTML at build time
src/components/
  lit-app.ts                  # Handles SSR content hydration
  static-view-wrapper.ts      # Wrapper for static pages (privacy, about, etc.)
  static-view.ts              # Dynamic markdown loader for client-side nav
src/views/public/
  landing-view.ts             # Landing page with slot consumption

Key Functions

  • generateSlottedContentForRoute() - Creates slotted HTML for landing page
  • generateFullHtmlPage() - Generates complete HTML pages for static routes
  • loadMarkdownContent() - Converts markdown to styled HTML articles

Benefits

  • SEO: Search engines see fully rendered content on first load
  • Performance: No flash of unstyled content (FOUC) with critical CSS
  • SPA Experience: After hydration, navigation is instant client-side
  • Maintainability: Content defined in brands.yaml and markdown files