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

xp-rover

v0.1.0

Published

Rover, the Windows XP search companion dog, animated for any website

Readme

xp-rover

Rover, the search companion dog from Windows XP, for any website.

  • Plays his 29 original animations, with the original timing, random variations and sounds.
  • Works with any stack: plain HTML, React, Vue, Svelte, Angular, Astro…
  • No dependencies, no CSS to import, safe to import during server-side rendering.

Live demo

Install

npm install xp-rover

Or load it straight from a CDN, no build step needed:

<script type="module" src="https://cdn.jsdelivr.net/npm/xp-rover@0/dist/element.js"></script>

<xp-rover animation="Greet" scale="2"></xp-rover>

Web Component

The easiest way to use Rover anywhere. Importing xp-rover/element registers the <xp-rover> tag.

import "xp-rover/element";
<xp-rover animation="Greet" scale="2"></xp-rover>

| Attribute | Description | | ----------- | ----------------------------------------------------------------------- | | animation | Plays this animation, and plays it again whenever the value changes. | | scale | Size multiplier over the original 80×80 px frames. Defaults to 1. | | manual | Rover stays still after an animation instead of idling. | | sound | Turns his sounds on. Browsers only allow it after the user interacts with the page. |

The element also has play(name), exit() and stop() methods, and fires an xp-rover-change event with { animation, frameIndex, frameCount } in event.detail on every frame.

To register it under another tag name, import the class instead:

import { XpRoverElement } from "xp-rover/element";

customElements.define("my-dog", class extends XpRoverElement {});

In frameworks

Custom elements work natively in React 19, Vue, Svelte, Angular, Solid, Astro and others:

import "xp-rover/element";

export function Mascot() {
  return <xp-rover animation="Greet" scale={2} />;
}

Vue needs to be told that xp-rover is a custom element, through compilerOptions.isCustomElement.

JavaScript API

For full control, render Rover inside any element:

import { createRover } from "xp-rover";

const rover = createRover(document.querySelector("#mascot")!, { scale: 2 });

rover.play("Searching");
button.addEventListener("click", () => rover.exit());

Options

| Option | Default | Description | | ------------- | ---------------- | --------------------------------------------------------------- | | scale | 1 | Size multiplier over the original 80×80 px frames. | | autoIdle | true | Go back to Idle whenever an animation ends. | | spriteUrl | bundled sprite | Serve the sprite sheet from your own URL or CDN. | | agent | Rover's data | Animation data in the clippy.js format, to drive another agent. | | soundPlayer | Web Audio player | Replace how sounds are played. |

Methods

| Method | Description | | ---------------------- | -------------------------------------------------------------------------------------------- | | play(name) | Play an animation. If Rover is idling, he finishes idling first. Unknown names are ignored. | | exit() | Let the current animation wrap up through its exit branches. | | stop() | Freeze on the current frame. Rover won't go back to idle until you play something. | | setMuted(muted) | Sound is off by default. Call setMuted(false) from a user gesture, such as a click. | | setAutoIdle(enabled) | Turn automatic idling on or off. | | subscribe(listener) | Get { animation, frameIndex, frameCount } on every frame. Returns an unsubscribe function. | | destroy() | Stop everything and remove Rover from the page. Call it when your component unmounts. |

Animations

Acknowledge, Books, Celebrity, CharacterSucceeds, ClickedOn, Congratulate, Cooking, Embarrassed, GestureLeft, GetAttention, GetAttentionMinor, Greet, Hide, HideQuick, Idle, ImageSearching, LookUp, LookUpLeft, Money, Pleased, RestPose, Searching, Shopping, Show, Sports, Surprised, Thinking, Travel, Writing.

Searching, Thinking and similar animations loop until you call exit().

How assets load

The sprite sheet (698 KB) ships as a separate file next to the code and is found through new URL(..., import.meta.url), which Vite, webpack, Rollup, Parcel, esbuild and CDNs understand without any configuration. The sounds (29 KB) are only downloaded the first time sound is turned on.

Development

Requires Node 22+ and pnpm 11.

pnpm install
pnpm dev        # demo at http://localhost:5173, using the source
pnpm test
pnpm typecheck
pnpm build      # package in dist/, demo in demo-dist/

Releases are published to npm by GitHub Actions when a v* tag is pushed. The tag must match the version in package.json.

The animation data in src/data is generated from clippy.js with scripts/convert-clippy-agent.mjs.

Credits

Rover, his artwork and sounds, and the Bliss wallpaper are © Microsoft Corporation and are not covered by the MIT license. Sprite sheet, animation data and sounds come from clippy.js (MIT). The demo uses XP.css (MIT). See LICENSE and NOTICE.