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

@jaeungkim/gantt-chart

v0.3.1

Published

Lightweight React Gantt Chart component

Downloads

266

Readme

@jaeungkim/gantt-chart

Lightweight, high-performance Gantt chart component for React applications. Designed for fast rendering with virtualization and clean, minimal aesthetics.

🎯 Motivation

I originally wanted to use Microsoft Project's Gantt Chart for personal project management, but it required a 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

  • 📆 Multiple timeline scales: Day, Week, Month, Year
  • 🔄 Drag-and-drop support:
    • Move entire task bars
    • Resize from left/right edges
    • Snap to configured intervals
  • 🧲 Smart dependency arrows (FS, SS, FF, SF)
  • ⚡ Virtualized rendering for performance
  • 🌙 Light/Dark/System theme support
  • 📍 Today marker indicator
  • 💬 Drag tooltip showing date changes
  • 📦 Lightweight with minimal dependencies

📺 Demo

🚀 Getting Started

Installation

npm install @jaeungkim/gantt-chart
# or
yarn add @jaeungkim/gantt-chart

Basic Usage

import { ReactGanttChart } from '@jaeungkim/gantt-chart';
import type { Task } from '@jaeungkim/gantt-chart';

const tasks: Task[] = [
  {
    id: '1',
    name: 'Project Kickoff',
    startDate: '2024-06-01T09:00:00Z',
    endDate: '2024-06-03T17:00:00Z',
    parentId: null,
    sequence: '1',
    dependencies: [],
  },
  {
    id: '2',
    name: 'Requirements Gathering',
    startDate: '2024-06-04T09:00:00Z',
    endDate: '2024-06-10T17:00:00Z',
    parentId: null,
    sequence: '2',
    dependencies: [{ targetId: '1', type: 'FS' }],
  },
];

export default function App() {
  return (
    <ReactGanttChart
      tasks={tasks}
      height="100vh"
      width="100%"
      theme="system"
      defaultScale="month"
      onTasksChange={(updated) => console.log('Tasks updated:', updated)}
    />
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | tasks | Task[] | [] | Array of task objects to render | | onTasksChange | (tasks: Task[]) => void | - | Callback when tasks are moved or resized | | height | number \| string | 600 | Chart height (px or CSS value) | | width | number \| string | "100%" | Chart width (px or CSS value) | | theme | "light" \| "dark" \| "system" | - | Theme mode | | defaultScale | "day" \| "week" \| "month" \| "year" | "month" | Initial timeline scale | | className | string | - | Additional CSS class for the container |

Task Format

All dates must be in UTC ISO string format: "2024-06-01T09:00:00Z"

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

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

type DependencyType = 'FS' | 'SS' | 'FF' | 'SF';
// FS = Finish-to-Start
// SS = Start-to-Start
// FF = Finish-to-Finish
// SF = Start-to-Finish

Timeline Scales

| Scale | Header Label | Tick Unit | Drag Step | |-------|-------------|-----------|-----------| | day | Day | Hour | 1 hour | | week | Week | Day | 6 hours | | month | Month | Day | 1 day | | year | Year | Month | 7 days |

Switch scales using the dropdown at the top-right of the chart.

Theming

The chart supports three theme modes:

  • light - Light background with dark text
  • dark - Dark background with light text
  • system - Follows system preference (uses prefers-color-scheme)
<ReactGanttChart theme="dark" ... />

Roadmap

  • [ ] Left sidebar for task names
  • [ ] Right sidebar for task details
  • [ ] Collapsible parent-child rows
  • [ ] Inline editing for task names
  • [ ] Export to PNG/SVG
  • [ ] Custom bar colors

🤝 Contributing

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

📄 License

MIT © jaeungkim