<?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: Tocken Vault</title>
    <description>The latest articles on DEV Community by Tocken Vault (@tocken_vault_05a2741800e5).</description>
    <link>https://dev.to/tocken_vault_05a2741800e5</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%2F4215720%2F5fe70d0f-e53d-42c8-b534-e9cedb62ac51.png</url>
      <title>DEV Community: Tocken Vault</title>
      <link>https://dev.to/tocken_vault_05a2741800e5</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tocken_vault_05a2741800e5"/>
    <language>en</language>
    <item>
      <title>TokenVault – 512KB local-first LLM cost shield &amp; reversible PII vault (Python/Node/Go/Wasm)</title>
      <dc:creator>Tocken Vault</dc:creator>
      <pubDate>Thu, 29 Oct 2026 16:32:33 +0000</pubDate>
      <link>https://dev.to/tocken_vault_05a2741800e5/tokenvault-512kb-local-first-llm-cost-shield-reversible-pii-vault-pythonnodegowasm-p9g</link>
      <guid>https://dev.to/tocken_vault_05a2741800e5/tokenvault-512kb-local-first-llm-cost-shield-reversible-pii-vault-pythonnodegowasm-p9g</guid>
      <description>&lt;p&gt;Hey HN, I'm Somesh, a 17-year-old builder from India.&lt;/p&gt;

&lt;p&gt;While building multi-turn AI apps, I kept running into two problems with existing LLM gateways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cloud proxy gateways force you to route every prompt through a third-party server (adding 80–200ms of network latency and creating a PII compliance nightmare).&lt;/li&gt;
&lt;li&gt;Most teams silently lose 30–50% of their OpenAI/Anthropic bill to broken 1,024-token prompt cache prefixes (putting dynamic timestamps/UUIDs at token 0), stuck Period-1/Period-2 agent retry loops, and re-sending massive tool/vision payloads across turns.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So I built TokenVault (&lt;a href="https://www.tockenvault.com" rel="noopener noreferrer"&gt;https://www.tockenvault.com&lt;/a&gt;) using a 5-language specialized stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rust -&amp;gt; WebAssembly (&lt;code&gt;Wasm&lt;/code&gt;) binary kernel in the browser for zero-GC 64-bit FNV-1a 256-token Radix block fingerprinting, Luhn mod-10 card checks, and Shannon entropy secret scanning.&lt;/li&gt;
&lt;li&gt;Native single-file Python SDK (&lt;code&gt;token_vault.py&lt;/code&gt; hooking &lt;code&gt;httpx&lt;/code&gt;) and Node/Edge SDK (&lt;code&gt;token-vault.js&lt;/code&gt; hooking &lt;code&gt;globalThis.fetch&lt;/code&gt;) bounded strictly to a 512 KB in-memory ring buffer.&lt;/li&gt;
&lt;li&gt;Go streaming gateway (&lt;code&gt;token_vault_gateway.go&lt;/code&gt;) with a 12s TTFT zombie-stream watchdog and bidirectional protocol failover (OpenAI &amp;lt;-&amp;gt; Anthropic &amp;lt;-&amp;gt; Gemini).&lt;/li&gt;
&lt;li&gt;Reversible Ephemeral PII Vault: masks credit cards, emails, DB URIs, and JWTs outbound (&lt;code&gt;&amp;lt;TV_CARD_1&amp;gt;&lt;/code&gt;) and re-hydrates them inbound (including across split-token SSE streams).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can test the client-side forensic log auditor in the browser without signing up (just drop any OpenAI/Anthropic/LangSmith JSONL or CSV trace to get a &lt;code&gt;ghost-leak-optimized.config.json&lt;/code&gt;), or run &lt;code&gt;node token-vault.js --self-test&lt;/code&gt; locally.&lt;/p&gt;

&lt;p&gt;Would love brutal technical feedback from the HN community on the architecture!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>rust</category>
      <category>security</category>
    </item>
  </channel>
</rss>
