JavaScript GPU

Open-source JavaScript projects categorized as GPU

Top 12 JavaScript GPU Projects

  • gpu.js

    GPU Accelerated JavaScript

    Project mention: Show HN: Shadeup – A language that makes WebGPU easier | | 2024-01-17

    Very cool project.

    I learned WebGL three years ago but before I dove into the underlying concepts I used GPU.js [1] to quickly prototype my project. Eventually, the abstraction prevented necessary performance optimizations so I switched to vanilla GLSL and these vanilla GLSL "shaders" were initially ejected from GPU.js.

    Writing JS code then looking at the generated WebGPU output is a great way to get familiar with WebGPU. Thanks for this.


  • WebGL-Fluid-Simulation

    Play with fluids in your browser (works even on mobile)

    Project mention: That is some extremely impressive water physics, especialy for a place you only visit once. How did they do it? (MAJOR SPOILERS FOR 4.2 WORLD QUEST) | /r/Genshin_Impact | 2023-12-02

    It kinda reminds me of this fluid simulation website. The site is about a computer graphics technique that simulates the motion and appearance of fluids such as water, smoke or fire. You can use your mouse to move around the screen to see the simulation, also can change how the fluid simulation works by adjusting the sliders in the control panel next to it.

  • Onboard AI

    ChatGPT with full context of any GitHub repo. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at

  • scalene

    Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals

    Project mention: Memray – A Memory Profiler for Python | | 2024-02-10

    I collected a list of profilers (also memory profilers, also specifically for Python) here:

    Currently I actually need a Python memory profiler, because I want to figure out whether there is some memory leak in my application (PyTorch based training script), and where exactly (in this case, it's not a problem of GPU memory, but CPU memory).

    I tried Scalene (, which seems to be powerful, but somehow the output it gives me is not useful at all? It doesn't really give me a flamegraph, or a list of the top lines with memory allocations, but instead it gives me a listing of all source code lines, and prints some (very sparse) information on each line. So I need to search through that listing now by hand to find the spots? Maybe I just don't know how to use it properly.

    I tried Memray, but first ran into an issue (, but after using some workaround, it worked now. I get a flamegraph out, but it doesn't really seem accurate? After a while, there don't seem to be any new memory allocations at all anymore, and I don't quite trust that this is correct.

    There is also Austin (, which I also wanted to try (have not yet).

    Somehow this experience so far was very disappointing.

    (Side node, I debugged some very strange memory allocation behavior of Python before, where all local variables were kept around after an exception, even though I made sure there is no reference anymore to the exception object, to the traceback, etc, and I even called frame.clear() for all frames to really clear it. It turns out, frame.f_locals will create another copy of all the local variables, and the exception object and all the locals in the other frame still stay alive until you access frame.f_locals again. At that point, it will sync the f_locals again with the real (fast) locals, and then it can finally free everything. It was quite annoying to find the source of this problem and to find workarounds for it.

  • fieldplay

    A vector field explorer

  • shader-park-core

    A JavaScript library for creating real-time 2D and 3D shaders. JS -> Shader.

    Project mention: Painting with Math: A Gentle Study of Raymarching | | 2023-09-15

    For anyone interested in playing around with SDFs, my friend and I made this open source library to make working with them more efficient, and you can write shaders using javascript

  • generate-subtitles

    Generate transcripts for audio and video content with a user friendly UI, powered by Open AI's Whisper with automatic translations and download videos automatically with yt-dlp integration

    Project mention: Is there any plug in that creates subtitle file out of video files? | /r/ChatGPT | 2023-10-18

    They generate .SRT files, and you can view their repository there.

  • BestBuy-GPU-Bot

    BestBuy Bot is an Add to cart and Auto Checkout Bot. This auto buying bot can search the item repeatedly on the ITEM page using one keyword. Once the desired item is available it can add to cart and checkout very fast. This auto purchasing BestBuy Bot can work on Firefox Browser so it can run in all Operating Systems. It can run for multiple items simultaneously.

    Project mention: Scalpers bought out the collectors in less than a minute on best buy | /r/tearsofthekingdom | 2023-04-25
  • WorkOS

    The modern API for authentication & user identity. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • gpu_poor

    Calculate token/s & GPU memory requirement for any LLM. Supports llama.cpp/ggml/bnb/QLoRA quantization

    Project mention: Ask HN: Cheapest way to run local LLMs? | | 2023-11-26

    Here's a simple calculator for LLM inference requirements:

  • selkies-gstreamer

    Open-Source Low-Latency Linux WebRTC HTML5 Remote Desktop / GStreamer WebRTC Components of Selkies

    Project mention: Selkies-Gstreamer: Open-Source Low-Latency Linux WebRTC HTML5 Remote Desktop | | 2023-10-30
  • react-native-gcanvas

    react native canvas based on gpu opengl glsl GCanvas -- A lightweight cross-platform graphics rendering engine. (超轻量的跨平台图形引擎)

  • chitchat

    A simple LLM chat front-end that makes it easy to find, download, and mess around with models on your local machine. (by clarkmcc)

    Project mention: Jina AI Launches First Open-Source 8K Text Embedding, Rivaling OpenAI | | 2023-10-25

    Pretty much! Right now it only supports md, pdf, txt, and html, but supporting additional formats is trivial:

  • ConwaysGameOfLife

    A super fast GPU and more specifically WebGL based version of Conway's game of life. (by RandomGamingDev)

    Project mention: Random Conway's Game of Life implementation | /r/p5js | 2023-05-11
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-02-10.

JavaScript GPU related posts


What are some of the best open-source GPU projects in JavaScript? This list will help you:

Project Stars
1 gpu.js 14,887
2 WebGL-Fluid-Simulation 14,088
3 scalene 10,924
4 fieldplay 1,161
5 shader-park-core 685
6 generate-subtitles 662
7 BestBuy-GPU-Bot 607
8 gpu_poor 543
9 selkies-gstreamer 192
10 react-native-gcanvas 186
11 chitchat 58
12 ConwaysGameOfLife 0
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.