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

@livo-tv/blocks

v1.37.0

Published

Shared UI components for Livo applications

Readme

@livo-tv/blocks

Shared UI components for Livo applications.

The main entry is a Client Component boundary ("use client"). Import avatar helpers from @livo-tv/blocks/avatar in React Server Components. Import VideoPlayer, curtains, shaders, and playback beacons from @livo-tv/blocks/video so apps that only need chrome (auth, home, docs) never resolve optional HLS / shader peers.

Install

pnpm add @livo-tv/blocks

Optional peers:

  • hls.js@livo-tv/blocks/video (VideoPlayer / useHlsPlayback)
  • @shadergradient/react (plus three / @react-three/fiber / three-stdlib / camera-controls) — @livo-tv/blocks/video (ShaderCurtain)
  • framer-motionAvatarEditorDialog, ThemeSwitcher, LanguageSwitcher
  • next-themesThemeSwitcher

Tailwind

Scan the built package so utilities are not purged:

@source "../../node_modules/@livo-tv/blocks/dist/*.{js,cjs,mjs}";

Consumers must define the same shadcn CSS variables (--primary, --background, --muted, …) that Livo frontends already ship.

Video

import { VideoPlayer } from "@livo-tv/blocks/video";

<VideoPlayer
	src={playbackUrl}
	mode={status === "ended" ? "vod" : "live"}
	labels={labels}
	onError={reportPlaybackError}
/>;

The package is reporting-agnostic. Wire onError / onFirstPlay in the app.

Curtains

CurtainPicker is presentational. Apps load the catalog, upload, and confirm deletes; the block only renders tiles and calls back.

import { CurtainPicker, CurtainPickerSkeleton } from "@livo-tv/blocks/video";

<CurtainPicker
	curtains={curtains}
	value={curtainId}
	onChange={setCurtainId}
	allowNone
	groupByOwner
	variant="compact"
	onMakeDefault={setDefault}
	onDelete={requestDelete}
	canDelete={(curtain) => curtain.ownerType === "organization"}
	labels={t.raw("curtains.picker")}
/>;

Image tiles use the asset URL. Video tiles show a muted looping preview only while the card is on screen, and freeze on prefers-reduced-motion. variant="compact" is a selected preview plus a dense thumbnail grid (thumbs stay frozen). Pass isDefault on each item (org setting or platform flag). Use CurtainPickerSkeleton for a layout-matched loading state.

Avatar

import { AvatarEditorDialog } from "@livo-tv/blocks";

<AvatarEditorDialog
	value={preview}
	onChange={setPreview}
	onSave={async (dataUrl) => {
		const uploaded = await uploadAvatar(dataUrl);
		return uploaded.success;
	}}
	placeholder={t("select")}
	editLabel={t("edit")}
	dialogTitle={t("dialogTitle")}
/>;

i18n

Defaults are English. Pass labels (and AvatarEditor labels) from next-intl. LanguageSwitcher defaults to en / es / pt.