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 🙏

© 2025 – Pkg Stats / Ryan Hefner

milestone-tracker-react

v1.0.0

Published

A beautiful animated milestone tracker component with ocean wave animations for React

Downloads

5

Readme

milestone-tracker-react

A beautiful animated milestone tracker component with ocean wave animations for React. Perfect for tracking progress, sign-ups, or any milestone-based goals with stunning visual feedback.

Features

  • 🌊 Animated Ocean Waves - Dynamic wave animations that intensify as progress increases
  • 📊 Progress Visualization - Beautiful milestone markers with progress bars
  • 🎯 Customizable Milestones - Built-in milestones (0, 50, 250, 500, омер, 1000) with reward descriptions
  • 📱 Responsive Design - Works seamlessly on desktop and mobile devices
  • Lightweight - Built with React and Motion (Framer Motion)
  • 🎨 Styling Ready - Includes Tailwind CSS classes (requires Tailwind CSS setup in your project)

Installation

npm install milestone-tracker-react motion

or

yarn add @milestone-tracker/react motion

or

pnpm add @milestone-tracker/react motion

Peer Dependencies

  • react ^18.0.0
  • react-dom ^18.0.0
  • motion (Framer Motion) - for animations

Setup

1. Install Tailwind CSS

This component uses Tailwind CSS classes. You need to have Tailwind CSS configured in your project:

npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p

2. Configure Tailwind

Add the component paths to your tailwind.config.js:

/** @type {import('tailwindcss').Config} */
export default {
  content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/milestone-tracker-react/**/*.{js,ts,jsx,tsx}", // Add this
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

3. Import Styles

Import the component styles in your main CSS file (usually index.css or App.css):

@import 'milestone-tracker-react/styles';

Or import it directly in your JavaScript/TypeScript:

import 'milestone-tracker-react/styles';

4. Use the Component

import { MilestoneTracker } from 'milestone-tracker-react';
import 'milestone-tracker-react/styles'; // Don't forget the styles!

function App() {
  return (
    <div>
      <MilestoneTracker currentSignups={125} />
    </div>
  );
}

Usage

import { MilestoneTracker } from 'milestone-tracker-react';
import type { MilestoneTrackerProps } from 'milestone-tracker-react';

function MyComponent() {
  const [signups, setSignups] = useState(0);

  return (
    <div className="container">
      <MilestoneTracker currentSignups={signups} />
      <button onClick={() => setSignups(prev => prev + 1)}>
        Add Signup
      </button>
    </div>
  );
}

Props

MilestoneTrackerProps

| Prop | Type | Required | Description | |------|------|----------|-------------| | currentSignups | number | Yes | The current number of sign-ups/progress value |

Default Milestones

The component includes the following milestones by default:

  • 0 - Welcome milestone
  • 50 - Early Adopter Badge
  • 250 - Premium features tier 1
  • 500 - Advanced analytics dashboard
  • 750 - API access
  • 1000 - Enterprise features

Styling

The component uses Tailwind CSS utility classes with a custom color palette:

  • Ocean blues: #001b36, #015e8b, #0a86a5
  • Warm accents: #a13931, #ab5c34, #c4853f
  • Neutral backgrounds: #e3dac9, #f1ece4, #eae3d7

TypeScript Support

Full TypeScript support is included with exported types:

import { MilestoneTracker, type MilestoneTrackerProps } from 'milestone-tracker-react';

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.