
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
@plasius/gpu-lock-free-queue
Advanced tools
WebGPU lock-free queue assets for flat and DAG-ready GPU job scheduling.
A WebGPU lock-free queue package that now ships both a flat MPMC ring queue and a DAG-ready scheduler asset with dependency-aware ready lanes.
Apache-2.0. ESM + CJS builds. WGSL assets are published in dist/.
npm install @plasius/gpu-lock-free-queue
import { loadQueueWgsl, queueWgslUrl } from "@plasius/gpu-lock-free-queue";
const shaderCode = await loadQueueWgsl();
// Or, fetch the WGSL file directly:
// const shaderCode = await fetch(queueWgslUrl).then((res) => res.text());
import {
createDagJobGraph,
loadDagQueueWgsl,
loadSchedulerWgsl,
} from "@plasius/gpu-lock-free-queue";
const graph = createDagJobGraph([
{ id: "g-buffer", priority: 4 },
{ id: "shadow", priority: 3 },
{ id: "lighting", dependencies: ["g-buffer", "shadow"], priority: 2 },
]);
console.log(graph.roots);
console.log(graph.priorityLanes);
const dagSchedulerWgsl = await loadDagQueueWgsl();
const selectedWgsl = await loadSchedulerWgsl({ mode: graph.mode });
queue.wgsl: flat lock-free ring queue, compatible with the original worker runtime.dag-queue.wgsl: dependency-aware scheduler asset with multi-root publishing,
priority ready lanes, and downstream unlock hooks via complete_job(...).Both assets remain lock-free. Workers pop runnable jobs without blocking, and DAG jobs unlock downstream work via atomics when their dependency count reaches zero.
The JS graph helper is the canonical preflight contract for DAG metadata. It returns:
jobIds for stable upload orderroots for the initial runnable settopologicalOrder for validation and planningpriorityLanes so callers can size ready queues per priority bucketdependencies, dependents, dependencyCount,
unresolvedDependencyCount, and dependentCountBindings are:
@binding(0) queue header: { head, tail, capacity, mask }@binding(1) slot array (Slot with seq, job_type, payload_offset, payload_words)@binding(2) input jobs (array<JobMeta> with job_type, payload_offset, payload_words)@binding(3) output jobs (array<JobMeta> with job_type, payload_offset, payload_words)@binding(4) input payloads (array<u32>, payload data referenced by input_jobs.payload_offset)@binding(5) output payloads (array<u32>, length job_count * output_stride)@binding(6) status flags (array<u32>, length job_count)@binding(7) params (Params with job_count, output_stride)output_stride is the per-job output stride (u32 words) used when copying payloads into output_payloads.
Run the demo server from the package root:
cd gpu-lock-free-queue
npm run demo
Then open http://localhost:8000/demo/.
The demo mounts the shared @plasius/gpu-shared 3D harbor surface and uses the
queue package's DAG graph to drive visible scene behavior. Root jobs, priority
lanes, dependency joins, and stress-mode graph expansion all stay visible in
context while @plasius/gpu-lock-free-queue continues to own the scheduling
contract instead of a package-local 2D validation surface.
npm run build emits dist/index.js, dist/index.cjs, dist/queue.wgsl, and
dist/dag-queue.wgsl.
npm run test:unit
npm run test:coverage
npm run test:e2e
npm run lint
npm run typecheck
npm run test:coverage
npm run build
npm run pack:check
demo/index.html: Loads the demo.demo/main.js: Shared 3D harbor validation scene driven by DAG queue roots,
priority lanes, and dependency joins.src/queue.wgsl: Flat lock-free queue implementation.src/dag-queue.wgsl: DAG-ready scheduler implementation.src/index.js: Package entry point for loading scheduler assets and normalizing DAG graphs.docs/adrs/adr-0004-multi-root-dag-ready-queues.mddocs/tdrs/tdr-0001-dag-scheduler-contract.mddocs/design/dag-scheduler-design.mdPayloads are variable-length chunks stored in a caller-managed buffer. Each job specifies job_type, payload_offset, and payload_words in input_jobs; dequeue copies payloads from input_payloads into output_payloads using output_stride and mirrors the metadata into output_jobs. If you need f32, store bitcast<u32>(value) and reinterpret on the consumer side.
FAQs
WebGPU lock-free queue assets for flat and DAG-ready GPU job scheduling.
The npm package @plasius/gpu-lock-free-queue receives a total of 298 weekly downloads. As such, @plasius/gpu-lock-free-queue popularity was classified as not popular.
We found that @plasius/gpu-lock-free-queue demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.