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

@hadoku/watchparty-ui

v0.45.91

Published

React UI components for the Hadoku Watch Party application.

Readme

@wolffm/watchparty-ui

React UI components for the Hadoku Watch Party application.

Installation

This package is published to GitHub Packages. To install:

  1. Configure npm to use GitHub Packages by creating/updating .npmrc:
@wolffm:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
  1. Install the package:
npm install @wolffm/watchparty-ui
# or
pnpm add @wolffm/watchparty-ui

Usage

Basic Setup

import { WatchPartyProvider, WatchPartyRoom } from '@wolffm/watchparty-ui';
import '@wolffm/watchparty-ui/dist/style.css';

function App() {
  return (
    <WatchPartyProvider serverOrigin="https://your-server.com">
      <WatchPartyRoom defaultRoomKey="your-room-key" />
    </WatchPartyProvider>
  );
}

Configuration

The UI components can be configured via props:

  • serverOrigin: WebSocket server URL (default: /)
  • defaultRoomKey: Room to join on mount (optional)

Development

To work on this package locally:

# Install dependencies
pnpm install

# Run dev server
pnpm dev

# Build for production
pnpm build

Publishing

This package is automatically published to GitHub Packages on every push to main that affects the UI code.

The version is CI's, never a commit's: publish-packages.yml sets it to one patch above the registry's newest (WolffM/hadoku-actions/next-version), in the CI workspace only, in lockstep with @wolffm/rooms-protocol and @wolffm/rooms-server. Never edit it by hand.


Development Notes

Phase 0 scaffold (React 19 + Vite) is in place.

Key config:

  • Base path: /watchparty/
  • Router basename: /watchparty
  • Tailwind + Zustand + socket.io-client

Runtime Server Integration (Phase 2)

The UI now auto-joins a placeholder room key demo when the user presses "Join Room" in the Identity drawer. It sends a Socket.IO join payload containing { room_key:'demo', leader_key?, name, sprite }.

Configure a different backend origin (if UI served from a different host) via environment:

VITE_SERVER_ORIGIN=https://api.example.com

If omitted, the client connects relative to current origin (/watchparty/ws).

Duplicate joins are suppressed (if me.clientId already populated). This interim flow will be replaced once a room selection / creation UX exists.

CSS Reset / Preflight

Tailwind v4 preflight is disabled to eliminate console warnings about legacy vendor selectors. A minimal custom reset is applied in src/styles.css. The theme uses CSS variables from @wolffm/themes mapped in the @theme block.

Dark Theme Lock / Extension Interference

The app enforces a permanent dark theme to avoid color inversion by extensions like Dark Reader:

  • Added <meta name="color-scheme" content="dark"> & data-theme="dark" on <html>.
  • Set data-darkreader-skip on <html> and <body> to hint Dark Reader not to transform.
  • Declared stable color CSS variables (--wp-*) and color-scheme: dark to reduce heuristics.
  • Explicit black background ensures no flash when extension toggles.

If future light mode is desired, introduce a controlled theme switch and remove data-darkreader-skip selectively rather than allowing uncontrolled extension mutation.