⚡ JavaScript Libraries for 3D Graphics

JavaScript libraries for 3D graphics are libraries used to create, render, and animate three-dimensional scenes in web browsers.

They typically leverage WebGL or related APIs to handle 3D models, lighting, cameras, and interactions, allowing developers to build games, real-time visualizations, simulations, and other immersive web experiences.

⭐ Most Popular in 2026

The following chart shows the leading JavaScript libraries for 3D graphics in 2026, based on market share.

The most popular is Three.js with a share of 0.2%, followed by p5.js with 0.01% and Babylon.js with 0.009%.

✨ Best JavaScript Libraries for 3D Graphics

Below is a more detailed list of 8 JavaScript libraries for 3D graphics we detect, ranked by their market share.

Available filters: 2D-Graphics 3D-Graphics Animation Carousel CSS Data Grids DOM Editors Lightbox Scroll SPA State Utility UI
RankNameMarket share
1
Three.js

A JavaScript library for creating and rendering 3D graphics using WebGL/WebGPU in a web browser.

FreeOpen source
2
p5.js
New York, United States

An open-source JavaScript library for creating interactive 2D and 3D graphics and visualizations.

FreeOpen source
3
Babylon.js

A full-featured 3D game and rendering engine built on the WebGL platform.

FreeOpen source
4
Vanta.js
Shanghai, China

A script that allows you to add animated 3D backgrounds to any webpage with just a few lines of code.

FreeOpen source
5
Atropos
Weston, Florida, United States

A lightweight, free and open-source JavaScript library to create stunning touch-friendly 3D parallax hover effects.

FreeOpen source
6
A-Frame
San Francisco, California, United States

A web framework for building 3D/augmented/virtual reality experiences.

FreeOpen source
7
CesiumJS

A JavaScript library for creating 3D globes and 2D maps in a web browser.

FreeOpen source
8
Zdog

A 3D JavaScript engine for and SVG.

FreeOpen source

👉 See Also

Data is based on the analysis of 3,320,789 websites.
Statistics were last calculated on .
For details, see our methodology and disclaimer.