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

tweenlabs

v0.1.6

Published

Zero-dependency CLI to install premium GSAP animation components directly into your Next.js or React project.

Readme

TweenLabs

The open-source GSAP animation component library for Next.js developers — learn, copy, and contribute modern web animation patterns built with GSAP 3.15, Next.js 16, and Lenis.

Live DemoContributing GuideRoadmap

Next.js GSAP React License npm


What is TweenLabs?

TweenLabs is a community-driven, open-source collection of reusable GSAP animation components for Next.js and React. Every component is production-ready, well-documented, and built to help developers understand how advanced web animations work — not just copy code blindly.

No paid plugins. No locked content. Just clean, modern animation patterns anyone can learn from and build on.

🔍 Looking for a GSAP component library for Next.js? You found it.


⚡ CLI — Install Components Instantly

TweenLabs ships with a zero-dependency CLI that lets you pull components directly into your codebase — no copy-paste required.

Initialize configuration

Run the init command to configure your preferred installation path. This creates a tweenlabs.config.json file in the root of your project, meaning you won't be prompted for the path when adding components in the future.

npx tweenlabs@latest init

By default, it will detect your project setup and suggest ./src/components/tweenlabs or ./components/tweenlabs.

Add a component

npx tweenlabs@latest add <component-slug>

This will:

  1. Fetch the component files from the TweenLabs registry
  2. Detect your project layout (supports src/ and non-src/ setups)
  3. Automatically resolve the install path to src/components/tweenlabs/
  4. Create the directory if it doesn't exist
  5. Detect and install any missing npm dependencies

Browse & install interactively

Run add without a slug to get an interactive picker:

npx tweenlabs@latest add
▲  tweenlabs  v0.1.6

Select a component to install:

  [1]  .                   All Components
  [2]  gravity-drop        Physics-based falling animations with realistic bounce
  [3]  scroll-assembly     Content reveals synced with scroll position
  [4]  border-reveal       Inward/outward border animations
  ...

👉 Enter the number of the component to add (1-8):

List all available components

npx tweenlabs@latest list

Install all components at once

npx tweenlabs@latest add .

📁 Output Structure

After installation, components land here by default:

your-project/
└── src/
    └── components/
        └── tweenlabs/
            ├── GravityDrop.tsx
            ├── BorderReveal.tsx
            └── ...

tweenlabs.config.json: If a tweenlabs.config.json exists in your project's root, the CLI reads the path option and installs components there. This takes highest precedence.

shadcn UI users: If no tweenlabs.config.json exists but your project has a components.json, TweenLabs reads the aliases.components field and installs into the matching directory under a tweenlabs/ subfolder automatically.


🚩 CLI Flags

| Flag | Short | Description | |------|-------|-------------| | --yes | -y | Skip all prompts; accept all defaults and auto-install dependencies | | --path <dir> | -p | Override the install directory | | --overwrite | -o | Overwrite existing files without prompting | | --help | -h | Show help | | --version | -v | Show CLI version |

Examples

# Install with a custom path
npx tweenlabs@latest add gravity-drop --path src/ui/animations

# Install all, skip all prompts, overwrite existing files
npx tweenlabs@latest add . --yes --overwrite

# Install with pnpm dlx
pnpm dlx tweenlabs add border-reveal

✨ Animation Components

| Component | Description | GSAP Features Used | |-----------|-------------|-------------------| | Gravity Drop | Physics-based falling animations with realistic bounce | gsap.to, ease, stagger | | Scroll-Triggered Assemblies | Content reveals synced with scroll position | ScrollTrigger | | Border Reveal Effects | Inward/outward border animations | Timeline, clipPath | | Horizontal Card Showcase | Smooth carousel and card transitions | ScrollTrigger, x transforms | | Page Transitions | Seamless route change animations | Timeline, Next.js router | | Smooth Scrolling | Native-feel smooth scroll | Lenis + GSAP ticker |

More components added with every contribution. See full list →


🛠 Tech Stack


🚀 Quick Start (Playground)

Want to run the full TweenLabs playground locally?

# Install pnpm if you don't have it
npm install -g pnpm

# Clone and run
git clone https://github.com/TweenLabs/TweenLabs.git
cd TweenLabs
pnpm install
pnpm dev

Open http://localhost:3000 — pick any animation card and start exploring.


🤝 Contributing

TweenLabs grows with the community. We welcome new components, bug fixes, docs, performance improvements, and accessibility enhancements.

Steps

# 1. Fork the repo, then clone your fork
git clone https://github.com/YOUR_USERNAME/TweenLabs.git

# 2. Create a branch
git checkout -b feat/your-animation-name

# 3. Install & run
pnpm install && pnpm dev

# 4. Make changes, then commit
git commit -m "feat: add [animation name]"

# 5. Push and open a PR
git push origin feat/your-animation-name

Adding a New Component

  • Follow the folder pattern: src/app/XX-component-name/
  • Include a page.tsx with your animation
  • Add inline comments explaining the GSAP logic
  • Reference gsapskills.md for best practices

Good First Contributions

  • ✅ Add explanatory comments to existing animations
  • ✅ Test on mobile/tablet and report issues
  • ✅ Create animation variants with different easing curves
  • ✅ Improve accessibility (prefers-reduced-motion, ARIA)
  • ✅ Write or improve docs

Code Guidelines

  • Use CSS transforms (x, y, scale) — never layout properties
  • Always respect prefers-reduced-motion
  • TypeScript only — no any types
  • Write descriptive commit messages

🗺 Roadmap

  • [x] CLI — install components via npx tweenlabs add
  • [x] Auto-detect package manager (npm, pnpm, yarn, bun)
  • [x] Auto-install missing dependencies
  • [x] Interactive component picker
  • [x] components.json / path resolution
  • [ ] Export as npm package (@tweenlabs/components)
  • [ ] Storybook integration for isolated component previews
  • [ ] Unit tests for animation logic
  • [ ] FLIP, Draggable, MorphSVG animation patterns
  • [ ] Community showcase gallery
  • [ ] Animation starter templates for common use cases

📚 Learn More

New to GSAP? These resources pair perfectly with this repo:


📜 License

MIT — free to use in personal and commercial projects.


🌟 Contributors

Thanks to everyone building this together. ❤️


Built in public. Animated with love. Open to all. 🚀