Added NodeJS Demo.

This commit is contained in:
2025-11-18 11:45:56 +01:00
parent 4b8bd4366a
commit b3ab6bd314
69 changed files with 2531 additions and 4220223 deletions

View File

@@ -43,6 +43,40 @@ Just GPU work.
### Installation
#### Browser demos
node server.js
then browse to localhost:3030/demos/
#### Nodejs demo
first install. in this project root.
```html
npm i
```
To start the demo:
Open the directory
```command
cd ./demos/NodeJS
```
then execute:
```command
node index.js
```
#### How to use the code
Browser:
```html
@@ -52,7 +86,7 @@ Browser:
Node.js (requires headless or windowed WebGPU runtime):
```bash
npm install webgpu-framework
npm install
```
```js
@@ -207,18 +241,3 @@ Leeuwarden, Netherlands
Portfolio: [https://kajdijkstra.com](https://kajdijkstra.com)
Email: [kajdijkstra@protonmail.com](mailto:kajdijkstra@protonmail.com)
---
Would you like me to:
✔ Add diagrams illustrating compute → sort → grid hashing pipeline
✔ Add screenshots from your particle simulation
✔ Add performance benchmarks
✔ Add a “Why use this instead of raw WebGPU?” section
✔ Publish this to npm with clean package layout
Also — should we link this repo from your CV under **Projects** with a short bullet like:
> *High-level WebGPU framework enabling real-time GPU compute + rendering in browser and native runtimes with a minimal API*
If you're ready, I can push this README into your Gitea repository automatically.