regl
Keep, but not for new work. 9th of 9 3D and WebGL libraries.
regl is a small, stable, functional wrapper around WebGL 1: you describe draw commands as plain objects and regl manages the GL state. It works well and has no dependencies. But it has had no feature release since 2.1.1 in November 2024, has no WebGL 2 or WebGPU path, and its maintainers are mostly idle, so keep it where it runs. Pick three.js for scenes, or OGL or TWGL for low-level work.
Best for: Data-visualization or shader developers who want a thin, declarative layer over raw WebGL 1 and can accept a project that rarely changes.
Scores
Overall4.6
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 3.5, likely 2.5 to 5.0
regl still works and is safe to keep where it runs, but its maintainers are mostly idle and it is stuck on WebGL 1. For drawing 3D scenes, three.js or its framework bindings are far better. For low-level work, OGL or TWGL offer WebGL 2. Its downloads are growing more slowly than the median.
- github commitsLastYear: Nearly no development in the last year.
- peers three.js: three.js has 2,401 commits a year and 51k dependent repos.
- best-of-web.builder.io/library/regl-project/regl: Comparison names OGL as more modern and active.
GPT-6.2 Sol: 5.6, likely 4.6 to 6.8
regl is a reasonable choice when custom GLSL and explicit draw-state control are central to the project. For most new browser 3D scenes, three.js offers scene management, cameras, and asset loaders backed by much more active maintenance. The long release gap and incomplete WebGL 2 support make the recommendation depend on how well WebGL 1 covers the project's expected lifetime.
- regl-project.github.io/regl: Shows the functional draw-command model and shader-driven examples.
- threejs.org/docs: Documents built-in scenes, cameras, loaders, and rendering APIs.
- redblobgames.com/x/2524-mapgen4-renderer: A renderer author describes moving off regl and adopting WebGL 2 features.
- npm latestPublishedAt, github commitsLastYear, and peers three.js: regl has a two-year release gap and two recent commits, while three.js ships regularly.
Needed by many3.2
How many developers need a tool for this job?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
Few JS developers need 3D in the browser, and fewer want to write raw shaders with a thin state wrapper instead of using a scene library. regl's audience is mostly data visualization and creative coding, a clear niche within the category.
- best-of-web.builder.io/library/regl-project/regl: Describes regl as a low-level functional wrapper, not a scene engine.
- raw.githubusercontent.com/regl-project/regl/main/README.md: The listed users are mostly data-visualization and science projects.
GPT-6.2 Sol: 3.4, likely 2.3 to 4.5
regl serves developers who build custom browser rendering pipelines, including scientific visualization and shader effects. It works without a UI framework, but low-level draw commands appeal to a narrower audience than general 3D scene tools. The State of JavaScript survey measures graphics and visualization broadly, so it only gives an indirect estimate of demand for this approach.
- 2025.stateofjs.com/en-US/usage: About 12% of use-case respondents reported graphics and animation.
- regl-project.github.io/regl: Framework-independent API centered on GPU resources and draw commands.
Helps a lot5.8
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
Within its scope regl is well designed and fast, with bundled types and good API docs. It drives scatterplots of millions of points. But it is limited to WebGL 1 features, offers nothing for 3D scenes, and has old open type and texture bugs. OGL and TWGL cover similar low-level ground with WebGL 2.
- joss.theoj.org/papers/10.21105/joss.05275.pdf: regl-scatterplot draws up to 20 million points smoothly on regl.
- gist.github.com/sasha240100/17f3b2ae7551b05faff20ed994cb4af0: Says regl did not move to WebGL 2.
- github.com/regl-project/regl/issues: Open bugs on types, textures and buffers from 2022 to 2024.
- npm hasTypes: Ships TypeScript types.
GPT-6.2 Sol: 6.6, likely 5.5 to 7.8
Version 2.1.1 compiles reusable draw commands and provides batch rendering, profiling, TypeScript declarations, and runtime checks for invalid inputs. Developers still write GLSL and assemble their own scenes, and users report gaps with WebGL 2 textures. One independent shader demo shipped a larger bundle with regl than with OGL. The score draws on documentation and user reports, with limited comparative runtime or coding-agent measurements.
- github.com/regl-project/regl/blob/main/API.md: Documents batching, scoped commands, profiling, and debug errors.
- github.com/regl-project/regl/blob/main/CHANGES.md: Version 2.1.1 added missing TypeScript declarations.
- github.com/regl-project/regl/issues/697: A user reports float-texture setup failing with a WebGL 2 context.
- github.com/jsulpis/webgl-libs-comparison: Independent shader demo measured 42.2 kB gzip for regl and 13.5 kB for OGL.
Holds up over time3.1
Will it still be a good choice in two years?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
The last release was November 2024. The last year brought only two README commits, the Scorecard gives Maintained a 0, and an open issue asks where the maintainers went. One maintainer (rreusser) still merges small changes, and the API is stable, but there is no WebGL 2 or WebGPU roadmap while the platform moves on.
- github commitsLastYear: 2 commits and 0 releases in the last year.
- github.com/regl-project/regl/commits/main: Only README commits in June 2026; the last code changes were in Nov 2024.
- github.com/regl-project/regl/issues: Issue #654 'Where'd y'all go?' and many unanswered issues.
- scorecard Maintained: Scorecard Maintained check is 0.
GPT-6.2 Sol: 3.2, likely 2.1 to 4.7
regl recorded two commits in the past year and last published to npm in November 2024. The WebGL 2 tracking issue is still open without a milestone, while three.js and Babylon.js ship regularly. A mature API can remain useful with few releases, but current funding and release coverage are unclear.
- github commitsLastYear and npm latestPublishedAt: Two commits in a year and roughly two years since the last npm release.
- peers three.js and Babylon.js: Both published in the month before the snapshot and had over 1,700 commits in the past year.
- github.com/regl-project/regl/issues/378: WebGL 2 tracking issue has been open since 2016 and has no milestone.
- github.com/regl-project/regl/blob/main/README.md: Credits Freeman Lab and Howard Hughes Medical Institute support without specifying a current commitment.
Used widely4.2
How many use it, and is that growing?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
5.3M downloads per 4 weeks and 7,107 dependent repos is solid, above Babylon.js and OGL on dependents. But most installs come through visualization libraries rather than direct choices. Its download ratio of 3.35 is below the median of 4.1, so it is losing ground, and it gets almost no social attention.
- npm downloadsLast4Weeks: 5.29M now vs 1.58M a year ago, a ratio of 3.35, below the 4.1 median.
- dependents: 7,107 repos and 275 packages depend on it.
- bluesky posts: 1 post in 24 months and no HN stories.
- npmjs.com/package/regl-scatterplot: Downstream libraries install regl as a peer dependency.
GPT-6.2 Sol: 4.3, likely 3.2 to 5.6
The collector found 7,107 dependent repositories and 275 dependent packages, an established base that trails three.js and React Three Fiber. Four-week downloads rose from 1.58 million to 5.29 million, a 3.35× increase below the catalog's 4.1× baseline. Downstream installs and partial repository coverage make direct adoption hard to estimate, and one Bluesky post offers little evidence of fresh interest.
- dependents and peers dependentRepos: 7,107 repositories for regl versus 10,968 for React Three Fiber and 51,503 for three.js.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: Downloads grew 3.35× against a 4.1× catalog baseline.
- github stars and bluesky posts: 5,601 GitHub stars and one Bluesky post over the collection window.
- github.com/flekschas/regl-scatterplot/blob/main/package.json: A downstream plotting library can install regl transitively.
Vouched for5.1
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 3.0 to 6.0
Respected visualization projects such as Bokeh, Deepscatter, regl-scatterplot and the Allen Institute ABC Atlas build on it, and Plotly keeps a fork. Most of these endorsements are old, and I found no current independent reviews or survey data.
- raw.githubusercontent.com/regl-project/regl/main/README.md: Lists Bokeh, Deepscatter, the ABC Atlas and HHMI support.
- github.com/plotly/regl: Plotly maintains its own fork.
- joss.theoj.org/papers/10.21105/joss.05275.pdf: A peer-reviewed paper on a library built on regl.
GPT-6.2 Sol: 6.2, likely 4.9 to 7.4
The Allen Institute uses regl in its visualization stack, and regl-scatterplot continues to depend on 2.1.1. Plotly's main integration uses the scoped @plotly/regl package, which supports the design's track record and gives weaker evidence for choosing the upstream package today. The strongest examples come from data visualization, and broad satisfaction data is scarce.
- alleninstitute.github.io/vis: Allen Brain Cell Atlas uses the institute's Vis stack to render millions of points.
- github.com/AllenInstitute/vis/pull/326: A November 2026 merge makes regl a shared peer dependency across visualization packages.
- github.com/flekschas/regl-scatterplot/blob/main/package.json: The scatterplot library directly depends on regl 2.1.1.
- github.com/plotly/plotly.js/blob/main/package-lock.json: Plotly declares @plotly/regl as its direct dependency.
Safe6.0
How safe is it to depend on?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It has zero dependencies, an MIT licence and no advisories ever, so the attack surface is small. The Scorecard is 3.3, with no branch protection, no security policy and unpinned workflow dependencies, and the project is barely maintained, so a future issue might go unfixed.
- npm dependencies: 0 dependencies.
- advisories total: No OSV advisories.
- scorecard score: 3.3 overall; Security-Policy, Branch-Protection and Maintained are 0.
GPT-6.2 Sol: 6.0, likely 4.7 to 7.3
The MIT licence permits commercial use, and zero runtime dependencies limit the supply-chain surface. OSV lists zero advisories, leaving patch response untested. The 3.3 OpenSSF Scorecard flags branch protection, workflow token permissions, and security policy, while the release process and active publisher coverage remain unclear. Runtime code generation also conflicts with strict browser Content Security Policies that block dynamic evaluation.
- npm dependencies, npm license, and advisories total: Zero runtime dependencies, MIT licence, and zero recorded OSV advisories.
- scorecard score and checks: Scores of zero for branch protection, token permissions, and security policy. Packaging and signing were unscored.
- github.com/regl-project/regl/blob/main/lib/util/codegen.js: Draw-command compilation uses the JavaScript Function constructor.
- github.com/plotly/plotly.js/blob/main/CONTRIBUTING.md: Plotly documents precompilation to support strict Content Security Policies.
Good
- Draw commands are declarative and hide WebGL's global state, which removes a whole class of state-leak bugs.
- It has zero runtime dependencies, an MIT licence, bundled TypeScript types and no known advisories.
- The API has been stable for years, and old code keeps working.
- It is proven in data-visualization tools such as regl-scatterplot, Deepscatter and Bokeh for drawing millions of points.
Bad
- It targets WebGL 1 and has no native WebGL 2 or WebGPU path, so it is falling behind the platform.
- It has had no release since November 2024 and only two README commits in the last year, while 110 issues stay open.
- It has no scene graph, loaders, materials or cameras, so drawing a 3D scene takes much more code than with three.js.
- Plotly ships its own fork (@plotly/regl), which splits the ecosystem and its fixes.
The numbers
- npm downloads, 4 weeks
- 5.3M ×3.4 in a year
- GitHub stars
- 5.6k
- Commits, 12 months
- 2
- npm version
- 2.1.1 Nov 2024
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.3 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (regl-project/regl), npm (regl), OSV and the OpenSSF Scorecard.