<?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: Yash Kumar Saini</title>
    <description>The latest articles on DEV Community by Yash Kumar Saini (@yashksaini).</description>
    <link>https://dev.to/yashksaini</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%2F1242333%2F27bdd497-8c93-4290-a901-94eec3759056.jpeg</url>
      <title>DEV Community: Yash Kumar Saini</title>
      <link>https://dev.to/yashksaini</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yashksaini"/>
    <language>en</language>
    <item>
      <title>Glint: type and speak with your eyebrows and your breath</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Sun, 22 Nov 2026 09:56:42 +0000</pubDate>
      <link>https://dev.to/yashksaini/glint-type-and-speak-with-your-eyebrows-and-your-breath-569o</link>
      <guid>https://dev.to/yashksaini/glint-type-and-speak-with-your-eyebrows-and-your-breath-569o</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/presage-2026-11-04"&gt;Presage SmartSpectra SDK Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Glint&lt;/strong&gt; is an on-screen keyboard and phrase board for people who can't reliably use their hands or voice: people living with ALS, a high spinal cord injury, a stroke, or simply a hospital bed. It needs no special hardware and no account. A laptop webcam is enough.&lt;/p&gt;

&lt;p&gt;A highlight steps across the board by itself. You need two gestures:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Raise your eyebrows&lt;/strong&gt; → select the highlighted row, then the highlighted key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Breathe out slowly&lt;/strong&gt; (about 3 seconds) → the sentence is spoken aloud and copied to the clipboard.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The top row holds quick phrases ("Yes", "No", "I need water", "I need help" …) that are spoken the moment you select them. Letters are ordered by how often they're used in English, not QWERTY, because with scanning every position costs time. A carer can edit the phrases and the scan speed in Settings. A physical switch or a keyboard also works (&lt;code&gt;Space&lt;/code&gt; / &lt;code&gt;Enter&lt;/code&gt;), since many people already own one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;New: Send to chat.&lt;/strong&gt; In Settings you can pick WhatsApp, Telegram or email, plus an optional recipient. The board then gets a Send key (for example "WhatsApp ↗") at the end of the last letter row. Selecting it opens that app with your message filled in. Glint does not send anything by itself: you, or a carer, still press Send in WhatsApp, Telegram or your mail app. With no recipient set, you pick the chat or address there.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fprsbju8mf2wpsk0r9h3t.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fprsbju8mf2wpsk0r9h3t.gif" alt="The Glint board in replay mode: rows light up one at a time, a row is chosen, H is chosen, then I, and &amp;quot;hi&amp;quot; appears at the top" width="760" height="578"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Replay mode: a real recorded session drives the signals; the selects here are switch presses. Glint is version 0.1. It has been tested on one recorded session of one person and has not yet been tried by someone who needs switch access. On 22 November I ran the finished app live on my own webcam: eyebrow raises spoke "I need water", "I need help" and "Thank you" and typed "hi" (with a few mis-selects), but the slow-exhale gesture did not fire in that session, so breath-to-speak is so far proven only on the recorded session. Send has been tested only in replay and unit tests, never with a real message. The &lt;a href="https://yashksaini-coder.github.io/glint/docs/scope" rel="noopener noreferrer"&gt;Scope page&lt;/a&gt; says exactly what has and has not been tested.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/nlU4XPKDkNo" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Recorded live on my own webcam: eyebrow raises select "I need water", "I need help" and "Thank you", and Glint speaks them; letters are typed one raise at a time (shown at 2× speed). Breath-to-speak appears as a diagram, because it did not fire in this take.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;
        yashksaini-coder
      &lt;/a&gt; / &lt;a href="https://github.com/yashksaini-coder/glint" rel="noopener noreferrer"&gt;
        glint
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Type and speak with your eyebrows and your breath — webcam switch access built on Presage SmartSpectra
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/yashksaini-coder/glint/main/build/icon.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyashksaini-coder%2Fglint%2Fmain%2Fbuild%2Ficon.png" width="112" alt="Glint icon: a raised eyebrow over a glint"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Glint&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;b&gt;Type and speak with your eyebrows and your breath.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://github.com/yashksaini-coder/glint#watch-the-demo" rel="noopener noreferrer"&gt;Demo video&lt;/a&gt; ·
  &lt;a href="https://github.com/yashksaini-coder/glint/releases/latest" rel="noopener noreferrer"&gt;Download&lt;/a&gt; ·
  &lt;a href="https://github.com/yashksaini-coder/glint#how-you-use-it" rel="noopener noreferrer"&gt;How it works&lt;/a&gt; ·
  &lt;a href="https://github.com/yashksaini-coder/glint#privacy-and-consent" rel="noopener noreferrer"&gt;Privacy&lt;/a&gt; ·
  &lt;a href="https://github.com/yashksaini-coder/glint#run" rel="noopener noreferrer"&gt;Run from source&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;A webcam switch-access keyboard for people who can't reliably use their hands or voice, built on the &lt;a href="https://smartspectra.presagetech.com/docs/nodejs" rel="nofollow noopener noreferrer"&gt;Presage SmartSpectra&lt;/a&gt; Node SDK. No special hardware, no Glint account, and video never leaves your computer.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Watch the demo&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;&lt;a href="https://youtu.be/nlU4XPKDkNo" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyashksaini-coder%2Fglint%2Fmain%2Fsite%2Fpublic%2Fmedia%2Fglint-demo-poster.jpg" alt="Glint demo: &amp;quot;I need water&amp;quot; selected with a raised eyebrow and spoken aloud, live on a real webcam. Click to play the 88-second video."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://youtu.be/nlU4XPKDkNo" rel="nofollow noopener noreferrer"&gt;▶ Watch on YouTube&lt;/a&gt;&lt;/strong&gt; · &lt;a href="https://yashksaini-coder.github.io/glint/media/glint-demo.mp4" rel="nofollow noopener noreferrer"&gt;play the file directly&lt;/a&gt;: live on a real webcam, eyebrow raises select phrases ("I need water", "I need help", "Thank you") and Glint speaks them aloud, then letters are typed one raise at a time (shown at 2× speed). Breath-to-speak is shown as a diagram: it has been tested on a recorded session, and did not fire in this live take. The music is an original chiptune generated in code.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;How you use it&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/yashksaini-coder/glint/main/docs/img/board.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyashksaini-coder%2Fglint%2Fmain%2Fdocs%2Fimg%2Fboard.gif" alt="Replay mode: rows light up in turn, a row is chosen, then H, then I, and &amp;quot;hi&amp;quot; appears"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A highlight steps through the board on its own. You…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/yashksaini-coder/glint" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Judges, no key or camera needed:&lt;/strong&gt; choose &lt;strong&gt;Try a recorded session&lt;/strong&gt; on the first screen. It replays a real session (numbers only, no video) through the same gesture detectors the camera path uses, so you can scan, type and speak with &lt;code&gt;Space&lt;/code&gt; and &lt;code&gt;Enter&lt;/code&gt;, without a Presage key or a webcam. To try Send, first pick a target in Settings; selecting the Send key then opens that app with the text filled in, and nothing is sent until you press Send there. A live session needs your own free Presage API key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Download:&lt;/strong&gt; &lt;a href="https://github.com/yashksaini-coder/glint/releases/latest" rel="noopener noreferrer"&gt;latest release&lt;/a&gt;: Linux AppImage and Windows installer, built by CI, including Send to chat. The Windows build has been compiled in CI but not yet run on a Windows machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;From source:&lt;/strong&gt; &lt;code&gt;npm install&lt;/code&gt;, put your Presage key in &lt;code&gt;.env&lt;/code&gt;, then &lt;code&gt;npm start&lt;/code&gt;. Full setup is in the README and on the &lt;a href="https://yashksaini-coder.github.io/glint/" rel="noopener noreferrer"&gt;docs site&lt;/a&gt;, which also covers gestures, privacy and how each detector works, with charts from the real recording.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Electron + plain TypeScript, bundled with esbuild, no UI framework. 16 unit tests cover the detectors (run against the recorded session), the scanning board, settings cleaning and the Send links. An end-to-end smoke test drives the packaged Linux app (unpacked build) through the Chrome DevTools Protocol in replay mode on every CI run.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Responds to Human Signals
&lt;/h2&gt;

&lt;p&gt;Glint requests breathing, pulse rate and the face bundle from &lt;code&gt;@smartspectra/node-sdk&lt;/code&gt; 3.5.0 (the renderer SDK, on a MediaStream that Glint owns):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="n"&gt;sdk&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;SmartSpectraSDK&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;enableTelemetry&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;telemetry&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// off unless the user turns it on&lt;/span&gt;
  &lt;span class="c1"&gt;// Only what Glint uses. cardioMetrics would also pull the BP-trace and HRV models.&lt;/span&gt;
  &lt;span class="n"&gt;requestedMetrics&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;breathingMetrics&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;MetricType&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;PULSE_RATE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;faceMetrics&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;sdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'validationStatus'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_ts&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hint&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;ev&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;validation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nc"&gt;ValidationCode&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;kOk&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;nameOf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hint&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;sdk&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'metrics'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Metrics&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toObject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;decodeMetrics&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;longs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;defaults&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nf"&gt;extract&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;ev&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sample&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// → brow ratio, breathing trace, talking, pulse&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&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%2Fbi6kxa9ul1wjgyc6wy2l.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%2Fbi6kxa9ul1wjgyc6wy2l.png" alt="Diagram: live webcam frames go through the SDK metrics events and extract() into samples; a replay of recordings/guided.jsonl feeds the same samples; samples drive browDetector (select), exhaleDetector (speak) and on-screen-only traces and pulse" width="800" height="318"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Live and replay feed the same samples into the same detectors, so what is tested is what runs.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;What Glint does with it, in real time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;face.landmarks&lt;/code&gt; (478 points)&lt;/td&gt;
&lt;td&gt;Brow-to-eye distance ÷ eye spacing. A smoothed rise of about 28%, held for 200 ms, means &lt;strong&gt;select&lt;/strong&gt;. The user has to relax before the next one.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;breathing.upperTrace&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Rises on inhale, falls on exhale (measured, not assumed). A gentle fall of ≥ 6 units for ≥ 2.5 s at ≤ 5 units/s means &lt;strong&gt;speak&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;face.talking&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Talking in more than half of the last second blocks a commit, because speech moves the chest too.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;validationStatus&lt;/code&gt; + hint&lt;/td&gt;
&lt;td&gt;Scanning pauses and shows the SDK's hint verbatim, such as "Increase light on face", or a hint when more than one face is visible.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cardio.pulseRate&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shown as "pulse (display only)" so the user can see they're being read. It drives nothing.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The exhale detector is a small pure function, so it runs the same way on live data, replays and tests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;drop&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;peak&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;ema&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;drop&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fallHysteresis&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;fallStart&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;fallStart&lt;/span&gt; &lt;span class="o"&gt;??=&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;fallS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;fallStart&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mf"&gt;1e6&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;drop&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;minDrop&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;fallS&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;minMs&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;drop&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;fallS&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;o&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;maxSlope&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nf"&gt;talking&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;armed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;trough&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ema&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// wait for the next inhale before another commit&lt;/span&gt;
&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The Send key is selected with the eyebrows like any other key. The renderer only passes the text: the main process reads the target and recipient from the settings file, builds the link, refuses anything that isn't a WhatsApp, Telegram or &lt;code&gt;mailto:&lt;/code&gt; link, and only then hands it to the operating system.&lt;/p&gt;

&lt;h3&gt;
  
  
  Measured first, then designed
&lt;/h3&gt;

&lt;p&gt;With 100 free credits (1 credit = 30 s of measurement, so 50 minutes in all), I couldn't afford to tune by trial and error. So I built a &lt;strong&gt;guided capture&lt;/strong&gt; into the first prototype. On-screen cues ("CLOSE EYES &amp;amp; HOLD", "RAISE EYEBROWS", "SLOW BREATH OUT") were written into the recording with timestamps on the SDK's own clock. One 2.5-minute session gave labelled ground truth for every gesture.&lt;/p&gt;

&lt;p&gt;The results changed the design:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The plan was long blink = select. It didn't work.&lt;/strong&gt; Across five deliberate 1-second eye closures, &lt;code&gt;face.blinking&lt;/code&gt; was true for 1 frame out of 4,096. The landmarks never showed a closed eye either: the eye-aspect ratio never fell below 75% of baseline. I wear thick-framed glasses and the room was dim, which is exactly the real-world setting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Eyebrow raises showed up every time.&lt;/strong&gt; The smoothed brow ratio rose by about a third (31.6–33.5%) on each cued raise. So select moved to the eyebrows, and back became a &lt;code&gt;↩&lt;/code&gt; key on the board.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Breathing worked even before the SDK marked it stable:&lt;/strong&gt; on 3 of 3 cued exhales the trace rose 2.4–7.9 on the inhale and fell 6–15 on the exhale.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;face.talking&lt;/code&gt; fired on 20% of frames while I sat silent&lt;/strong&gt;, so it's averaged over a second rather than trusted frame by frame.&lt;/li&gt;
&lt;/ul&gt;

&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%2Fr4q6if6awy16769vydzs.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%2Fr4q6if6awy16769vydzs.png" alt="Dot plot of peak smoothed brow ratio per cue: five 1-second eye closures and five quick blinks all peak between 3% and 7%, well under the +28% fire line (0 of 5 fired each); three eyebrow raises peak at 31.6 to 33.5% (2 of 3 fired)" width="800" height="325"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Every cue from the recorded session. Eye closures and blinks barely move the brow ratio. Eyebrow raises clear the fire line every time.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The thresholds were grid-searched (&lt;code&gt;tools/sweep.ts&lt;/code&gt;) against those cues. The &lt;a href="https://yashksaini-coder.github.io/glint/docs/concepts/eyebrow-detector" rel="noopener noreferrer"&gt;eyebrow&lt;/a&gt; and &lt;a href="https://yashksaini-coder.github.io/glint/docs/concepts/exhale-detector" rel="noopener noreferrer"&gt;exhale&lt;/a&gt; pages chart the recording run through the real detectors. On that recording, &lt;strong&gt;eyebrows caught 2 of 3 raises with 0 false selects.&lt;/strong&gt; The miss happened because I didn't relax between raises, and requiring a relax is deliberate, so one long raise can't select twice. &lt;strong&gt;Exhale caught 3 of 3 with none during speech.&lt;/strong&gt; It also fired twice on what look like genuine slow breaths out at rest, so commit does nothing when there's no text.&lt;/p&gt;

&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%2Fa050awvnyvuiw45xjm4p.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%2Fa050awvnyvuiw45xjm4p.png" alt="Line chart of the smoothed brow ratio from 72 to 90 seconds: raises 1 and 2 cross the +28% fire line and fire at 76.3 s and 80.4 s; raise 3 peaks at +31.6% while the detector is not yet re-armed, so it does not fire; it re-arms at 86.2 s" width="800" height="384"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The eyebrow detector on the recording. Raise 3 is the miss: the brow never dropped below the re-arm line after raise 2.&lt;/em&gt;&lt;/p&gt;

&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%2Forsx4xvs4cy85vlx7yod.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%2Forsx4xvs4cy85vlx7yod.png" alt="Line chart of the smoothed breathing trace from 30 to 138 seconds: the detector fires once in each of the three cued exhale windows, never during the talking window, and twice with no cue, at 35.9 s and 132.5 s" width="799" height="394"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The exhale detector on the same recording: 3 of 3 cued exhales, nothing while talking, and two uncued fires on slow breaths at rest.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Two SDK findings along the way
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The renderer SDK locks the camera's exposure, white balance and focus to &lt;code&gt;manual&lt;/code&gt; and never restores them.&lt;/strong&gt; On Linux (V4L2) that setting outlives the process, so the next session, in any app, starts almost black (&lt;code&gt;kTooDark&lt;/code&gt;). Glint works around it by owning the &lt;code&gt;MediaStream&lt;/code&gt;: it switches the camera to auto before every session and back to auto before releasing it. Reported upstream as &lt;a href="https://github.com/Presage-Security/SmartSpectra/issues/19" rel="noopener noreferrer"&gt;SmartSpectra#19&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;expressions-inference&lt;/code&gt; briefly returned HTTP 503 "Model not available".&lt;/strong&gt; Requesting only the metrics I need (&lt;code&gt;PULSE_RATE&lt;/code&gt;, not the whole cardio bundle) at least removed the blood-pressure model from the failure path. Someone else had already reported it, so I added our data to &lt;a href="https://github.com/Presage-Security/SmartSpectra/issues/18#issuecomment-6815296129" rel="noopener noreferrer"&gt;SmartSpectra#18&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;I'm entering both.&lt;/p&gt;

&lt;h3&gt;
  
  
  Most Creative or Delightful Use
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What inspired it:&lt;/strong&gt; the SmartSpectra SDK is built to read breathing and pulse. I wondered whether those same signals could be deliberate, so the face and chest become the input device.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What makes it unexpected:&lt;/strong&gt; Glint turns vitals sensing into a two-gesture keyboard. Your eyebrows click and your breath presses Enter. The design itself came from the data: blinking was the obvious choice and the recording rejected it, so the eyebrows got the job.&lt;/p&gt;

&lt;h3&gt;
  
  
  Best Thoughtful Real-World Use
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The need:&lt;/strong&gt; not everyone who can't use their hands or voice has dedicated switch or eye-gaze hardware at hand, and without it they can't easily say "I need water". Glint gives basic switch access on a Linux or Windows laptop with a webcam.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who it's for:&lt;/strong&gt; people living with ALS, a high spinal cord injury or a stroke, and the carers and family beside them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it's designed for them:&lt;/strong&gt; only two gestures, both tuned on a real, imperfect setup (glasses, dim room). Quick phrases speak with a single select. Letters are ordered by frequency to cut scan steps. One long raise can't select twice. A carer can change the scan speed and phrases. A physical switch works too, and Send to chat lets someone message family on WhatsApp, Telegram or email from the same board, while a person still confirms each message in that app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Consent and Data Handling
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Consent first, every session.&lt;/strong&gt; The camera can only be started from the consent screen, which says what is read and what is kept. It is released on Stop, Esc, any error that ends the session, or closing the app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only the person at the screen.&lt;/strong&gt; If the SDK reports more than one face, Glint pauses. There is no hidden or background capture.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Video never leaves the device and is never written to disk.&lt;/strong&gt; It's processed locally by the SDK.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nothing you type or say is stored.&lt;/strong&gt; Spoken text is copied to the clipboard. It stays there, readable by other apps, until you copy something else.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sharing happens only through Send, and only when you choose it.&lt;/strong&gt; If you set up &lt;em&gt;Send to&lt;/em&gt; and select the Send key, Glint opens WhatsApp (&lt;code&gt;wa.me&lt;/code&gt;), Telegram (&lt;code&gt;t.me/share&lt;/code&gt;) or your mail app (&lt;code&gt;mailto:&lt;/code&gt;) with the text filled in, capped at 1,000 characters. For WhatsApp and Telegram the text is part of the link, so it reaches their servers as soon as the link opens in your browser, even before you press Send. For email it stays in your mail app until you press Send. That app's own privacy terms then apply. A Telegram message also carries a link to the Glint docs, because Telegram's share link needs a URL.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The only stored file&lt;/strong&gt; is &lt;code&gt;settings.json&lt;/code&gt; (scan speed, phrases, telemetry choice, Send target and optional recipient) in the app's user-data folder. It's checked and cleaned in the main process, and kept until you press &lt;strong&gt;Forget everything&lt;/strong&gt;, which deletes it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SDK telemetry is off by default.&lt;/strong&gt; If turned on, the SDK sends session summaries and readiness reports. They can include device and OS details, performance figures and free-text diagnostics such as file paths. They are authenticated, so they can be linked to your account or device, and they have no automatic expiry (Presage's privacy policy applies). They never contain frames or vitals. Glint passes &lt;code&gt;enableTelemetry: false&lt;/code&gt; unless the user ticks the box in Settings. See &lt;a href="https://smartspectra.presagetech.com/docs/telemetry-and-privacy" rel="noopener noreferrer"&gt;Presage telemetry &amp;amp; privacy&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No LLM Insights, no AI service, no analytics, no Glint account.&lt;/strong&gt; Glint's only network traffic is the SDK's own authenticated session. Send hands a link to your browser or mail app; Glint makes no request of its own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not a medical device.&lt;/strong&gt; Pulse is displayed only, and Glint makes no health judgements.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The test recording&lt;/strong&gt; in the repo holds only derived numbers (brow ratio, breathing trace, talking flags), no images and no full face mesh.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Built solo, with Claude Code as my pair programmer: SDK exploration, the guided-capture analysis, detector tuning, packaging and CI. The dead ends are in the repo history too, like the blink plan that the data rejected.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>presagechallenge</category>
      <category>electron</category>
      <category>node</category>
    </item>
    <item>
      <title>Devcon 8 Mumbai: Four Days at Ethereum's Biggest Builder Gathering</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Sat, 14 Nov 2026 06:59:34 +0000</pubDate>
      <link>https://dev.to/yashksaini/devcon-8-mumbai-four-days-at-ethereums-biggest-builder-gathering-3jn</link>
      <guid>https://dev.to/yashksaini/devcon-8-mumbai-four-days-at-ethereums-biggest-builder-gathering-3jn</guid>
      <description>&lt;p&gt;A little late in sharing this, but I wanted to capture all the details as best as I can.&lt;/p&gt;

&lt;p&gt;I spent 3–6 November at Devcon 8 in Mumbai as part of the libp2p crew at the Resilient Networking Hub, and I showed &lt;a href="https://luminar-teal.vercel.app/" rel="noopener noreferrer"&gt;Luminar&lt;/a&gt;, my GossipSub simulator, to people who work on the real thing.&lt;/p&gt;

&lt;p&gt;This was the first Devcon held in India. I came down from a countryside village in Uttarakhand, so for once the biggest Ethereum gathering of the year was a domestic trip for me, not a visa application.&lt;/p&gt;

&lt;p&gt;This post covers what the conference was, the talks that set the agenda, what happened at our hub, how the Luminar demo went, and what I am taking home.&lt;/p&gt;

&lt;p&gt;I first arrived on 2 Nov at the venue and connected with some friends of a co-exhibitor of our Hub. It was great to see people with whom I've been working over the past year. Got two different badges: one, a simple Dev Attendee, and another for exhibitors for Hubs who are presenting. &lt;/p&gt;

&lt;h2&gt;
  
  
  Devcon 8 at a glance
&lt;/h2&gt;

&lt;p&gt;Devcon is the Ethereum Foundation's conference for the people who build the protocol and everything around it. The 2026 edition ran for four days in one venue, the Jio World Centre in Bandra Kurla Complex.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Dates&lt;/td&gt;
&lt;td&gt;3–6 November 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Venue&lt;/td&gt;
&lt;td&gt;Jio World Centre, BKC, Mumbai&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Programme&lt;/td&gt;
&lt;td&gt;928 sessions across main stages and Community Hubs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Busiest days&lt;/td&gt;
&lt;td&gt;Day 2 and Day 3, 283 sessions each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tracks&lt;/td&gt;
&lt;td&gt;9: Core Protocol, Security, Privacy &amp;amp; Consent, Applied Cryptography, Permissionless Networks, Open &amp;amp; Verifiable Stack, Users/Builders/Agents, Rights/Freedoms/Governance, Futures Worth Building&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Community Hubs&lt;/td&gt;
&lt;td&gt;18 community-run spaces, each with its own schedule&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The hubs are what made it feel different from a normal conference. Each one was a room run by a community: P2P Networking, Resilient Networking, Security, Privacy, EIP, Agentic, India, Open Source, DeSci, Open Hardware and more. You could spend a whole day in one hub and never see a main stage.&lt;/p&gt;

&lt;p&gt;The full programme is in the &lt;a href="https://app.devcon.org/" rel="noopener noreferrer"&gt;Devcon app&lt;/a&gt;, and every session is going up on the &lt;a href="https://archive.devcon.org/" rel="noopener noreferrer"&gt;Devcon Archive&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four days, as they happened
&lt;/h2&gt;

&lt;p&gt;I posted from the floor all week. The posts are embedded below in the order I wrote them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Day 1, Tuesday 3 November: opening and the first Network Lab
&lt;/h3&gt;

&lt;p&gt;The opening ceremony filled the Main Stage from 10:10, then five keynotes ran back to back until noon. Our hub had been open since 09:00 with "Resilient Networks from Zero", an intro to peer identity, discovery, transports and secure connections.&lt;/p&gt;

&lt;p&gt;I was on two sessions that day, both at the Resilient Networking Hub:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;11:30, Maintainer Meet-up and Network Lab 101.&lt;/strong&gt; An open Q&amp;amp;A where maintainers introduced their projects. I shared the slot with Daniel Thompson, Shouki Tsuda, Sumanjeet and Soham Bhoir.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;17:00, Maintainer Meet-up and Network Lab.&lt;/strong&gt; The hands-on follow-up: open research questions and experiments run together with whoever walked in.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2117658112203296880-80" src="https://platform.twitter.com/embed/Tweet.html?id=2117658112203296880"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2117658112203296880-80');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2117658112203296880&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2117659138935406686-427" src="https://platform.twitter.com/embed/Tweet.html?id=2117659138935406686"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2117659138935406686-427');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2117659138935406686&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  Day 2, Wednesday 4 November: ETHIndia day
&lt;/h3&gt;

&lt;p&gt;Day 2 was the heaviest day on the schedule. ETHIndia ran as a one-day conference inside Devcon on the Community Led Stage, opening with Vitalik Buterin in conversation with Siddharth Shetty. Core Protocol talks took over Lotus Stage 2, and our hub ran workshops on post-quantum P2P migration and verifiable agent receipts.&lt;/p&gt;

&lt;p&gt;I also explored a little as well at different booths, gathered some memorable items like stickers and flyers so I don't forget what I took interest in, and can later see their work after Devcon is over.&lt;/p&gt;

&lt;h3&gt;
  
  
  Day 3, Thursday 5 November
&lt;/h3&gt;

&lt;p&gt;The official Day 3 recap led with post-quantum Ethereum, formal verification, and a Tor AMA with Roger Dingledine.&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2118265540804514110-243" src="https://platform.twitter.com/embed/Tweet.html?id=2118265540804514110"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2118265540804514110-243');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2118265540804514110&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2118303250441273483-813" src="https://platform.twitter.com/embed/Tweet.html?id=2118303250441273483"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2118303250441273483-813');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2118303250441273483&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2118384695239176465-444" src="https://platform.twitter.com/embed/Tweet.html?id=2118384695239176465"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2118384695239176465-444');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2118384695239176465&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2118389299968389607-110" src="https://platform.twitter.com/embed/Tweet.html?id=2118389299968389607"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2118389299968389607-110');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2118389299968389607&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h3&gt;
  
  
  Day 4, Friday 6 November: closing
&lt;/h3&gt;

&lt;p&gt;The last day was the lightest, 169 sessions, and most of it was goodbyes and "send me the repo" conversations.&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2118579684585931020-450" src="https://platform.twitter.com/embed/Tweet.html?id=2118579684585931020"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2118579684585931020-450');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2118579684585931020&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2118715303563825478-890" src="https://platform.twitter.com/embed/Tweet.html?id=2118715303563825478"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2118715303563825478-890');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2118715303563825478&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h2&gt;
  
  
  The talks that set the agenda
&lt;/h2&gt;

&lt;p&gt;Five themes ran through the programme: post-quantum migration, privacy by default, a faster L1, agents that pay, and security in the age of AI. Almost every session I can name fits one of them.&lt;/p&gt;

&lt;h3&gt;
  
  
  The opening keynotes
&lt;/h3&gt;

&lt;p&gt;Day 1's Main Stage block set the tone for the week:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Keynote&lt;/th&gt;
&lt;th&gt;Speaker&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The Open Secure and Verifiable Half to a Brighter Future&lt;/td&gt;
&lt;td&gt;Vitalik Buterin&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sanctuary, Together&lt;/td&gt;
&lt;td&gt;Audrey Tang&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Post-Quantum Transition&lt;/td&gt;
&lt;td&gt;Justin Drake, Kev&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reducing the Trust Surface&lt;/td&gt;
&lt;td&gt;Derek Sorensen, Mooly Sagiv&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;End-to-End Privacy&lt;/td&gt;
&lt;td&gt;Nico, Luca Donno&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Vitalik's keynote made the case for building technology that is open, secure and verifiable. Later that afternoon he and Audrey Tang took audience questions on civic AI and whether agents can be safe in the open.&lt;/p&gt;

&lt;h3&gt;
  
  
  Post-quantum is now a roadmap item
&lt;/h3&gt;

&lt;p&gt;Justin Drake and Kev laid out Ethereum's post-quantum transition from the Main Stage, and Drake followed with a full PQ Q&amp;amp;A on Day 2. The topic reached every layer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Getting to Lean Ethereum" framed the path as two roadmaps that must converge, not one hard fork.&lt;/li&gt;
&lt;li&gt;The P2P Networking Hub ran "PQ, zk and PQDS: what's the impact on P2P".&lt;/li&gt;
&lt;li&gt;Our hub ran a workshop on migrating Ethereum's P2P layer to post-quantum cryptography.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For anyone working on libp2p, this is the part to watch. Bigger signatures and new handshakes land on the networking layer first.&lt;/p&gt;

&lt;h3&gt;
  
  
  A faster, bigger L1
&lt;/h3&gt;

&lt;p&gt;Core Protocol talks were about speed and scale:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Glamsterdam.&lt;/strong&gt; The EIP Hub covered the gas limit going from 60M to 200M and the repricing work behind it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fast finality.&lt;/strong&gt; "From 16 Minutes to Seconds" and the Fast Finality update showed decoupled consensus moving from idea to spec.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fast confirmation.&lt;/strong&gt; The Fast Confirmation Rule targets 13-second confirmations for flows that do not need full finality.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FOCIL.&lt;/strong&gt; Inclusion lists for censorship resistance had lightning talks, an EPF implementation in Lighthouse, and a roundtable at the P2P Networking Hub.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Privacy by default
&lt;/h3&gt;

&lt;p&gt;Privacy &amp;amp; Consent had its own track and a full afternoon on Lotus Stage 1. "Kohaku: privacy for everyone, by default" showed light clients and privacy protocols built into the wallet. "Paths to a Private L1" and "Encrypt the Mempool" pushed the same idea down into the protocol.&lt;/p&gt;

&lt;h3&gt;
  
  
  Agents that pay
&lt;/h3&gt;

&lt;p&gt;The Agentic Hub ran a packed schedule all four days. x402, ERC-8004 and ERC-8183 came up in almost every slot, and the honest takes were the best ones: registration works, reputation is the hard part, and real usage is smaller than the headlines.&lt;/p&gt;

&lt;h3&gt;
  
  
  Security in the age of AI
&lt;/h3&gt;

&lt;p&gt;A panel with Vitalik, Mooly Sagiv and others asked how to secure Ethereum when attackers and auditors both have agents. Workshops went hands-on: a prompt-injection lab for AI pipelines, and a Solidity CTF you could enter as a human, a human plus AI, or a fully autonomous agent.&lt;/p&gt;

&lt;h3&gt;
  
  
  The India angle
&lt;/h3&gt;

&lt;p&gt;ETHIndia's day inside Devcon covered policy, institutions and tokenisation in India. Sandeep Nailwal spoke on open financial rails for the country, and GM Vidit Gujrathi played blindfold chess against two players at once on the ETHIndia stage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Home base: the Resilient Networking Hub
&lt;/h2&gt;

&lt;p&gt;I spent most of my time at the Resilient Networking Hub, the libp2p-led room that Manu Sheel Gupta put together. I was one of the maintainers on its schedule, and it is the reason I was in Mumbai at all.&lt;/p&gt;

&lt;p&gt;The hub asked one question for four days: what makes a network resilient? The sessions answered it from very different angles.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Session&lt;/th&gt;
&lt;th&gt;Who&lt;/th&gt;
&lt;th&gt;Angle&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Resilient Networks from Zero&lt;/td&gt;
&lt;td&gt;Manu Sheel Gupta and the hub team&lt;/td&gt;
&lt;td&gt;Peer identity, discovery, transports, secure connections&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What Makes a Network Resilient?&lt;/td&gt;
&lt;td&gt;Miglė Rakitaitė, Manu Sheel Gupta, Steven Mih and others&lt;/td&gt;
&lt;td&gt;Research roundtable on connectivity, trust, failure and recovery&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Formal Verification for Decentralized Systems&lt;/td&gt;
&lt;td&gt;Banri Yanahama, Ryosuke Kaga&lt;/td&gt;
&lt;td&gt;Reasoning about protocol correctness&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ethereum's Post-Quantum P2P Migration&lt;/td&gt;
&lt;td&gt;Shouki Tsuda, Ryosuke Kaga&lt;/td&gt;
&lt;td&gt;Protocol challenges and implementation paths&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Verifiable Agent Actions and Trustworthy Receipts&lt;/td&gt;
&lt;td&gt;Steven Mih, Banri Yanahama&lt;/td&gt;
&lt;td&gt;Independently verifiable evidence for what agents do&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Distributed Quantum Services over P2P Networks&lt;/td&gt;
&lt;td&gt;Soham Bhoir&lt;/td&gt;
&lt;td&gt;Coordinating computation with py-libp2p&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Libp2p and IPFS in Histopathology Labs&lt;/td&gt;
&lt;td&gt;Vishesh Mathur&lt;/td&gt;
&lt;td&gt;Sharing medical imaging over libp2p and IPFS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-Hosted IPFS Infrastructure&lt;/td&gt;
&lt;td&gt;Anurag Pandey, Manu Sheel Gupta&lt;/td&gt;
&lt;td&gt;Running and maintaining your own IPFS setup&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The hub also took its case to the bigger rooms. Manu and Shouki Tsuda ran "Building Resilient Ethereum" as a workshop on Day 1, and Manu spoke at the Security Hub on security coordination between libp2p and Ethereum infrastructure.&lt;/p&gt;

&lt;p&gt;Alongside it, the P2P Networking Hub covered Ethereum's own networking stack: a guided tour by Yiannis Psaras of ProbeLab, Csaba Kiraly of the EF on the mempool and on big blocks with fast diffusion, and Waggle, a hands-on message broadcasting workshop from Sigma Prime. Between the two rooms, networking had a full four-day programme of its own.&lt;/p&gt;

&lt;p&gt;I also had few talks with Steven Mih, as well as Kazuma, Ryosuke on what they think of my project and how to improve and work better as a proper Protocol researcher. &lt;/p&gt;

&lt;h2&gt;
  
  
  Showing Luminar
&lt;/h2&gt;

&lt;p&gt;Luminar is a real-time simulator of a GossipSub v1.1 network: simulated libp2p peers, P1–P4 peer scoring, and attacks you inject while it runs. I built it because gossip attacks are invisible until the mesh breaks, and I wanted the mechanism on screen.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live site: &lt;a href="https://luminar-teal.vercel.app/" rel="noopener noreferrer"&gt;luminar-teal.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code: &lt;a href="https://github.com/yashksaini-coder/luminar" rel="noopener noreferrer"&gt;github.com/yashksaini-coder/luminar&lt;/a&gt; (MIT)&lt;/li&gt;
&lt;/ul&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;
        yashksaini-coder
      &lt;/a&gt; / &lt;a href="https://github.com/yashksaini-coder/luminar" rel="noopener noreferrer"&gt;
        luminar
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Real-time P2P network simulator with live visualization of GossipSub, DHT, and fault injection.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/yashksaini-coder/luminar/assets/readme/banner.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyashksaini-coder%2Fluminar%2FHEAD%2Fassets%2Freadme%2Fbanner.png" alt="Luminar: watch GossipSub score, graft and prune a mesh under attack, live" width="1280"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://github.com/yashksaini-coder/luminar/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/yashksaini-coder/luminar/actions/workflows/ci.yml/badge.svg" alt="CI status"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/513ba748321233911a2b1b5b6b7036b61107cdad844038350bb0fc5efd408576/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e31322d3337373641423f6c6f676f3d707974686f6e266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/513ba748321233911a2b1b5b6b7036b61107cdad844038350bb0fc5efd408576/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e31322d3337373641423f6c6f676f3d707974686f6e266c6f676f436f6c6f723d7768697465" alt="Python 3.12"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/de6a6d21db96e8c3e4af739ca4fa6827a7ece918363c0d167df7bd33a2e9e54f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f747970657363726970742d352e392d3331373843363f6c6f676f3d74797065736372697074266c6f676f436f6c6f723d7768697465"&gt;&lt;img src="https://camo.githubusercontent.com/de6a6d21db96e8c3e4af739ca4fa6827a7ece918363c0d167df7bd33a2e9e54f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f747970657363726970742d352e392d3331373843363f6c6f676f3d74797065736372697074266c6f676f436f6c6f723d7768697465" alt="TypeScript 5.9"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/yashksaini-coder/luminar/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/983d4359659e5a2c96c77d98d5ef94b6b62d718a4a78082edf59726cc3a1903f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e" alt="License MIT"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/sponsors/yashksaini-coder" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/27fd64fd8fe5eb4b70698d8cee157760b6ef78b3824952d4eb4950611f74ec8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d2545322539442541342d6561346161613f6c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d7768697465" alt="Sponsor @yashksaini-coder on GitHub"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;Luminar is a real-time simulator of libp2p GossipSub v1.1: 2–500 peers run mesh maintenance, flood publish, IHAVE/IWANT and P1–P4 peer scoring in a trio loop, and a deck.gl map draws every GRAFT, PRUNE and message hop as it happens. You inject the attack (Sybil, eclipse, partition, drop, latency) and watch which ones scoring catches and which it cannot see. Same mechanism as a beacon node, toy constants.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;See it&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/yashksaini-coder/luminar/assets/readme/landing.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyashksaini-coder%2Fluminar%2FHEAD%2Fassets%2Freadme%2Flanding.png" alt="The landing page: the headline &amp;quot;Watch a peer-to-peer network defend itself&amp;quot; on a hatched grid cell beside a rotating cyan pixel globe of the mesh with an &amp;quot;All peers gossiping&amp;quot; status chip, and a &amp;quot;Modelled on&amp;quot; row of libp2p, GossipSub v1.1, Ethereum, OpenTelemetry and Prometheus."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/yashksaini-coder/luminar/assets/readme/demo-sybil-eclipse.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyashksaini-coder%2Fluminar%2FHEAD%2Fassets%2Freadme%2Fdemo-sybil-eclipse.gif" alt="Stage theme, hero layout, the sybil-eclipse recording from T+8 s: five Sybils graft in and flood, P4 scoring prunes them into hollow diamonds within two heartbeats, then four silent attackers close around peer-10 and scoring never sees them; the narrator caption names each phase and the lower-third ticker tracks delivery, mesh degree, hops, latency, attackers and invalid messages."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/yashksaini-coder/luminar/assets/readme/mainnet-wave.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyashksaini-coder%2Fluminar%2FHEAD%2Fassets%2Freadme%2Fmainnet-wave.gif" alt="The recorded mainnet block wave on the Geo layout: 138 real observer nodes light up across the world map in the order they first saw the block of slot 15466393, with the slot, first sighting and p50 in the ticker. Arrival at observer nodes, not mesh paths; data from ethPandaOps (CC BY 4.0)."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Offline, no backend: &lt;code&gt;http://localhost:3000/reels/sybil-eclipse/?theme=stage&amp;amp;hero=1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo film&lt;/strong&gt; (52 s, voiced, captions in &lt;a href="https://github.com/yashksaini-coder/luminar/web/public/video/demo-16x9.vtt" rel="noopener noreferrer"&gt;&lt;code&gt;demo-16x9.vtt&lt;/code&gt;&lt;/a&gt;): &lt;a href="https://github.com/yashksaini-coder/luminar/web/public/video/demo-16x9.mp4" rel="noopener noreferrer"&gt;&lt;code&gt;web/public/video/demo-16x9.mp4&lt;/code&gt;&lt;/a&gt;. It is the real UI filmed frame by frame from a recording, scored from the same script, and rebuilds from a clean checkout: &lt;code&gt;make demo-record &amp;amp;&amp;amp; make demo-render&lt;/code&gt; (&lt;a href="https://github.com/yashksaini-coder/luminar/demo/README.md" rel="noopener noreferrer"&gt;demo/README.md&lt;/a&gt;).&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Why&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;Hermes, Xatu and the ProbeLab dashboards record what the real network did; a Shadow or Testground run tells you what a scripted network would do, from logs, after it finishes. Neither lets you…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/yashksaini-coder/luminar" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h3&gt;
  
  
  What I showed
&lt;/h3&gt;

&lt;p&gt;The demo runs from two recordings: a Sybil and eclipse run, then a partition that heals.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A publish.&lt;/strong&gt; Fifty peers gossip, and a message lights the mesh hop by hop. It crosses the network in 4.2 hops on average.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Sybil attack.&lt;/strong&gt; Five attacker peers graft into honest meshes at T+10.2 s and flood invalid messages. Each invalid message costs ten points of P4. They fall past the prune threshold and are gone by T+11.9 s, two heartbeats later. Delivery holds at 100%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An eclipse.&lt;/strong&gt; Silent attackers take every mesh slot around one peer. They send nothing invalid, so P4 never fires. Scoring cannot see it, and the peer is only freed when the fault is cleared.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A partition.&lt;/strong&gt; The network is cut in half for 20 seconds. Delivery drops to 50%, then the mesh grafts itself back together in 4.5 s.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The eclipse is the part I care about most. It is easy to assume peer scoring catches everything, and watching the score stay flat while a peer is isolated makes the limit obvious.&lt;/p&gt;

&lt;h3&gt;
  
  
  Honest by design
&lt;/h3&gt;

&lt;p&gt;Luminar runs the same mechanism as mainnet with toy constants, and I say so on the page. Mesh degree is 6 with a one-second heartbeat. Ethereum mainnet runs D 8, a 0.7 s heartbeat, and score thresholds in the thousands. Luminar scores on P1–P4, while a real node adds P5–P7.&lt;/p&gt;

&lt;p&gt;There is also a mainnet mode: a map that lights ethPandaOps observer nodes in the order a real block reached them.&lt;/p&gt;

&lt;h3&gt;
  
  
  How it is built
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Stack&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Backend&lt;/td&gt;
&lt;td&gt;Python 3.12, FastAPI, Trio, py-libp2p, NetworkX&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frontend&lt;/td&gt;
&lt;td&gt;TypeScript, deck.gl (WebGL), d3-force, Vite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Transport&lt;/td&gt;
&lt;td&gt;One WebSocket, multiplexed at 20 Hz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Replay&lt;/td&gt;
&lt;td&gt;Recordings play in the browser with no backend&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Every run can be recorded and scrubbed, so a talk does not depend on conference wifi. There is a stage mode with a projector theme for exactly this reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  People
&lt;/h2&gt;

&lt;p&gt;The hallway is the reason to go to a conference in person. Mine was mostly inside one hub, which meant I kept meeting the same people in different sessions until we were no longer strangers.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Manu Sheel Gupta&lt;/strong&gt;, who leads the libp2p work I contribute to and who brought me into the hub.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The maintainers I shared the Network Lab with&lt;/strong&gt;: Daniel Thompson, Shouki Tsuda, Sumanjeet and Soham Bhoir.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Steven Mih&lt;/strong&gt; of Action State, whose sessions on verifiable agent actions and evidence for AI inference from strangers gave me a new problem to think about.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I am taking home
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Networking is no longer the quiet layer.&lt;/strong&gt; Post-quantum signatures, bigger blocks, shorter slots and inclusion lists all put pressure on P2P first. Two full hubs on networking says the ecosystem knows it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Show the mechanism.&lt;/strong&gt; A demo people can watch beats a slide that tells them. Luminar exists because I could not see what GossipSub scoring was doing, and that turned out to be a common problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Be honest about the toy.&lt;/strong&gt; Saying "same mechanism, toy constants" up front made the conversations better, because nobody had to guess what the simulator could and could not prove.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agents need evidence, not just payments.&lt;/strong&gt; The agent-payment rails are shipping. The harder question, raised at both our hub and the Agentic Hub, is how a third party verifies what an agent actually did.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;India showed up.&lt;/strong&gt; ETHIndia, the India Hub, EPF fellows presenting client work, and a crowd of first-time attendees. Devcon coming here lowered the barrier for a lot of builders, me included.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What is next
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Keep hardening the Kademlia DHT in py-libp2p.&lt;/li&gt;
&lt;li&gt;Take the feedback from Mumbai back into Luminar. &lt;/li&gt;
&lt;li&gt;Follow up on the conversations that started at the hub.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A few closing posts from after the trip:&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2120015901319950439-535" src="https://platform.twitter.com/embed/Tweet.html?id=2120015901319950439"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2120015901319950439-535');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2120015901319950439&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2120046288133882089-214" src="https://platform.twitter.com/embed/Tweet.html?id=2120046288133882089"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2120046288133882089-214');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2120046288133882089&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-2120047934813377022-357" src="https://platform.twitter.com/embed/Tweet.html?id=2120047934813377022"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2120047934813377022-357');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2120047934813377022&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;If you work on GossipSub, libp2p, or network observability, open the &lt;a href="https://luminar-teal.vercel.app/sim/" rel="noopener noreferrer"&gt;simulator&lt;/a&gt;, break a mesh, and tell me what it gets wrong. Issues and PRs are open on &lt;a href="https://github.com/yashksaini-coder/luminar" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thank you, Mumbai.&lt;/p&gt;

</description>
      <category>ethereum</category>
      <category>productivity</category>
      <category>opensource</category>
      <category>web3</category>
    </item>
    <item>
      <title>Dev log # 30 Plumbing the depths of libp2p: A multi-language maintenance week</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Tue, 10 Nov 2026 10:25:14 +0000</pubDate>
      <link>https://dev.to/yashksaini/dev-log-30-plumbing-the-depths-of-libp2p-a-multi-language-maintenance-week-356b</link>
      <guid>https://dev.to/yashksaini/dev-log-30-plumbing-the-depths-of-libp2p-a-multi-language-maintenance-week-356b</guid>
      <description>&lt;p&gt;Hi, glad you found your way here. I'm Yash, a developer who contributes to open source, mostly p2p networking and AI tooling. Each week I write up what I shipped, what broke, and what fixing it taught me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://x.com/0xcrackedDev" rel="noopener noreferrer"&gt;X&lt;/a&gt; · &lt;a href="https://www.linkedin.com/in/yashksaini" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; · &lt;a href="https://yashksaini.vercel.app/" rel="noopener noreferrer"&gt;Portfolio&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;This week was all about the "plumbing" of the decentralized web. I spent my time jumping between three different implementations of the libp2p protocol—Go, Python, and .NET—focusing on resource management, async lifecycles, and Gossipsub robustness. I opened one significant PR in &lt;code&gt;go-libp2p&lt;/code&gt; to fix a connection leak, filed three detailed issues in &lt;code&gt;py-libp2p&lt;/code&gt; regarding shutdown hangs and DNS resolution, and provided feedback on three PRs in the &lt;code&gt;dotnet-libp2p&lt;/code&gt; ecosystem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Digging into the Go Upgrader
&lt;/h2&gt;

&lt;p&gt;The highlight of my week was working on &lt;code&gt;go-libp2p&lt;/code&gt;. If you’ve ever done low-level networking, you know that the "upgrading" process—where a raw connection becomes a secure, multiplexed libp2p connection—is where the most dangerous race conditions live.&lt;/p&gt;

&lt;p&gt;I opened a PR titled &lt;a href="https://github.com/libp2p/go-libp2p/pull/3568" rel="noopener noreferrer"&gt;fix(upgrader): release scope of conns closed before Accept&lt;/a&gt;. This addresses a specific edge case in the resource manager. In libp2p, we use "scopes" to track and limit resource usage (like memory and file descriptors). The bug I found was that if a connection was closed by the remote peer or timed out &lt;em&gt;before&lt;/em&gt; the local &lt;code&gt;Accept&lt;/code&gt; call finished, the resource scope wasn't always being released properly. &lt;/p&gt;

&lt;p&gt;I added 181 lines of code, mostly focused on hardening the state machine in the upgrader to ensure that no matter how a connection dies during the handshake, we aren't leaking resources. It’s one of those fixes that doesn't add a flashy feature but keeps a long-running node from slowly eating all the RAM on a server. It's still open and under review, as these kinds of changes require a lot of eyes to ensure we aren't introducing new deadlocks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting the Python Lifecycle
&lt;/h2&gt;

&lt;p&gt;While the Go work was about fixing a leak, my time with &lt;code&gt;py-libp2p&lt;/code&gt; was about diagnosing why things won't stop. I opened three issues this week that all center around the complexity of asynchronous lifecycles in Python, specifically when using structured concurrency (like Trio's nurseries).&lt;/p&gt;

&lt;p&gt;The first issue, &lt;a href="https://github.com/libp2p/py-libp2p/issues/1586" rel="noopener noreferrer"&gt;&lt;code&gt;echo-demo&lt;/code&gt; and other one-shot example clients never exit&lt;/a&gt;, is a classic "zombie process" problem. I noticed that our example scripts would finish their work but then just hang indefinitely. After some digging, I realized the main nursery was waiting on a background peerstore cleanup task that never got the signal to shut down. It's a small thing that makes the developer experience feel "broken" for newcomers, so I'm hoping to get a fix in for that soon.&lt;/p&gt;

&lt;p&gt;I also filed &lt;a href="https://github.com/libp2p/py-libp2p/issues/1584" rel="noopener noreferrer"&gt;Leaving &lt;code&gt;host.run()&lt;/code&gt; leaves connections and listeners open&lt;/a&gt;. This is a more serious architectural issue where the Swarm isn't properly cleaning up its internal state when the host is cancelled. If you're running a dynamic system where you're starting and stopping nodes frequently, this would eventually lead to a "too many open files" error.&lt;/p&gt;

&lt;p&gt;Finally, I hit a weird networking edge case and documented it in &lt;a href="https://github.com/libp2p/py-libp2p/issues/1585" rel="noopener noreferrer"&gt;&lt;code&gt;/dns6/localhost&lt;/code&gt; can't be dialed on a host with no global IPv6&lt;/a&gt;. Basically, the library was being a bit too aggressive in assuming that any DNS6 address must be a public, dialable address, even when it's just a local loopback on a machine that doesn't have a global IPv6 route. Networking is hard, and local dev environments are often the weirdest places for these bugs to hide.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reviewing the .NET Stack
&lt;/h2&gt;

&lt;p&gt;I also spent some time in the &lt;code&gt;dotnet-libp2p&lt;/code&gt; repository, which is being led by the Nethermind team. They are doing some great work bringing the protocol to the C# ecosystem, and I helped out with three code reviews this week.&lt;/p&gt;

&lt;p&gt;Two of the reviews were focused on Gossipsub, which is the heavy-duty pubsub protocol used by blockchains like Ethereum. I commented on &lt;a href="https://github.com/NethermindEth/dotnet-libp2p/pull/441" rel="noopener noreferrer"&gt;Populate Gossipsub IP-colocation scoring input&lt;/a&gt; and &lt;a href="https://github.com/NethermindEth/dotnet-libp2p/pull/437" rel="noopener noreferrer"&gt;Randomize Gossipsub mesh fanout and gossip peer selection&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;These are critical for security. IP-colocation scoring helps the network identify if a single entity is trying to run hundreds of nodes from the same IP range to try and "eclipse" or manipulate the network. Randomizing peer selection is equally important to ensure the gossip network remains a "small world" graph that is resilient to targeted attacks. It’s great to see the .NET implementation reaching this level of maturity.&lt;/p&gt;

&lt;p&gt;I also did a quick sanity check on a repository maintenance PR, &lt;a href="https://github.com/NethermindEth/dotnet-libp2p/pull/427" rel="noopener noreferrer"&gt;Move Libp2p.slnx to the repository root&lt;/a&gt;, which is just good housekeeping for anyone working in a .NET environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack &amp;amp; Vibe
&lt;/h2&gt;

&lt;p&gt;This week was a true polyglot experience. Even though the &lt;code&gt;languages&lt;/code&gt; data doesn't show a specific commit weight (since I was mostly focused on issues and reviews outside of the one Go PR), I was effectively working across:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Go&lt;/strong&gt;: For the core resource management logic.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Python&lt;/strong&gt;: For diagnosing async lifecycle and DNS issues.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;C# (.NET)&lt;/strong&gt;: For reviewing security-sensitive Gossipsub logic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s a "maintenance and mentorship" week. I didn't land dozens of commits, but I spent my time where it arguably matters more: helping other implementations stay secure and fixing the bugs that make tools frustrating to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Next week, I want to follow up on the &lt;code&gt;go-libp2p&lt;/code&gt; PR. Resource manager changes usually involve a bit of back-and-forth with the maintainers to make sure the performance trade-offs are worth it. I also want to see if I can actually submit the PRs for those &lt;code&gt;py-libp2p&lt;/code&gt; issues I opened. It's one thing to point out that the nursery is hanging; it's another to actually rearrange the async task tree to fix it.&lt;/p&gt;

&lt;p&gt;Onward to more green tests!&lt;/p&gt;

</description>
      <category>programming</category>
      <category>discuss</category>
      <category>python</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Dev log # 29 The Review Marathon: Hardening libp2p across C# and Python</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Tue, 10 Nov 2026 10:19:21 +0000</pubDate>
      <link>https://dev.to/yashksaini/dev-log-the-review-marathon-hardening-libp2p-across-c-and-python-2f7i</link>
      <guid>https://dev.to/yashksaini/dev-log-the-review-marathon-hardening-libp2p-across-c-and-python-2f7i</guid>
      <description>&lt;p&gt;Hi, glad you found your way here. I'm Yash, a developer who contributes to open source, mostly p2p networking and AI tooling. Each week I write up what I shipped, what broke, and what fixing it taught me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://x.com/0xcrackedDev" rel="noopener noreferrer"&gt;X&lt;/a&gt; · &lt;a href="https://www.linkedin.com/in/yashksaini" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; · &lt;a href="https://yashksaini.vercel.app/" rel="noopener noreferrer"&gt;Portfolio&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;Spent the week deep in the reviewer seat, specifically focused on hardening the libp2p ecosystem. While I only pushed 8 commits of my own, I reviewed 22 PRs for the &lt;code&gt;dotnet-libp2p&lt;/code&gt; project—a heavy lift focused on memory bounds, validation, and protocol stability.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hardening the Stack: 22 Reviews in 7 Days
&lt;/h2&gt;

&lt;p&gt;If you've ever worked on p2p networking, you know that "unbounded" is a scary word. This week was a marathon of reviews for &lt;code&gt;dotnet-libp2p&lt;/code&gt;, and the theme was clear: hardening. I reviewed 22 PRs, and honestly, it’s some of the most important work I’ve touched recently, even if I wasn't the one writing the initial lines.&lt;/p&gt;

&lt;p&gt;Most of these PRs were about setting boundaries. For instance, I approved a critical fix for the &lt;code&gt;InMemoryProviderStore&lt;/code&gt; which previously had no bound on the number of keys—a classic vector for remote nodes to grow a local node's memory until it crashes. We also looked at bounding multistream line reads and rejecting overflowing varints. It’s the kind of defensive programming that separates a hobby project from production-grade infrastructure.&lt;/p&gt;

&lt;p&gt;I also spent a good chunk of time reviewing PRs related to Kademlia and PubSub. We landed PRs to bound and validate Kademlia wire peers and to gate pubsub delivery based on local subscriptions. One of the more gnarly reviews involved the TCP receive path, where a bug was causing the stack to retain a whole &lt;code&gt;ReceiveBufferSize&lt;/code&gt; array for every single received byte. Fixing that is going to have a massive impact on memory pressure for high-throughput nodes.&lt;/p&gt;

&lt;p&gt;Beyond just memory, there was a lot of focus on protocol correctness. I approved PRs for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fixing Noise framing and Windows transport key creation.&lt;/li&gt;
&lt;li&gt;Canonicalizing remote identities and verifying pubsub signatures.&lt;/li&gt;
&lt;li&gt;Repairing the Kademlia builder wiring to ensure production API boundaries are respected.&lt;/li&gt;
&lt;li&gt;Handling abnormal exits for Windows CNG keys.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It was a "mentorship and gatekeeping" week. When you're dealing with a library that other developers rely on for peer-to-peer communication, you can't afford to be lax. Reviewing 22 PRs while opening zero of my own might look "quiet" on a contribution graph, but ensuring these 22 changes were solid was a full-time job in itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built: py-libp2p Fixes
&lt;/h2&gt;

&lt;p&gt;While the C# side was all about reviews, I did get my hands dirty in the &lt;code&gt;py-libp2p&lt;/code&gt; codebase. I pushed 3 commits (132 additions, 11 deletions) across 6 files to address some specific edge cases in the swarm and yamux implementations.&lt;/p&gt;

&lt;p&gt;One of the fixes was in the swarm module. I needed to ensure that each transport dial is strictly bounded by &lt;code&gt;ConnectionConfig.dial_timeout&lt;/code&gt;. In a p2p environment, you're constantly trying to connect to peers that might be offline or behind a firewall. If those dials don't time out properly, you end up with a leaked resource problem that eventually grinds the node to a halt.&lt;/p&gt;

&lt;p&gt;I also tackled a tricky bug in the yamux implementation. When a remote peer resets a stream, the local side needs to report that as a bounded read failure rather than a clean EOF. Distinguishing between "the sender is done" and "the sender crashed/reset" is vital for the higher-level protocols to know if they should retry or treat the data as complete.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack &amp;amp; Stats
&lt;/h2&gt;

&lt;p&gt;It was a polyglot week, leaning heavily into the libp2p implementations I frequent most.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;C#&lt;/strong&gt;: The bulk of my brainpower went here, reviewing the Nethermind implementation of libp2p.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Python&lt;/strong&gt;: Where I spent my actual "coding" time, fixing swarm and multiplexer bugs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review Balance&lt;/strong&gt;: 22 reviews given vs 0 PRs opened. This was 100% a "help others ship" week. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I added 132 lines and deleted 11. Most of those additions were in &lt;code&gt;py-libp2p&lt;/code&gt;, likely adding the necessary logic to enforce those new timeouts and state checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;After a week of reviewing other people's code, I'm itching to get back into some heavy feature work. The &lt;code&gt;dotnet-libp2p&lt;/code&gt; audit seems to be winding down with these latest approvals, which should unblock some of the higher-level networking tools I've been planning. I'll be keeping an eye on the &lt;code&gt;py-libp2p&lt;/code&gt; swarm behavior to make sure those dial timeouts are behaving as expected in the wild. Next week, I'm hoping to flip the script and get back to a higher commit-to-review ratio!&lt;/p&gt;

</description>
      <category>python</category>
      <category>help</category>
      <category>discuss</category>
      <category>networking</category>
    </item>
    <item>
      <title>Dev Log # 28 A Quiet Week on the OSS Front</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Tue, 10 Nov 2026 06:42:33 +0000</pubDate>
      <link>https://dev.to/yashksaini/attending-devcon-8-mumbai-a-quiet-week-on-the-oss-front-3kai</link>
      <guid>https://dev.to/yashksaini/attending-devcon-8-mumbai-a-quiet-week-on-the-oss-front-3kai</guid>
      <description>&lt;p&gt;I attended Devcon 8 in Mumbai as an exhibitor for the Resilient Networking Hub, organized by folks from the Libp2p community. I have written about my experience in another article here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://x.com/0xcrackedDev" rel="noopener noreferrer"&gt;X&lt;/a&gt; · &lt;a href="https://www.linkedin.com/in/yashksaini" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; · &lt;a href="https://yashksaini.vercel.app/" rel="noopener noreferrer"&gt;Portfolio&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;If you look at my public GitHub profile for the past seven days, you’re going to see a whole lot of nothing. Zero commits, zero PRs, and a contribution graph that looks more like a fresh fall of snow than a busy developer's workspace. It’s a quiet week on the open-source front, but as any freelancer will tell you, a blank public streak usually means there’s a lot of noise happening behind the scenes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Sound of Silence
&lt;/h2&gt;

&lt;p&gt;There’s a certain pressure that comes with being an active open-source contributor. We’re conditioned to chase the green squares, to keep the streak alive, and to always have a PR in flight. But this week, I consciously stepped back from the public feed. Not because I’m tired of code—honestly, I don't think that’s possible for me—but because the work I was doing didn't require a &lt;code&gt;git push&lt;/code&gt; to a public repo.&lt;/p&gt;

&lt;p&gt;When you're deep into p2p networking or architecting complex backend systems, there are weeks that are purely about consumption. I spent a significant chunk of my time this week reading. I was digging back into the libp2p specifications, trying to wrap my head around some of the more nuanced edge cases in DHT routing that I’ve been seeing in the wild. It’s the kind of "invisible work" that doesn't show up in a contribution graph but is absolutely vital for making sure that when I &lt;em&gt;do&lt;/em&gt; open that next PR, it’s actually solving the right problem.&lt;/p&gt;

&lt;p&gt;I’ve always felt that open source isn't just about the lines of code you add; it’s about the quality of the thought behind them. If I spend forty hours reading documentation, testing local hypotheses in a throwaway scratchpad, and sketching out architecture on a physical whiteboard, my GitHub stats will show zero activity. But that might be the most productive week of my month. &lt;/p&gt;

&lt;h2&gt;
  
  
  The Freelance Pivot
&lt;/h2&gt;

&lt;p&gt;As a freelancer, my schedule is often a tug-of-war between my own OSS projects, the community tools I love, and the private repositories where my clients' "secret sauce" lives. This week, the clients won the tug-of-war. I was heads-down in a private codebase, wrestling with some gnarly Python async issues and hardening a Rust-based CLI tool that isn't ready for the public eye just yet.&lt;/p&gt;

&lt;p&gt;It’s a weird paradox of the modern developer's life. We want to be transparent and share everything we learn, but the reality of professional work means that some of our best "shifts" happen in total darkness. I spent hours this week refactoring a session management flow and optimizing some database queries that were hitting a bottleneck at scale. In my head, I was checking off huge milestones. On GitHub? Crickets.&lt;/p&gt;

&lt;p&gt;I used to get anxious about these "white weeks." I'd worry that I was losing my edge or that I was failing the projects I contribute to. But I’ve learned that the "always-on" mentality is a fast track to burnout. Taking a week where I don't feel the need to perform for the algorithm allows me to come back to my OSS commitments with a fresh perspective.&lt;/p&gt;

&lt;h2&gt;
  
  
  Respecting the Rhythm
&lt;/h2&gt;

&lt;p&gt;I used to be obsessed with the green squares. I thought that if I didn't have at least one commit a day, I was falling behind. But that’s a fast track to burnout. Real development has a pulse; it has highs and lows. &lt;/p&gt;

&lt;p&gt;A week of zero public activity is a chance to reset the mental cache. It’s a week where I can focus on the "why" instead of just the "what." When I’m not rushing to land a PR before the end of the day, I can actually think about the long-term architecture of the projects I care about. I can read that 50-page technical paper I bookmarked three months ago. I can play around with a new Rust crate just to see how it feels, without the pressure of turning it into a "thing" immediately.&lt;/p&gt;

&lt;p&gt;Being an active open-source contributor is about more than just the volume of code; it's about the quality of the contribution. If taking a week off from the public eye means my next PR is cleaner, better tested, and more thoughtful, then that’s a win in my book.&lt;/p&gt;

&lt;h2&gt;
  
  
  Thinking in Rust and Python
&lt;/h2&gt;

&lt;p&gt;Even without the commits, my brain was still stuck in the usual languages. I found myself mentally linting code while I was out for walks, thinking about how I could have used a more idiomatic Pattern Match in that Rust service I was building for a client, or how a specific Python decorator was making my life harder than it needed to be.&lt;/p&gt;

&lt;p&gt;I spent some time exploring some new crates that have been popping up in the ecosystem—specifically looking at some of the newer diagnostic tools for async Rust. Even though I didn't open any issues or contribute any code, I was building a mental library of tools I want to use later. This kind of "passive contribution"—learning the ecosystem so you can help others later—is an underrated part of being a developer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s Next
&lt;/h2&gt;

&lt;p&gt;The "perfect week" streak might be at zero right now, but the tank is full. I’ve cleared the decks on a few of my private obligations, which means I’m heading into next week with a lot of pent-up creative energy for my open-source projects. &lt;/p&gt;

&lt;p&gt;I’ve got a list of issues in the libp2p space that I’ve been eyeing, and now that I’ve done the background reading, I’m ready to start actually writing the fixes. I’m also planning to dive back into some of my CLI tooling experiments. There’s a specific idea I have for a dev-tooling utility that simplifies local networking setups, and I think I finally have the architectural path cleared in my head.&lt;/p&gt;

&lt;p&gt;Sometimes you have to stop moving to see where you're going. This was that week for me. No stats, no deltas, no merged PRs—just a lot of thinking and a lot of preparation for what comes next. If your graph is looking a little pale this week, don't sweat it. The code will still be there when you're ready to hit &lt;code&gt;enter&lt;/code&gt;. See you on the command line next week.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>discuss</category>
      <category>ethereum</category>
      <category>freelance</category>
    </item>
    <item>
      <title>What I learned building wfreq</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Wed, 28 Oct 2026 15:10:42 +0000</pubDate>
      <link>https://dev.to/yashksaini/what-i-learned-building-wfreq-52f5</link>
      <guid>https://dev.to/yashksaini/what-i-learned-building-wfreq-52f5</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;How a word-frequency tool taught me to wrap errors instead of replacing them: from .expect() to thiserror, #[source] and per-file warnings.&lt;/p&gt;




&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F39we89uqyk94wx19vg1h.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F39we89uqyk94wx19vg1h.gif" alt="wfreq running in the terminal" width="800" height="567"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I built &lt;code&gt;wfreq&lt;/code&gt;, a small Rust CLI that prints the most common words in &lt;code&gt;.txt&lt;/code&gt;, &lt;code&gt;.md&lt;/code&gt;, &lt;code&gt;.pdf&lt;/code&gt; and &lt;code&gt;.docx&lt;/code&gt; files. The counting took an afternoon. The error messages took the rest of the project.&lt;/p&gt;

&lt;p&gt;This post is about the hardest part: making the tool tell the truth when something goes wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Version 1: &lt;code&gt;.expect()&lt;/code&gt; and a crash
&lt;/h2&gt;

&lt;p&gt;The first &lt;code&gt;main&lt;/code&gt; read the file like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nn"&gt;std&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nn"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;read_to_string&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="py"&gt;.file&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nf"&gt;.expect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"File can not read"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I pointed it at a PDF and got:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;thread 'main' panicked at src/main.rs:30:57:
File can not read: Error { kind: InvalidData, message: "stream did not contain valid UTF-8" }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two problems. A panic is a crash with a backtrace hint, not a message for a user. And &lt;code&gt;read_to_string&lt;/code&gt; only accepts valid UTF-8, so every PDF "can not be read", even though the file is right there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Version 2: &lt;code&gt;?&lt;/code&gt; and an error message nobody asked for
&lt;/h2&gt;

&lt;p&gt;The textbook fix is to return &lt;code&gt;Result&lt;/code&gt; from &lt;code&gt;main&lt;/code&gt; and use &lt;code&gt;?&lt;/code&gt;. I added a custom error enum with &lt;a href="https://crates.io/crates/thiserror" rel="noopener noreferrer"&gt;thiserror&lt;/a&gt; and nice messages:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="nd"&gt;#[derive(Debug,&lt;/span&gt; &lt;span class="nd"&gt;Error)]&lt;/span&gt;
&lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;enum&lt;/span&gt; &lt;span class="n"&gt;CliError&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nd"&gt;#[error(&lt;/span&gt;&lt;span class="s"&gt;"File not found or cannot read: {0}"&lt;/span&gt;&lt;span class="nd"&gt;)]&lt;/span&gt;
    &lt;span class="nf"&gt;FileReadError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PathBuf&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt; &lt;span class="nb"&gt;Box&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;dyn&lt;/span&gt; &lt;span class="n"&gt;Error&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nn"&gt;parser&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;extract_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="py"&gt;.file&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I ran it on a missing file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;wfreq nope.txt
&lt;span class="go"&gt;Error: FileReadError("nope.txt")
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My message was nowhere. When &lt;code&gt;main&lt;/code&gt; returns &lt;code&gt;Err&lt;/code&gt;, Rust prints the error with &lt;strong&gt;&lt;code&gt;Debug&lt;/code&gt;&lt;/strong&gt;, not &lt;code&gt;Display&lt;/code&gt;, so all the &lt;code&gt;#[error("...")]&lt;/code&gt; text is ignored.&lt;/p&gt;

&lt;p&gt;The fix is small: keep &lt;code&gt;?&lt;/code&gt; everywhere, but handle the error once, at the top.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;Err&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nd"&gt;eprintln!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"error: {e}"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;   &lt;span class="c1"&gt;// Display: the #[error] text&lt;/span&gt;
        &lt;span class="nn"&gt;std&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nn"&gt;process&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt; &lt;span class="nb"&gt;Box&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;dyn&lt;/span&gt; &lt;span class="n"&gt;Error&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// all the real work, using ? freely&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;exit(1)&lt;/code&gt; lives in &lt;code&gt;main&lt;/code&gt;, after &lt;code&gt;run()&lt;/code&gt; has returned and dropped everything, so nothing is skipped. And &lt;code&gt;eprintln!&lt;/code&gt; sends the message to stderr, so &lt;code&gt;wfreq notes.txt &amp;gt; top.txt&lt;/code&gt; never puts an error into the output file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Version 3: the lie
&lt;/h2&gt;

&lt;p&gt;Now errors looked nice:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;wfreq nope.txt
&lt;span class="go"&gt;error: File not found or cannot read: nope.txt
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I tried a file that &lt;strong&gt;did&lt;/strong&gt; exist but was not valid UTF-8. Same message: "File not found or cannot read". The file was right there. The real reason, invalid UTF-8, was gone.&lt;/p&gt;

&lt;p&gt;The culprit was one character in the conversion:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="nn"&gt;std&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nn"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;read_to_string&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;.map_err&lt;/span&gt;&lt;span class="p"&gt;(|&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt; &lt;span class="nn"&gt;CliError&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;FileReadError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="nf"&gt;.to_path_buf&lt;/span&gt;&lt;span class="p"&gt;()))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;|_|&lt;/code&gt; throws the &lt;code&gt;io::Error&lt;/code&gt; away. "Not found", "permission denied", "is a directory" and "not UTF-8" all became the same vague sentence.&lt;/p&gt;

&lt;p&gt;The rule I took from this: &lt;strong&gt;when you convert an error, wrap it, don't replace it.&lt;/strong&gt; Your error adds the context (which file), and the original error keeps the cause (why).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="nd"&gt;#[derive(Debug,&lt;/span&gt; &lt;span class="nd"&gt;Error)]&lt;/span&gt;
&lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;enum&lt;/span&gt; &lt;span class="n"&gt;CliError&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nd"&gt;#[error(&lt;/span&gt;&lt;span class="s"&gt;"cannot read {}: {source}"&lt;/span&gt;&lt;span class="nd"&gt;,&lt;/span&gt; &lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nd"&gt;path&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nd"&gt;display())]&lt;/span&gt;
    &lt;span class="n"&gt;FileRead&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;PathBuf&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nd"&gt;#[source]&lt;/span&gt;
        &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nn"&gt;std&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nn"&gt;io&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="n"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nn"&gt;std&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nn"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;read_to_string&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="nf"&gt;.map_err&lt;/span&gt;&lt;span class="p"&gt;(|&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt; &lt;span class="nn"&gt;CliError&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="n"&gt;FileRead&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="nf"&gt;.to_path_buf&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
    &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;PathBuf&lt;/code&gt; has no &lt;code&gt;Display&lt;/code&gt;, because a path is not guaranteed to be valid text. So the message uses &lt;code&gt;{}&lt;/code&gt; with &lt;code&gt;.path.display()&lt;/code&gt; as an extra argument. The leading &lt;code&gt;.&lt;/code&gt; refers to the variant's field.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;#[source]&lt;/code&gt; makes thiserror implement &lt;code&gt;Error::source()&lt;/code&gt;, so tools that print error chains can follow it to the &lt;code&gt;io::Error&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now the same file says what is actually wrong:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;error: cannot read bad.txt: stream did not contain valid UTF-8
error: cannot read nope.txt: No such file or directory (os error 2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Version 4: the bug that compiled
&lt;/h2&gt;

&lt;p&gt;When I added PDF and DOCX support, the parser picked a function by file extension. One version looked like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;match&lt;/span&gt; &lt;span class="n"&gt;ext&lt;/span&gt;&lt;span class="nf"&gt;.as_str&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s"&gt;"txt"&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; &lt;span class="s"&gt;"md"&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nn"&gt;txt&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_path&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="nf"&gt;Ok&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Parser success"&lt;/span&gt;&lt;span class="nf"&gt;.to_string&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="s"&gt;"docx"&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nn"&gt;docx&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_path&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This type-checks (once a missing &lt;code&gt;use std::fs;&lt;/code&gt; was added). Every arm returns &lt;code&gt;Result&amp;lt;String, CliError&amp;gt;&lt;/code&gt;. But the &lt;code&gt;;&lt;/code&gt; after &lt;code&gt;txt::parse(file_path)&lt;/code&gt; throws away the parsed text &lt;strong&gt;and&lt;/strong&gt; any error. Every &lt;code&gt;.txt&lt;/code&gt; file now "contained" the two words &lt;code&gt;parser&lt;/code&gt; and &lt;code&gt;success&lt;/code&gt;, and a broken file reported success.&lt;/p&gt;

&lt;p&gt;The compiler can't catch this: the types are right, the values are wrong. A test can:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="nd"&gt;#[test]&lt;/span&gt;
&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;reads_text_from_stdin&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;run_with_stdin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;"-"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"-n"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="s"&gt;"to be or not to be"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nd"&gt;assert_eq!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="s"&gt;"Path: -&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt; 1. be              2&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each arm should just be the parser call, so its result (text or error) is returned as-is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="s"&gt;"txt"&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; &lt;span class="s"&gt;"md"&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nn"&gt;txt&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_path&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;span class="s"&gt;"pdf"&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nn"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_path&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;span class="s"&gt;"docx"&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nn"&gt;docx&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;file_path&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Version 5: one bad file in a folder
&lt;/h2&gt;

&lt;p&gt;Then the tool learned to read folders. A folder can hold a broken PDF next to twenty good text files. Should one bad file stop the whole run?&lt;/p&gt;

&lt;p&gt;I decided:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One file given:&lt;/strong&gt; any problem is an error, exit code 1.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Several files or a folder:&lt;/strong&gt; a bad file is a warning on stderr and is skipped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every file failed:&lt;/strong&gt; that is an error too, because there is nothing to count.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;files&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;match&lt;/span&gt; &lt;span class="nn"&gt;parser&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;extract_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nf"&gt;Ok&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;merge_counts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="k"&gt;mut&lt;/span&gt; &lt;span class="n"&gt;counts&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;count_words&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="py"&gt;.case_sensitive&lt;/span&gt;&lt;span class="p"&gt;)),&lt;/span&gt;
        &lt;span class="nf"&gt;Err&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;files&lt;/span&gt;&lt;span class="nf"&gt;.len&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nd"&gt;eprintln!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"warning: {e} (skipped)"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="nf"&gt;Err&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;Err&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="nf"&gt;.into&lt;/span&gt;&lt;span class="p"&gt;()),&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This only works because of version 3. The warning is useful because the error already carries the file and the reason:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;warning: cannot parse docs/old.pdf: PDF error: couldn't parse input: invalid file header (skipped)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without the path in the error, that line would say "cannot parse: invalid file header", and you would have to guess which of the twenty files it means.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell myself at the start
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;.expect()&lt;/code&gt; is for "this cannot happen", not for user input.&lt;/li&gt;
&lt;li&gt;Returning &lt;code&gt;Result&lt;/code&gt; from &lt;code&gt;main&lt;/code&gt; prints &lt;code&gt;Debug&lt;/code&gt;. Use a &lt;code&gt;run()&lt;/code&gt; function and print the error yourself.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;map_err(|_| ...)&lt;/code&gt; deletes information you can't get back. Wrap the error with &lt;code&gt;#[source]&lt;/code&gt; instead.&lt;/li&gt;
&lt;li&gt;Put the file path in the error, not in the caller. You will need it as soon as there is more than one file.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;match&lt;/code&gt; arm with a &lt;code&gt;;&lt;/code&gt; and a hard-coded &lt;code&gt;Ok(...)&lt;/code&gt; compiles fine. Write an end-to-end test that checks real output.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The integration tests in &lt;code&gt;tests/integration.rs&lt;/code&gt; check every error message mentioned here, so none of these bugs can come back quietly.&lt;/p&gt;

&lt;p&gt;full crash → crates.io story: &lt;a href="https://medium.com/@yash_k_saini/from-a-crash-to-crates-io-shipping-a-rust-cli-tool-f6ed59c16a9f" rel="noopener noreferrer"&gt;https://medium.com/@yash_k_saini/from-a-crash-to-crates-io-shipping-a-rust-cli-tool-f6ed59c16a9f&lt;/a&gt;&lt;br&gt;
repo: &lt;a href="https://github.com/yashksaini-coder/wfreq" rel="noopener noreferrer"&gt;https://github.com/yashksaini-coder/wfreq&lt;/a&gt;&lt;br&gt;
crate: &lt;a href="https://crates.io/crates/wfreq" rel="noopener noreferrer"&gt;https://crates.io/crates/wfreq&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rust</category>
      <category>cli</category>
      <category>buildinpublic</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Dev log #27 Deep in the review queue: Hardening libp2p across Python and .NET</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Tue, 27 Oct 2026 13:08:58 +0000</pubDate>
      <link>https://dev.to/yashksaini/dev-log-deep-in-the-review-queue-hardening-libp2p-across-python-and-net-357l</link>
      <guid>https://dev.to/yashksaini/dev-log-deep-in-the-review-queue-hardening-libp2p-across-python-and-net-357l</guid>
      <description>&lt;p&gt;Hi, glad you found your way here. I'm Yash, a developer who contributes to open source, mostly p2p networking and AI tooling. Each week I write up what I shipped, what broke, and what fixing it taught me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://x.com/0xcrackedDev" rel="noopener noreferrer"&gt;X&lt;/a&gt; · &lt;a href="https://www.linkedin.com/in/yashksaini" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; · &lt;a href="https://yashksaini.vercel.app/" rel="noopener noreferrer"&gt;Portfolio&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;Sometimes the most productive weeks aren't the ones where I'm smashing out hundreds of commits, but the ones where I'm acting as the glue for the projects I care about. This week was exactly that—a heavy focus on the libp2p ecosystem. I spent most of my energy in the review queue and hardening the Python implementation's connection logic. With 12 code reviews under my belt and a critical fix for dial timeouts in &lt;code&gt;py-libp2p&lt;/code&gt;, it was a week about stability and community growth rather than just raw feature velocity.&lt;/p&gt;

&lt;h2&gt;
  
  
  WHAT I BUILT
&lt;/h2&gt;

&lt;p&gt;My hands-on coding time was almost exclusively dedicated to &lt;strong&gt;py-libp2p&lt;/strong&gt;. Networking code is notoriously finicky, and I’ve been digging into how we handle connection lifecycles lately.&lt;/p&gt;

&lt;p&gt;I spent a good chunk of time in the swarm logic. The standout task was addressing a bug where the swarm wasn't respecting the dial timeouts we'd configured. I pushed a commit that added 73 lines and stripped out 10, focusing on making sure every transport dial is strictly bounded by &lt;code&gt;ConnectionConfig.dial_timeout&lt;/code&gt;. It’s one of those "silent" bugs—everything looks fine until a peer is unresponsive, and suddenly your resource usage spikes because connections are hanging in limbo. Getting this right makes the whole library much more resilient in production environments.&lt;/p&gt;

&lt;p&gt;I also did some maintenance work on the interop side. We’ve been seeing some friction between the Nim and Python implementations, specifically around the Random Number Generator (Rng) API. I spent some time trying to unbreak the Nim interop build by pinning versions and aligning with the current &lt;code&gt;nim-libp2p&lt;/code&gt; API. Even though that specific PR didn't land (it ended up being closed), the process of debugging the interop failure was invaluable for understanding where our cross-language assumptions are breaking down.&lt;/p&gt;

&lt;h2&gt;
  
  
  PULL REQUESTS
&lt;/h2&gt;

&lt;p&gt;I had three PRs on the go this week, each hitting a different part of the stack.&lt;/p&gt;

&lt;p&gt;First up, in the &lt;strong&gt;py-libp2p&lt;/strong&gt; repo, I opened &lt;a href="https://github.com/libp2p/py-libp2p/pull/1568" rel="noopener noreferrer"&gt;fix(swarm): bound each transport dial by ConnectionConfig.dial_timeout&lt;/a&gt;. This is the core fix I mentioned earlier. It’s currently open and undergoing testing to ensure we don't accidentally drop valid connections under heavy load.&lt;/p&gt;

&lt;p&gt;I also opened a PR in &lt;strong&gt;agentmesh&lt;/strong&gt;: &lt;a href="https://github.com/google/agentmesh/pull/803" rel="noopener noreferrer"&gt;sdk/python: say which DNS addresses py-libp2p cannot dial&lt;/a&gt;. This is more of a DX (Developer Experience) improvement. There’s nothing more frustrating than a "Failed to dial" error that doesn't tell you &lt;em&gt;why&lt;/em&gt;. This PR adds better error reporting so users know exactly which DNS addresses are causing issues.&lt;/p&gt;

&lt;p&gt;Lastly, I had &lt;a href="https://github.com/libp2p/py-libp2p/pull/1566" rel="noopener noreferrer"&gt;fix(interop): unbreak Nim interop build&lt;/a&gt;. As I mentioned, this one was closed without a merge. We decided to take a different approach to the version pinning, but the investigation I did here helped us identify the root cause of the Rng API mismatch. Sometimes a closed PR is just as useful as a merged one for moving the conversation forward.&lt;/p&gt;

&lt;h2&gt;
  
  
  ISSUES &amp;amp; DISCUSSIONS
&lt;/h2&gt;

&lt;p&gt;On the issue front, I formally documented the timeout bug I found by opening &lt;a href="https://github.com/libp2p/py-libp2p/issues/1567" rel="noopener noreferrer"&gt;host.connect ignores ConnectionConfig.dial_timeout&lt;/a&gt;. I like to open an issue even if I'm planning to fix it immediately—it provides a paper trail for why the code changed, which is a lifesaver for future maintainers (or future me in six months).&lt;/p&gt;

&lt;p&gt;I also got involved in a discussion over at the &lt;strong&gt;afara&lt;/strong&gt; project. I shared &lt;a href="https://github.com/tojunetwork/afara/discussions/20" rel="noopener noreferrer"&gt;notes from running afara end-to-end locally&lt;/a&gt; after doing a fresh clone and a pass over the toju.network. There’s a specific kind of "new user" perspective you only have once, and I try to capture that whenever I’m exploring a new part of the ecosystem. I’m still waiting for some feedback on those notes, but it’s a great way to help a project improve its onboarding flow.&lt;/p&gt;

&lt;h2&gt;
  
  
  CODE REVIEWS
&lt;/h2&gt;

&lt;p&gt;This is where I spent the bulk of my "brain cycles" this week. I performed 12 reviews in total, which is a high ratio compared to my single commit. &lt;/p&gt;

&lt;p&gt;The vast majority of my review work was for &lt;strong&gt;dotnet-libp2p&lt;/strong&gt;. The NethermindEth team is doing some incredible work bringing libp2p to the .NET world, and I’ve been helping them audit their PRs. I approved 11 PRs there, covering a wide range of critical networking features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Stream Multiplexing&lt;/strong&gt;: I approved the addition of Mplex support and improvements to Yamux, including sizing frames to fit secure channel records and handling aborted streams on session loss.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Gossipsub &amp;amp; Routing&lt;/strong&gt;: Reviewed a change to compute gossip message IDs outside the router lock, which is a huge win for performance under high load. I also looked at how they recheck graylisting after RPC penalties.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Resource Management&lt;/strong&gt;: Approved an opt-in inbound stream limit, which is essential for protecting nodes against DoS attacks.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Session Handling&lt;/strong&gt;: Looked at PRs that prevent sessions from surviving peer disposal and keep routine initialization failures at the "Debug" log level to avoid spamming production logs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Outside of the .NET world, I also left a comment on an &lt;strong&gt;agentmesh&lt;/strong&gt; PR regarding Python 3.14 support. We're trying to figure out the best way to handle the transition and whether to prefer 3.13 over 3.11 in certain environments.&lt;/p&gt;

&lt;h2&gt;
  
  
  TECH STACK
&lt;/h2&gt;

&lt;p&gt;This week was 100% Python from a coding perspective, but my "conceptual" stack included C# and Nim as well. &lt;/p&gt;

&lt;p&gt;The additions-to-deletions ratio (+79/-12) reflects the fact that I was mostly adding safety checks and better error handling. It wasn't a "rip and replace" refactoring week; it was a "harden and protect" week. When you're working on a networking stack, you're often adding logic to handle edge cases that you didn't think of in the initial implementation.&lt;/p&gt;

&lt;h2&gt;
  
  
  WHAT'S NEXT
&lt;/h2&gt;

&lt;p&gt;Next week, I’m hoping to see those &lt;code&gt;py-libp2p&lt;/code&gt; PRs land. The dial timeout fix is a priority for me because it affects the stability of any project using the library for long-running nodes. I'll also be keeping an eye on the &lt;strong&gt;afara&lt;/strong&gt; discussion to see if my feedback helps them streamline their local setup.&lt;/p&gt;

&lt;p&gt;I might also dive back into the Nim interop issues. Now that we know why the Rng API was causing trouble, I want to make sure we have a robust way to prevent that kind of regression in the future. Onward!&lt;/p&gt;

</description>
      <category>networking</category>
      <category>discuss</category>
      <category>dotnet</category>
      <category>python</category>
    </item>
    <item>
      <title>Dev log #26 Deep in the libp2p weeds: Fixing DHT prefixes and Yamux resets</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Tue, 20 Oct 2026 04:12:05 +0000</pubDate>
      <link>https://dev.to/yashksaini/dev-log-26-deep-in-the-libp2p-weeds-fixing-dht-prefixes-and-yamux-resets-315n</link>
      <guid>https://dev.to/yashksaini/dev-log-26-deep-in-the-libp2p-weeds-fixing-dht-prefixes-and-yamux-resets-315n</guid>
      <description>&lt;p&gt;Hi, glad you found your way here. I'm Yash, a developer who contributes to open source, mostly p2p networking and AI tooling. Each week I write up what I shipped, what broke, and what fixing it taught me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://x.com/0xcrackedDev" rel="noopener noreferrer"&gt;X&lt;/a&gt; · &lt;a href="https://www.linkedin.com/in/yashksaini" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; · &lt;a href="https://yashksaini.vercel.app/" rel="noopener noreferrer"&gt;Portfolio&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;I spent the week chasing ghosts in the networking stack, specifically focusing on the Python libp2p implementation. It was one of those weeks where you don't necessarily ship a brand-new feature, but you find the cracks in the foundation and start patching them up. I opened two significant PRs to fix protocol-level bugs in Kademlia and Yamux, and flagged four issues that were either blocking my workflow or breaking CI for everyone else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pull Requests
&lt;/h2&gt;

&lt;p&gt;Most of my energy this week went into &lt;code&gt;py-libp2p&lt;/code&gt;. If you've ever worked on p2p protocols, you know that the "happy path" is easy, but the edge cases are where the real work happens.&lt;/p&gt;

&lt;p&gt;I opened a PR titled &lt;a href="https://github.com/libp2p/py-libp2p/pull/1563" rel="noopener noreferrer"&gt;fix(kad_dht): honour protocol_prefix on the wire&lt;/a&gt; because I realized that even if you pass a custom &lt;code&gt;protocol_prefix&lt;/code&gt; to the DHT, the library was just... ignoring it. It would accept the configuration, but then it would go right ahead and speak &lt;code&gt;/ipfs/kad/1.0.0&lt;/code&gt; on the wire anyway. That’s a nightmare for anyone trying to run a private network or a specialized DHT that shouldn't be talking to the main IPFS public network. I added about 130 lines of code and ripped out 17 to ensure that the prefix actually gets propagated down to the protocol level where it belongs. It’s one of those fixes that feels small until you realize you can't build custom networks without it.&lt;/p&gt;

&lt;p&gt;The second PR, &lt;a href="https://github.com/libp2p/py-libp2p/pull/1560" rel="noopener noreferrer"&gt;fix(yamux): report a remote reset to a bounded read, not a clean EOF&lt;/a&gt;, is even more of a deep-dive into stream multiplexing. I was looking at how Yamux handles stream resets. If a remote peer sends a &lt;code&gt;RST&lt;/code&gt; (reset) frame, the local reader should know that something went wrong. However, I found that on a bounded read, the library was reporting a clean &lt;code&gt;EOF&lt;/code&gt;. That's dangerous! A clean &lt;code&gt;EOF&lt;/code&gt; tells the application "everything finished successfully," while a &lt;code&gt;RST&lt;/code&gt; should tell the application "the connection was dropped abruptly." I pushed a fix (+59/-1) to make sure we’re reporting the state correctly. It’s a subtle distinction, but it’s the difference between a reliable file transfer and a corrupted one that thinks it's finished.&lt;/p&gt;

&lt;p&gt;Both of these are currently &lt;strong&gt;OPEN&lt;/strong&gt; and waiting for the maintainers to take a look. P2P code is notoriously tricky to review, so I'm expecting some back-and-forth on the test cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Issues &amp;amp; Discussions
&lt;/h2&gt;

&lt;p&gt;I ended up opening four issues this week, mostly because I kept hitting walls while trying to get my environment and the library to behave.&lt;/p&gt;

&lt;p&gt;First, I had to document the DHT bug properly before fixing it. In &lt;a href="https://github.com/libp2p/py-libp2p/issues/1562" rel="noopener noreferrer"&gt;kad_dht: protocol_prefix is accepted and then ignored&lt;/a&gt;, I laid out the evidence of how the prefix was being dropped. It’s always better to have a clear issue trail before you just chuck a PR at a project.&lt;/p&gt;

&lt;p&gt;I also ran into a weird one in the &lt;code&gt;agentmesh&lt;/code&gt; repo. I was trying to run the SDK build on a machine running the Python 3.14 alpha/beta (yes, I like living on the edge), and it just exploded. I opened &lt;a href="https://github.com/google/agentmesh/issues/692" rel="noopener noreferrer"&gt;&lt;code&gt;make sdk-python&lt;/code&gt; fails on a Python 3.14 host&lt;/a&gt; because the error message was completely unhelpful—it didn't name anything relevant to the actual failure. These kinds of "future-proofing" issues are vital for keeping projects alive as the ecosystem moves forward.&lt;/p&gt;

&lt;p&gt;Back in &lt;code&gt;py-libp2p&lt;/code&gt;, I noticed that the interop CI was completely broken. It turns out the Nim echo server, which we use to test cross-language compatibility, no longer compiles. I opened &lt;a href="https://github.com/libp2p/py-libp2p/issues/1561" rel="noopener noreferrer"&gt;interop CI: the nim echo server no longer compiles, blocking every PR&lt;/a&gt; to get some eyes on it. There’s nothing more frustrating than having a perfect PR ready to go, only to have the entire CI pipeline turn red because of a dependency issue in a different language.&lt;/p&gt;

&lt;p&gt;Finally, I logged the original bug for the Yamux reset issue: &lt;a href="https://github.com/libp2p/py-libp2p/issues/1559" rel="noopener noreferrer"&gt;yamux: a bounded read on a stream the peer RESET reports a clean EOF&lt;/a&gt;. Documenting these protocol-level quirks is half the battle in open source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;p&gt;This was a pure &lt;strong&gt;Python&lt;/strong&gt; and networking week. When you're working in the libp2p ecosystem, you're not just writing code; you're thinking about byte streams, frame headers, and state machines. &lt;/p&gt;

&lt;p&gt;My work was heavily focused on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend/Networking&lt;/strong&gt;: Dealing with the Kademlia DHT and Yamux multiplexer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Protocol Design&lt;/strong&gt;: Ensuring that protocol IDs and prefixes are correctly handled on the wire.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI/DX&lt;/strong&gt;: Debugging why builds fail on newer Python versions and fixing broken interop tests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I didn't have a commit streak this week, mostly because I spent a lot of time in "research and debug" mode—reading the specs, tracing the execution flow, and writing the issues before I actually touched the code. Sometimes the best work happens when the keyboard is quiet.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Next week is all about the follow-through. I've got those two PRs in &lt;code&gt;py-libp2p&lt;/code&gt; that need to be shepherded through review. Protocol changes usually require a lot of justification (rightfully so!), so I'll probably be spending some time writing more exhaustive test cases to prove that my fixes don't break existing behavior.&lt;/p&gt;

&lt;p&gt;I'm also hoping to see some movement on the &lt;code&gt;agentmesh&lt;/code&gt; issue. If I can't get the SDK building on Python 3.14, I might have to go down another rabbit hole to fix the underlying build script myself. The joys of being an early adopter! &lt;/p&gt;

&lt;p&gt;Overall, I'm feeling good about the progress—cleaning up the core of a p2p library is rewarding work, even if it's invisible to most users. Onward!&lt;/p&gt;

</description>
      <category>networking</category>
      <category>python</category>
      <category>opensource</category>
      <category>ethereum</category>
    </item>
    <item>
      <title>Dev log #25 Hardening p2p networking and shipping interactive CLI features in Rust</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Tue, 20 Oct 2026 04:10:16 +0000</pubDate>
      <link>https://dev.to/yashksaini/dev-log-25-hardening-p2p-networking-and-shipping-interactive-cli-features-in-rust-n36</link>
      <guid>https://dev.to/yashksaini/dev-log-25-hardening-p2p-networking-and-shipping-interactive-cli-features-in-rust-n36</guid>
      <description>&lt;p&gt;Hi, glad you found your way here. I'm Yash, a developer who contributes to open source, mostly p2p networking and AI tooling. Each week I write up what I shipped, what broke, and what fixing it taught me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://x.com/0xcrackedDev" rel="noopener noreferrer"&gt;X&lt;/a&gt; · &lt;a href="https://www.linkedin.com/in/yashksaini" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; · &lt;a href="https://yashksaini.vercel.app/" rel="noopener noreferrer"&gt;Portfolio&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;Sometimes the most satisfying weeks aren't about the volume of commits, but the weight of the problems you're solving. This week was a deep dive into the guts of p2p networking and CLI ergonomics, all in Rust. I managed to get 5 PRs merged across two key projects, totaling 2,203 additions. The highlight was definitely landing the new interactive mode in Trak and tightening up some potentially leaky connection logic in minip2p.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Most of my energy this week was split between two very different but equally interesting Rust projects: &lt;code&gt;minip2p&lt;/code&gt; and &lt;code&gt;Trak&lt;/code&gt;. &lt;/p&gt;

&lt;h3&gt;
  
  
  Hardening the p2p Layer: minip2p
&lt;/h3&gt;

&lt;p&gt;Working on &lt;code&gt;minip2p&lt;/code&gt; always feels like a battle against the inherent chaos of the internet. When you're dealing with NAT traversal and relay servers, you can't assume anything works the way it says it does. &lt;/p&gt;

&lt;p&gt;I spent a good chunk of time in the NAT and relay-server logic. One of the more critical fixes was addressing how we handle NAT renewals. I realized we were being a bit too trusting of the relay's expiration timestamps. If you trust an external server to tell you exactly when your mapping expires, you're asking for a dropped connection. I pushed a fix to schedule renewals at half the lifetime, providing a much-needed safety margin. &lt;/p&gt;

&lt;p&gt;I also dug into the &lt;code&gt;relay-server&lt;/code&gt; itself to ensure we’re properly counting finished HOP workers against the connection cap. In p2p, if you don't track your resource usage with surgical precision, you end up with "ghost" connections that eat up your capacity until the whole node crawls to a halt.&lt;/p&gt;

&lt;p&gt;On the &lt;code&gt;swarm&lt;/code&gt; side, I tackled a gnarly edge case where abandoning a peer-closed stream wasn't properly acknowledging its dropped data. It’s one of those "invisible" bugs that doesn't crash the app but leads to weird state mismatches over time. Getting that fixed (and documented) makes the whole stream lifecycle feel much more robust.&lt;/p&gt;

&lt;h3&gt;
  
  
  Better Exploration: Trak
&lt;/h3&gt;

&lt;p&gt;On the developer tooling front, I’ve been contributing to &lt;code&gt;Trak&lt;/code&gt;. This week was all about making the tool more "explorable." &lt;/p&gt;

&lt;p&gt;The big win was landing the interactive mode. Previously, you had to know exactly what subcommand you wanted. Now, if you run &lt;code&gt;trak&lt;/code&gt; with no arguments, it drops you into an interactive session. I also mirrored the &lt;code&gt;--tree&lt;/code&gt; functionality from &lt;code&gt;callers&lt;/code&gt; over to &lt;code&gt;calls&lt;/code&gt;. When you're trying to map out a complex codebase, being able to see the call hierarchy as a tree is a game-changer. &lt;/p&gt;

&lt;p&gt;I ended up adding about 1,757 lines to Trak this week, which included a lot of work on the interactive match list ordering and driving a scripted interactive session against the binary to make sure the UI doesn't regress.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pull Requests
&lt;/h2&gt;

&lt;p&gt;It was a "clean sweep" week for PRs—5 opened, 5 merged. &lt;/p&gt;

&lt;p&gt;In &lt;code&gt;minip2p&lt;/code&gt;, &lt;a href="https://github.com/deepso7/minip2p/pull/323" rel="noopener noreferrer"&gt;pull #323&lt;/a&gt; and &lt;a href="https://github.com/deepso7/minip2p/pull/322" rel="noopener noreferrer"&gt;pull #322&lt;/a&gt; were the heavy hitters for networking stability. The former dealt with that NAT renewal skepticism I mentioned, while the latter fixed the connection cap accounting in the relay server. I also landed &lt;a href="https://github.com/deepso7/minip2p/pull/321" rel="noopener noreferrer"&gt;pull #321&lt;/a&gt;, which ensures we're properly acking data when a stream is abandoned. These are the kinds of fixes that you don't "see" as a user, but you definitely feel when the network stays stable for days instead of hours.&lt;/p&gt;

&lt;p&gt;Over at &lt;code&gt;Trak&lt;/code&gt;, &lt;a href="https://github.com/subhdotsol/Trak/pull/3" rel="noopener noreferrer"&gt;pull #3&lt;/a&gt; was the massive one. It introduced the interactive mode and changed the default behavior of the CLI. It’s always a bit nerve-wracking to change the entry point of a tool, but the feedback on the whole-branch review was solid, and I think it makes the tool much more approachable for new users. I also squeezed in &lt;a href="https://github.com/subhdotsol/Trak/pull/2" rel="noopener noreferrer"&gt;pull #2&lt;/a&gt; to add the &lt;code&gt;--tree&lt;/code&gt; flag to the &lt;code&gt;calls&lt;/code&gt; command, keeping the API surface consistent across the different search modes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Issues &amp;amp; Discussions
&lt;/h2&gt;

&lt;p&gt;While most things went smoothly, I did open one issue in &lt;code&gt;minip2p&lt;/code&gt; that's going to need some brainpower next week. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/deepso7/minip2p/issues/324" rel="noopener noreferrer"&gt;Issue #324&lt;/a&gt; is about our manual-ack backpressure tests. Right now, the tests are a bit flaky because they interpret "the link has been quiet for 500ms" as "the link has stopped." In a real-world network (or even a busy CI runner), 500ms of silence doesn't necessarily mean the backpressure is working; it might just mean the CPU was busy elsewhere. I need to find a more deterministic way to validate that the data flow has actually paused without relying on wall-clock timers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code Reviews
&lt;/h2&gt;

&lt;p&gt;I also spent some time in the &lt;a href="https://github.com/NethermindEth/dotnet-libp2p" rel="noopener noreferrer"&gt;dotnet-libp2p&lt;/a&gt; repo, helping out with some code reviews. Even though my own coding this week was 100% Rust, the p2p world is small, and the concepts carry over.&lt;/p&gt;

&lt;p&gt;I approved &lt;a href="https://github.com/NethermindEth/dotnet-libp2p/pull/303" rel="noopener noreferrer"&gt;pull #303&lt;/a&gt;, which adds a fuzzing harness for core channels. Fuzzing is absolutely essential for networking code—if there's a weird state transition possible, a fuzzer will find it long before a human does. I also took a look at &lt;a href="https://github.com/NethermindEth/dotnet-libp2p/pull/299" rel="noopener noreferrer"&gt;pull #299&lt;/a&gt; regarding Yamux stream registration. Ensuring outbound frames don't get ahead of stream registration is a classic race condition in multiplexers, so it was good to see that getting tightened up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;p&gt;This was a pure Rust week. 8 commits, all in Rust. &lt;/p&gt;

&lt;p&gt;The line counts tell an interesting story: +2203 / -173. Usually, I like a higher deletion ratio (nothing feels better than deleting code), but this was a heavy feature-work week for &lt;code&gt;Trak&lt;/code&gt;. Building out an interactive TUI (Text User Interface) and the associated logic naturally involves a lot of new code. &lt;/p&gt;

&lt;p&gt;I didn't hit a 7-day streak this week, but the work I did put in was high-intensity. Sometimes you need those gap days to let the p2p state machine logic settle in your head before you write the next line of code.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Next week, I need to tackle that backpressure test flakiness in &lt;code&gt;minip2p&lt;/code&gt;. Flaky tests are the bane of my existence, and I won't feel comfortable adding more features until the CI is rock solid. I'm also planning to keep refining the interactive mode in &lt;code&gt;Trak&lt;/code&gt;—now that the foundation is there, I want to see if I can make the navigation even snappier.&lt;/p&gt;

&lt;p&gt;The p2p stack is feeling more stable, and the CLI tools are getting more powerful. It's a good place to be. See you in the next update!&lt;/p&gt;

</description>
      <category>rust</category>
      <category>cli</category>
      <category>networking</category>
      <category>discuss</category>
    </item>
    <item>
      <title>I Built My Friend a Mock Interviewer That Read His Rust Code</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Mon, 05 Oct 2026 13:53:30 +0000</pubDate>
      <link>https://dev.to/yashksaini/i-built-my-friend-a-mock-interviewer-that-read-his-rust-code-1gif</link>
      <guid>https://dev.to/yashksaini/i-built-my-friend-a-mock-interviewer-that-read-his-rust-code-1gif</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;grill&lt;/code&gt; is a mock technical interviewer that has read your code.&lt;/strong&gt; It runs in a terminal, on an open model, on your own laptop.&lt;/p&gt;

&lt;p&gt;I built it for my friend &lt;a href="https://github.com/AkashJana18" rel="noopener noreferrer"&gt;Akash&lt;/a&gt;. He has spent the last year writing Rust, ships TypeScript on the side, and is looking for a full-time role. The rounds he dreads are the Rust and JavaScript deep dives.&lt;/p&gt;

&lt;p&gt;Most interview prep tools ask the same textbook questions: what is a closure, explain ownership. Real senior interviews do not go that way. They go "walk me through your project", and then the interviewer points at one line you hoped nobody would notice and asks why.&lt;/p&gt;

&lt;p&gt;You cannot practise that with a question bank, because the questions depend on your code. So &lt;code&gt;grill&lt;/code&gt; does three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Reads his repositories&lt;/strong&gt; and finds the lines worth a question: &lt;code&gt;unsafe&lt;/code&gt; blocks, locks, lifetimes, spawned tasks, &lt;code&gt;useEffect&lt;/code&gt;, &lt;code&gt;forEach(async ...)&lt;/code&gt;, &lt;code&gt;any&lt;/code&gt;, empty &lt;code&gt;catch&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interviews him on them.&lt;/strong&gt; One question about that exact code, one follow-up that presses on the weakest part of his answer, then a grade from 0 to 4 with what he missed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Remembers what he got wrong.&lt;/strong&gt; The next session draws more from his worst topics.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is the scanner on four of Akash's public repositories. This is real output:&lt;/p&gt;

&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%2Fup511l6jxyc21okamnb9.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%2Fup511l6jxyc21okamnb9.png" alt="Terminal output of grill ingest finding 116 interview-worthy spots across four repositories" width="800" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;116 spots, and the top one is in &lt;code&gt;miccli&lt;/code&gt;, his voice dictation CLI: an &lt;code&gt;Arc&amp;lt;Mutex&amp;lt;...&amp;gt;&amp;gt;&lt;/code&gt; shared with a real-time audio callback. That is exactly the line a Rust interviewer would circle.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

 

&lt;p&gt;A session looks like this. The code and location are real scanner output; paste your own question, answer and grade from a real run in place of the placeholder lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="err"&gt;──&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="err"&gt;──&lt;/span&gt;
&lt;span class="n"&gt;AkashJana18&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;miccli&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="py"&gt;.rs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;62&lt;/span&gt;  &lt;span class="n"&gt;shared&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;
&lt;span class="mi"&gt;62&lt;/span&gt; &lt;span class="err"&gt;│&lt;/span&gt;     &lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;start_capture&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="k"&gt;self&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;AudioStream&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="mi"&gt;63&lt;/span&gt; &lt;span class="err"&gt;│&lt;/span&gt;         &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nn"&gt;mpsc&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;channel&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
   &lt;span class="err"&gt;│&lt;/span&gt;         &lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="mi"&gt;72&lt;/span&gt; &lt;span class="err"&gt;│&lt;/span&gt;         &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;sink&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nn"&gt;Arc&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nn"&gt;Mutex&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nn"&gt;PendingResampler&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
   &lt;span class="err"&gt;│&lt;/span&gt;         &lt;span class="o"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;
        yashksaini-coder
      &lt;/a&gt; / &lt;a href="https://github.com/yashksaini-coder/grill" rel="noopener noreferrer"&gt;
        grill
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/yashksaini-coder/grill/docs/cover.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyashksaini-coder%2Fgrill%2FHEAD%2Fdocs%2Fcover.png" alt="grill: a mock interviewer that has read your code" width="800"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;grill&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;a href="https://github.com/sponsors/yashksaini-coder" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/905c0628741c74fd2dc51df9409ed09e4624cfed6a16787d8c2102a17f4e8506/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d2545322539442541342d6561346161613f6c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d7768697465" alt="Sponsor"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A mock interviewer that has read your code. It runs on your laptop, on an open model, with no network.&lt;/p&gt;

&lt;p&gt;Most interview prep asks textbook questions. Real senior interviews ask "walk me through your project", then press on the one line you hoped nobody would notice. &lt;code&gt;grill&lt;/code&gt; clones your repositories, finds those lines, and asks about them.&lt;/p&gt;

&lt;p&gt;Built for &lt;a href="https://github.com/AkashJana18" rel="noopener noreferrer"&gt;Akash&lt;/a&gt;, who writes Rust and TypeScript and is interviewing for full-time roles.&lt;/p&gt;

&lt;p&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/yashksaini-coder/grill/docs/desk.jpg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyashksaini-coder%2Fgrill%2FHEAD%2Fdocs%2Fdesk.jpg" alt="I built my friend an interviewer that read his code" width="800"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;── 1 of 5 ──
AkashJana18/miccli src/audio.rs:62  shared-state
62 │     pub fn start_capture(&amp;amp;self) -&amp;gt; Result&amp;lt;AudioStream&amp;gt; {
63 │         let (tx, rx) = mpsc::channel();
   │         ...
72 │         let sink = Arc::new(Mutex::new(PendingResampler::new(
   │         ...

Why is `sink` behind a Mutex, and what does the audio callback do if that lock is contended?
  &amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The code and location above are real scanner output. The question is an example of the kind a model asks; yours will differ.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Demo&lt;/h2&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/yashksaini-coder/grill/docs/demo.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fyashksaini-coder%2Fgrill%2FHEAD%2Fdocs%2Fdemo.gif" alt="grill interviewing a real repository: ingest, spots, a two-round interview, the weak-spot map"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Recorded…&lt;/p&gt;&lt;/div&gt;


&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/yashksaini-coder/grill" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;About 1,300 lines of TypeScript including tests, three runtime dependencies, MIT licensed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ollama pull gemma3:4b

git clone https://github.com/yashksaini-coder/grill &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd &lt;/span&gt;grill
npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm run build &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm &lt;span class="nb"&gt;link

&lt;/span&gt;grill ingest AkashJana18/miccli AkashJana18/solana-consensus-lab
grill start                    &lt;span class="c"&gt;# 5 questions&lt;/span&gt;
grill start &lt;span class="nt"&gt;-n&lt;/span&gt; 3 &lt;span class="nt"&gt;--lang&lt;/span&gt; rust   &lt;span class="c"&gt;# Rust only&lt;/span&gt;
grill report                   &lt;span class="c"&gt;# the weak-spot map&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&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%2Fo7mmx0ocyxryp72z98la.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%2Fo7mmx0ocyxryp72z98la.png" alt="Architecture of grill: ingest, interview and remember stages, all running locally on Ollama, Gemma and Mastra" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The open pieces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://ai.google.dev/gemma" rel="noopener noreferrer"&gt;Gemma&lt;/a&gt;&lt;/strong&gt;, Google's open-weight model, served by &lt;a href="https://ollama.com" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt; on &lt;code&gt;localhost&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://mastra.ai/docs" rel="noopener noreferrer"&gt;Mastra&lt;/a&gt;&lt;/strong&gt;, the open-source TypeScript agent framework, for the two agents and the tool.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Design rule: the model gets one small job at a time
&lt;/h3&gt;

&lt;p&gt;A 4B model running on a laptop is not going to plan an interview, hold a rubric in its head, and remember what it asked five turns ago. So I did not ask it to. The order of steps lives in ordinary TypeScript. The model is only ever asked to do one of three things: write a question, write a follow-up, or grade an exchange.&lt;/p&gt;

&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%2Fobzwfj1p08ywsxmkl296.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%2Fobzwfj1p08ywsxmkl296.png" alt="One interview round: scanner shows a snippet, interviewer asks, candidate answers, interviewer follows up, grader scores, store saves" width="799" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every one of those calls is handed the real snippet again. The model never has to recall code, so it has less room to invent it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 1: finding the lines worth asking about
&lt;/h3&gt;

&lt;p&gt;The scanner is a table of 38 patterns, 17 for Rust and 21 for JavaScript and TypeScript. Each one carries a topic, a weight, and the angle a good interviewer would take:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;rust&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;lock&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;concurrency&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="se"&gt;\.(&lt;/span&gt;&lt;span class="sr"&gt;lock|read|write&lt;/span&gt;&lt;span class="se"&gt;)\(\)\s&lt;/span&gt;&lt;span class="sr"&gt;*&lt;/span&gt;&lt;span class="se"&gt;(\.&lt;/span&gt;&lt;span class="sr"&gt;await|&lt;/span&gt;&lt;span class="se"&gt;\.&lt;/span&gt;&lt;span class="sr"&gt;unwrap&lt;/span&gt;&lt;span class="se"&gt;\(\)&lt;/span&gt;&lt;span class="sr"&gt;|&lt;/span&gt;&lt;span class="se"&gt;\?)&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;how long the guard lives, whether it is held across an await, and what a poisoned or contended lock does&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;

&lt;span class="nf"&gt;js&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;async-in-loop&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;async&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="se"&gt;\.(&lt;/span&gt;&lt;span class="sr"&gt;forEach|map|filter|reduce&lt;/span&gt;&lt;span class="se"&gt;)\(\s&lt;/span&gt;&lt;span class="sr"&gt;*async&lt;/span&gt;&lt;span class="se"&gt;\b&lt;/span&gt;&lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;what actually awaits here, the order of completion, and how errors surface&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A regex hit on one line is not a question. So for every hit, the scanner walks up to the enclosing function, matches braces to find its end, and frames the whole thing. Weights are summed per function, overlapping frames are dropped in favour of the strongest, and each repository contributes its best 40 spots, round-robin across topics so a codebase full of &lt;code&gt;.unwrap()&lt;/code&gt; does not turn the whole interview into error handling.&lt;/p&gt;

&lt;p&gt;This is regex and brace counting, not a parser. It finds interesting code. It does not understand it. Understanding is the model's job.&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 2: two Mastra agents on Gemma
&lt;/h3&gt;

&lt;p&gt;Mastra talks to Ollama through its OpenAI-compatible endpoint, so there is no provider SDK and no API key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;providerId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;local&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;modelId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;modelId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;local&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;interviewer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Agent&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;interviewer&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;interviewer&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;instructions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;INTERVIEWER&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;model&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="k"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;grader&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Agent&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;grader&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;grader&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;instructions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;GRADER&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;model&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;strong&gt;interviewer&lt;/strong&gt; is told to ask exactly one question, to name an identifier from the snippet so the candidate knows it read the code, and never to answer or hint.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;grader&lt;/strong&gt; is a separate agent with a separate prompt. It did not write the question, so it has no stake in the answer being good. It returns JSON:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"score"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"verdict"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"one sentence"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"missed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"specific point"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"better"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"the answer you wanted"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Small models wrap JSON in prose and code fences. Instead of trusting the reply, &lt;code&gt;grill&lt;/code&gt; pulls out the first balanced &lt;code&gt;{...}&lt;/code&gt;, validates it with zod, and if that fails, shows the model its own bad reply and asks once more.&lt;/p&gt;

&lt;p&gt;There is also an opt-in &lt;code&gt;read_source&lt;/code&gt; tool (&lt;code&gt;grill start --tools&lt;/code&gt;). It lets the interviewer read beyond the snippet, for example to see a caller or a type definition. It is confined to the repository: a path that resolves outside the checkout is refused. It needs a model with tool calling, so it is off by default.&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 3: the weak-spot map
&lt;/h3&gt;

&lt;p&gt;Every round is saved as JSON under &lt;code&gt;~/.grill/sessions&lt;/code&gt;. The next session picks spots with a weighted draw:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;priority&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;spot&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;Hotspot&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;seen&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Set&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;TopicStat&lt;/span&gt;&lt;span class="p"&gt;[]):&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;stat&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;topic&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nx"&gt;spot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;topic&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;weakness&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;stat&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;stat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;repeat&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;seen&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;has&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;spot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="mf"&gt;0.15&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="c1"&gt;// Squared, so the first session opens on the richest code, not on filler.&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;spot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;score&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.5&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;weakness&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Score a 1 on lifetimes and lifetimes come back. Score a 4 on &lt;code&gt;unsafe&lt;/code&gt; and it fades. Spots already asked are rare but not banned, because being asked the same thing twice is how you find out whether you learned it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Testing an LLM app without an LLM
&lt;/h3&gt;

&lt;p&gt;I did not want the test suite to need a GPU. The tests start a fake OpenAI-compatible server on a random local port and point the real Mastra agents at it. That covers a full round, the JSON retry, &lt;code&gt;:skip&lt;/code&gt; and &lt;code&gt;:quit&lt;/code&gt;, and the tool call including the path-escape refusal. 18 tests, a few seconds, no model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;For this project it is not a preference. A closed API would have made it a worse tool for Akash in four concrete ways.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;His fumbled answers stay his.&lt;/strong&gt; Interview practice only works if you are willing to be wrong. &lt;code&gt;grill&lt;/code&gt; stores every weak answer he gives, by design. That file sits in &lt;code&gt;~/.grill&lt;/code&gt; on his disk. With a hosted API, the same record of everything he does not know would be on someone else's server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Private code works.&lt;/strong&gt; &lt;code&gt;grill ingest&lt;/code&gt; takes a local path. Work code under NDA, the repository he cannot push anywhere, the side project he is not ready to show: all of it can be interviewed on without leaving the machine. Once the model is pulled, a local-path session needs no network at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Practice is free, so he can do a lot of it.&lt;/strong&gt; Three model calls per question, five questions per session, as many sessions as it takes. On a metered API that is a bill that grows with exactly the behaviour I want to encourage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;He can change the interviewer.&lt;/strong&gt; The rubric is a string in &lt;code&gt;src/interview/mastra-brain.ts&lt;/code&gt;. If he is preparing for a company that cares about system design more than language trivia, he edits the prompt. If he gets a better laptop, &lt;code&gt;GRILL_MODEL&lt;/code&gt; swaps in a bigger model in one environment variable. If Ollama is not his thing, &lt;code&gt;GRILL_URL&lt;/code&gt; points at llama.cpp or LM Studio. Nothing in the tool is tied to one vendor.&lt;/p&gt;

&lt;p&gt;Open weights made it private and free. An open framework made it changeable. He needs all three.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits, honestly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The scanner cannot tell a deliberate &lt;code&gt;unwrap()&lt;/code&gt; from a careless one. It surfaces candidates; some are dull.&lt;/li&gt;
&lt;li&gt;Question quality is the model's. A larger local model asks sharper questions.&lt;/li&gt;
&lt;li&gt;The grade is a study aid, not a verdict. Read the "missed" list, not the number.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Gemma.&lt;/strong&gt; Gemma runs locally through Ollama and does all three jobs: asking, pressing, and grading. The whole design, with fixed orchestration and one small task per call, exists to make a small open-weight model enough.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of Mastra.&lt;/strong&gt; Two Mastra agents over an open model, plus a sandboxed &lt;code&gt;read_source&lt;/code&gt; tool, wired to a local OpenAI-compatible endpoint with no provider SDK.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>ai</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Dev log #24 Hardening the p2p stack: From flaky tests to WebSocket fixes</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Mon, 05 Oct 2026 09:12:47 +0000</pubDate>
      <link>https://dev.to/yashksaini/dev-log-24-hardening-the-p2p-stack-from-flaky-tests-to-websocket-fixes-55f</link>
      <guid>https://dev.to/yashksaini/dev-log-24-hardening-the-p2p-stack-from-flaky-tests-to-websocket-fixes-55f</guid>
      <description>&lt;p&gt;Hi, glad you found your way here. I'm Yash, a developer who contributes to open source, mostly p2p networking and AI tooling. Each week I write up what I shipped, what broke, and what fixing it taught me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://x.com/0xcrackedDev" rel="noopener noreferrer"&gt;X&lt;/a&gt; · &lt;a href="https://www.linkedin.com/in/yashksaini" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; · &lt;a href="https://yashksaini.vercel.app/" rel="noopener noreferrer"&gt;Portfolio&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;If you've ever had a CI run fail because a test expected a packet to arrive in exactly 200ms, you know my pain this week. I spent most of my time moving away from clock-based testing and toward progress-driven logic, alongside some critical bug fixes in the Python libp2p stack. Across 22 commits and 15 code reviews, it was a heavy week for p2p infrastructure and making sure our networking primitives actually behave when the network gets noisy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Most of my energy went into &lt;strong&gt;minip2p&lt;/strong&gt;, where I’m deep in the weeds of making the Rust implementation more resilient. I pushed 14 commits there, but the real story is in the refactoring.&lt;/p&gt;

&lt;h3&gt;
  
  
  minip2p: Killing the Flaky Test
&lt;/h3&gt;

&lt;p&gt;There’s nothing that kills developer velocity quite like a flaky test suite. I opened and closed Issue #261 this week because our timing-budgeted tests were falling over whenever the CI runner got too busy. We’ve all been there: you put a &lt;code&gt;sleep&lt;/code&gt; in a test, it works on your machine, and then it fails in GitHub Actions because the runner is under-provisioned.&lt;/p&gt;

&lt;p&gt;I landed PR #284 to address this. Instead of waiting for the clock, I refactored the tests to be driven by progress. For the TCP transport tests, I stopped waiting for an arbitrary 200ms and started waiting for the socket to actually fill and drain. I also had to isolate the relay reservation and timer-bound tests in &lt;code&gt;nextest&lt;/code&gt; to ensure they aren't fighting for resources. It’s the kind of unglamorous work that makes the whole project feel more professional.&lt;/p&gt;

&lt;p&gt;Beyond the tests, I landed a pretty significant refactor in PR #260. I wanted to consolidate how we handle framed exchanges. Now, AutoNAT and Identify (two core p2p protocols) share a framed exchange and are properly bounded by their declared lengths. It’s a bit of "defensive networking"—ensuring a peer can't just stream infinite data at us during a handshake.&lt;/p&gt;

&lt;h3&gt;
  
  
  py-libp2p: Fixing the Leaks
&lt;/h3&gt;

&lt;p&gt;On the Python side of things, I spent some time in &lt;strong&gt;py-libp2p&lt;/strong&gt;. I noticed a gnarly issue where the WebSocket transport was being a bit too generic with its error reporting. Basically, every failure after the initial connection was being swallowed and reported as a "handshake timeout," which is incredibly frustrating when you're trying to debug a real network issue. Even worse, it was leaking the TCP socket in the process.&lt;/p&gt;

&lt;p&gt;I closed Issue #1554 by landing PR #1556, which ensures we report the &lt;em&gt;real&lt;/em&gt; dial failure and, crucially, close the socket so we don't bleed file descriptors. I also followed up with PR #1555 to make sure we’re actually verifying server certificates on &lt;code&gt;wss://&lt;/code&gt; (secure WebSocket) dials. Security isn't optional, even in p2p.&lt;/p&gt;

&lt;h3&gt;
  
  
  Trak: Cleaning up the Indexer
&lt;/h3&gt;

&lt;p&gt;I also made a quick pit stop at &lt;strong&gt;Trak&lt;/strong&gt;, a Rust project I've been helping out with. I noticed the indexer was getting distracted by test fixtures. If you have a directory full of mock code for tests, you don't necessarily want your primary code indexer treating those as real declarations. I landed PR #1 by updating the logic to read declarations from source code only and explicitly exclude test fixture trees. It’s a small change (+532/-12), but it makes the tool much more accurate for its users.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pull Requests
&lt;/h2&gt;

&lt;p&gt;It was a "clean sweep" week for PRs—5 opened, 5 merged.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;[minip2p #284]&lt;/strong&gt;: The big test overhaul. Moving from &lt;code&gt;sleep()&lt;/code&gt; to actual state-checking.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;[minip2p #260]&lt;/strong&gt;: The core refactor. Sharing framed exchanges between protocols.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;[py-libp2p #1556]&lt;/strong&gt;: Fixing the WebSocket socket leak and improving error transparency.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;[py-libp2p #1555]&lt;/strong&gt;: Enforcing WSS certificate verification.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;[Trak #1]&lt;/strong&gt;: Narrowing the indexer's scope to exclude noise.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Code Reviews
&lt;/h2&gt;

&lt;p&gt;While I only had 22 commits of my own, I spent a massive amount of time in the &lt;strong&gt;dotnet-libp2p&lt;/strong&gt; repository. I provided 15 reviews this week, and honestly, this is where a lot of the "architectural" thinking happens. Helping the C# implementation stay in sync with the wider libp2p spec is a challenge, but the team there is shipping some great stuff.&lt;/p&gt;

&lt;p&gt;Some of the highlights from the review pile:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;QUIC on Windows&lt;/strong&gt;: Reviewed a PR to enable the QUIC transport for Windows users.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Gossipsub Hardening&lt;/strong&gt;: Looked at changes for handling partial messages and using &lt;code&gt;IDONTWANT&lt;/code&gt; for large gossip messages to save bandwidth.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Security&lt;/strong&gt;: Approved a move to P-256 ephemeral keys for TLS and better validation of gossip signatures before they hit application hooks.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Reliability&lt;/strong&gt;: Gave the green light on PRs for preserving Yamux replies and handling segmented writes more gracefully.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reviewing 15 PRs while only opening 5 of my own definitely made this a "mentorship and alignment" week. It's important to keep the ecosystem moving together, especially when you're working across three different languages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;p&gt;This week was a polyglot special:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Rust&lt;/strong&gt;: My main focus for the heavy lifting in &lt;code&gt;minip2p&lt;/code&gt; and &lt;code&gt;Trak&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Python&lt;/strong&gt;: Used for the &lt;code&gt;py-libp2p&lt;/code&gt; maintenance and bug fixing.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;C#&lt;/strong&gt;: Purely on the review side, ensuring the .NET implementation is solid.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The numbers tell a story of growth: &lt;strong&gt;+2,503 / -357&lt;/strong&gt;. That’s a lot of new code, but a good chunk of that was the test infrastructure and the refactored protocol handlers. I'm okay with a net positive line count when it means the tests are finally stable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Next week, I want to double down on the &lt;code&gt;minip2p&lt;/code&gt; transport layer. Now that the tests are stable, I can actually start benchmarking performance without worrying about the CI runner's mood. I'm also keeping an eye on the open PRs in the Python and .NET stacks—there's a lot of momentum right now in the p2p space, and I want to make sure we keep that energy going.&lt;/p&gt;

&lt;p&gt;If you're building p2p tools, stop using &lt;code&gt;sleep()&lt;/code&gt; in your tests. Your future self (and your CI) will thank you. See you next week!&lt;/p&gt;




&lt;p&gt;&lt;b&gt;Generated by &lt;a href="https://github.com/yashksaini-coder/DevNotion" rel="noopener noreferrer"&gt;DevNotion&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>development</category>
      <category>programming</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Dev log #23 Polishing the stack: Diagrams, async shutdowns, and a whole lot of code reviews</title>
      <dc:creator>Yash Kumar Saini</dc:creator>
      <pubDate>Sun, 27 Sep 2026 14:02:10 +0000</pubDate>
      <link>https://dev.to/yashksaini/dev-log-polishing-the-stack-diagrams-async-shutdowns-and-a-whole-lot-of-code-reviews-162b</link>
      <guid>https://dev.to/yashksaini/dev-log-polishing-the-stack-diagrams-async-shutdowns-and-a-whole-lot-of-code-reviews-162b</guid>
      <description>&lt;p&gt;Hi, glad you found your way here. I'm Yash, a developer who contributes to open source, mostly p2p networking and AI tooling. Each week I write up what I shipped, what broke, and what fixing it taught me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/yashksaini-coder" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://x.com/0xcrackedDev" rel="noopener noreferrer"&gt;X&lt;/a&gt; · &lt;a href="https://www.linkedin.com/in/yashksaini" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; · &lt;a href="https://yashksaini.vercel.app/" rel="noopener noreferrer"&gt;Portfolio&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;This week was all about clarity—both in the code and how we explain it. I spent a significant chunk of time in the docs and refactoring event flows, while also diving deep into code reviews for the C# libp2p ecosystem. 15 commits, 5 PRs, and 12 code reviews later, the p2p stack feels a lot more solid.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Most of my energy this week went into &lt;strong&gt;minip2p&lt;/strong&gt;. It’s one thing to build a p2p library in Rust; it’s another thing entirely to make sure people actually understand how to use it. I spent a lot of time in &lt;code&gt;docs/pages&lt;/code&gt; and &lt;code&gt;docs/components&lt;/code&gt;, trying to visualize the invisible.&lt;/p&gt;

&lt;p&gt;I tackled a major refactor in the core crate, specifically routing all capabilities through Endpoint events. This was a hefty PR—1,365 additions and 939 deletions—aimed at making the internal event system more predictable. When you're dealing with p2p networking, state management is everything. Moving toward a more event-driven architecture for capabilities simplifies the mental model significantly.&lt;/p&gt;

&lt;p&gt;On the documentation front, I realized the landing page needed more "meat." I built out diagrams to explain the connection attempt flow and the event loop. I used Tailwind to style these diagrams directly, ensuring they look great and stay responsive. I also spent time correcting some claims about the event loop and &lt;code&gt;unsafe&lt;/code&gt; usage—it's vital to be precise when you're talking about Rust's safety guarantees. I even made sure to neutralize animation delays for users with reduced motion settings because accessibility shouldn't be an afterthought in dev tools.&lt;/p&gt;

&lt;p&gt;I also jumped over to &lt;strong&gt;dotnet-libp2p&lt;/strong&gt; to handle some protocol-level stability. I implemented async shutdown for the pubsub router and discovery protocols. In a distributed system, how you leave the network is just as important as how you join it. Without proper async teardown, you end up with hanging resources or weird state issues on the peer side. While I was there, I bumped &lt;code&gt;Microsoft.SourceLink.GitHub&lt;/code&gt; to clear up a pesky NU1902 restore failure that was gunking up the CI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pull Requests
&lt;/h2&gt;

&lt;p&gt;I had five PRs on the move this week, and I'm happy to say four of them are already merged.&lt;/p&gt;

&lt;p&gt;The big one was &lt;a href="https://github.com/deepso7/minip2p/pull/203" rel="noopener noreferrer"&gt;Route all capabilities through Endpoint events (#177)&lt;/a&gt;. It was a deep-tissue refactor of the &lt;code&gt;minip2p&lt;/code&gt; core. It’s always a bit nerve-wracking to move over 2,000 lines of code in a networking stack, but the result is a much cleaner interface for how we handle peer capabilities.&lt;/p&gt;

&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%2Fy2twpbgpztq8oe8s2hew.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%2Fy2twpbgpztq8oe8s2hew.png" alt="Minip2p Landing page" width="799" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the Python world, I opened an enhancement for &lt;strong&gt;py-libp2p&lt;/strong&gt; to &lt;a href="https://github.com/libp2p/py-libp2p/pull/1544" rel="noopener noreferrer"&gt;randomise per-round lookup candidate selection&lt;/a&gt; in the Kademlia DHT. Randomization is a small change—only about 150 lines—but it’s a huge win for network resilience. It prevents the lookup process from getting stuck in a loop or being biased toward the same set of peers every time. That one is still open and undergoing review.&lt;/p&gt;

&lt;p&gt;The rest were mostly focused on the C# side, getting those async shutdowns merged and fixing the build pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Issues &amp;amp; Discussions
&lt;/h2&gt;

&lt;p&gt;I spent some time clearing the deck on the issue tracker for &lt;code&gt;minip2p&lt;/code&gt;. I opened and subsequently closed &lt;a href="https://github.com/deepso7/minip2p/issues/209" rel="noopener noreferrer"&gt;Add UI sections to the landing page&lt;/a&gt;. This was the driver for all that Tailwind and diagram work I mentioned earlier. It’s satisfying to see a "docs" issue result in tangible, visual improvements to a project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code Reviews
&lt;/h2&gt;

&lt;p&gt;If I wasn't writing code this week, I was reading it. I gave 12 code reviews, almost exclusively in the &lt;strong&gt;dotnet-libp2p&lt;/strong&gt; repo. &lt;/p&gt;

&lt;p&gt;The Nethermind team has been crushing it, and I spent a lot of time reviewing their Gossipsub implementation. We looked at everything from &lt;a href="https://github.com/NethermindEth/dotnet-libp2p/pull/213" rel="noopener noreferrer"&gt;bounding Gossipsub control-plane work&lt;/a&gt; to &lt;a href="https://github.com/NethermindEth/dotnet-libp2p/pull/210" rel="noopener noreferrer"&gt;supporting partial messages&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Reviewing 12 PRs while only opening 5 of my own definitely made this a "mentorship and maintenance" week. I approved work on TLS remote public key exposure, pubsub TTL cache eviction fixes, and hardening strict pubsub no-sign validation. It’s a lot of specialized p2p logic, but keeping the C# implementation at parity with the Go and Rust versions is a massive goal for the ecosystem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;p&gt;It was a polyglot week, leaning heavily into the typed world.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Rust&lt;/strong&gt;: My primary focus for &lt;code&gt;minip2p&lt;/code&gt;. I spent a lot of time balancing core logic with documentation.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;C#&lt;/strong&gt;: Used for the protocol-level work in &lt;code&gt;dotnet-libp2p&lt;/code&gt;. The async/await pattern in C# is a different beast compared to Rust's futures, but it's equally powerful for networking.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Python&lt;/strong&gt;: Just a touch of it for the Kademlia DHT work in &lt;code&gt;py-libp2p&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With 2,661 additions and 1,439 deletions, it was a net-positive week in terms of LOC, but a lot of that "weight" is in the new documentation and diagrams. The refactors actually helped trim some of the fat in the core logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Next week, I want to see that Kademlia randomization PR in &lt;code&gt;py-libp2p&lt;/code&gt; get across the finish line. I’m also planning to dive back into the &lt;code&gt;minip2p&lt;/code&gt; Rust crates to see if there are more areas where I can simplify the event logic now that the capability routing is merged. &lt;/p&gt;

&lt;p&gt;There's always more to document, but for now, I'm just happy the landing page finally explains the event loop without me having to jump into a Discord call to draw it on a virtual whiteboard!&lt;/p&gt;




</description>
      <category>networking</category>
      <category>opensource</category>
      <category>programming</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
