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

@norflin321/tweedle.js

v2.1.2

Published

Tweedle.js is a fork of tween.js made to fit my needs.

Readme

Tweedle.js

npm i tweedle.js

What is a tween?

A tween is an easy way to animate something. You tell a property to be at a certain value after so many seconds and look at it go!

API documentation

Source code

How do I use this?

If you are on the browser, use the umd package and use the global TWEEDLE to find what you need (or the es modules if you understand that kind of black magic). If you are using npm you can import just what you need (we also have typescript support out of the box).
The overall syntax is this:

const myObject = { x:0, y:0 };
new Tween(myObject).to({ x:100, y:100 }, 2500).start();

You can probably see that tweens are meant to be chain called and all functions return themselves so you can keep

But that's only half the trouble as Tweedle won't move time forward on itself. See, every tween that you don't assign a group, it belongs to the shared group and you must remember to update that group for your tweens to work.

const tweenLoop = () => {
	Group.shared.update();
	requestAnimationFrame(tweenLoop);
}
tweenLoop();

Easings, Interpolations, Events, Chains, Deep objects, and more!

Tweedle supports all of Robert Penner easing functions, has Interpolation for bezier curves, colors and rotations, fires events onStart, onUpdate, onLoop, onEnd, can chain tweens so they start right after the previous one ends, allows to modify deep properties of objects and many more features that I need to write demos and tests for.
Feel free to dive the API documentation and read more there since all functions are documented.

Helping Tweedle

Tweedle uses Jest for testing and I was considering using PixiJS to do some demos.
I am releasing this right now as is since it is quite functional and stable even when I don't have the tests to prove so.
Feel free to send me your demos or tests (even if the tests fail and you can't put the effort to make it pass, I still find that valuable!)


Tweedle.js is my fork of tween.js made with ♥ to fit my needs at Killabunnies.