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

formula-treemap

v0.1.5

Published

한약재를 구성하는 재료(성분)들을 보기 좋게 시각화 한 리액트 컴포넌트 패키지입니다.

Readme

한약재 구성 물질 시각화 리액트 컴포넌트

한약재를 구성하는 재료(성분)들의 구성비율과 그 함유량을 한눈에 보기 좋게 시각화하여 리액트에서 사용할 수 있도록 컴포넌트화 한 라이브러리이다.

시각화 방식으로 Voronoi Treemap 을 적용한 FoamTree 라이브러리가 사용되었다. * Carrot Search: https://carrotsearch.com/foamtree/

사용법

import { FormulaTreemap } from 'formula-treemap';

const groups = [
    { label: '감초', weight: 0.88, details: { description: 'example1' } },
    { label: '시나몬', weight: 20.75, details: { description: 'example2' } },
    { label: '대추', weight: 2, details: { description: 'example3' } },
    { label: '반하', weight: 3.75, details: { description: 'example4' } },
];

function FoamTree() {
    return (
        <div>
            <FormulaViewer groups={groups} />
        </div>
    );
}

속성(Props)

  1. groups: {label: string; weight: string; details?: any}[]

    시각화 자료로서 '라벨' 과 '구성비율' 속성값을 가진 객체배열의 형태로 구성된다. 추가적으로 오른쪽 배너(상세정보란)을 위한 해당 재료의 상세내용을 더하여 필요한 형태로 구성해서 볼 수 있다