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

@ganttkit/svg

v0.1.2

Published

Plain HTML/CSS/JS SVG renderer plugin for GanttKit.

Readme

@ganttkit/svg

Plain HTML/CSS/JS SVG renderer for @ganttkit/core. No framework required. It maps the engine's renderer-agnostic vector primitives 1:1 onto SVG elements. For DOM-element or canvas-based alternatives see @ganttkit/html and @ganttkit/canvas.

import { createGantt } from '@ganttkit/svg'
import '@ganttkit/svg/styles.css'

const gantt = createGantt({
  target: '#app', // element or selector
  rows: [
    { id: 'r1', name: 'Design', tasks: [
      { id: 't1', name: 'Wireframes', start: '2026-07-01', end: '2026-07-08' },
    ] },
  ],
  viewMode: 'Week',
  theme: 'light',
})

gantt.setViewMode('Month')
gantt.events.on('task:dragend', ({ task, start, end, changed }) => {
  if (changed) console.log(task.id, start, end)
})

createGantt returns the underlying GanttEngine, so you can call setRows, use(...) more plugins, subscribe to events, etc.

As a plugin

createGantt is sugar over the renderer plugin:

import { GanttEngine } from '@ganttkit/core'
import { svgRenderer } from '@ganttkit/svg'

const engine = new GanttEngine({ rows })
engine.use(svgRenderer({ target: '#app', theme: 'dark' }))

Sidebar (columns)

The sidebar is a feature plugin, not built in. Install @ganttkit/plugin-columns; the renderer draws a sidebar only when it is present, otherwise the timeline is full-width.

import { createColumns } from '@ganttkit/plugin-columns'

const gantt = createGantt({ target: '#app', rows })
gantt.use(createColumns({
  sidebarWidth: 220,
  columns: [{ key: 'name', label: 'Task' }, { key: 'owner', label: 'Owner', width: 80 }],
}).plugin)

Interactions

  • Drag a bar to move it; drag its edges to resize.
  • Ctrl/⌘ + wheel changes the view mode (disable with enableZoom: false).
  • Drag empty space to pan (disable with enablePan: false).

Theming

All colours are CSS variables scoped to .gantt. Switch themes via the data-theme="light|dark" attribute, or override variables in your own CSS.

Examples

  • examples/basic pnpm --filter @ganttkit/example-svg dev
  • examples/stress large-dataset benchmark (up to 20k tasks) with a live metrics panel: pnpm --filter @ganttkit/example-svg-stress dev

License

MIT