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

@sleepy-tiger/gantt-chart

v0.1.1

Published

Lightweight React Gantt Chart component

Readme

@jaeungkim/gantt-chart

Lightweight, high-performance Gantt chart component for React applications, for fast rendering and state management. It is designed to be highly customizable and easy to integrate into modern React projects.

🎯 Motivation

I originally wanted to use Microsoft Project's Gantt Chart for personal project management, but it required subscription 😔. Thus, I decided to build my own Gantt chart, referencing various open-source projects and examples, including MS Project, DHTMLX, Frappe Gantt Chart, and etc.

Since there aren’t many open-source Gantt chart solutions available, I hope this project will be useful for others as well. I am very open to feedback, feature requests, and contributions to make this Gantt chart as robust and versatile as possible.

Currently, this project is built specifically for React due to my development background, but in the future, I may explore making it available for other frameworks as well. Since this is my first open-source project, I look forward to learning and improving it with the community!

✨ Features

  • 📆 Supports multiple timeline scales: Day, Week, Month, Year
  • 🔄 Drag-and-drop resizing (snap to configured intervals)
  • 🧲 Smart dependency lines (Finish-Start, Start-Start, Start-Finish, Finish-Finish)
  • ⚡ Virtualized rendering for performance:
    • Only visible bars are rendered
    • Supports row and column virtualization using @tanstack/react-virtual
  • 📦 Lightweight and framework-agnostic component design

📺 Demo is worth a thousand words

🚀 Getting Started

Installation

npm install @jaeungkim/gantt-chart
# or
yarn add @jaeungkim/gantt-chart
import { ReactGanttChart } from '@jaeungkim/gantt-chart';
import type { Task } from '@jaeungkim/gantt-chart';

export type DependencyType = 'FS' | 'SS' | 'FF' | 'SF';

const tasks: Task[] = [
  {
    id: '1',
    name: 'Project Kickoff',
    startDate: '2024-06-01T09:00:00Z',
    endDate: '2024-06-01T11:00:00Z',
    parentId: null,
    sequence: '1',
    dependencies: [{ targetId: '1', type: 'FS' }],
  },
 ...
];

export default function Example() {
  return (
    <div style={{ width: 'auto', height: '100dvh' }}>
      <ReactGanttChart
        tasks={tasks}
        ganttHeight={300}
        columnWidth={1000}
        onTasksChange={(updated) => console.log(updated)}
      />
    </div>
  );
}

Props

| Prop | Type | Description | | --------------- | -------------------------------- | ---------------------------------------------- | | tasks | Task[] | Array of task objects to render | | onTasksChange | (updatedTasks: Task[]) => void | Callback fired when a task is moved or resized | | ganttHeight | number \| string | Height of the chart (number or string) | | columnWidth | number \| string | Width of the chart (number or string) |

Task Format

All dates must be in UTC ISO string format, like: "2024-06-01T09:00:00Z". Internally, dates are parsed and converted to local time using dayjs.

interface Task {
  id: string;
  name: string;
  startDate: string; // UTC ISO string
  endDate: string;   // UTC ISO string
  parentId: string | null;
  sequence: string;
  dependencies?: TaskDependency[];
}

export type DependencyType = 'FS' | 'SS' | 'FF' | 'SF';

interface TaskDependency {
  targetId: string;
  type: DependencyType;
}

Timeline Scales

The chart supports four built-in scales:

  • day

    • Label: Day
    • Tick Unit: Hour
    • Drag Step: 1 Hour
  • week

    • Label: Week
    • Tick Unit: Day
    • Drag Step: 6 hours
  • month

    • Label: Month
    • Tick Unit: Day
    • Drag Step: 1 day
  • year

    • Label: Year
    • Tick Unit: Month
    • Drag Step: 7 days

You can switch between them using the dropdown at the top-right of the chart.

Customization

Currently at this stage it's not quite customizable other than importing your own tasks. But in near future, I will definitely make it customizable with adding features like

  • Timeline structure (setupTimelineStructure)
  • Header display (GanttChartHeader)
  • Bar visuals (GanttBar)
  • Tick intervals, formats, and drag steps (GANTT_SCALE_CONFIG)

Stay Tuned~

Roadmap

  • [ ] Left sidebar for displaying tasks' names
  • [ ] Right sidebar for selected tasks' to view their information
  • [ ] Collapsible parent-child rows
  • [ ] Inline editing for task names
  • [ ] Export to PNG or SVG

🤝 Contributing

Pull requests are welcome!
If you find bugs or have suggestions, feel free to open an issue or contribute directly.

📄 License

MIT © jaeungkim