Library / SDK
relation-graph/relation-graph avatar
relation-graph/relation-graph

relation-graph: five packages, one from a CDN, and a duplicated examples list

relation-graph is an relationship graph component for React/Vue/Svelte relationship data visualization/edit. Through its slot-based customization model, users can fully customize graph elements with plain React/Vue/Svelte/HTML components, relation-graph also uses an LLM-friendly architecture and provides knowledge content.

2,283 stars515 forksJavaScriptMIT

At a glance

What is it?
A relationship graph component published separately for five frameworks, with a slot-based API so graph elements are ordinary application components. The packaging is the interesting part, and the README has a copy-paste error in it that tells you how it is maintained.
Who is it for?
The slot model is the reason to consider this: because a node is a slot rather than a configuration object, you render graph elements with your own components and your own styling, which is not how most graph libraries work. Two things to check before adopting it.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Activity is slowing. The repository last received commits 6 months ago.
What is it written in?
Mainly JavaScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • relation-graph/relation-graph2,283 ★ · +10
Star history
Repository2026-09-102026-11-25
relation-graph/relation-graph2.3k2.3k

10 Stars in the last 76 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Four of the five example projects are listed twice

The README has a section titled Example Projects and a second one titled More Examples, and the second repeats the first.

The first section lists five complete sample projects. Each is a repository link followed by a link to run it online in a sandbox. The five cover Vue 2, Vue 3, React, Svelte, and web components.

The second section opens with a link to an examples page on the documentation site, and then lists the same repository and sandbox links again for Vue 3, React, Svelte, and web components.

So four of the five entries appear twice with identical URLs, and the only thing the second section adds is the link at the top. The Vue 2 project, which appears in the first section, does not appear in the second.

That is a copy-paste artefact rather than a structural decision, and it is worth naming because of what it implies about maintenance. The rest of the README is bilingual, the feature description is written for a non-native reader, and there is a documentation site with a visual configuration tool. Someone is maintaining all of that. Yet the example list contains a duplicated block, which is the kind of error a single pass of copying would introduce and a second pass would catch.

It also means a reader counting the examples gets the wrong answer in one direction and the right one in the other.

Four platforms install from the registry and one comes from a CDN

The install block lists five platforms, and four of them are registry installs:

bash
# React
npm install --save @relation-graph/react
# Vue3
npm install --save @relation-graph/vue
# Vue2
npm install --save @relation-graph/vue2
# Svelte
npm install --save @relation-graph/svelte
# Web Components
import { ... } from "https://esm.sh/@relation-graph/web-components";

The fifth has no install line. It is imported directly from a public module CDN over the network, in the same code block as four package installations, which makes it easy to skim past.

The consequence is supply-chain shape rather than security posture. A registry install goes through your lockfile, honours your registry configuration, and is pinned to a version you chose. A CDN import is fetched at whatever version the URL resolves to at load time, is not recorded in any lockfile, and is not subject to whatever proxy or mirror your organisation uses.

So the web component path behaves like a script tag from a content delivery network, which is a perfectly reasonable thing to want for a component you can drop into a page with no build step. It is just a different trust model from the other four, in a list where all five look identical.

A reader who needs one consistent policy across platforms has to notice this and install that package locally instead.

One component, five packages, and a framework version that ended years ago

The component is published five times, once per target framework, under one scope with distinct package names. There is a package for React, one for Vue 3, one for Vue 2, one for Svelte, and one for web components.

Two of those are Vue. Carrying Vue 2 and Vue 3 as separate first-class packages is a real maintenance commitment, because the rendering model and the composition API differ enough that a shared implementation is not straightforward. It also means a dependency upgrade has two axes to track for what a user thinks of as one component.

Vue 2 reached end of life at the end of 2023. Maintaining it as a supported target in 2026 is a deliberate choice rather than an oversight, and the sample project for it is listed first among the examples, which suggests it is still a substantial part of the audience rather than a courtesy.

The API surface is not symmetric across the five. The React entry requires a provider component to wrap the tree, which the quick start shows explicitly, while the plain import list for the other frameworks shows the component imported directly with no provider mentioned. So the React integration has an extra setup step that the Vue and Svelte paths do not, which is not stated anywhere except in the sample code.

That asymmetry is the kind of thing that costs an afternoon, and it is only visible if you read the sample rather than the install block.

A directory addressed to a model, and a second one for humans

Above the project name, the README makes a claim about being friendly to language models. It says the structure is naturally friendly to them, and that because the architecture is clear, its knowledge is easier to understand. Then it gives the location, which is a directory path at the root of the source tree.

The repository listing confirms that directory exists, and that it has a sibling. There are two knowledge directories side by side, one addressed to a model and one addressed to developers.

So the mechanism behind the claim is a folder name and a sentence in the readme. That is the honest reading, and it is worth stating plainly because the claim is unfalsifiable as written: there is no specification of what should be in those files, no check that they match the code, and no indication of who updates them when an API changes. A knowledge directory that is stale is worse than none, because a reader that trusts it will act on documented behaviour that no longer exists.

The v3 announcement above it makes a second unfalsifiable claim, that the code is cleaner and more elegant, and points at an external documentation page for the architecture. That is a reasonable thing to publish and it is not a reason to upgrade. The release history is the more useful signal about what changed.

The keyword list claims nine diagram types and the searches are about mathematics

The package metadata carries a keyword list that is worth reading as a positioning decision rather than as metadata.

Alongside the obvious terms for the component, it lists knowledge graph, graph editor, graph visualization, network topology, flowchart, force layout, directed acyclic graph, unified modelling language, and entity relationship diagram. That is nine distinct kinds of diagram claimed for one component whose own description mentions relationship display and a drawing board.

The search data shows what that list attracts. Queries include relation graph calculator, relation graph formula, relation graph in math, relation graph math, relation graph definition, relation graph function, and how to tell if a graph is a relation or function. Those are mathematics questions about the word relation, in the sense of a mapping from a domain to a codomain. Also present are relation graph transformer, which is a neural network architecture, and relation graph zotero, which is a reference manager.

So the name collides with a mathematical concept, with a model architecture family, and with a piece of bibliographic software. The keyword list broadens the collision rather than narrowing it, since several of those terms point at domains the component has nothing to do with.

For anyone choosing a library, the practical filter is the package names, which are unambiguous, rather than the search volume.

Forty-two patches, then a year of silence, then a major version

The release history has an unusual shape and it is the most informative thing in the metadata.

The oldest visible release is a patch on the two-one line, at patch number forty-two, dated April 2024. Forty-two patch releases within a single minor line is a lot of shipping, and it suggests a project in active maintenance with a real user base.

Then the gaps. The next visible release is on the two-two line at patch eleven, dated March 2025, which is about eleven months later. After that comes the current major, version three point zero at patch thirteen, dated May 2026, roughly thirteen months after the two-two release.

So the pattern is dense patching inside a minor line, then two long silences between minor and major boundaries.

The last commit to the default branch is dated 2026-05-20, a little over four months before the current date. The major version is therefore about five months old and the branch has been quiet for longer than that.

The practical reading is that this is a project with a history of steady small fixes and long gaps before structural changes, which is a reasonable profile for a component library with a stable API. It also means a version range in your dependencies is riskier than a pin, because the next release after a five-month silence may be a large one.

No runtime dependencies, twenty lint plugins, and TypeScript four

The root manifest declares no runtime dependencies at all. The dependency block is empty, which is a strong statement for a component library: everything the published packages need is bundled or is a peer of the host framework.

Everything else is development tooling, and there is a lot of it. Twenty development dependencies, most of them linting. The list includes the standard style configuration, the standard plugin, a node plugin, a promise plugin, a prettier plugin, a Vue plugin, an import plugin, a react plugin, two typescript-eslint packages, and prettier itself.

Three of those plugins are ones that have been discontinued by their maintainers, and the whole configuration is on the older lint configuration file format rather than the flat one that replaced it. The TypeScript compiler is pinned to a version from 2022, and prettier to a version from 2022 as well.

The Node type definitions are declared with a wildcard version, which means a fresh install resolves whatever the current major is, in a project otherwise careful about reproducibility.

So the project has chosen a stable published surface and an unpinned toolchain. That combination is defensible, since the lint stack does not ship to users, but it does mean the toolchain is several major versions behind and someone is paying attention to it whether they intend to or not.

Editorial conclusion

The slot model is the reason to consider this: because a node is a slot rather than a configuration object, you render graph elements with your own components and your own styling, which is not how most graph libraries work. Two things to check before adopting it. The web component build comes from a public CDN rather than the registry, so it bypasses your lockfile and whatever registry policy you have, and you may want to install and pin that one locally instead. And the version history shows a line that took forty-two patch releases followed by two gaps of more than a year, so pin a version rather than tracking the branch, particularly since the current major is only a few months old.

Frequently asked questions

What is relation-graph/relation-graph?

An MIT licensed relationship graph component for front-end development, published as five separate packages for React, Vue 2, Vue 3, Svelte, and web components. Nodes and views are customized through slots, so graph elements are rendered with ordinary application components rather than configuration objects.

How do I install relation-graph for each framework?

React, Vue 2, Vue 3, and Svelte each install from the registry with `npm install --save` on the matching scoped package. The web component build has no install line and is imported directly from a public module CDN, so it is not covered by a lockfile.

Does relation-graph have runtime dependencies?

The root manifest declares an empty dependency block. Everything listed is development tooling: about twenty linting and formatting packages, a TypeScript compiler pinned to a 2022 version, and Node type definitions declared with a wildcard version.

What are the knowledge directories in the relation-graph repository?

There are two, one addressed to language models and one to developers, at the root of the source tree. The README claims the layout makes the project's knowledge easier for a model to understand, but names no specification for their contents and no mechanism that keeps them in step with the code.

Where are the relation-graph example projects?

Five complete sample projects, one per framework, each with a repository link and a link to run it in a sandbox. The README lists them under two headings, and four of the five appear under both with identical links.

Official sources

  1. License: MIT
  2. Project website
  3. README
  4. relation-graph/relation-graph on GitHub
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/relation-graph-relation-graph.svg)](https://hysenlabs.com/projects/relation-graph-relation-graph)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/relation-graph-relation-graph.svg)](https://hysenlabs.com/projects/relation-graph-relation-graph)

Was this useful?