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

recoat

v0.1.0

Published

Animated backgrounds and text effects for the web. Zero dependencies.

Readme

recoat

Animated backgrounds and text effects for the web. Zero dependencies.

  • 13 Backgrounds — Canvas-based (zero deps) + Three.js-powered (optional peer dep)
  • 12 Text Animations — DOM-based text effects, no canvas needed
  • TypeScript — Full type definitions included
  • Tree-shakeable — ESM + CJS, import only what you use

Install

npm install recoat

Backgrounds

Canvas (zero dependencies)

import { Aurora } from 'recoat';

const bg = Aurora({ container: '#my-element' });
bg.start();

Available: Aurora, AsciiGrid, GlitchFog, StaticNoise, VoronoiShatter, MagneticSand, PixelCity, Underwater

Three.js (requires three as peer dependency)

import { Labyrinth } from 'recoat/three';

const bg = Labyrinth({ container: '#my-element' });
bg.start();

Available: Labyrinth, ChromaticSpace, ImpossibleStairs, FiberNodes, DeepOcean

Background API

Every background returns the same interface:

interface BackgroundInstance {
    start(): void;
    stop(): void;
    destroy(): void;
    resize(width: number, height: number): void;
}

Background Config

All backgrounds accept a config object:

Aurora({
    container: '#hero',       // required — element or CSS selector
    width: 1920,              // optional — defaults to container width
    height: 1080,             // optional — defaults to container height
    responsive: true,         // optional — auto-resize on window resize
    // ...effect-specific options (colors, speed, intensity, etc.)
});

Text Animations

import { GlitchText } from 'recoat/text';

const anim = GlitchText({
    element: '#my-heading',
    text: 'Hello World',
});
anim.play();

Available: Typewriter, GlitchText, ScrambleReveal, ChromaticText, GradientText, NeonPulse, WavyBounce, MatrixRain, GravityDrop, InkBleed, MagneticAssemble, EchoTrail

Text Animation API

Every text animation returns:

interface TextAnimationInstance {
    play(): void;
    reset(): void;
    destroy(): void;
}

Entry Points

| Import from | Contents | Dependencies | |---|---|---| | recoat | 8 canvas backgrounds | None | | recoat/three | 5 Three.js backgrounds | three (peer) | | recoat/text | 12 text animations | None |

Usage with Frameworks

React

import { useEffect, useRef } from 'react';
import { Aurora } from 'recoat';

function Hero() {
    const ref = useRef(null);

    useEffect(() => {
        if (!ref.current) return;
        const bg = Aurora({ container: ref.current });
        bg.start();
        return () => bg.destroy();
    }, []);

    return <div ref={ref} style={{ width: '100%', height: '100vh' }} />;
}

Vue

<script setup>
import { ref, onMounted, onUnmounted } from 'vue';
import { Aurora } from 'recoat';

const el = ref(null);
let bg;

onMounted(() => {
    bg = Aurora({ container: el.value });
    bg.start();
});

onUnmounted(() => bg?.destroy());
</script>

<template>
    <div ref="el" style="width: 100%; height: 100vh" />
</template>

CDN / Script Tag

<div id="bg" style="width: 100%; height: 100vh"></div>

<script type="module">
    import { Aurora } from 'https://unpkg.com/recoat/dist/index.mjs';

    Aurora({ container: '#bg' }).start();
</script>

License

MIT