Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gl-react-joeonmars-fork
Advanced tools
WebGL bindings for react to implement complex effects over images and content, in the descriptive VDOM paradigm
Gitbook documentation / Github / live demos / gl-react-native / #gl-react on reactiflux
WebGL bindings for React to implement complex effects over images and content, in the descriptive VDOM paradigm.
More technically, gl-react
allows you to write a fragment shader that covers a component. The shader can render: generated graphics/demos, effects on top of images, effects over content (video, canvas)... anything you can imagine!
There's also gl-react-native
, a React Native version implementing the same API.
Open Examples page / Read the code.
react-motion
.react-canvas
.<video/>
tag.<video>
! It demonstrates the "shared computation" of the rendering tree introduced by 1.0.0.const React = require("react");
const GL = require("gl-react");
const shaders = GL.Shaders.create({
helloGL: {
frag: `
precision highp float;
varying vec2 uv;
uniform float blue;
void main () {
gl_FragColor = vec4(uv.x, uv.y, blue, 1.0);
}`
}
});
module.exports = GL.createComponent(
({ blue, ...rest }) =>
<GL.View
{...rest}
shader={shaders.helloGL}
uniforms={{ blue }}
/>,
{ displayName: "HelloGL" });
<HelloGL width={511} height={341} blue={0.5} />
renders
gl-react-native
's version uses React Native error message to display GLSL errors).<canvas>
, <video>
as a texture uniform.npm i --save gl-react
gl-shader
, gl-texture2d
, gl-fbo
are library directly used by gl-react
)FAQs
WebGL bindings for react to implement complex effects over images and content, in the descriptive VDOM paradigm
The npm package gl-react-joeonmars-fork receives a total of 1 weekly downloads. As such, gl-react-joeonmars-fork popularity was classified as not popular.
We found that gl-react-joeonmars-fork demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.