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

tinypal

v0.1.4

Published

An interactive mascot SDK for React that reacts to forms, API calls, inactivity and the cursor.

Readme

tinypal

npm version license: MIT bundle size types: TypeScript

Give your website a little personality.

tinypal celebrating after a successful request

tinypal is a mascot SDK for React. A small animated companion sits on your page and reacts to what is happening: it gets curious when a form is focused, thinks while requests load, celebrates when they succeed, looks sad when they fail, follows the cursor with its eyes, and dozes off when the visitor goes quiet.

Live demo and playground · npm · Docs

Features

  • 19 original characters: robot, cat, dog, fox, panda, alien, ghost, bunny, blob, owl, penguin, dino, mouse, monster, chick, frog, bear, cactus and pip. Plus an API for your own.
  • 8 expressions and 7 animations: idle, happy, curious, thinking, surprised, confused, sad, sleepy; loading, celebrating, blinking, looking left/right, waving, sleeping.
  • Cursor tracking with adjustable speed ("slow" to "instant"), on one requestAnimationFrame loop with zero React re-renders.
  • Form awareness for native forms, React Hook Form and Formik. Never reads field values; password fields are ignored.
  • API awareness with fetch and Axios adapters. You decide which status codes count as errors.
  • Speech bubbles with custom messages, rotating lines and multiple languages.
  • Positioning in corners, at coordinates, next to an element, inline, or draggable.
  • Inactivity: sleepy, then asleep, then a surprised wake-up.
  • TypeScript-first, SSR-safe (Next.js), no runtime dependencies, no analytics, respects prefers-reduced-motion.

Install

npm install tinypal

Usage

import { MascotProvider, useMascot } from "tinypal";

function SaveButton() {
  const mascot = useMascot();

  const save = async () => {
    mascot.play("loading");
    try {
      await saveData();
      mascot.play("happy", { duration: 3000 });
      mascot.say("Saved!");
    } catch {
      mascot.play("sad", { duration: 3000 });
      mascot.say("Something went wrong.");
    }
  };

  return <button onClick={save}>Save</button>;
}

export default function App() {
  return (
    <MascotProvider character="cat" position="bottom-right" enableFormAwareness>
      <SaveButton />
    </MascotProvider>
  );
}

Or report events and let the mascot pick the reaction:

mascot.emit("api:loading");
mascot.emit("api:success");
mascot.emit("form:invalid");

Documentation

Full guides and API reference are in docs/: getting started · characters · expressions · cursor tracking · forms · API · messages · positioning · inactivity · React · Next.js · custom characters · API reference · troubleshooting

Runnable examples are in examples/.

Security note: custom character artwork (defineCharacter({ body })) is inserted as raw SVG. Only use SVG you trust, never SVG built from user input. See custom characters.

Works with

React 18 and 19, Next.js (App Router and Pages Router), Vite, and any React setup. TypeScript types are included.

Try every character and option live in the playground.

License

MIT


Made by Harshit Bhalani. If tinypal made your site a little friendlier, you can buy me a coffee ☕ or leave a ⭐ on GitHub.