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

@feugene/granularity-charts

v0.11.0

Published

Charts for the @feugene/granularity design system — own SVG, zero dependencies, drawn with theme tokens.

Readme

@feugene/granularity-charts

Графики для дизайн-системы @feugene/granularity: свой SVG, ноль зависимостей, рисунок собирается токенами темы, а не палитрой вендора — переключение light/dark ничего не пересоздаёт.

yarn add @feugene/granularity-charts

Состав

| Компонент | Зачем | | --- | --- | | GrChartArea | тот же ряд с заливкой до нуля — и складываемый в стек: целое и вклад каждой части | | GrChartBar | величины по категориям: рядом, стопкой или долями до ста процентов | | GrChartLine | ряд во времени или по категориям: оси, сетка, легенда, тултип, клавиатура, скрытая таблица данных | | GrChartRadar | профиль по нескольким осям и сравнение профилей: две шкалы осей, паутина или окружности | | GrChartPie | доли одного целого — кругом или кольцом: угловое попадание, подписи на выносках, легенда со значениями | | GrSparkline | линия без рамы — в ячейку таблицы, в карточку показателя |

Плюс арифметика отдельным subpath — по ней строят свою разметку, когда готового компонента не хватает:

import { linearTicks, normalizeChartData } from '@feugene/granularity-charts/chart'
import { useChartScale } from '@feugene/granularity-charts/composables/useChartScale'

Подключение

// uno.config.ts
import granularityProvider from '@feugene/granularity/granular-provider/node'
import granularityChartsProvider from '@feugene/granularity-charts/granular-provider/node'

presetGranularNode({
  providers: [granularityProvider, granularityChartsProvider],
  components: 'all',
})
// vite.config.ts — авто-импорт
import { GranularityResolver } from '@feugene/unplugin-granularity'
import { GranularityChartsResolver } from '@feugene/granularity-charts/resolver'

Components({
  resolvers: [
    GranularityChartsResolver(), // whitelist — раньше…
    GranularityResolver(), // …жадного Gr*-резолвера ядра
  ],
})

Локали подключаются вместе со словарём ядра:

import { en, GR_CHARTS_I18N_BLOCK, ru } from '@feugene/granularity-charts/i18n'

Вес гранулярного импорта

| Что берут | gzip | от бареля | | --- | ---: | ---: | | весь пакет из корня | 79.0 kB | 100 % | | самый лёгкий компонент — GrSparkline | 8.7 kB | 11 % | | медианный компонент — GrChartBar | 29.5 kB | 37 % | | 5 самых тяжёлых вместе | 53.1 kB | 67 % |

Числа не складываются: общий код посчитан в каждой строке заново, а платится один раз — поэтому набор компонентов и показан объединением, а не суммой. Это верхняя граница: gzip всего, что подпуть тянет из dist, а бандлер приложения трясёт дальше и минифицирует повторно.

Вес каждого компонента — docs/entry-sizes.md.

Доки

  • docs/model.md — форма данных, шкалы, деления, что считается пропуском;
  • docs/a11y.md — роли, объявления, скрытая таблица;
  • docs/keyboard.md — карта клавиш, края ряда, различия типов графиков;
  • docs/theming.md — токены пакета, палитра серий, различители помимо цвета;
  • docs/ssr.md — первый рендер от объявленной ширины.

Границы

Без 3D, без географии (это карта) и без аннотаций. Приближение по абсциссе есть — проп zoom у GrChartLine и GrChartArea: протяжка, колесо и клавиатура (+/-, Shift+стрелки, 0), причём клавиатура не отключается. Порог SVG — около 2 000 точек на серию; canvas-путь за тем же API придёт позже.