# gl-react

gl-react – React library to write and compose WebGL shaders

Repository: https://github.com/gre/gl-react
Canonical: https://ross.abutalabs.com/products/gl-react
Homepage: http://gre.github.io/gl-react/
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, webgl, universal, react-native, glsl
Last push: 2026-08-16T23:02:02+00:00
Link (homepage): http://gre.github.io/gl-react/

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 55, longevity 100
- inputs: {"age_days": 4034, "days_push": 17, "days_rel": 91, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3007, forks 160 (observed 2026-08-28T04:07:37.684049+00:00)

## What it is
gl-react is a universal React library for writing and composing WebGL shaders as declarative React components. It ships with concrete implementations for React DOM, React Native/Expo, and headless Node.js rendering.

## Use cases
- render WebGL shader effects in React apps
- compose complex GLSL image effects from React components
- apply GPU shader filters to images in React Native
- render shaders headlessly in Node.js
- build shader-based visual demos and generative art

## When to choose
- you want declarative, component-based WebGL shader composition
- you need the same shader code across web and React Native
- you are building image/video effects or generative visuals in React

## When to avoid
- you need raw low-level WebGL control or 3D scene graphs
- your project does not use React
- you need Three.js-style meshes, lighting, or 3D models

## Facets
- artifact type: library
- maturity: stable
- function: graphics, ui-components, frontend-framework
- domain: web-development, frontend, graphics, cross-platform
- platform: browser, cross-platform
- tags: webgl, glsl, shaders, react, react-native, expo, image-effects, web-server, nodejs, mobile

## Member repositories
- gre/gl-react (main) score 83
- gre/gl-react-native-v2 (sdk) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:37.684049+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-29T18:47:23.651868+00:00, confidence not recorded.
  - readme: https://github.com/gre/gl-react (fetched 2026-08-28T04:07:37.684049+00:00, sha 3c98d7f34927)
  - homepage: http://gre.github.io/gl-react/ (fetched 2026-08-29T09:45:51.641333+00:00, sha 314ff0cf8c70)
  - registry_npm: https://registry.npmjs.org/gl-react (fetched 2026-08-29T09:45:51.650216+00:00, sha 7fdffb9a42ec)
- Data as of 2026-08-30T08:39:29.467469+00:00.
