npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@node-3d/cuda

v1.0.0

Published

CUDA bindings for Node.js

Downloads

184

Readme

@node-3d/cuda

This is a part of Node3D project.

NPM Lint Test Cpplint

CUDA bindings for Node.js.

npm install @node-3d/cuda

This package exposes the CUDA driver API pieces used by Node3D examples:

Prebuilt addon binaries: Windows x64/ARM64, Linux x64/ARM64. Standard Windows x64 and Linux builds target CUDA 12.9. Windows ARM64 builds target CUDA 13.4 because NVIDIA introduced Windows ARM64 target support there. CUDA toolkit/runtime and an NVIDIA driver are still required on the host system.

Platform Notes

CUDA does not work on macOS. NVIDIA does not ship a current macOS CUDA runtime, so there is no macOS addon binary and CUDA calls are not expected to succeed there.

The package can still be installed and imported on macOS for cross-platform codebases that share one module graph across Windows, Linux, and macOS. On macOS, basic import and device-count queries are safe, but CUDA operations throw a clear unsupported-platform error. Branch before constructing CUDA objects or allocating memory:

import { getDeviceCount, Device } from '@node-3d/cuda';

if (getDeviceCount() > 0) {
	const device = new Device(0);
	console.log(device.name);
}
  • Device, Ctx, Modulex, Function, and Mem native wrappers.
  • Memory helpers such as memAlloc, memAllocPitch, and memVBO.
  • Module loading and runtime compilation helpers.
  • launch and prepareArguments for typed kernel argument setup.
  • Selected Thrust helpers used by compute-heavy examples.
import { Ctx, Device, getDeviceCount, memAlloc } from '@node-3d/cuda';

console.log('CUDA devices:', getDeviceCount());

const device = new Device(0);
const context = new Ctx(0, device);
const memory = memAlloc(1024);

memory.free();
context.destroy();

See examples/basic.ts, examples/memory-copy.ts, and examples/vector-add.ts for complete runnable examples. CUDA toolkit/runtime availability is still required on the host system.

Binary Origin

Release archives are built by this repository's public GitHub Actions workflows.

Attestations: https://github.com/node-3d/cuda/attestations

To verify a downloaded archive:

gh release download <tag> -R node-3d/cuda -p <platform>.gz
gh attestation verify <platform>.gz -R node-3d/cuda