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

loopkit

v0.1.1

Published

Lightweight schema-driven SVG animation engine. Define animations as data, render to DOM or string. Zero dependencies.

Readme

loopkit

Lightweight, zero-dependency SVG animation engine for the web. Define animations as plain JS objects, get smooth requestAnimationFrame-driven playback. Built as a Lottie alternative for short decorative animations — cover art, hero graphics, hover effects. Under 5KB minified.

Install

npm install loopkit

Quick start

import { createAnimation } from 'loopkit';

const anim = createAnimation(document.getElementById('cover'), {
  width: 460,
  height: 280,
  background: '#0c1222',
  stagger: 0.45,
  trigger: 'hover',
  hold: 3.5,
  elements: [
    {
      type: 'text',
      content: 'Subjective',
      style: { x: 48, y: 72, fontSize: 28, color: '#334155' },
      animate: {
        opacity: [0.2, 1],
        color: ['#334155', '#34d399'],
        sequence: 0,
        duration: 0.5,
        easing: 'ease-out',
      },
    },
    {
      type: 'rect',
      style: { x: 28, y: 44, width: 3, height: 0, fill: '#34d399' },
      animate: {
        height: [0, 180],
        sequence: 0,
        duration: 2.8,
        easing: 'ease-out',
      },
    },
  ],
});

anim.play();     // Start playback
anim.pause();    // Freeze at current frame
anim.reset();    // Snap to final frame
anim.settle();   // Smoothly animate to final frame
anim.destroy();  // Remove SVG, cancel rAF, clean up

Features

  • Schema in, animation out — declarative JSON-like schema defines elements and keyframes
  • SVG renderer — creates and updates SVG DOM via requestAnimationFrame
  • Zero dependencies — vanilla TypeScript, <5KB minified
  • Two triggersautoplay (infinite loop) or hover (loop on enter, smooth settle on leave)
  • Smooth transitions — starts at final frame (no flash), fades out before restarting, settles smoothly on hover leave
  • SSR supportrenderToString() outputs SVG markup at final frame, no DOM required
  • Color interpolation — hex color animation with RGB lerp

Element types

| Type | SVG output | Key properties | |------|------------|----------------| | text | <text> | x, y, fontSize, color, opacity, fontWeight, textAnchor | | rect | <rect> | x, y, width, height, fill, opacity, rx | | circle | <circle> | cx, cy, r, fill, opacity, scale | | badge | <g> with shape + centered text | x, y, r, bg, color, scale, opacity, isLabel |

SSR

import { renderToString } from 'loopkit';

const svgMarkup = renderToString(schema);
// Returns <svg>...</svg> at final frame — no DOM needed

Docs

  • Comprehensive Guide — full walkthrough of concepts, timing, design patterns, and recipes
  • API Reference — all methods, types, and parameters
  • Examples — 46 real-world cover schemas with explanations

About

Built and maintained by Jurij Tokarski from Varstatt. MIT licensed.