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

f1-box-box

v1.0.1

Published

F1 box box themed loading animation — car in, wheel gun, out. Injected SVG + CSS, zero dependencies.

Readme

f1-box-box

F1 pit-lane style loading — car rolls in, crew fires, car launches out. Self-contained CSS + canvas, start() / complete() / reset() / destroy(). Zero dependencies.

npm version npm downloads bundle size license TypeScript

Live Demo →


Install

npm install f1-box-box

Quick start

import f1BoxBox from 'f1-box-box';

const el = document.getElementById('loader')!;
const pit = f1BoxBox(el, {
  scale: 1.2,
  color: '#e22828',
  baseColor: '#1a1a1a',
  text: [
    'Box, box — coming in…',
    'Jacking up…',
    'Changing tyres…',
    'Adjusting front wing…',
    'Tyres on — go, go, go!',
  ],
  textInterval: 1500,
});

pit.start();
// later: pit.complete(), pit.reset(), or pit.destroy();

API

f1BoxBox(container, options?)

| Option | Type | Default | Description | |--------|------|---------|-------------| | scale | number | 1 | Visual scale multiplier (e.g. 0.75, 1.5) | | color | string | #e22828 | Car / team accent | | baseColor | string | #1a1a1a | Car chassis and mechanics' gear base color | | text | string \| string[] | Pit lane… | Subtitle under the track. Pass an array to cycle messages: first and last are shown once (at start / end); middle entries repeat in sequence during work. | | textInterval | number | 2000 | Interval in ms for cycling middle text entries (only applies when text is an array). |

Status line behavior: With a string, only the idle / reset() line uses your value; start() / complete() keep the built-in pit radio phrases. With an array, index 0 is idle and the first line when start() runs, indices 1 … length-2 rotate in order every textInterval ms while the crew is working, and index length-1 is shown when complete() runs (and after the car leaves).

Returns { start, complete, reset, destroy }.

  • start() — starts the sequence (car enters pit, crew works).
  • complete() — transitions to release (green light, crew steps back, car exits).
  • reset() — returns to idle.
  • destroy() — removes the mounted nodes from the container (global injected stylesheet stays, shared across instances).

Bundle size: ~2.2 kB minified + gzip (see bundlephobia).

License

MIT © Everything Frontend