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

reactflow-family-tree

v1.0.11

Published

This project is a React component library for creating family trees using [React flow](https://github.com/xyflow/xyflow).

Downloads

142

Readme

React Flow Family Tree

This project is a React component library for creating family trees using React flow.

Sample Family Tree

Sample Family Tree Data JSON


Features

  1. The Family Tree automatically arranges families based on with inner family advantages.
  2. Support for Complex Couples - Handle complex family structures such as divorces, shared kids, and other intricate relationships.
  3. Maintained Generations - Generations are visually maintained, providing a clear distinction between different family layers.
  4. Color-Coded Family Edges - Each family edge is assigned a unique color, helping you distinguish between different branches of your family.
  5. Non-Colliding Edges with Offset - To enhance the clarity of your family tree, edges are arranged to avoid collisions.
  6. Portrait Image support - Include images to personalize your family tree.
  7. Very configurable

Installation

  1. To install the library, use npm or pnpm:
npm i reactflow-family-tree
pnpm add reactflow-family-tree

Usage

  1. Here is a basic example of how to use the reactflow-family-tree component:
import React from 'react'
import FamilyTree from 'reactflow-family-tree'

const App = () => {
  const familyData = {
    familyMembers: [
      { id: '1', name: 'John Doe', gender: 'male', image: 'path/to/image1.jpg' },
      { id: '2', name: 'Jane Smith', gender: 'female', image: 'path/to/image2.jpg' },
      { id: '3', name: 'Alice Doe', gender: 'female', image: 'path/to/image3.jpg' },
      { id: '4', name: 'Bob Doe', gender: 'male', image: 'path/to/image4.jpg' },
    ],
    familyRelations: [
      { source: '1', target: '2', type: 'married' },
      { source: '1', target: '3', type: 'parent' },
      { source: '2', target: '3', type: 'parent' },
      { source: '1', target: '4', type: 'parent' },
      { source: '2', target: '4', type: 'parent' },
    ],
  }

  return <FamilyTree data={familyData} />
}

export default App

Getting Started for Development

  1. Clone the repository:
git clone https://github.com/harrykhh/react-flow-family-tree.git
  1. Install dependencies:
cd family-tree-react-flow
pnpm install

Start the development server (using vite):

pnpm dev

Contributing

If you find issues or have suggestions for improvements, please open an issue or submit a pull request. Your contributions are highly valued!

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Happy family tree mapping! 🌳