Skip to content
A React toolkit for graph analysis based on G6
TypeScript CSS JavaScript HTML
Branch: master
Clone or download
pomelo-nwu Merge pull request #29 from antvis/bugfix-shallowequal
feat: using shallow equal for should update for deps
Latest commit 5a8ebfb Dec 12, 2019

English | 简体中文


Version NPM downloads Latest commit

Graphin means Graph Insight (analysis of graphs). It is a library based on G6 and React and offers graph analysis ability out of the box. Graphin's logo is graphene, which means the potential of the future.

For more infomation, please check the Graphin Website.


Graphin use lerna to manage this repo. This repo contains the following packages:


Please checkout the specific package:

Package Name Description
@antv/graphin Core React component of Graphin
@antv/graphin-components Graphin components
@antv/graphin-site Graphin documentation website
graphin-studio A Graphin demo: generic graph analysis workbench based on Graphin

Graphin Quick Start


npm run --save @antv/graphin


import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';

import '@antv/graphin/dist/index.css'; // Don't forget to import css
import './styles.css';

const App = () => {
    const data = Utils.mock(10).graphin();
    return (
        <div className="App">
            <Graphin data={data} />

const rootElement = document.getElementById('root');
ReactDOM.render(<App />, rootElement);

Graphin and G6 compatible table

Graphin Version G6 Version
before 1.0.1 3.1.9
^1.0.2 ^3.2.0

Develop Graphin

  • Set npmClient

Set your npmClient in lerna.json, developers in China can set npmClient to cnpm

// ./lerna.json
    "packages": ["packages/*"],
    "npmClient": "yarn",
    "version": "0.0.0"
  • Install dependencies
npm i
  • Install dependencies for each package
npm run bootstrap
  • Start the local compilation of graphin and graphin-components
npm run start
  • Start the Graphin studio demo after npm run start
npm run studio
  • Start the Graphin Doc site
npm run site

More Info


You can scan the QR code to join graphin's group chat


You can’t perform that action at this time.