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

splasher.js

v0.5.0

Published

A simple and lightweight library for making simple animations.

Readme

Splasher.js

Splasher.js is a library meant to help you with making quick animations and a bit more specifically, splash screens. It's farily lightweight and helps you create awesome animations for every project you're working on!

Why Splasher.js?

Well, here's a challenge for you: create an as nice looking splash screen as this while having it still be modular. You may be fine, right until the moment you have to deal with the path drawing. When you come to that, you essentially have no choice but to either hard-code the values or use CSS. Besides, I personally have never been able to understand the whole CSS animation thing. What this library provides you with is easy to make and maintain animations that you can easily call from JavaScript.

Great, how do I get started?

Documentation is something which still needs some love, but I encourage you to read through the code to understand everything that's going on since it's very simple. To get you started though, here is some example code:

logic.js
var splasher = require("splasher.js");

var splash1 = document.getElementById("splash1"),
	splash2 = document.getElementById("splash2"),
	splash3 = document.getElementById("splash3"),
	splash4 = document.getElementById("splash4");

var splash = splasher.splashFromArray([
	{
		delay: 0.2, in: 0.2, stay: 1, out: 0.1,
		effects: [
			new splasher.effects.FadeInAndOut(splash1)
		]
	},
	{
		delay: 1.6, in: 0.3, stay: 1.5, out: 0.2,
		effects: [
			new splasher.effects.FadeInAndOut(splash2),
			new splasher.effects.GrowAndShrink(splash2, { min: 0.5 })
		]
	},
	{
		delay: 3.5, in: 0.5,
		effects: [
			new splasher.effects.FadeInAndOut(splash3),
			new splasher.effects.GrowAndShrink(splash3, { min: 0.7 }),
			new splasher.effects.TranslateFromPosition(splash3, { y: 100 })
		]
	},
	{
		delay: 4.5, in: 0.5,
		effects: [
			new splasher.effects.TranslateFromPosition(splash4, { y: 100 })
		]
	}
]);

splash.run();
index.html
<!DOCTYPE html>
<html>
	<head>
		<title>Splasher.js Example</title>
		<style>
			body {
				background: #DC4786;
				color: white;
				overflow: hidden;
			}

			#splash1, #splash2, #splash3 {
				position: absolute;
				top: 0; right: 0; bottom: 0; left: 0;
				font-size: 30px;
				width: 100%;
				height: 25px;
				text-align: center;
				vertical-align: middle;
				margin: auto;
			}

			#splash4 {
				position: absolute;
				bottom: calc(-100vh + 50px);
				font-size: 15px;
				width: 100%;
				height: 25px;
				text-align: center;
				vertical-align: middle;
				margin: auto;
			}

			a {
				color: #73C861;
				transition: color 0.2s;
			}

			a:hover {
				color: #6CA662;
			}
		</style>
	</head>
	<body>
		<span id="splash1">Hello, World!</span>
		<span id="splash2">This is how an example splasher.js program looks like</span>
		<span id="splash3">Enjoy using splasher.js!</span>
		<span id="splash4">
			Send questions to
			<a href="https://twitter.com/magnontobi">@magnontobi</a>
			on Twitter!
		</span>

		<script src="logic.js"></script>
	</body>
</html>

This needs to be run through browserify before executing (so don't try it without it!).