Skip to content
Blog
Three.js logo

Three.js

The standard JavaScript 3D library.

Verdict: is Three.js a fit?

Good fit for

  • 3D product shots and ambient 3D backgrounds

Not a fit for

  • Simple 2D motion

Install

  1. npm

    npm install three

    Source: npm

  2. In Remotion

    npx remotion add @remotion/three

    Source: Remotion docs

Not verified: we have not run these commands. They come from the listed sources.

Context

Three.js renders 3D scenes with WebGL (and WebGPU). Both HyperFrames and Remotion can include Three.js scenes; Remotion wraps it in @remotion/three, where every movement must be driven by the current frame so renders don't flicker.

Key facts

  • Current builds include WebGL and WebGPU renderers; SVG and CSS3D renderers are available as addons.

    README

    Documented. Based on official documentation and published sources; not run by us.
  • Releases are numbered rNNN on GitHub and 0.NNN.x on npm (r187 = 0.187.0).

    GitHub releases and npm registry

    Documented. Based on official documentation and published sources; not run by us.
  • A full clone with history is about 2 GB; use a shallow clone (--depth) if you only need the code.

    README, Cloning this repository

    Documented. Based on official documentation and published sources; not run by us.

Strengths and limitations

Strengths

  • Huge ecosystem.
  • Works in both main render engines.

Limitations

  • 3D renders are slow and GPU-hungry in headless Chrome.
  • WebGL may be unavailable in some CI/software-GL environments.

Works well with

Tools that sit next to Three.js in the same stack.

Tools that work with Three.js
ProjectLicenseLanguageLayerStars
Remotion logo
Remotion

Make videos programmatically with React.

Remotion License (source-available) · 71.4k stars

Remotion License (source-available)not OSITypeScriptRender engine71.4k
HyperFrames logo
HyperFrames

Write HTML, render it to MP4 - built with coding agents in mind.

Apache-2.0 · 80.4k stars

Apache-2.0TypeScriptRender engine80.4k

Sources

  1. three.js on GitHub (accessed )
  2. mrdoob/three.js README (accessed )

Spotted a mistake or outdated fact?Report an error(opens a GitHub issue).