BALKANGraph/OrgChartJS — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a reusable JavaScript org chart library that lets me show a company structure on a web page with very little setup. I want to import one main OrgChart object, point it at a div, tell it which employee fields to show, then load simple data where each person has an id, an optional parent id, and a name.

The chart should look polished and work well for HR pages, dashboards, and internal tools. It needs to handle hierarchy diagrams, resize nicely, and make relationships between managers and employees easy to understand. Please include a basic demo with a CEO, managers, and team members so someone can see it working right away.

Keep the API simple, flexible, and customizable, so developers can change labels and appearance without fighting the library. Package it like a normal JavaScript npm library and include clear TypeScript definitions and a short README with install, import, and basic usage examples.

Want more depth? Deep Reverse