<?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: JohnMark Banisilon</title>
    <description>The latest articles on DEV Community by JohnMark Banisilon (@johnmark_banisilon_10cf02).</description>
    <link>https://dev.to/johnmark_banisilon_10cf02</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3704141%2F5601c92f-26f0-40b5-a35e-5b5a9bd95e59.jpeg</url>
      <title>DEV Community: JohnMark Banisilon</title>
      <link>https://dev.to/johnmark_banisilon_10cf02</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/johnmark_banisilon_10cf02"/>
    <language>en</language>
    <item>
      <title>I got tired of simple browser caches, so I built one in Rust</title>
      <dc:creator>JohnMark Banisilon</dc:creator>
      <pubDate>Tue, 03 Nov 2026 08:26:04 +0000</pubDate>
      <link>https://dev.to/johnmark_banisilon_10cf02/i-got-tired-of-simple-browser-caches-so-i-built-one-in-rust-31je</link>
      <guid>https://dev.to/johnmark_banisilon_10cf02/i-got-tired-of-simple-browser-caches-so-i-built-one-in-rust-31je</guid>
      <description>&lt;p&gt;A while ago, I kept running into the same problem.&lt;/p&gt;

&lt;p&gt;I wanted a client-side cache that felt solid enough for real apps — not just a quick &lt;code&gt;Map&lt;/code&gt; wrapper, and not something locked into one data-fetching library.&lt;/p&gt;

&lt;p&gt;Most options were either:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;too minimal&lt;/li&gt;
&lt;li&gt;too framework-specific&lt;/li&gt;
&lt;li&gt;or not very predictable once the app got bigger&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I tried a different approach.&lt;/p&gt;

&lt;p&gt;Instead of keeping everything in JavaScript, I moved the cache engine into &lt;strong&gt;Rust&lt;/strong&gt; and compiled it to &lt;strong&gt;WebAssembly&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That project became &lt;strong&gt;Blaze Cache&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea
&lt;/h2&gt;

&lt;p&gt;The goal was not to replace JavaScript.&lt;/p&gt;

&lt;p&gt;The goal was to put the performance-sensitive part in a tighter core:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;storage&lt;/li&gt;
&lt;li&gt;eviction&lt;/li&gt;
&lt;li&gt;TTL tracking&lt;/li&gt;
&lt;li&gt;tag indexing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then keep the TypeScript layer thin for browser integration and adapters.&lt;/p&gt;

&lt;p&gt;After initialization, reads and writes are synchronous. No Promises on the hot path.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it became
&lt;/h2&gt;

&lt;p&gt;Blaze Cache now includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SIEVE eviction&lt;/li&gt;
&lt;li&gt;TTL support&lt;/li&gt;
&lt;li&gt;tag-based invalidation&lt;/li&gt;
&lt;li&gt;optional IndexedDB persistence&lt;/li&gt;
&lt;li&gt;a typed event system&lt;/li&gt;
&lt;li&gt;adapters for Axios, fetch, TanStack Query, and SWR&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The design is simple:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;one core, many adapters&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Whether you use React Query, SWR, Axios, or plain fetch, they can share the same cache engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this was interesting to me
&lt;/h2&gt;

&lt;p&gt;I wanted to see whether a Rust/Wasm core could make browser caching feel more structured and predictable, while still being practical for normal frontend work.&lt;/p&gt;

&lt;p&gt;It also forced a lot of useful design questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What belongs in Wasm?&lt;/li&gt;
&lt;li&gt;What should stay in JS?&lt;/li&gt;
&lt;li&gt;How do you keep the API typed and ergonomic?&lt;/li&gt;
&lt;li&gt;How do adapters share one engine without fighting each other?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Current status
&lt;/h2&gt;

&lt;p&gt;Blaze Cache is at &lt;strong&gt;v0.2.5&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It’s still early, but the foundation is there:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a real Rust core&lt;/li&gt;
&lt;li&gt;TypeScript bindings&lt;/li&gt;
&lt;li&gt;persistence&lt;/li&gt;
&lt;li&gt;multiple integrations&lt;/li&gt;
&lt;li&gt;docs&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/blaze-cache/blaze-cache" rel="noopener noreferrer"&gt;https://github.com/blaze-cache/blaze-cache&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Docs: &lt;a href="https://blaze-cache.github.io/docs/" rel="noopener noreferrer"&gt;https://blaze-cache.github.io/docs/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you work with frontend performance, Wasm, or library design, I’d love feedback.&lt;/p&gt;

</description>
      <category>webassembly</category>
      <category>rust</category>
      <category>javascript</category>
      <category>typescript</category>
    </item>
    <item>
      <title>I built a client-side cache in Rust and compiled it to WebAssembly</title>
      <dc:creator>JohnMark Banisilon</dc:creator>
      <pubDate>Sun, 01 Nov 2026 08:13:05 +0000</pubDate>
      <link>https://dev.to/johnmark_banisilon_10cf02/i-built-a-client-side-cache-in-rust-and-compiled-it-to-webassembly-3b0i</link>
      <guid>https://dev.to/johnmark_banisilon_10cf02/i-built-a-client-side-cache-in-rust-and-compiled-it-to-webassembly-3b0i</guid>
      <description>&lt;p&gt;I built &lt;strong&gt;Blaze Cache&lt;/strong&gt;, a high-performance client-side caching library written in Rust and compiled to WebAssembly.&lt;/p&gt;

&lt;p&gt;The goal was simple: make browser caching fast, predictable, and easy to integrate — without turning it into a heavy framework.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Wasm?
&lt;/h2&gt;

&lt;p&gt;Most browser caches are pure JavaScript. That works, but I wanted:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;More predictable performance&lt;/li&gt;
&lt;li&gt;A cleaner core data structure&lt;/li&gt;
&lt;li&gt;A single engine that multiple adapters could share&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the hot path (storage, TTL, tags, eviction) runs in Rust → Wasm. After initialization, &lt;code&gt;get&lt;/code&gt; and &lt;code&gt;set&lt;/code&gt; are fully synchronous.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it supports
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Synchronous reads and writes after init&lt;/li&gt;
&lt;li&gt;SIEVE eviction&lt;/li&gt;
&lt;li&gt;TTL + tag-based invalidation&lt;/li&gt;
&lt;li&gt;Optional IndexedDB persistence&lt;/li&gt;
&lt;li&gt;Typed event system&lt;/li&gt;
&lt;li&gt;Adapters for:

&lt;ul&gt;
&lt;li&gt;Axios&lt;/li&gt;
&lt;li&gt;fetch&lt;/li&gt;
&lt;li&gt;TanStack Query&lt;/li&gt;
&lt;li&gt;SWR&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
ts
import { createCache } from '@blaze-cache/core'

const cache = await createCache({ capacity: 1000 })

cache.set('user:42', { name: 'Ada' }, { ttlMs: 30_000, tags: ['user'] })
cache.get('user:42')
cache.invalidateTags('user')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>webassembly</category>
      <category>rust</category>
      <category>javascript</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
