# gl-react

> Universal React library, write and compose WebGL shaders, implement complex effects using a descriptive paradigm

Latest version **6.0.0** (published 2026-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install gl-react
pnpm add gl-react
yarn add gl-react
bun add gl-react
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2026-05-15 |
| First published | 2015-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 337.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3006 |
| Author | Gaëtan Renaudeau |
| Maintainers | gre, mrspeaker |
| Keywords | gl-react, gl, opengl, react, react-component |

## Links

- npm: https://www.npmjs.com/package/gl-react
- Repository: https://github.com/gre/gl-react
- Homepage: https://github.com/gre/gl-react#readme
- Issues: https://github.com/gre/gl-react/issues
- npm.io page: https://npm.io/package/gl-react

## Dependencies (7)

- [ndarray](https://npm.io/package/ndarray.md) ^1.0.19
- [gl-shader](https://npm.io/package/gl-shader.md) ^4.3.1
- [invariant](https://npm.io/package/invariant.md) ^2.2.4
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [typedarray-pool](https://npm.io/package/typedarray-pool.md) ^1.2.0
- [webgltexture-loader](https://npm.io/package/webgltexture-loader.md) 2.1.2
- [webgltexture-loader-ndarray](https://npm.io/package/webgltexture-loader-ndarray.md) 2.1.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 6.0.0 (latest) — 2026-05-15
- 5.2.2-next.6 (canary) — 2022-05-31
- 5.1.1-next.0 (next) — 2022-05-28
- 5.2.0 — 2022-05-28
- 5.0.0 — 2020-12-26
- 5.0.0-alpha.4 — 2020-12-26
- 4.1.0 — 2020-12-25
- 4.0.2-alpha.3 — 2020-12-23
- 4.0.1 — 2020-01-02
- 4.0.0 — 2020-01-01
- 3.18.0-alpha.2 — 2020-01-01
- 3.18.0-rc.2 — 2020-01-01
- 3.17.2 — 2019-08-15
- 3.17.1 — 2019-08-15
- 3.17.0 — 2019-08-15
- … 70 more at https://npm.io/package/gl-react/versions

## README

<img width="32" alt="icon" src="https://cloud.githubusercontent.com/assets/211411/9813786/eacfcc24-5888-11e5-8f9b-5a907a2cbb21.png"> gl-react
========

`gl-react` is a [React](https://facebook.github.io/react/)  library to write and compose WebGL shaders.


## Links

- [Github](https://github.com/gre/gl-react)
- [Cookbook, examples, API](https://gl-react-cookbook.surge.sh)
- [![Join the chat at https://gitter.im/gl-react/Lobby](https://badges.gitter.im/gl-react/Lobby.svg)](https://gitter.im/gl-react/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

---
_Source: https://npm.io/package/gl-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
