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

lvrs-svelte

v0.2.1

Published

LVRS visual components, materials and elastic interactions for Svelte 5

Readme

LVRS-Svelte

LVRS visual components, materials and elastic interaction for Svelte 5. This release follows LVRS source 953189f1217b8eab6ec0abba23c8ad5dc6a43ef2 (2026-09-13).

npm install lvrs-svelte
<script>
  import { PushButton, PanelMaterial, InputField, Card } from 'lvrs-svelte';
  let title = '';
</script>

<PanelMaterial>
  <InputField label="Project name" bind:text={title} />
  <PushButton text="Create project" size="medium" on:click={() => console.log(title)} />
</PanelMaterial>
<Card type="link" title="Documentation" href="/docs" actionText="Read docs" />

CSS is imported with the package and is available during SSR. A theme provider and browser initialization are unnecessary. lvrs-svelte/theme.css and lvrs-svelte/styles.css are also explicit exports. All build output lives under build/.

Visual scope

59 public components cover buttons, labels, inputs, selection, progress, tables, lists, hierarchy, menus, cards, dialogs, sheets, popovers, tooltips and materials. See component reference. ApplicationWindow, AppShell, HStack, VStack, ZStack, Spacer, PageRouter and Navigator were removed in 0.2.0. Use native HTML/CSS and your application's router to compose these visual components.

Authored metrics are unscaled: body 13px, icons 18px, compact controls 22px. Medium (36px) and large (44px) buttons are explicit options for web and touch surfaces. Panel colors and CSS alpha are derived from the current LVRS tokens. Panel materials support dense (75%, 64px blur), glass (25%, 16px blur) and solid coatings. Web backdrop blur is a CSS approximation of native LVRS materials.

Motion and accessibility

Controls share a bounded 90ms press, 160ms hover and 360ms elastic release. Their visual child animates independently from the hit area. Surfaces enter over 420ms and dialogs exit over 150ms. prefers-reduced-motion is respected. Explicit preferences are supported:

import { setMotionOptions } from 'lvrs-svelte';
setMotionOptions({ reducedMotion: true, speed: 1 });

Native form controls preserve name/value, disabled, validation and keyboard behavior. Segments use arrow/Home/End keys; menus skip disabled items and support Escape; native dialogs provide focus trapping, background inertness, Escape dismissal and focus restoration.

Development and verification

npm ci
npm test
npm run check
npm run build
npm run dev
npm pack --ignore-scripts --pack-destination build

The build emits a standalone static catalog at build/catalog and the typed npm package at build/package. npm test validates token fidelity, motion bounds and SSR for every public component. See release verification for browser scenarios.

The package uses Svelte as its only runtime peer and adds no runtime component dependency. It uses browser-native input, select, dialog and details behavior, Svelte reactivity/transitions, and the official Svelte packaging toolchain. AGPL-3.0-only; see LICENSE and NOTICE.md.