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

@fluxgantt/vue

v0.6.0

Published

FluxGantt Vue 3 wrapper — <FluxGantt> component + useFluxGantt composable.

Readme

@fluxgantt/vue

The Vue 3 wrapper for FluxGantt — a TypeScript-first, MIT-licensed Gantt chart library. Provides a <FluxGantt> component and a useFluxGantt composable over the headless @fluxgantt/core engine.

  • Docs: https://fluxgantt.thai-pc.com/docs/frameworks/vue
  • Repository: https://github.com/thai-pc/fluxgantt

Install

pnpm add @fluxgantt/vue @fluxgantt/core

Peer dependency: vue ^3.4.0.

Usage

<script setup lang="ts">
import { FluxGantt } from '@fluxgantt/vue';
import { toTaskId } from '@fluxgantt/core';
import type { Task, TaskInput, DependencyInput } from '@fluxgantt/vue';

const tasks: TaskInput[] = [
  { id: toTaskId('design'), name: 'Design', start: '2026-08-03', end: '2026-08-05', progress: 1, type: 'task' },
  { id: toTaskId('build'), name: 'Build', start: '2026-08-05', end: '2026-08-10', progress: 0.6, type: 'task' },
  { id: toTaskId('review'), name: 'Review', start: '2026-08-10', end: '2026-08-12', progress: 0, type: 'task' },
];

const dependencies: DependencyInput[] = [
  { from: toTaskId('design'), to: toTaskId('build'), type: 'FS' },
  { from: toTaskId('build'), to: toTaskId('review'), type: 'FS' },
];

// The template emit surfaces `prevStart` as `unknown` (Vue widens emit payload types).
function onTaskMoved(task: Task, prevStart: unknown) {
  console.log(`${task.name} moved from ${prevStart}`);
}
</script>

<template>
  <FluxGantt
    :tasks="tasks"
    :dependencies="dependencies"
    style="height: 420px"
    @task-moved="onTaskMoved"
  />
</template>

Uncontrolled data

Every config prop (tasks, dependencies, calendar, viewMode, density, locale, ariaLabel, messages, canvasViewportHeight, readOnly, enableDependencyDrag, schedulingMode, historyLimit, initialCollapsed, rollup, e.g. :rollup="computeRollup" with computeRollup from @fluxgantt/core) is read once, when the underlying GanttInstance is created. The instance is the source of truth afterward — there is no prop→store diffing. Mutate through the instance, which useFluxGantt() exposes as a ref.

theme and onTaskChange are the reactive props; changing theme calls setTheme() on the instance. It defaults to 'light' (not core's 'auto', so existing charts do not flip on a dark-mode OS); pass theme="auto" to follow the OS.

Behavior change: a native aria-label="..." attribute used to fall through to the root <div>; it now binds to the ariaLabel prop and names the chart's <svg> instead.

Full prop and emit tables, plus the composable: the Vue docs page.

Grid columns (beta)

@fluxgantt/vue/grid exports FluxGanttGrid: <FluxGantt> with the pinned grid columns of @fluxgantt/core/grid. @fluxgantt/vue/grid-editing exports FluxGanttGridEditing, which adds inline cell editing. A chart that imports neither ships no grid code.

<script setup lang="ts">
import { FluxGanttGridEditing, type GridColumnInput } from '@fluxgantt/vue/grid-editing';

// Read the saved widths back: the library never persists them.
const saved: Record<string, number> = JSON.parse(localStorage.getItem('gantt-widths') ?? '{}');

// Define column functions once, outside the template expression: a new function identity on
// every change re-applies the columns and logs a dev warning.
const columns: GridColumnInput[] = [
  { id: 'name', ...(saved['name'] ? { width: saved['name'] } : {}) },
  { id: 'start', ...(saved['start'] ? { width: saved['start'] } : {}) },
  {
    id: 'owner',
    header: 'Owner',
    value: (task) => String(task.meta?.['owner'] ?? ''),
    ...(saved['owner'] ? { width: saved['owner'] } : {}),
  },
];

function saveWidths(widths: Record<string, number>) {
  localStorage.setItem('gantt-widths', JSON.stringify(widths));
}
</script>

<template>
  <!-- In @cell-edit-requested, e.preventDefault() opens YOUR editor instead of the built-in one. -->
  <FluxGanttGridEditing
    :tasks="tasks"
    :grid-columns="columns"
    @column-resized="({ widths }) => saveWidths(widths)"
  />
</template>

gridColumns changes are applied with setGridColumns (no remount). A re-apply keeps the width the user dragged for every column whose declared width did not change, and waits while a cell is being edited. So re-passing the same columns does not reset user widths: to reset, change the declared widths, call setGridColumns(...) on the template ref, or change :key. The exposed instance also carries getGridColumns, setGridColumns, resizeGridColumn, exportGridCsv and, with editing, startCellEdit, cancelCellEdit, isEditingCell. The core grid is @beta, so these entries are too.

License

MIT