Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A JavaScript library aimed at visualizing graphs of thousands of nodes and edges

License

NotificationsYou must be signed in to change notification settings

jacomyal/sigma.js

Build Status


Sigma.js

Website |Documentation |Storybook |Mastodon


Sigma.js is an open-source JavaScript library aimed at visualizing graphs of thousands of nodes and edges using WebGL, mainly developed by@jacomyal and@Yomguithereal, and built on top ofgraphology.

How to use in your project

To integrate sigma into your project, follow these simple steps:

  1. Installation: Addsigma andgraphology to your project by running the following command:

    npm install sigma graphology
  2. Usage: Import sigma into your JavaScript or TypeScript file:

    importGraphfrom"graphology";importSigmafrom"sigma";

    Then, create a newSigma instance with your graph data and target container:

    constgraph=newGraph();graph.addNode("1",{label:"Node 1",x:0,y:0,size:10,color:"blue"});graph.addNode("2",{label:"Node 2",x:1,y:1,size:20,color:"red"});graph.addEdge("1","2",{size:5,color:"purple"});constsigmaInstance=newSigma(graph,document.getElementById("container"));

How to develop locally

To run theStorybook locally:

git clone git@github.com:jacomyal/sigma.js.gitcd sigma.jsnpm installnpm run start

This will open the Storybook in your web browser, which live reloads when you modify the stories or the package sources.

Resources

  • GitHub Project: The source code and collaborative development efforts for Sigma.js are hosted onGitHub.
  • Website: The official website,sigmajs.org, kindly designed byRobin de Mourat from theSciences-Po médialab team, showcases the library's capabilities.
  • Documentation: A detailed documentation, built withDocusaurus, is available atsigmajs.org/docs. It provides extensive guides and API references for users.
  • Storybook: Interactive examples can be found atsigmajs.org/storybook.
  • Demo: A comprehensive demo, available atsigmajs.org/demo, features a full-featured React-based web application utilizing Sigma.js.

How to contribute

You can contribute by submittingissues tickets and proposingpull requests. Make sure that tests and linting pass before submitting any pull request.

You can also browse the related documentationhere.

How to start a new package

Runnpm run createPackage from the project root. It will:

  • Ask you the new package name
  • Copy thepackages/template folder
  • Update the new packagepackage.json entries (name, description, exports)
  • Update various other files (buildable packages list intsconfig.json, Preconstruct compatible packages list inpackage.json...)

About

A JavaScript library aimed at visualizing graphs of thousands of nodes and edges

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp