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

@shivamjadhav28/timeline-track

v0.1.9

Published

Enterprise-ready React timeline component with project ranges and milestones.

Downloads

736

Readme

Timeline Track

Enterprise-ready React timeline component for projects and milestones, with status-aware colors and range navigation.

Timeline Track Preview

Install

npm i @shivamjadhav28/timeline-track

Usage

import { TimelineTrack, type Project } from '@shivamjadhav28/timeline-track';

const relativeDate = (offset: number) => {
  const d = new Date();
  d.setDate(d.getDate() + offset);
  return d;
};
const projects: Project[] = [
    {
      id: 'active-01',
      projectName: 'Active Sprint', // Currently happening
      projectStart: relativeDate(-2),
      projectEnd: relativeDate(5),
      status: 'in-progress',
      milestones: [
        { id: 'm1', name: 'Design Fix', endDate: relativeDate(0), status: 'completed' },
        { id: 'm2', name: 'API Integration', endDate: relativeDate(2), status: 'pending' },
      ],
    },
    {
      id: 'done-02',
      projectName: 'Completed Task', // Entirely in the past
      projectStart: relativeDate(-10),
      projectEnd: relativeDate(-5),
      status: 'completed',
      milestones: [
        { id: 'm3', name: 'Handover', endDate: relativeDate(-6), status: 'success' },
      ],
    },
    {
      id: 'late-03',
      projectName: 'Overdue Project', // End date passed but not marked completed
      projectStart: relativeDate(-8),
      projectEnd: relativeDate(-1),
      status: 'pending', 
      milestones: [
        { id: 'm4', name: 'Missed Deadline', endDate: relativeDate(-2), status: 'pending' },
      ],
    },
    {
      id: 'future-04',
      projectName: 'Upcoming Launch', // Entirely in the future
      projectStart: relativeDate(2),
      projectEnd: relativeDate(7),
      status: 'pending',
      milestones: [
        { id: 'm5', name: 'Kickoff', endDate: relativeDate(3), status: 'pending' },
      ],
    },
  ];
export default function Example() {
  return <TimelineTrack projects={projects} />;
}

Props

  • projects (required): Project[]
  • viewDate: Date (controlled view date)
  • onViewDateChange: (date: Date) => void
  • windowDays: number (default 7)
  • showTodayLine: boolean (default true)
  • showHeader: boolean (default true)
  • title: string (default Team Roadmap)
  • prevLabel: string (default Day)
  • nextLabel: string (default Day)
  • todayLabel: string (default Today)
  • className: string
  • style: CSSProperties (root container)
  • theme: design token overrides (colors, sizes, spacing)

Theme

type TimelineTheme = {
  colors?: Partial<TimelineColors>;
  spacing?: {
    padding?: number;
    headerPadding?: number;
  };
  sizes?: {
    sidebarWidth?: number;
    rowHeight?: number;
    rangeIconSize?: number;
  };
};

Types

export type MilestoneStatus =
  | 'completed'
  | 'success'
  | 'cancelled'
  | 'pending'
  | 'in-progress';

export interface Milestone {
  id: string;
  name: string;
  endDate: Date;
  status: MilestoneStatus;
}

export interface Project {
  id: string;
  projectName: string;
  projectStart: Date;
  projectEnd: Date;
  milestones: Milestone[];
}

Status Rules

  • Project is green if all milestones are completed or success.
  • Project is red if end date is past today and not all milestones are complete.
  • Milestone is red if status is in-progress and end date is past today.

Build

npm run build

Publish

If you use npm 2FA, publish with a Granular Access Token (recommended):

  1. Create a token on npmjs.com:
    • Scope: @shivamjadhav28
    • Permissions: Read and Publish
    • 2FA: bypass publish
  2. Login with the token:
    npm logout
    npm login --auth-type=legacy
    • Username: shivamjadhav28
    • Password: paste the token
    • Email: your npm email
  3. Bump version and publish:
    npm version patch
    npm publish --access public

Check who you’re logged in as:

npm whoami

License

MIT