<?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: Bharath B R</title>
    <description>The latest articles on DEV Community by Bharath B R (@bharath_br_2afe865192fe9).</description>
    <link>https://dev.to/bharath_br_2afe865192fe9</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%2F2656422%2F4ce92a03-4ded-4d3a-b4e8-929e12f68bbb.png</url>
      <title>DEV Community: Bharath B R</title>
      <link>https://dev.to/bharath_br_2afe865192fe9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bharath_br_2afe865192fe9"/>
    <language>en</language>
    <item>
      <title>Why I Built InterEnv: Zero-Trust Hardware Enclave Secrets in Pure Rust</title>
      <dc:creator>Bharath B R</dc:creator>
      <pubDate>Wed, 09 Sep 2026 06:48:55 +0000</pubDate>
      <link>https://dev.to/bharath_br_2afe865192fe9/why-i-built-interenv-zero-trust-hardware-enclave-secrets-in-pure-rust-59ad</link>
      <guid>https://dev.to/bharath_br_2afe865192fe9/why-i-built-interenv-zero-trust-hardware-enclave-secrets-in-pure-rust-59ad</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foswcs89jmlsr76kllxc3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foswcs89jmlsr76kllxc3.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;br&gt;
Every developer knows the unwritten rule of software development: &lt;em&gt;"Never commit your &lt;code&gt;.env&lt;/code&gt; file to Git."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Yet, year after year, leaked &lt;code&gt;.env&lt;/code&gt; credentials remain the number one attack vector for cloud account takeovers, API key thefts, and high-stakes crypto treasury drains.&lt;/p&gt;

&lt;p&gt;A few days ago, I launched &lt;strong&gt;InterMCP&lt;/strong&gt; (a lightweight, ultra-fast Model Context Protocol engine and gateway written in pure Rust) as the first utility from the &lt;strong&gt;Interlayer Blockchain&lt;/strong&gt; lineup.&lt;/p&gt;

&lt;p&gt;Today, I am proud to announce the &lt;strong&gt;second open-source utility from the Interlayer Blockchain lineup: InterEnv (v1.0.1)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I built InterEnv from scratch in 100% pure Rust to solve a critical vulnerability that has plagued developers for over a decade: &lt;strong&gt;the dangerous persistence of plaintext secrets on local developer disks.&lt;/strong&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  The Origin: Why I Needed InterEnv for Interlayer Blockchain
&lt;/h2&gt;

&lt;p&gt;While architecting the core node infrastructure, autonomous AI agents, and validator networks for &lt;strong&gt;Interlayer Blockchain&lt;/strong&gt;, I had to confront a stark reality:&lt;/p&gt;

&lt;p&gt;Validator signing keys (&lt;code&gt;INTERLAYER_VALIDATOR_KEY&lt;/code&gt;), private keys (&lt;code&gt;ETHEREUM_PRIVATE_KEY&lt;/code&gt;), OpenAI API keys, and cloud infrastructure tokens are routinely stored in &lt;code&gt;.env&lt;/code&gt; files during development, testing, and automated agent runs.&lt;/p&gt;

&lt;p&gt;On a developer machine or validator workstation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Plaintext &lt;code&gt;.env&lt;/code&gt; files sit completely unprotected on physical storage.&lt;/strong&gt; Any rogue &lt;code&gt;npm&lt;/code&gt; or &lt;code&gt;pip&lt;/code&gt; package running a post-install script can read your project directory with standard POSIX read permissions and exfiltrate your secrets over HTTP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI coding assistants and IDE indexing tools scan your entire workspace.&lt;/strong&gt; A misconfigured prompt or indexing pipeline can easily slurp raw &lt;code&gt;.env&lt;/code&gt; files into an LLM context window.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accidental commits still happen every minute.&lt;/strong&gt; Pre-commit hooks are often skipped or forgotten, leading to catastrophic leaks on public GitHub repos.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  The False Promise of &lt;code&gt;dotenvx&lt;/code&gt; and Cloud Vaults
&lt;/h3&gt;

&lt;p&gt;When evaluating existing solutions, I found fundamental architectural compromises:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;dotenvx&lt;/code&gt;&lt;/strong&gt;: It encrypts the &lt;code&gt;.env&lt;/code&gt; file into &lt;code&gt;.env.vault&lt;/code&gt;, but stores the decryption key on the exact same hard drive in a plaintext &lt;code&gt;.env.keys&lt;/code&gt; file. If malware or an unauthorized user can read your disk, keeping the key and the locked safe in the same room provides zero real security.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud Secret Managers (1Password, Doppler, Infisical)&lt;/strong&gt;: While secure, they are cloud-locked, require expensive recurring subscriptions ($19–$39/user/month), and introduce 150ms–300ms network round-trip latencies on every local CLI command execution.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted an engine that is &lt;strong&gt;100% offline, local-first, free &amp;amp; open-source, executes in sub-millisecond native speed, and seals keys directly into silicon hardware.&lt;/strong&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  How InterEnv Works: Silicon Enclaves &amp;amp; Zero Disk Footprint
&lt;/h2&gt;

&lt;p&gt;InterEnv delegates master key security to the specialized cryptoprocessors already built into your laptop or server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ Your Plaintext .env ]
        │
        ▼  (interenv lock)
┌─────────────────────────────────────────────────────────────┐
│ 1. Generate XChaCha20-Poly1305 Master Project Key           │
│ 2. Seal Key inside Hardware Enclave (TouchID / TPM 2.0)      │
│ 3. Write encrypted `.interenv.lock` (Git-safe)              │
│ 4. DoD 5220.22-M 3-Pass Overwrite &amp;amp; Shred Plaintext .env     │
└─────────────────────────────────────────────────────────────┘
        │
        ▼
[ Physical Disk: 0 Bytes Plaintext ]
        │
        ▼  (interenv run &amp;lt;cmd&amp;gt;)
┌─────────────────────────────────────────────────────────────┐
│ 1. Request Master Key Unseal from Hardware Enclave          │
│ 2. Decrypt secrets strictly in Volatile Child RAM (&amp;lt; 1ms)   │
│ 3. Execute child process with memory-injected environment   │
│ 4. zeroize::ZeroizeOnDrop scrubs RAM buffers on exit        │
└─────────────────────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  1. Hardware Root of Trust
&lt;/h3&gt;

&lt;p&gt;Instead of saving a key file to your disk, InterEnv seals your project master key inside your host hardware:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;macOS&lt;/strong&gt;: Apple Keychain backed by the &lt;strong&gt;Apple Secure Enclave&lt;/strong&gt; with &lt;code&gt;kSecAccessControlUserPresence&lt;/code&gt; (biometric TouchID or FaceID authorization).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows&lt;/strong&gt;: Windows NCrypt (CNG) Key Storage Provider backed by hardware &lt;strong&gt;TPM 2.0&lt;/strong&gt; (&lt;code&gt;MS_PLATFORM_KEY_STORAGE_PROVIDER&lt;/code&gt;) and Windows Hello.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linux&lt;/strong&gt;: Freedesktop Secret Service over D-Bus with hardware TPM 2.0 (&lt;code&gt;tss-esapi&lt;/code&gt;) option.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Headless CI/CD&lt;/strong&gt;: Automated password-derived Key Encryption Key (KEK) using Argon2id (64MB memory cost, 3 iterations) with non-interactive flags.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. DoD 5220.22-M 3-Pass Physical Disk Shredding
&lt;/h3&gt;

&lt;p&gt;When you run &lt;code&gt;interenv lock&lt;/code&gt;, InterEnv doesn't just delete your &lt;code&gt;.env&lt;/code&gt; file:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pass 1&lt;/strong&gt;: Overwrites the entire file content with zero bytes (&lt;code&gt;0x00&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pass 2&lt;/strong&gt;: Overwrites the entire file content with ones (&lt;code&gt;0xFF&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pass 3&lt;/strong&gt;: Overwrites the entire file content with cryptographically secure pseudo-random bytes.&lt;/li&gt;
&lt;li&gt;Flushes the storage write buffer with &lt;code&gt;fsync&lt;/code&gt;, truncates the file to 0 bytes, and unlinks it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;0 bytes of plaintext remain on your physical drive.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Volatile RAM-Only Execution (&amp;lt; 1ms Latency)
&lt;/h3&gt;

&lt;p&gt;When you invoke &lt;code&gt;interenv run &amp;lt;command&amp;gt;&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The master key is retrieved from your hardware enclave.&lt;/li&gt;
&lt;li&gt;The ciphertext in &lt;code&gt;.interenv.lock&lt;/code&gt; is decrypted with &lt;strong&gt;XChaCha20-Poly1305&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Environment variables are injected strictly into the child process's volatile memory environment block.&lt;/li&gt;
&lt;li&gt;All internal memory structs implement &lt;code&gt;zeroize::ZeroizeOnDrop&lt;/code&gt;, ensuring compiler memory fences wipe the plaintext from RAM the moment the command finishes. Secrets never hit swap or temporary files.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Kernel Sandboxing &amp;amp; 1-Click Git Guard
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pre-commit protection&lt;/strong&gt;: Running &lt;code&gt;interenv hook install&lt;/code&gt; installs a zero-friction git hook that automatically rejects any commit containing unstaged or unencrypted &lt;code&gt;.env&lt;/code&gt; files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OS Sandboxing&lt;/strong&gt;: InterEnv includes options to jail child processes using Linux Seccomp BPF filters or Windows Job Objects to prevent unauthorized child processes from tampering with the host.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Architectural Comparison: Why Plaintext .env is Obsolete
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Security Vector&lt;/th&gt;
&lt;th&gt;Plaintext &lt;code&gt;.env&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;&lt;code&gt;dotenvx&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;Cloud Vaults (Doppler/1P)&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;InterEnv (Pure Rust)&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Master Key Storage&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Plaintext file on disk (&lt;code&gt;.env.keys&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Cloud Vault&lt;/td&gt;
&lt;td&gt;🛡️ &lt;strong&gt;Hardware Enclave (TouchID/TPM)&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Disk Plaintext&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Raw on disk&lt;/td&gt;
&lt;td&gt;Decrypted files exposed&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;🧹 &lt;strong&gt;ZERO (DoD 3-Pass Shredded)&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Cloud Dependency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;100% Offline&lt;/td&gt;
&lt;td&gt;100% Offline&lt;/td&gt;
&lt;td&gt;Required (Cloud-locked)&lt;/td&gt;
&lt;td&gt;⚡ &lt;strong&gt;100% Offline &amp;amp; Local-First&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Pricing&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;$19–$39/user/month&lt;/td&gt;
&lt;td&gt;🟢 &lt;strong&gt;100% Free &amp;amp; Open Source (MIT)&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Execution Speed&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Instant&lt;/td&gt;
&lt;td&gt;Slow (Node.js runtime)&lt;/td&gt;
&lt;td&gt;200ms+ (Network RTT)&lt;/td&gt;
&lt;td&gt;⚡ &lt;strong&gt;&amp;lt; 1 ms (Native Rust Engine)&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Git Protection&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;Complex Setup&lt;/td&gt;
&lt;td&gt;🛡️ &lt;strong&gt;Built-in 1-Click Git Hook&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  10-Second Quickstart
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Installation
&lt;/h3&gt;

&lt;p&gt;Install globally via your preferred package manager:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Via Cargo (Rust CLI)&lt;/span&gt;
cargo &lt;span class="nb"&gt;install &lt;/span&gt;interenv

&lt;span class="c"&gt;# Via NPM (Node.js / TS — or execute on-the-fly with zero install)&lt;/span&gt;
npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; interenv
npx interenv &lt;span class="nt"&gt;--help&lt;/span&gt;

&lt;span class="c"&gt;# Via PyPI (Python CLI &amp;amp; SDK)&lt;/span&gt;
pip &lt;span class="nb"&gt;install &lt;/span&gt;interenv

&lt;span class="c"&gt;# Via Composer (PHP / Laravel / Symfony)&lt;/span&gt;
composer require bharathcoorg/interenv

&lt;span class="c"&gt;# Via Go Modules (Go microservices)&lt;/span&gt;
go get github.com/Bharathcoorg/interenv/go/interenv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Lock &amp;amp; Shred Plaintext Secrets
&lt;/h3&gt;

&lt;p&gt;Navigate into any project containing an existing &lt;code&gt;.env&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;interenv lock
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;InterEnv binds the master key to your TouchID/TPM enclave, generates &lt;code&gt;.interenv.lock&lt;/code&gt;, and wipes the plaintext &lt;code&gt;.env&lt;/code&gt; from physical storage using DoD 5220.22-M 3-pass shredding.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Run Any Application in Volatile Memory
&lt;/h3&gt;

&lt;p&gt;Prepend &lt;code&gt;interenv run&lt;/code&gt; before your normal development commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Node.js / Next.js / Web3&lt;/span&gt;
interenv run npm run dev

&lt;span class="c"&gt;# Rust Applications &amp;amp; Nodes&lt;/span&gt;
interenv run cargo run

&lt;span class="c"&gt;# Python AI Agents&lt;/span&gt;
interenv run python agent.py

&lt;span class="c"&gt;# Docker Compose&lt;/span&gt;
interenv run docker compose up
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Edit Secrets Safely
&lt;/h3&gt;

&lt;p&gt;Need to change a key? Running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;interenv edit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;opens your default &lt;code&gt;$EDITOR&lt;/code&gt; inside a memory-backed buffer, allows you to modify your secrets, re-encrypts the file, and scrubs all temporary buffers upon exit.&lt;/p&gt;




&lt;h2&gt;
  
  
  Multi-Language SDK Support
&lt;/h2&gt;

&lt;p&gt;In addition to the standalone CLI, I have published native client SDKs so developers can read enclave-locked secrets programmatically in their applications:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🦀 &lt;strong&gt;Rust&lt;/strong&gt;: &lt;code&gt;cargo add interenv&lt;/code&gt; • &lt;a href="https://crates.io/crates/interenv" rel="noopener noreferrer"&gt;crates.io/crates/interenv&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📦 &lt;strong&gt;Node.js / TypeScript&lt;/strong&gt;: &lt;code&gt;npm install interenv&lt;/code&gt; • &lt;a href="https://www.npmjs.com/package/interenv" rel="noopener noreferrer"&gt;npmjs.com/package/interenv&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🐍 &lt;strong&gt;Python&lt;/strong&gt;: &lt;code&gt;pip install interenv&lt;/code&gt; • &lt;a href="https://pypi.org/project/interenv/" rel="noopener noreferrer"&gt;pypi.org/project/interenv/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🐘 &lt;strong&gt;PHP&lt;/strong&gt;: &lt;code&gt;composer require bharathcoorg/interenv&lt;/code&gt; • &lt;a href="https://packagist.org/packages/bharathcoorg/interenv" rel="noopener noreferrer"&gt;packagist.org/packages/bharathcoorg/interenv&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🐹 &lt;strong&gt;Go&lt;/strong&gt;: &lt;code&gt;go get github.com/Bharathcoorg/interenv/go/interenv&lt;/code&gt; • &lt;a href="https://pkg.go.dev/github.com/Bharathcoorg/interenv/go" rel="noopener noreferrer"&gt;pkg.go.dev/github.com/Bharathcoorg/interenv/go&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🐳 &lt;strong&gt;Docker Container&lt;/strong&gt;: &lt;code&gt;docker pull ghcr.io/bharathcoorg/interenv:latest&lt;/code&gt; • &lt;a href="https://github.com/Bharathcoorg/interenv/pkgs/container/interenv" rel="noopener noreferrer"&gt;ghcr.io/bharathcoorg/interenv&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Open Source for the Community
&lt;/h2&gt;

&lt;p&gt;While I originally engineered &lt;strong&gt;InterMCP&lt;/strong&gt; and &lt;strong&gt;InterEnv&lt;/strong&gt; for the &lt;strong&gt;Interlayer Blockchain&lt;/strong&gt; ecosystem, secret hygiene is a universal challenge faced by every software engineer, cloud architect, and AI agent builder.&lt;/p&gt;

&lt;p&gt;InterEnv is 100% open-source under the permissive &lt;strong&gt;MIT License&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I warmly invite you to try it out, review the codebase, and contribute:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;⭐️ &lt;strong&gt;Star the repo on GitHub&lt;/strong&gt;: &lt;a href="https://github.com/Bharathcoorg/interenv" rel="noopener noreferrer"&gt;github.com/Bharathcoorg/interenv&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🐛 &lt;strong&gt;Submit issues &amp;amp; PRs&lt;/strong&gt;: &lt;a href="https://github.com/Bharathcoorg/interenv/issues" rel="noopener noreferrer"&gt;github.com/Bharathcoorg/interenv/issues&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s kill plaintext &lt;code&gt;.env&lt;/code&gt; files once and for all.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>security</category>
      <category>opensource</category>
      <category>web3</category>
    </item>
    <item>
      <title>Why I Built a Pure-Rust Model Context Protocol Engine for Interlayer &amp; Liteverse (&lt;3.8MB RAM, 457k ops/s)</title>
      <dc:creator>Bharath B R</dc:creator>
      <pubDate>Sat, 05 Sep 2026 10:42:36 +0000</pubDate>
      <link>https://dev.to/bharath_br_2afe865192fe9/why-i-built-a-pure-rust-model-context-protocol-engine-for-interlayer-liteverse-38mb-ram-457k-424p</link>
      <guid>https://dev.to/bharath_br_2afe865192fe9/why-i-built-a-pure-rust-model-context-protocol-engine-for-interlayer-liteverse-38mb-ram-457k-424p</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4eo3rll6six0n5cmqq8y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4eo3rll6six0n5cmqq8y.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
Anthropic's Model Context Protocol (MCP) is rapidly becoming the open standard for connecting autonomous AI agents to external tools, databases, and host systems.&lt;/p&gt;

&lt;p&gt;However, if you have tried running several reference MCP servers concurrently, you have likely felt the resource bloat: each tool server spins up a heavy Node.js or Python runtime eating 100MB to 200MB of RAM each and adding 400ms+ cold-boot latency.&lt;/p&gt;

&lt;p&gt;As the creator of &lt;strong&gt;Interlayer Blockchain&lt;/strong&gt; and &lt;strong&gt;Liteverse Network&lt;/strong&gt;, this overhead was a critical blocker. Here is why we built &lt;strong&gt;InterMCP (v0.2.1)&lt;/strong&gt; from scratch in pure Rust, and why we are open-sourcing it for the entire community.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Origin: Why Interlayer &amp;amp; Liteverse Needed a Rust MCP Engine
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Liteverse DePIN Edge &amp;amp; Watcher Nodes:&lt;/strong&gt; Liteverse coordinates client-side compute across resource-constrained edge machines and watcher nodes. Requiring a 150MB+ Node.js runtime just to execute basic tool calls completely choked low-spec host nodes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Interlayer Blockchain Agent Latency:&lt;/strong&gt; Autonomous agents executing on-chain transactions and interacting with multi-VM smart contracts require sub-millisecond tool dispatch. A 400ms+ cold-boot lag and 45ms per-dispatch overhead in JS/Python created unacceptable delays during block validation and agent coordination.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Host Security &amp;amp; Prompt Injection:&lt;/strong&gt; Autonomous agents can be manipulated via prompt injection to attempt directory traversal. We needed kernel-level path canonicalization (SafeFS) to enforce strict filesystem jail bounds before any tool execution occurs.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  What InterMCP Delivers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cold Boot Latency:&lt;/strong&gt; 0.4 ms (1,000x faster than Node.js)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory Footprint:&lt;/strong&gt; &amp;lt; 3.8 MB RSS (40x lighter than the 162MB reference SDK)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dispatch Latency:&lt;/strong&gt; 2.98 µs in-process dispatch (457,042 ops/s throughput)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SafeFS Sandboxing:&lt;/strong&gt; Restricts file reading and searching to explicit allowlisted workspaces, rejecting symlink escapes and path traversal exploits&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Runtime Dependencies:&lt;/strong&gt; Compiles into a single, lightweight static binary&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  1-Click Multi-IDE Setup
&lt;/h2&gt;

&lt;p&gt;To make setup completely frictionless, running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx intermcp setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or with Cargo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cargo &lt;span class="nb"&gt;install &lt;/span&gt;intermcp &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; intermcp setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;automatically detects your active IDEs (Google Antigravity, Cursor, VS Code, Kilo Code, and Claude Desktop), creates atomic configuration backups, and merges the gateway instantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open Source for the Community
&lt;/h2&gt;

&lt;p&gt;While originally engineered to solve bottlenecks on Interlayer Blockchain and Liteverse Network, every developer building AI agents faces this exact same resource problem.&lt;/p&gt;

&lt;p&gt;InterMCP is dual-licensed under &lt;strong&gt;MIT / Apache 2.0&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Crates.io:&lt;/strong&gt; &lt;a href="https://crates.io/crates/intermcp" rel="noopener noreferrer"&gt;https://crates.io/crates/intermcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;npm:&lt;/strong&gt; &lt;a href="https://www.npmjs.com/package/intermcp" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/intermcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PyPI:&lt;/strong&gt; &lt;a href="https://pypi.org/project/intermcp" rel="noopener noreferrer"&gt;https://pypi.org/project/intermcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/Bharathcoorg/intermcp" rel="noopener noreferrer"&gt;https://github.com/Bharathcoorg/intermcp&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Benchmarks are reproducible locally via &lt;code&gt;intermcp bench --iterations 5000&lt;/code&gt;. Feedback, stars, and PRs are warmly welcome!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>rust</category>
      <category>mcp</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
