{"id":13523316,"url":"https://github.com/maierfelix/webgpu","last_synced_at":"2025-04-09T23:15:23.105Z","repository":{"id":44768919,"uuid":"207878527","full_name":"maierfelix/webgpu","owner":"maierfelix","description":"WebGPU for Node [Deprecated, Unmaintained]","archived":false,"fork":false,"pushed_at":"2022-01-26T00:32:19.000Z","size":652579,"stargazers_count":246,"open_issues_count":25,"forks_count":17,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-09T23:15:17.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maierfelix.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}},"created_at":"2019-09-11T18:21:25.000Z","updated_at":"2025-03-08T20:39:58.000Z","dependencies_parsed_at":"2022-09-05T02:50:30.739Z","dependency_job_id":null,"html_url":"https://github.com/maierfelix/webgpu","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maierfelix%2Fwebgpu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maierfelix%2Fwebgpu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maierfelix%2Fwebgpu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maierfelix%2Fwebgpu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maierfelix","download_url":"https://codeload.github.com/maierfelix/webgpu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125591,"owners_count":21051770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-08-01T06:00:58.814Z","updated_at":"2025-04-09T23:15:23.082Z","avatar_url":"https://github.com/maierfelix.png","language":"C","funding_links":[],"categories":["Libraries"],"sub_categories":["Try out WebGPU"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cc\u003eThis is a WebGPU API for native JavaScript, based on a \u003ca href=\"https://github.com/maierfelix/dawn-ray-tracing\"\u003eFork\u003c/a\u003e of Chromium's \u003ca href=\"https://dawn.googlesource.com/dawn/\"\u003eDawn Project\u003c/a\u003e.\n  \u003c/c\u003e\n  \u003cbr/\u003e\n  \u003cbr/\u003e\n  \u003ca href=\"https://www.npmjs.com/package/webgpu\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/webgpu.svg?style=flat-square\" alt=\"NPM Version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"//www.npmjs.com/package/webgpu\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dt/webgpu.svg?style=flat-square\" alt=\"NPM Downloads\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### Platforms\n\nThis project comes with pre-built N-API binaries for the following platforms:\n\n|       OS      |     Status    |\n| ------------- | ------------- |\n| \u003cimg src=\"https://i.imgur.com/FF3Ssp6.png\" alt=\"\" height=\"16px\"\u003e  Windows       | ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ✔ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌|\n| \u003cimg src=\"https://i.imgur.com/bkBCY7V.png\" alt=\"\" height=\"16px\"\u003e  Linux         | ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌✔ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌|\n| \u003cimg src=\"https://i.imgur.com/iPt4GHz.png\" alt=\"\" height=\"16px\"\u003e  MacOS         | ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌✔ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌ ‌‌|\n\n### Installation\n\n````\nnpm install webgpu\n````\n\n## Building\n\nYou have to build [dawn](https://dawn.googlesource.com/dawn) as a shared library.\nAfter building dawn, create a file named `PATH_TO_DAWN` in this project's root directory, containing the **absolute** path to dawn.\n\nIn case you have multiple python installations, you might want to use the `--script-executable` gn flag to instruct *gn* to use the python 2.x installation.\n\nAfter you have generated and built dawn, you can now build this project by running:\n````\nnpm run all --dawnversion=0.0.1\n````\n\n### Windows\n\nFollow dawn's initial setup instructions, but instead of the standard build, do the following:\n\nTo generate the project as a shared library using MSVS:\n````\ngn gen out/Shared --ide=vs --target_cpu=\"x64\" --args=\"is_component_build=true is_debug=false is_clang=false\"\n````\nIt's important that you build using MSVS and **not** clang, as otherwise you will potentially get linking errors.\n\nTo build the project run:\n````\nninja -C out/Shared\n````\n\nIn case python wasn't found:\n - Use `where python` to get the location of your python installation\n - Repoint it by running e.g. `npm config set python C:\\depot_tools\\python.bat`\n\n### Linux \n\nFollow dawn's initial setup instructions, but instead of the standard build, do the following:\n\nTo generate the project as a shared library:\n````\ngn gen out/Shared --target_cpu=\"x64\" --args=\"is_component_build=true is_debug=false is_clang=true\"\n````\n\nTo build the project run:\n````\nninja -C out/Shared\n````\n\n### MacOS\n\nFollow dawn's initial setup instructions, but instead of the standard build, do the following:\n\nTo generate the project as a shared library:\n````\ngn gen out/Shared --target_cpu=\"x64\" --args=\"is_component_build=true is_debug=false is_clang=true\"\n````\n\nTo build the project run:\n````\nninja -C out/Shared\n````\n\n## Examples\n````\ncd examples \u0026 cd ..\nnode --experimental-modules examples/interactive-triangle.mjs\n````\n\n## TODOs\n - Add CTS\n - Remove libshaderc from build?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaierfelix%2Fwebgpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaierfelix%2Fwebgpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaierfelix%2Fwebgpu/lists"}