# cosmosgl/graph

GPU-accelerated force graph layout and rendering

Repository: https://github.com/cosmosgl/graph
Canonical: https://ross.abutalabs.com/products/cosmosgl-graph
Homepage: https://cosmos.gl
Language: TypeScript
License: MIT
License Family: permissive
Topics: graph, network, force, simulation, visualization, webgl, embeddings
Last push: 2026-08-26T14:45:46+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 95, longevity 100
- inputs: {"age_days": 1603, "days_push": 7, "days_rel": 37, "gap_med": 15, "n_releases_24m": 12}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1261, forks 83 (observed 2026-08-28T04:04:09.987383+00:00)

## What it is
cosmos.gl is a GPU-accelerated force graph layout and rendering engine built on WebGL 2 (via luma.gl), where all simulation and drawing run in fragment and vertex shaders. It renders and simulates network graphs with hundreds of thousands of points and links in real time, and powers the Cosmograph tool for exploring complex networks and AI embeddings.

## Use cases
- visualize a network graph with hundreds of thousands of nodes and edges in the browser
- run force-directed graph layout simulation on the GPU in real time
- explore AI embeddings as an interactive 2D point graph
- render large social or knowledge networks with curved links and drag interaction
- embed an interactive WebGL force graph into a web app with npm install @cosmos.gl/graph
- compare performance of GPU graph rendering against D3-style force layouts

## When to avoid
- you need 3D graph visualization or non-force-directed layouts
- your target browsers lack WebGL 2 support
- you need server-side rendering or static graph images rather than interactive browser rendering
- you want a full-featured graph analytics suite rather than a layout and rendering engine

## Facets
- artifact type: library
- maturity: active
- function: data-visualization, graphics, simulation, charts
- domain: data-visualization, web-development, frontend
- platform: browser
- tags: webgl, force-graph, gpu-accelerated, network-graph, graph-layout, embeddings-visualization, vertex-shaders, fragment-shaders, large-graphs, real-time-simulation, cosmograph, algorithms, web-server, nodejs, typescript

## Member repositories
- cosmosgl/graph (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:09.987383+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:04:18.393572+00:00, confidence not recorded.
  - readme: https://github.com/cosmosgl/graph (fetched 2026-08-28T04:04:09.987383+00:00, sha effe27812ab7)
  - homepage: https://cosmos.gl (fetched 2026-08-29T12:16:34.692974+00:00, sha 4e976dae3130)
- Data as of 2026-08-30T08:39:29.467469+00:00.
