
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
Lets you use a single regl context to render to multiple windows within a single page.
const multiREGL = require('multi-regl')
const div1 = document.createElement('div')
div1.style.width = '500px'
div1.style.height = '500px'
document.body.appendChild(div1)
const regl1 = multiREGL(div1)
regl1.frame(() => {
regl1.clear({
color: [1, 0, 0, 1],
depth: 1
})
})
const div2 = document.createElement('div')
div2.style.width = '500px'
div2.style.height = '500px'
document.body.appendChild(div2)
const regl2 = multiREGL(div2)
regl2.frame(() => {
regl2.clear({
color: [0, 0, 1, 1],
depth: 1
})
})
var multiREGL = require('multi-regl')([options])Creates a multiplexed regl context across several div elements. options takes the same inputs as regl's constructor. It returns a procedure
multiREGL.reglA reference to the underlying regl object.
var regl = multiREGL(containerElement)Calling multiREGL with a DOM element returns a wrapped regl instance where regl.frame is overloaded to draw within the element.
Calling .destroy() on this context removes the multiregl instance.
multi-regl creates a full screen canvas over the window which is fixed to the screen resolution. Each frame all the visible
(c) 2016 Mikola Lysenko. MIT License
FAQs
Multiplex a regl context across many HTML elements
We found that multi-regl 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.