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

balkan-orgchart-react

v9.3.16

Published

React organizational chart library for visualizing hierarchy, company structure, and team relationships with interactive diagrams.

Readme

OrgChart JS OrgChart React

BALKAN OrgChart React is a powerful JavaScript library for building interactive organizational charts and hierarchy diagrams. Create responsive org charts for company structures, HR systems, dashboards, and internal tools with minimal code and full customization.

OrgChart React

Docs      Support

Overview

OrgChart React is FREE Trial, available under EULA.

Installation

npm install balkan-orgchart-react

or with yarn:

yarn add balkan-orgchart-react

Usage


import {OrgChartReact} from "balkan-orgchart-react";

export const ChartExample = () => {
  return  <OrgChartReact  nodeBinding={{ field_0: 'name'}} data={[
                { id: 1, name: "Denny Curtis" },
                { id: 2, pid: 1, name: "Ashley Barnett" },
                { id: 3, pid: 1, name: "Caden Ellison" }
            ]} >
          </OrgChartReact>
}

Load form JSON


import {OrgChartReact} from "balkan-orgchart-react";

export const ChartExample = () => {
  const [jsonData, setJsonData] = useState([]);

  useEffect(() => {
    fetch('/data.json')
      .then((response) => response.json())
      .then((data) => {
        setJsonData(data)
      })
      .catch((error) => {
        console.error('Error loading data:', error)
      })
  }, []);

  return  <OrgChartReact data={jsonData}  nodeBinding={{ field_0: 'name', field_1: 'title' }}></OrgChartReact>
}

Custom Template

import {OrgChartReact, Employee, Template} from "balkan-orgchart-react";

export const ChartExample = () => {
  return  <OrgChartReact template='myTemplate1'>      
        
      <Template name='myTemplate1' nodeWidth={200} nodeHeight={100} baseTemplateName='ana' renderNode={(node, data) => {
          return <>
            <rect x="0" y="0" height={node.h} width={node.w} fill="#fff" stroke="#aeaeae" strokeWidth={1}  rx={10} ry={10}> </rect>

            <text x={node.w ? node.w  / 2 : 0} y={node.h ? node.h  / 2 + 10: 0}  fill="#aeaeae" fontSize="20" textAnchor="middle">
                {data.employeeName}
            </text>                        
          </>
        }}>
      </Template>
      
      <Template name='myTemplate2' nodeWidth={500} nodeHeight={500}  baseTemplateName='myTemplate1'></Template>

      <Employee employeeName='Denny Curtis' >
        <Employee  employeeName='Lexie Cole'></Employee>
        <Employee  employeeName='Janae Barrett'  template='myTemplate2'></Employee>
        <Employee employeeName='Aaliyah Webb'></Employee>
      </Employee>
     </OrgChartReact>
}

API Call


import { OrgChartReact, Employee, OrgChartJS } from "balkan-orgchart-react";

export const ChartExample = () => {
  const chartRef = useRef<OrgChartJS>(null);

  const handleExport = () => {    
    if (chartRef.current) {
      chartRef.current.exportToPDF(); 
    }
  };

  return (
    <>      
      <button onClick={handleExport} style={{ fontSize: "24px"}}>Export PDF</button>

      <OrgChartReact  ref={chartRef} nodeBinding={{ field_0: "name", field_1: "title", img_0: "photo" }} >
        <Employee name="Denny Curtis" title="CEO" photo="https://cdn.balkan.app/shared/a/6.jpg">
          <Employee name="Lexie Cole" title="QA Lead" />
          <Employee name="Janae Barrett" title="Technical Director" />
          <Employee name="Aaliyah Webb" title="Assistant" />
        </Employee>
      </OrgChartReact>
    </>
  );
};

You can call any API method from here

Other Framework-Specific OrgChart JS Libraries

Docs      Support