Library / SDK
jacomyal/sigma.js avatar
jacomyal/sigma.js

Sigma.js 4: WebGL graph rendering on top of graphology, extended through node programs and layer packages

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

12,246 stars1,614 forksTypeScriptMIT

At a glance

What is it?
jacomyal/sigma.js is an MIT TypeScript library that renders graphs of thousands of nodes and edges with WebGL, leaving the graph data model to graphology. Version 4 splits extras into separate @sigma packages, which keeps the core small but means anything beyond plain discs and lines is a package or a WebGL program you add yourself.
Who is it for?
Sigma.js fits developers who need to draw graphs with thousands of nodes and edges in the browser and are willing to model their data in graphology, assign node positions and sizes as attributes, and reach for @sigma packages or custom WebGL programs for anything visual beyond the defaults. It fits poorly when you want a single all-in-one charting library with SVG and CSS styling.
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?
Yes. The repository last received commits 12 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

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

From daily snapshots

Star history

  • jacomyal/sigma.js12,246 ★ · +65
Star history
Repository2026-10-072026-11-22
jacomyal/sigma.js12.2k12.2k

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

Editorial analysis

Sigma draws the graph, graphology holds it

Sigma.js does one job: it renders graphs with WebGL. The graph itself, its nodes, edges and their attributes, lives in a separate library, graphology, which is maintained by Guillaume Plique of the Sciences Po médialab, one of sigma's own developers. That is why installing sigma always means installing two packages:

bash
npm install sigma graphology

and importing both:

javascript
import Graph from "graphology";
import Sigma from "sigma";

The split has a practical consequence. Adding, removing or querying nodes is graphology's API, not sigma's, so a team adopting sigma is learning two libraries. The benefit is that the data model is independent of the renderer: the same graphology instance can be processed in code and then handed to sigma for display, without converting formats along the way.

Positions, sizes and colors are node attributes you supply

In the minimal example, every node is given its own coordinates and appearance as graphology attributes, and the Sigma instance is then attached to a DOM container:

javascript
const graph = new Graph();
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" });

const sigmaInstance = new Sigma(graph, document.getElementById("container"));

The x and y values, size, color and label all come from the data, and edges carry their own size and color. The consequence is that sigma does not invent a picture from a bare list of nodes in this example: if your data has no coordinates, something has to compute them before sigma can show a meaningful layout. It also means a container element with id container has to exist in the page before you construct the instance.

Node programs, not CSS, decide what a node looks like

Because sigma draws with WebGL rather than SVG or DOM elements, the shape of a node is defined by a node program, code that runs on the GPU. The core draws plain nodes and edges, and v4 moves richer shapes into companion packages in the same monorepo. @sigma/node-image renders images inside nodes. @sigma/node-border renders concentric discs. @sigma/node-piechart renders nodes as pie charts. For anything else, @sigma/layer-webgl provides helpers for drawing custom WebGL layers. The tradeoff is clear: WebGL is what lets sigma target graphs of thousands of nodes and edges, but you cannot style a node with a stylesheet or attach a DOM tooltip to it the way you would with an SVG library. A visual that has no existing program means writing one, and since v4 the project's own GLSL handling in program generation is one of the areas where LLMs drafted mechanical code.

Map backgrounds and image export are separate installs

The project's advice for companion packages is to install only what you need, and several common requirements fall into that bucket. Placing a graph over a geographic map uses @sigma/layer-leaflet for a Leaflet background or @sigma/layer-maplibre for a MapLibre background. Saving the current view as a picture uses @sigma/export-image, which captures snapshots of a sigma instance as images. @sigma/utils collects helper functions that make sigma easier to use. Splitting these out keeps the main sigma package lean, and you do not pull Leaflet or MapLibre into a project that does not show maps. The cost is bookkeeping: each package has its own version, so upgrading sigma means checking that every companion package you rely on has a matching release.

The monorepo runs on preconstruct, vitest and Playwright browser tests

All packages live under packages/ as npm workspaces, managed with lerna and built with preconstruct. A postinstall hook runs preconstruct dev, so a fresh npm install already links the workspace packages for development. Running the website locally, with every live example, takes four commands:

bash
git clone https://github.com/jacomyal/sigma.js.git
cd sigma.js
npm install
npm run start

The site live reloads when you edit the examples or the package sources, which makes it the quickest way to see how a change affects real demos. The test script chains three suites: unit tests with vitest, type tests as a separate vitest project, and end-to-end tests in the @sigma/browser-tests workspace, which runs on @vitest/browser with Playwright. prepublishOnly runs the tests, the build and lint before any release. Contributors are asked to make sure tests and linting pass before opening a pull request.

Three v4 patch releases in two weeks, with LLM-drafted code in places

The 4.0 line is moving. [email protected] was released on 2026-10-14, 4.0.3 on 2026-10-15 and 4.0.4 on 2026-10-27, the same day as the last push to main. Changes are tracked in CHANGELOG.md. Since v4, development has also used LLMs to draft mechanical code, while architecture, API design and core logic stay human-authored. The named areas are GLSL handling in program generation, the styles and primitives engines, and label attachments rendering. For most users this changes nothing in how the library is used, but teams with policies on AI-generated code in dependencies now know exactly which parts to look at. The rapid patch cadence also argues for pinning an exact 4.0.x version in production and upgrading deliberately.

Built by OuestWare and the médialab, with paid support available

Sigma is developed by Alexis Jacomy and Benoît Simard at OuestWare, together with Guillaume Plique from the Sciences Po médialab. The médialab supported the project through v1 and v2, OuestWare has supported it continuously since, and gdotv sponsored the v3 and v4 development. The code is under the MIT license, and the repository includes a CITATION.cff for anyone citing sigma in academic work. Help comes in two forms. Community questions and bugs go through GitHub issues and pull requests, with documentation, guides, interactive examples and API references on sigmajs.org/docs. For teams that need guarantees, OuestWare sells professional support, custom development and consulting around sigma through [email protected].

Editorial conclusion

Sigma.js fits developers who need to draw graphs with thousands of nodes and edges in the browser and are willing to model their data in graphology, assign node positions and sizes as attributes, and reach for @sigma packages or custom WebGL programs for anything visual beyond the defaults. It fits poorly when you want a single all-in-one charting library with SVG and CSS styling. Before adopting it, check that the companion packages you need (images, pie charts, map backgrounds, image export) exist for v4, and pin a 4.0.x release, since three patches shipped within two weeks.

Frequently asked questions

Is sigma.js free?

Yes. Sigma.js is released under the MIT license and installs from npm with npm install sigma graphology. OuestWare separately offers paid professional support and consulting.

What is sigma.js?

Sigma.js is an open-source JavaScript library, written in TypeScript, for visualizing graphs of thousands of nodes and edges with WebGL. It is built on top of graphology, which holds the graph data.

Is sigma.js open source?

Yes. The source is on GitHub at jacomyal/sigma.js under the MIT license, and contributions go through issues and pull requests that must pass tests and linting.

Official sources

  1. jacomyal/sigma.js on GitHub
  2. License: MIT
  3. Project website
  4. README
  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/jacomyal-sigma-js.svg)](https://hysenlabs.com/projects/jacomyal-sigma-js)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/jacomyal-sigma-js.svg)](https://hysenlabs.com/projects/jacomyal-sigma-js)

Was this useful?