<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: dgriebel2014</title>
    <description>The latest articles on DEV Community by dgriebel2014 (@dgriebel2014).</description>
    <link>https://dev.to/dgriebel2014</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1065615%2Fde819e53-b2d1-493d-9107-102da8f85693.png</url>
      <title>DEV Community: dgriebel2014</title>
      <link>https://dev.to/dgriebel2014</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dgriebel2014"/>
    <language>en</language>
    <item>
      <title>GPU-Accelerated Indexed DB Replacement Using WebGPU in JavaScript</title>
      <dc:creator>dgriebel2014</dc:creator>
      <pubDate>Sat, 18 Jan 2025 03:21:41 +0000</pubDate>
      <link>https://dev.to/dgriebel2014/gpu-accelerated-indexed-db-replacement-using-webgpu-in-javascript-3kla</link>
      <guid>https://dev.to/dgriebel2014/gpu-accelerated-indexed-db-replacement-using-webgpu-in-javascript-3kla</guid>
      <description>&lt;h1&gt;
  
  
  VideoDB: A GPU-Accelerated Data Storage Library
&lt;/h1&gt;

&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;I’d like to share a personal project called &lt;strong&gt;VideoDB&lt;/strong&gt;. It’s a small TypeScript/JavaScript library that uses &lt;strong&gt;WebGPU&lt;/strong&gt; to store data directly in GPU memory (VRAM) instead of the usual system memory. Think of it like a lightweight &lt;strong&gt;IndexedDB&lt;/strong&gt; for the browser, but GPU-accelerated.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Points
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;High Throughput&lt;/strong&gt;: With 1KB rows, add operations can reach ~500K rows/sec (~500 MB/s) depending on the data type. Batched reads can exceed ~200K gets/sec.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supports JSON &amp;amp; Typed Arrays&lt;/strong&gt;: You can store arbitrary JSON or binary data, including typed arrays.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deferred Writes&lt;/strong&gt;: Writes are batched to minimize overhead.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I’ve also put together a demo page that shows how to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create stores&lt;/li&gt;
&lt;li&gt;Add data&lt;/li&gt;
&lt;li&gt;Fetch data&lt;/li&gt;
&lt;li&gt;Run stress tests&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The page includes full class documentation, usage examples, and features like importing JSON datasets from &lt;a href="https://data.gov" rel="noopener noreferrer"&gt;data.gov&lt;/a&gt;, loading them into your GPU, and viewing them in a grid with paging.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dgriebel2014.github.io/VideoDBProject/" rel="noopener noreferrer"&gt;&lt;strong&gt;Check out the demo here!&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for taking a look! This is a free tool with no advertising or "premium" membership levels.&lt;/p&gt;

</description>
      <category>indexeddb</category>
      <category>gpu</category>
      <category>typescript</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
