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

@upendra.manike/next-motion-kit

v0.1.4

Published

Next Motion Kit - production-ready animation components and hooks for Next.js and React. Includes hero animations, scroll reveals, counters, page transitions, and motion presets built on top of Framer Motion.

Readme

Next Motion Kit

Production-ready animation components & hooks for Next.js/React, powered by Framer Motion. Build hero sections, scroll reveals, counters, navbars, and page transitions in minutes.

npm version License: MIT

🤖 Optimized for AI agents – every component and hook is documented in api.json, making it easy for ChatGPT/Cursor/Claude/Copilot to discover.

✨ Highlights

  • 🎬 Hero, section, counter, navbar, and page transition components
  • 🌀 Hook library: useAnimateOnScroll, useScrollProgress
  • 📦 Motion presets for consistent animations
  • ⚡ Framer Motion under the hood – tree-shaken and configurable
  • 🧱 Works in Next.js (App + Pages Router) and plain React
  • 🌗 Tailwind-friendly default styles (override with your classes)

📦 Installation

npm install @upendra.manike/next-motion-kit framer-motion
# or
yarn add @upendra.manike/next-motion-kit framer-motion
# or
pnpm add @upendra.manike/next-motion-kit framer-motion

🚀 Quick Start

import { MotionHero, MotionSection, MotionCounter } from '@upendra.manike/next-motion-kit';

export default function Home() {
  return (
    <main className="space-y-24">
      <MotionHero
        eyebrow="Introducing"
        title="Next Motion Kit"
        description="Drop-in animations for hero sections, stats, navigation and more."
        actions=[
          { label: 'Get Started', href: '#features' },
          { label: 'View GitHub', href: 'https://github.com/upendra-manike/JSLib' }
        ]
      />

      <MotionSection className="grid gap-8 md:grid-cols-3">
        {[1200, 98, 24].map((value) => (
          <div key={value} className="rounded-2xl border p-6 text-center">
            <MotionCounter value={value} suffix={value === 98 ? '%+' : '+'} />
            <p className="text-sm text-gray-500">Happy teams</p>
          </div>
        ))}
      </MotionSection>
    </main>
  );
}

🧩 Components & Hooks

<MotionHero />

  • Animated eyebrow, title, description, CTA buttons
  • Props: title, description, eyebrow, actions, align, motionPreset

<MotionSection />

  • Scroll-reveal wrapper with IntersectionObserver
  • Props: motionPreset, once, delay

<MotionCounter />

  • Animated number counter using springs
  • Props: value, duration, prefix, suffix, decimals

<MotionNavbar />

  • Sticky navbar with hide-on-scroll behaviour
  • Props: hideOnScroll, blur, className

<MotionPageTransition />

  • Page transition wrapper for route changes
  • Props: routeKey, preset, duration

<MotionReveal />

  • Minimal scroll-reveal wrapper for any element

Hooks

  • useAnimateOnScroll(options) – returns { ref, isInView }
  • useScrollProgress() – 0→1 scroll progress (great for progress bars)

Motion Presets

Use motionPresets or getPreset('fadeUp') for consistent animations across components.

import { motionPresets, getPreset } from '@upendra.manike/next-motion-kit';

const customPreset = {
  hidden: { opacity: 0, rotate: -2 },
  visible: { opacity: 1, rotate: 0, transition: { duration: 0.6 } },
};

📘 Using with Next.js App Router

// app/layout.tsx
import { MotionPageTransition } from '@upendra.manike/next-motion-kit';
import { usePathname } from 'next/navigation';

export default function RootLayout({ children }: { children: React.ReactNode }) {
  const pathname = usePathname();

  return (
    <html lang="en">
      <body>
        <MotionPageTransition routeKey={pathname}>{children}</MotionPageTransition>
      </body>
    </html>
  );
}

🧪 Testing

npm run test

🛣️ Roadmap

  • Page builder examples (hero + pricing + testimonials)
  • Storybook playground
  • Variants for dark/light themes
  • CLI to scaffold animation-heavy sections

📝 License

MIT © Upendra Manike

🔗 Links

🔗 Explore All JSLib Libraries