Dev Resources
sigma.js favicon

sigma.js

Library/Programming

Sigma is a JavaScript library dedicated to graph drawing. It makes easy to publish networks on Web pages, and allows developers to integrate network exploration in rich Web applications.

sigma.js's website screenshot

About sigma.js

Sigma.js is a JavaScript library for rendering and interacting with network graphs of thousands of nodes and edges in the browser, using WebGL for performance. It works alongside graphology, a separate library that handles the graph data model and algorithms, while sigma.js handles rendering and interaction. Installation is via npm (graphology and sigma packages).

The library supports use cases including basic display of graph datasets (such as GEXF files exported from Gephi), interactive exploration with features like search and neighborhood highlighting on hover, user-driven graph creation and manipulation (node creation, drag and drop), and customized rendering such as displaying nodes with embedded pictures. A React wrapper, @react-sigma, is available; Angular integration is possible but requires manual binding since no dedicated wrapper exists.

Sigma.js is aimed at developers building web applications that need to visualize or let users interact with graph/network data, particularly at scale. For smaller graphs or highly customized rendering needs, the documentation notes that d3.js may be a better fit. The library is published by Sciences-Po médialab and OuestWare under the MIT License, and is used in projects including Gephi Lite, GraphCommons, Retina, Polinode, and BloodHound.

Key features

  • Renders graphs of thousands of nodes and edges using WebGL
  • Works with graphology for graph data modeling and algorithms (layouts, metrics, community detection)
  • Supports interactive features like search, hover neighborhoods, node creation, and drag-and-drop
  • Customizable rendering, including nodes displayed with pictures
  • React integration available via @react-sigma

Frequently asked questions

Is sigma.js free to use?

Yes, sigma.js is open source and published under the MIT License.

Can I use sigma.js with React or Angular?

Yes, React is supported via the @react-sigma wrapper; Angular is possible but requires manually binding sigma.js lifecycle since there is no wrapper yet.

How does sigma.js compare to d3.js?

Sigma.js uses WebGL to render larger graphs faster than Canvas or SVG based solutions like d3.js, but d3.js is a better fit for small graphs or highly customized rendering.

Does sigma.js include graph algorithms like layouts or community detection?

No, sigma.js has no algorithms itself, but it works with graphology which implements many, including ForceAtlas2 layout and community detection.

Who maintains sigma.js?

It is published by Sciences-Po médialab and OuestWare and developed on GitHub under jacomyal/sigma.js.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product

You might also like