{"id":51985749,"url":"https://github.com/node-3d/cuda","last_synced_at":"2026-07-30T19:01:29.345Z","repository":{"id":80320656,"uuid":"242407248","full_name":"node-3d/cuda","owner":"node-3d","description":"CUDA for Node.js","archived":false,"fork":false,"pushed_at":"2026-07-25T18:55:53.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-07-25T20:17:33.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-3d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-02-22T20:29:05.000Z","updated_at":"2026-07-25T18:55:59.000Z","dependencies_parsed_at":"2023-06-05T08:45:16.657Z","dependency_job_id":null,"html_url":"https://github.com/node-3d/cuda","commit_stats":null,"previous_names":["node-3d/cuda"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/node-3d/cuda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-3d%2Fcuda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-3d%2Fcuda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-3d%2Fcuda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-3d%2Fcuda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-3d","download_url":"https://codeload.github.com/node-3d/cuda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-3d%2Fcuda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36088336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-30T02:00:05.956Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-30T19:01:28.446Z","updated_at":"2026-07-30T19:01:29.315Z","avatar_url":"https://github.com/node-3d.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @node-3d/cuda\n\nThis is a part of [Node3D](https://github.com/node-3d) project.\n\n[![NPM](https://badge.fury.io/js/@node-3d%2Fcuda.svg)](https://badge.fury.io/js/@node-3d%2Fcuda)\n[![Lint](https://github.com/node-3d/cuda/actions/workflows/lint.yml/badge.svg)](https://github.com/node-3d/cuda/actions/workflows/lint.yml)\n[![Test](https://github.com/node-3d/cuda/actions/workflows/test.yml/badge.svg)](https://github.com/node-3d/cuda/actions/workflows/test.yml)\n[![Cpplint](https://github.com/node-3d/cuda/actions/workflows/cpplint.yml/badge.svg)](https://github.com/node-3d/cuda/actions/workflows/cpplint.yml)\n\nCUDA bindings for Node.js.\n\n```bash\nnpm install @node-3d/cuda\n```\n\n\n\nThis package exposes the CUDA driver API pieces used by Node3D examples:\n\nPrebuilt addon binaries: Windows x64/ARM64, Linux x64/ARM64. Standard Windows\nx64 and Linux builds target CUDA 12.9. Windows ARM64 builds target CUDA 13.4\nbecause NVIDIA introduced Windows ARM64 target support there. CUDA toolkit/runtime\nand an NVIDIA driver are still required on the host system.\n\n## Platform Notes\n\nCUDA does not work on macOS. NVIDIA does not ship a current macOS CUDA runtime, so\nthere is no macOS addon binary and CUDA calls are not expected to succeed there.\n\nThe package can still be installed and imported on macOS for cross-platform codebases\nthat share one module graph across Windows, Linux, and macOS. On macOS, basic import and\ndevice-count queries are safe, but CUDA operations throw a clear unsupported-platform\nerror. Branch before constructing CUDA objects or allocating memory:\n\n```ts\nimport { getDeviceCount, Device } from '@node-3d/cuda';\n\nif (getDeviceCount() \u003e 0) {\n\tconst device = new Device(0);\n\tconsole.log(device.name);\n}\n```\n\n* `Device`, `Ctx`, `Modulex`, `Function`, and `Mem` native wrappers.\n* Memory helpers such as `memAlloc`, `memAllocPitch`, and `memVBO`.\n* Module loading and runtime compilation helpers.\n* `launch` and `prepareArguments` for typed kernel argument setup.\n* Selected Thrust helpers used by compute-heavy examples.\n\n```ts\nimport { Ctx, Device, getDeviceCount, memAlloc } from '@node-3d/cuda';\n\nconsole.log('CUDA devices:', getDeviceCount());\n\nconst device = new Device(0);\nconst context = new Ctx(0, device);\nconst memory = memAlloc(1024);\n\nmemory.free();\ncontext.destroy();\n```\n\nSee `examples/basic.ts`, `examples/memory-copy.ts`, and `examples/vector-add.ts`\nfor complete runnable examples. CUDA toolkit/runtime availability is still required\non the host system.\n\n## Binary Origin\n\nRelease archives are built by this repository's public GitHub Actions workflows.\n\nAttestations: https://github.com/node-3d/cuda/attestations\n\nTo verify a downloaded archive:\n\n```bash\ngh release download \u003ctag\u003e -R node-3d/cuda -p \u003cplatform\u003e.gz\ngh attestation verify \u003cplatform\u003e.gz -R node-3d/cuda\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-3d%2Fcuda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-3d%2Fcuda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-3d%2Fcuda/lists"}