<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bethwel Kiplagat on Medium]]></title>
        <description><![CDATA[Stories by Bethwel Kiplagat on Medium]]></description>
        <link>https://medium.com/@iamkiplagat?source=rss-3b6eac58b142------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gv3ymO66oE2WdlIJFa5iEg.jpeg</url>
            <title>Stories by Bethwel Kiplagat on Medium</title>
            <link>https://medium.com/@iamkiplagat?source=rss-3b6eac58b142------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 16:47:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@iamkiplagat/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Build Smart, Not Heavy: In-Browser AI, PWAs, and the Future of the Web]]></title>
            <link>https://iamkiplagat.medium.com/build-smart-not-heavy-in-browser-ai-pwas-and-the-future-of-the-web-22f40951c7f7?source=rss-3b6eac58b142------2</link>
            <guid isPermaLink="false">https://medium.com/p/22f40951c7f7</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[pwa]]></category>
            <dc:creator><![CDATA[Bethwel Kiplagat]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 07:12:39 GMT</pubDate>
            <atom:updated>2026-11-23T07:16:07.843Z</atom:updated>
            <content:encoded><![CDATA[<h4>Key takeaways from my talk at DevFest Kisumu 2026 on why empathy demands building for disconnection and how in-browser AI and modern PWAs define the resilient web.</h4><p>Last Saturday, I had the privilege of standing on the stage at DevFest<br> Kisumu 2026 to talk about a paradox at the heart of modern software<br>engineering:</p><p>We build on 1 Gbps fiber lines and high-end workstations, but our users<br>experience our apps on spotty 3G, crowded buses, and metered mobile<br>bundles.<br>My talk, titled “Build Smart, Not Heavy: In-Browser AI, PWAs, and the<br>Future of the Web”, was not about downgrading ambitions. It was about<br>engineering with empathy — treating connectivity as an opportunistic<br>enhancement rather than an assumed default, and shifting intelligence to<br>the device where it belongs.</p><p>Here is the architectural manifesto behind the talk, the code patterns we<br>discussed, and why this represents the next frontier of the open web.</p><p><strong>The Lie of the “Always-Connected” Web<br></strong>Think back to the web of 2010. Websites loaded in a blink because they<br>shipped markup and light styles.</p><p>Fast forward to 2026: a standard web application routinely ships 5MB to<br>15MB of client-side JavaScript before rendering a single button. And when<br>the user clicks “Submit”, the browser sends a request across the ocean to a<br>data center, waits for an LLM to generate a three-word response, and sends<br>it back.</p><p>If the user steps into an elevator, rides a matatu through a cellular dead<br>zone, or runs out of mobile data, the screen freezes. The browser throws up a dinosaur or a generic connection error.<br>As engineers in Africa and emerging markets, we see the real cost of this<br>every day. Building with empathy requires recognizing three fundamental<br>realities:<br> 1. Connectivity is fluctuating and probabilistic, not continuous.<br> 2. Data bundles cost real money.<br> 3. Devices have untapped local computing power waiting to be unleashed.<br><br><strong> Pillar 1: In-Browser AI (Client-Side Intelligence)<br></strong> The most exciting shift in web standards over the last two years is that<br>the browser is no longer just a document renderer — it is a high-<br>performance local runtime.</p><p>Through WebGPU, WebAssembly (WASM), and built-in browser APIs (like<br>Chrome’s window.ai Prompt API with Gemini Nano), we can now execute<br>inference directly on the user’s silicon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8AsaREgKOvhfeRsyHxiedA.png" /></figure><p><strong>Why In-Browser AI Changes Everything:<br></strong> • Zero Latency: No network round trips. Tokens begin streaming in<br> milliseconds.<br>• 100% Offline Capability: The user can classify text, extract entities, or<br>summarize notes while in airplane mode.<br>• Zero Server Token Bills: Every client executes compute using their own<br>GPU/NPU.<br>• Radical Privacy: Sensitive personal data never leaves the client’s RAM.<br><br><strong> Pillar 2: Progressive Web Apps (PWAs) as a Resilience Contract<br></strong> If in-browser AI provides the brain, Progressive Web Apps provide the<br>nervous system.</p><p>A PWA is not just an app.webmanifest file that lets users click “Add to<br>Home Screen”. A real PWA is an architectural commitment to an Offline-First Contract.<br>1. Instant Cache-First Asset Shells<br>With a Service Worker intercepting fetch events, your application shell<br>(HTML, CSS, core client logic) boots instantly from disk. Network latency<br>to first paint becomes zero.<br>2. Background Sync as an Outbox<br>When a user acts without internet — submitting a report,<br>logging an expense, or drafting a comment — never display an error dialog.<br>Store the payload in IndexedDB, register a sync event, and let the browser<br>deliver it automatically the millisecond a connection is re-established:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Ojh0_DdkpxrpMpo7poI9Q.png" /></figure><p><strong>Pillar 3: Empathy as an Architectural Metric<br></strong> At DevFest Kisumu, I challenged the audience to rethink their definition of<br>“production ready”.</p><p>Too often, engineering teams measure performance on Lighthouse under<br>synthetic fiber-optic throttling. But real empathy means testing:<br>• How does your app behave when packet loss is 40%?<br>• Can a user complete their task if their mobile bundle expires mid-<br>session?<br>• Does your app drain 20% of their battery in five minutes of usage?</p><p><strong><em>When you build for disconnection:<br></em></strong> 1. Offline is a valid state, not an exception handler.<br>2. Status indicators should be calm and optimistic: Tell the user “Saved<br>locally. We will sync as soon as you are back online” rather than “Error<br>503: Connection Failed”.<br>3. Optimistic UI updates rule: Update the interface immediately, log the<br>outbox transaction, and reconcile silently in the background.<br><br><strong><em>The Future of the Open Web: Smart, Not Heavy</em></strong></p><p>The open web is at a crossroads. Proprietary app stores take 30% cuts and<br>dictate distribution rules, while cloud SaaS platforms lock developers into<br>spiraling compute bills.</p><p>The antidote is an open, resilient web:<br>• PWAs provide native-grade installation, file system access, and<br>background workers without app store gatekeepers.<br>• In-Browser AI democratizes intelligent user experiences without requiring a venture-backed server budget.<br>• Lightweight Bundling ensures that software respects the user’s hardware<br>and network limits.</p><p>Building smart means choosing intentional architecture over raw<br>infrastructure brute force.<br><br><strong> Slides and Resources</strong><br>Presentation Slides (Google Slides):<br><a href="https://docs.google.com/presentation/d/1BrrFM8TZXQKEg5NFr32STJ-%20QOdnNT6CnV0_IYXYLIhI/edit?">https://docs.google.com/presentation/d/1BrrFM8TZXQKEg5NFr32STJ-<br>QOdnNT6CnV0_IYXYLIhI/edit?</a></p><p><strong>Speaker Chronicle and Session Notes:<br></strong><a href="https://bethwel.tech/talks/devfest-kisumu-2026"> https://bethwel.tech/talks/devfest-kisumu-2026<br></a> How does your team design for disconnected or fluctuating environments? Let me know in the comments below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22f40951c7f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Fallback Webhook Deliveries in TypeScript AI Agent Protocols]]></title>
            <link>https://iamkiplagat.medium.com/securing-fallback-webhook-deliveries-in-typescript-ai-agent-protocols-e871a7687c1f?source=rss-3b6eac58b142------2</link>
            <guid isPermaLink="false">https://medium.com/p/e871a7687c1f</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Bethwel Kiplagat]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 12:10:38 GMT</pubDate>
            <atom:updated>2026-11-17T12:19:38.686Z</atom:updated>
            <content:encoded><![CDATA[<p>When developing autonomous AI agent protocols, we obsess over LLM latency, tool schemas, and streaming tokens. But when an agent executes long-running tasks across minutes or hours, the most critical link in the chain is often the humblest: the webhook callback.<br> <br>Recently, while contributing to <a href="https://github.com/skein-js/skein-js">https://github.com/skein-js/skein-js</a>, an open-source TypeScript runtime designed to run LangGraph.js and Deep Agents on your own infrastructure. I tackled a subtle but dangerous webhook-delivery edge case.<br>My initial PR was reviewed and requested fundamental architectural changes before it was finally merged: <a href="https://github.com/skein-js/skein-js/pull/93">https://github.com/skein-js/skein-js/pull/93</a><br> <br>Here is the story of how a “best-effort fallback” almost compromised zero-trust webhooks, what happened during code review, and the engineering principles you need when designing webhook contracts for AI agent runtimes.</p><p>The Problem: When Storage Degrades, Security Shouldn’t<br> <br>In `<a href="http://twitter.com/skein">skein</a>-js/agent-protocol`, agents execute runs over stateful graphs. When a run settles — whether it finishes, fails, or pauses for human-in-the-loop approval — the runtime alerts the caller via an HTTP webhook.<br> <br>In production, reliable webhook delivery relies on the Transactional Outbox Pattern:<br> 1. When a run settles, a delivery row is written to an outbox table.<br> 2. The runtime attempts the first delivery inline.<br> 3. If the receiver’s server is down, crashes, or times out, the outbox table retains the record, and exponential backoff retry workers take over.<br> 4. Each request carries three critical headers:<br> — `X-Skein-Delivery-Id`: A stable idempotency key for deduplication.<br> — `X-Skein-Attempt`: The retry counter (`1`, `2`, `3`…).<br> — `X-Skein-Signature`: An HMAC-SHA256 signature (`t=&lt;timestamp&gt;,v1=&lt;hash&gt;`) allowing the receiver to verify authenticity and protect against replay attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fiXIr1gvA8Ln1pYfNpYqcA.png" /></figure><p>The Architecture Blind Spot<br> Skein supports Bring-Your-Own (BYO) storage drivers (like in-memory stores, specialized key-value layers, or custom enterprise backends) that may not implement a durable `deliveries` repository.<br> <br>When a store lacks an outbox, `executeRun` fell back to a single best-effort POST: failures were logged and swallowed. But there was a hidden flaw:<br> <br>The fallback branch dispatched the raw payload directly to `webhookDispatcher` without constructing a `DeliveryAttempt` object:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oSCIJ7J9bOPIwHwyNYK0WQ.png" /></figure><p>Because no `DeliveryAttempt` was passed, fallback webhooks were emitted without `X-Skein-Delivery-Id`, without `X-Skein-Attempt`, and without `X-Skein-Signature`!<br> <br>Any production receiver with strict zero-trust validation (rejecting unsigned requests or requiring deduplication keys) instantly dropped or rejected callbacks originating from custom stores.<br> <br>The First Attempt &amp; The Review “Rejection”<br>When I submitted my initial pull request, I focused simply on getting headers attached to the fallback dispatcher call. But in a high-caliber repository maintained by systems engineers like (<a href="https://github.com/mainawycliffe">https://github.com/mainawycliffe</a>), a quick fix isn’t enough. <br> <br> The review requested significant revisions:<br> <br>1. “Don’t Fork the Pipeline — Unify It”<br>My early draft attempted to construct ad-hoc headers directly inside the fallback condition. The review immediately called this out: payload serialization, secret resolution, timestamp generation, and HMAC signing had already been centralized in `createDeliveryRequest`. Splitting signing logic across two separate branches was an anti-pattern waiting for drift.<br> <br>2. “What Is the Dedup Key Without a Database Row?”<br>In the durable outbox, the `deliveryId` comes from the auto-generated database primary key. On a fallback run, there is no database row. The reviewer pressed: What serves as the stable deduplication key so receivers don’t double-process callbacks?<br>The answer: the `runId` itself. Using `runId` guarantees deterministic idempotency for unpersisted runs without database overhead.<br> <br>3. “Protect Worker Boundaries from Serialization Failures”<br>If a graph state contains cyclic objects, non-serializable bigints, or corrupted buffers, `createDeliveryRequest` will throw. If that happened outside a try/catch, it could crash the runner thread. The review required wrapping payload preparation in an explicit try/catch boundary that logs a targeted warning and exits cleanly without tearing down the host process.<br> <br>4. “Test the Cryptographic Contract, Not Just Header Existence”<br>My original test asserted that `headers[“x-skein-signature”]` was defined. The review feedback was direct: Asserting a string exists doesn’t prove it’s a valid signature. We needed to run the emitted header through the runtime’s actual `verifySkeinSignature` cryptographic helper to prove that the timestamp and HMAC-SHA256 hash genuinely validate against the shared secret.<br> <br>The Clean Solution<br>Here is how the unified, hardened fallback implementation landed in `executeRun`:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ObKHPSORp4dX-z6REG2B-w.png" /></figure><p>And in the unit tests (`webhook.test.ts`), we verified end-to-end cryptographic validity on the unpersisted fallback path:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i4gnh9zpxTDvH8hDSW0jgg.png" /></figure><p>5 Best Practices for Webhook Architecture in Agent Protocols<br> <br>1. Degrade Durability, Never Security<br> If an infrastructure tier doesn’t support durable retries or dead-letter queues, degrade to single-shot delivery — but never strip HMAC signatures or authentication headers. A fallback route should never become an unauthenticated back door.<br> <br>2. Supply Deterministic Idempotency Keys Everywhere<br>Downstream systems often process webhooks through serverless queues or background jobs where retries happen on both ends.<br>Even if your runtime isn’t persisting delivery rows, provide an idempotency key (such as `runId` or `executionId`) so receivers can deduplicate incoming events.<br> <br>3. Single Source of Truth for Cryptographic Signing<br>Never write separate signature generation logic for inline, queued, and fallback dispatches. A single `createDeliveryRequest` factory guarantees that headers, timestamp formats (`t=…`), and HMAC digests match across every lifecycle stage.<br> <br>4. Always Test Cryptographic Verification End-to-End<br>Don’t just test that a header is populated. Feed the generated header and serialized payload back into your public `verifySignature` function in your test suite. If the verification fails due to body whitespace, encoding differences, or timestamp drift, your tests will catch it before production receivers do.<br> <br> 5. Treat Code Reviews as Architectural Masterclasses<br> Having a PR sent back for revisions can feel daunting, but strict reviews in open-source infrastructure are where real engineering growth happens. Maintainers aren’t just protecting their repo; they are teaching you how to build production systems that withstand edge cases at scale.<br> <br>Conclusion<br>Webhooks in AI agent runtimes aren’t just passive notifications — they trigger downstream billing, human approvals, and real-world system actions. Ensuring that every path persisted or fallback adheres to strict cryptographic standards is non-negotiable.<br> <br>Check out <a href="https://github.com/skein-js/skein-js">https://github.com/skein-js/skein-js</a> and take a look at <a href="https://github.com/skein-js/skein-js/pull/93">https://github.com/skein-js/skein-js/pull/93</a> to explore the full diff and tests.</p><p>What strategies does your team use for webhook signing and idempotency in asynchronous agent systems? Let me know in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e871a7687c1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleashing Modern CSS Magic: From Viewport to Context-Aware Styling:]]></title>
            <link>https://iamkiplagat.medium.com/unleashing-modern-css-magic-from-viewport-to-context-aware-stylingby-1d2b4b8d94c7?source=rss-3b6eac58b142------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d2b4b8d94c7</guid>
            <dc:creator><![CDATA[Bethwel Kiplagat]]></dc:creator>
            <pubDate>Sun, 01 Nov 2026 12:39:55 GMT</pubDate>
            <atom:updated>2026-11-01T12:43:59.746Z</atom:updated>
            <content:encoded><![CDATA[<p>If there is one thing I have learned from speaking at tech events and organizing developer communities, it is that frontend developers share a universal frustration: We build highly modular, isolated components, but CSS has historically forced us to style them based on the global viewport.</p><p>In our recent session, we tackled this exact paradox. We walked through the fundamental architectural shift happening in CSS right now — moving from viewport-aware hacks to context-aware styling. For those who couldn’t make it, or for the attendees who want a refresher on the code we wrote together, here is a deep dive into the magic we unlocked.</p><h3>Upgrading the Global Stage: Modern Media Queries</h3><p>We started by fixing the foundation. The days of chaining clunky min-width and max-width media queries are officially behind us. We looked at the new mathematical range syntax (e.g., @media (400px &lt;= width &lt;= 800px)), which instantly cleans up our stylesheets and reduces cognitive load.</p><p>But more importantly, we shifted the focus from the screen size to the user. We explored how to natively query operating system preferences, utilizing prefers-color-scheme for automatic dark mode and prefers-reduced-motion for accessible animations. We also dug into hardware-specific adaptations, using pointer: coarse to automatically expand touch targets for mobile users without writing a single line of JavaScript.</p><h3>The Main Event: Container Queries</h3><p>The energy in the room always shifts when we talk about Container Queries. This is the holy grail of component-driven architecture.</p><p>We took a standard card component that looked beautiful in a wide grid but completely broke when dropped into a narrow sidebar. By defining a container context (container-type: inline-size) and querying that parent container instead of the browser window, we watched the component restructure itself seamlessly. We also replaced rigid viewport units with Container Query Units (cqi), achieving truly fluid typography that scales dynamically based on the space the component is given, not the device it is viewed on.</p><h3>Logic Without JavaScript: Advanced Pseudo-Classes</h3><p>Next, we moved into the logic layer of CSS using modern pseudo-classes.</p><p>The highlight was undoubtedly the :has() selector. By allowing CSS to look &quot;up&quot; the DOM tree, we styled parent wrappers based entirely on the state of their children—completely eliminating the need for JavaScript state toggling.</p><p>We also overhauled form UX. Instead of using the aggressive :invalid pseudo-class that flags errors before a user even finishes typing, we implemented :user-invalid to trigger validation only after the user interacts with the input and moves on. We then built out the classic floating label pattern relying purely on :placeholder-shown and sibling selectors.</p><h3>Elevating the Details: Modern Pseudo-Elements</h3><p>We closed out the session by styling the un-style-able.Using modern pseudo-elements, we completely rebranded the notoriously rigid native file upload button with ::file-selector-button. We applied custom branded colors to user text highlights with ::selection, and replaced complex nested spans with clean ::marker styling for our lists. Finally, we looked at the future of native modals, utilizing the HTML &lt;dialog&gt; element and applying modern glassmorphism blurs to the background overlay using ::backdrop.</p><h3>The Future is Native</h3><p>The biggest takeaway from our session is that the ecosystem has matured. We no longer need heavy JavaScript libraries or complex CSS methodologies to achieve resilient, user-centric, and context-aware designs. The features are native, the browser support is here, and it is time to start building components that are smart enough to adapt anywhere.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d2b4b8d94c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dogfooding the Open Web: How I Automated My Portfolio with Next.js ISR and Zero Client Bloat]]></title>
            <link>https://iamkiplagat.medium.com/dogfooding-the-open-web-how-i-automated-my-portfolio-with-next-js-isr-and-zero-client-bloat-02088110c0fc?source=rss-3b6eac58b142------2</link>
            <guid isPermaLink="false">https://medium.com/p/02088110c0fc</guid>
            <category><![CDATA[pwa]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Bethwel Kiplagat]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 08:48:39 GMT</pubDate>
            <atom:updated>2026-10-28T08:48:39.909Z</atom:updated>
            <content:encoded><![CDATA[<p>From manual git commit fatigue to a self-updating portfolio: Syndicating Medium RSS and Sessionize on the server with 0kB of client JavaScript.<br> Every developer who maintains a personal portfolio eventually hits the same chore: You finish a new blog post or speak at a meetup<br> or conference, and keeping your site updated turns into a repetitive manual pipeline:<br> 1. Open your code editor.<br> 2. Find the hardcoded data array in your components.<br> 3. Paste in the title, link, date, and description.<br> 4. Stage the files, write a commit message.<br> 5. Push to GitHub and wait for CI/CD to build and deploy.<br> A few days ago, after pushing yet another single-line commit just to add a speaking engagement, I decided to fix this friction.</p><p>Instead of doing manual data entry in my code editor, I wanted the website to keep itself in sync with the platforms where I actually publish and register talks — specifically Medium and Sessionize — without sacrificing performance or adding client-side bloat.</p><p>Here is how I set up an automated, zero-dependency syndication flow using Next.js App Router.<br><br><strong>The Architectural Constraints</strong><br> When fetching external feeds in modern web apps, it is easy to default to client-side solutions — such as making fetch calls inside a useEffect hook or using third-party client proxies.<br> However, doing this on a personal portfolio creates unnecessary trade-offs:<br> 1. Layout shifts and loading spinners: Client-side fetching forces the visitor’s browser to wait, render skeletons, or shift content around after the initial paint.<br> 2. Fragile dependencies: Relying on third-party CORS proxies or heavy client-side XML parser libraries adds overhead and points of failure.<br> 3. Unnecessary JavaScript payload: Visitors browsing on a mobile device or a slow connection shouldn’t have to download parsing libraries just to view a list of links.<br> The goal was straightforward: Perform all data fetching and parsing on the server, serve instant static HTML to the user, and maintain a static fallback if an external network request ever fails.<br><br>1. Medium via Native RSS<br> Medium automatically provides an open RSS feed for any profile: <a href="https://medium.com/feed/@iamkiplagat">https://medium.com/feed/@iamkiplagat<br></a> Rather than installing an extra npm package, we can parse the XML feed with native JavaScript on the server:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2DaY9bFn4QsHlKnaYEFJNw.png" /></figure><p>Using Next.js Incremental Static Regeneration (ISR) (next: { revalidate: 3600 }), the page remains fully static. Next.js serves the cached HTML instantly to visitors, and once per hour, checks for new articles in the background.<br><br>2. Sessionize Talks &amp; Merging Custom Sessions:</p><p>For speaking engagements, Sessionize hosts a public speaker profile (<a href="https://sessionize.com/bethwel-kiplagat">https://sessionize.com/bethwel-kiplagat</a>) listing events, dates, and locations. A server-side utility fetches this profile once a day (revalidate: 86400) and extracts event entries.<br> However, not every talk is hosted on Sessionize. For instance, workshops or university sessions often have their own slide decks or dedicated internal pages.<br> To handle this cleanly:<br> • We keep a baseline staticTalks list containing custom or internal talks.<br> • When Sessionize is queried, newly announced events are automatically added to the list.<br> • Existing custom sessions and internal deep links are fully preserved and never overwritten.<br> • If Sessionize is ever unreachable, the baseline list is served seamlessly.<br><br>3. Zero Client Payload via React Server Components</p><p>To keep the client bundle lightweight, both Articles and Talks are written as Async React Server Components:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aroPQ_xUvaTYPZ9lsVbQxA.png" /></figure><p>Because these components run exclusively on the server:</p><p>• 0 kB of JavaScript is added to the browser bundle for fetching or XML parsing.<br> • The browser receives plain, semantic HTML.<br> • The build output confirms the route remains static with hourly background revalidation:</p><p>Route (app) Size First Load JS Revalidate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*kIbj1n3p3IGoLrZq-Ul-Pg.png" /></figure><p><strong>The Dogfooding Moment</strong></p><p>The best part of this setup is that I am writing and publishing this very article on Medium.</p><p>Once it goes live:</p><p>1. Medium updates the RSS feed.<br> 2. Next.js revalidates the cache in the background on the next visit.<br> 3. This exact post will appear at the top of my portfolio’s Writing &amp; Notes section automatically.</p><p>No code edits, no commit messages, and no manual deployments needed.<br><br><strong>Takeaways</strong></p><p>• Automate small recurring friction: Eliminating repetitive manual maintenance makes it easier to keep your portfolio up to date.<br> • Lean on server rendering: Handling feed ingestion on the server keeps your frontend fast and accessible across all devices.<br> • Simple standards still work: Open web standards like RSS remain one of the most reliable ways to syndicate content across platforms without extra tooling.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02088110c0fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build for Any Connection: Modern Patterns for Resilient Web Apps]]></title>
            <link>https://iamkiplagat.medium.com/build-for-any-connection-modern-patterns-for-resilient-web-apps-195a4e66518c?source=rss-3b6eac58b142------2</link>
            <guid isPermaLink="false">https://medium.com/p/195a4e66518c</guid>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[web-apps]]></category>
            <category><![CDATA[pwa]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Bethwel Kiplagat]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 07:16:32 GMT</pubDate>
            <atom:updated>2026-10-27T07:16:32.017Z</atom:updated>
            <content:encoded><![CDATA[<p>Think back to the web of 2010. The average webpage was a fraction of the size it is today. It loaded fast and did what it needed to do. Fast forward to today, and we routinely ship massive JavaScript bundles, heavy frameworks, and analytics scripts to render a simple form.</p><p>We build these applications in perfect conditions — on high-end machines with gigabit Wi-Fi. In that environment, everything feels instantaneous. But our users don’t live in localhost. They commute on trains where the signal drops, work in remote areas, or rely on fluctuating mobile networks.</p><p>When a heavy, internet-dependent web app meets a broken connection, it fails. The screen goes white, the dinosaur appears, and any data the user was trying to submit is lost.</p><p>To fix this, we have to change how we engineer the web. We must stop designing for the best-case scenario and start <strong>designing for disconnection</strong>. Here is how to use modern Progressive Web App (PWA) patterns to build resilient applications that work flawlessly on any connection.</p><h3>1. Instant Loads (Service Worker Caching)</h3><p>Traditional web apps ask the network for permission to render. If the network is slow, the user is left staring at a blank screen.</p><p>A Service Worker changes this by acting as a middleman between your web app and the network. Instead of going to the internet for every single request, the app checks a local cache first. By using modern tooling (like Vite with PWA plugins or Workbox), you can easily set up powerful caching strategies:</p><ul><li><strong>Cache-First (For the UI Shell):</strong> Store your HTML, CSS, and static assets locally the first time the user visits. On the next visit, the app loads instantly from the device’s hard drive, regardless of the network.</li><li><strong>Stale-While-Revalidate (For Dynamic Data):</strong> For data feeds, show the user the cached version instantly so they have something to look at, while the app quietly fetches the freshest data in the background and updates the screen.</li></ul><h3>2. Action Preservation (Background Sync)</h3><p>Caching is great for <em>reading</em> data, but what about <em>writing</em> data? If a user fills out a long form and hits “Submit” right as they enter a tunnel, the request fails, and their effort is erased. This destroys user trust.</p><p>Background Sync acts as the ultimate safety net. It works like an “Outbox” for your web app. When an outgoing network request fails, the Service Worker catches it and saves the exact payload into a local database in the browser.</p><p>The magic happens when the connection comes back. The browser detects the network, fires a sync event, and silently pushes the queued data to the server in the background. The user doesn’t even need to have the app open. They never lose their work again.</p><h3>3. Bridging the Gap (Native Web Capabilities)</h3><p>Even if a web app works offline, it often still feels like a website trapped in a browser tab. To make an app truly resilient and engaging, it should integrate seamlessly with the device itself. Modern web APIs (often grouped under Project Fugu) allow developers to safely tap into device hardware:</p><ul><li><strong>The Badging API:</strong> If a user has a pending offline sync, you can use the Badging API to put a small notification dot or number directly on the app’s icon on their home screen. This provides native-level visual feedback.</li><li><strong>The Web Share API:</strong> Instead of building custom social sharing buttons, you can hook directly into the device’s native sharing menu, allowing users to send data to their local messaging apps or email clients just like a native app would.</li></ul><h3>The Takeaway</h3><p>Great code alone isn’t enough; users need applications that respect their environment. The true power of a modern PWA isn’t just about being able to “Add to Home Screen.” It is an architectural shift.</p><p>By designing for disconnection from day one, intercepting network failures with caching, and protecting user input with background sync, you stop fighting the network and start building for any connection.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=195a4e66518c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Checkbox: Modern Bot Management, reCAPTCHA, and the Modern Web]]></title>
            <link>https://iamkiplagat.medium.com/beyond-the-checkbox-modern-bot-management-recaptcha-and-the-modern-web-ef8f6691ed50?source=rss-3b6eac58b142------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef8f6691ed50</guid>
            <category><![CDATA[captcha]]></category>
            <category><![CDATA[recaptcha]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Bethwel Kiplagat]]></dc:creator>
            <pubDate>Fri, 25 Sep 2026 06:15:00 GMT</pubDate>
            <atom:updated>2026-09-25T06:15:00.611Z</atom:updated>
            <content:encoded><![CDATA[<p>Every web developer hits this point: Their pristine sign-up flow or contact form suddenly gets bombed with abuse — credential stuffing bots, spambots, and headless scrapers. Traditionally, the default solution has always been: Cover the page with a visual challenge, and leave it at that.</p><p>By taking an architectural approach, we are responsible for so much more than just blocking automated traffic. We have to consider that while we may want to improve the security posture, we also need to accommodate real user friction, accessibility, and browser performance. That’s why getting to know how bot management came to be and why the industry is moving away from classic tests is crucial for any senior web developer.</p><h3>The Core Concept: CAPTCHA vs. reCAPTCHA</h3><h3>Although synonymous in their usage, these are two different paradigms:</h3><p>CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is the academic process at the root of this technique, which has been in existence for decades. The first CAPTCHAs used distorted text, bizarre typefaces, and complex backgrounds that OCR engines couldn’t decipher.</p><p>What is reCAPTCHA? ReCAPTCHA is the proprietary platform that was developed at Carnegie Mellon University and purchased by Google. It was developed by converting a physical print into a complex risk analysis machine.</p><h3>This trajectory of these tools is telling of increasing friction:</h3><p>The first version of this distorted text had to be read by people. This version quickly became obsolete as computer vision models learned to read noisy fonts better than humans.</p><p>The interactive checkbox and image grids transitioned the onus from understanding the text to examining physical micro-behaviors, using photo grids as the intermediate step to escalate.</p><p>In the case of invisible scoring models, you didn’t even give a pass or fail test at submit time. Instead, navigation signals are tracked over a session, and a confidence score is assigned with a range from zero to 1.</p><p>Enterprise risk platforms extend this telemetry to entire user journeys, integrating into cloud web application firewalls and fraud detection layers.</p><h3>Why Interactive Challenges Are Fading</h3><p>There are three key reasons why conventional puzzle challenges are increasingly becoming an anti-pattern in our architecture:</p><h3>1. Accessibility and Inclusion</h3><p>With today’s standards for the web, such as WCAG 2.2, cognitive testing and visual puzzle grids can be serious barriers to accessibility. Using a screen reader, navigating with a keyboard, or having another type of cognitive difference should not prevent someone from reading crosswalks or typing gibberish.</p><h3>2. Modern AI’s Challenges with Puzzles</h3><p>Computer vision models and stealth browser automation will solve the traditional image grids more quickly and accurately than users. When a script can solve a puzzle more reliably than a user, the test punishes the user, not the script.</p><h3>3. Browser Performance and Web Vitals</h3><p>Heavy external verification scripts that are loaded onto the client cause delays in Interaction to Next Paint and Total Blocking Time. Any security dependencies that are loaded on the page have to be optimized for performance so that they do not slow down the user experience.</p><h3>The Client-Side Fallacy</h3><p>An essential principle of cyber security is that protection at the client side is an illusion.</p><p>The library on the client’s side does not prevent an attacker. Its sole purpose is to gather behavioral telemetry and trade that for a transient signature token. You can get around any check on the frontend because you can view the code running in the browser and change it or even skip it altogether with direct network calls.</p><h3>Real bot mitigation happens on the backend:</h3><p>The verification token is gathered by the browser when the user takes a sensitive action.</p><p>The application server then passes that token on to the verification provider together with the secret key.</p><p>Here, the verifying party (X.XXXXX) is also presented. The verification provider sends back a verification, e.g., a risk score.</p><p>The application server will either complete the transaction, request multi-factor authentication, or deny the request.</p><h3>Modern Bot Mitigation Principles</h3><h3>Create scalable, intuitive security that doesn’t turn off users by:</h3><p>Timely trigger verification: The majority of types of passive tokens have a short lifetime, which is no more than 2 minutes. Therefore, they must be created at the moments when the user takes an action, not a couple of hours before.</p><p>Choose step-up authentication instead of hard blocks: A middle-tier score doesn’t necessarily mean a bot; it can also mean a privacy-focused user on a VPN or an open WiFi connection. Rather than flat-denying, give a secondary factor, such as a passkey prompt or email verification code.</p><p>Enforce defense in depth: Never rely on a lone tool to defend against bots. Mix, match, and layer behavioral telemetry, back-end rate limiting, IP reputation filtering, honeypot form fields to bait blind scrapers, and Web Application Firewalls.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef8f6691ed50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 19: It Wasn’t the Code.]]></title>
            <link>https://iamkiplagat.medium.com/day-19-it-wasnt-the-code-977054a5f845?source=rss-3b6eac58b142------2</link>
            <guid isPermaLink="false">https://medium.com/p/977054a5f845</guid>
            <dc:creator><![CDATA[Bethwel Kiplagat]]></dc:creator>
            <pubDate>Mon, 19 Jan 2026 08:07:16 GMT</pubDate>
            <atom:updated>2026-01-19T08:07:16.525Z</atom:updated>
            <content:encoded><![CDATA[<h4>Day 19: It Wasn’t the Code. It Was the Package Manager. <strong>Subtitle:</strong> <em>Why my Angular project wouldn’t start, and how </em><em>pnpm taught me a lesson in environment management.</em></h4><p>I spent the last few days excited to write actual Angular logic. I had my components planned, my services ready… and then I hit a wall before I even wrote a single line of code.</p><p><strong>The Error</strong> I tried to run an existing Angular project to study its structure. I typed npm install. I typed ng serve. And my terminal exploded.</p><p>Errors about “missing dependencies,” “peer dependency conflicts,” and “scripts not found.”</p><p><strong>The Realization</strong> I realized the project was built using <strong>pnpm</strong> (Performant NPM), not standard npm. I tried to mix the two, and node_modules got confused.</p><p>For those new to this (like I was): pnpm saves disk space and installs faster by using symlinks, but if you try to treat it like standard npm, things break.</p><p><strong>The Fix</strong></p><ol><li><strong>Clean Slate:</strong> I had to rm -rf node_modules (delete everything).</li><li><strong>The Right Tool:</strong> I installed pnpm globally (npm install -g pnpm).</li><li><strong>The Magic Command:</strong> pnpm install.</li></ol><p><strong>The Result</strong> Suddenly, the sea of red text vanished. The build time was incredibly fast. And finally, I saw the dashboard load on localhost:4200.</p><p><strong>The Lesson for #RoadToGDE</strong> Being a Google Developer Expert isn’t just about knowing ngIf vs @if. It’s about understanding the ecosystem. Today I didn&#39;t write a lot of features, but I learned how to manage my environment.</p><p>That localhost screen never looked so good.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=977054a5f845" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React vs. Angular: My First 12 Days and the “Mental Shift”:]]></title>
            <link>https://iamkiplagat.medium.com/react-vs-angular-my-first-12-days-and-the-mental-shift-746b785bc2eb?source=rss-3b6eac58b142------2</link>
            <guid isPermaLink="false">https://medium.com/p/746b785bc2eb</guid>
            <dc:creator><![CDATA[Bethwel Kiplagat]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 10:41:44 GMT</pubDate>
            <atom:updated>2026-01-12T10:41:44.211Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>I spent the first week fighting the framework. Now I’m starting to understand it.</em></h4><p>On Day 7 of my #RoadToGDE, my VS Code terminal was a sea of red error messages. Coming from a React background, where I could just throw a function in a .jsx file and call it a component, Angular felt... heavy.</p><p>Why do I need a decorator? Why is the HTML in a separate file? What is a “Standalone” component?</p><p>But today, on Day 12, something clicked.</p><p><strong>The “Opinionated” Advantage</strong> In React, I have to make 50 decisions before I write a single line of code (Which router? Which state manager? How do I structure folders?). Angular makes those decisions for me.</p><p>At first, I hated it. It felt restrictive. But after successfully building my first working component for my <strong>Classroom Connect</strong> project today, I realized that the “restriction” is actually <strong>safety</strong>.</p><p><strong>The TypeScript Realization</strong> The errors I was getting last week weren’t the framework being annoying; they were the framework catching my bugs before I even ran the app. Angular forces you to write cleaner code.</p><p><strong>Current Status:</strong></p><ul><li><strong>Concepts Mastered:</strong> Component Structure, Interpolation {{ }}, and Basic Event Binding (click).</li><li><strong>Concepts Loading:</strong> Signals (still wrapping my head around this vs. useState).</li><li><strong>Mood:</strong> The red lines are gone. The build is green.</li></ul><p>To anyone starting Angular: Push through the first week. The boilerplate starts to make sense when you realize it’s there to help you scale.</p><p>Next up: Diving deep into <strong>Control Flow</strong> (@if, @for).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=746b785bc2eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 days into Angular, and here is my biggest realization coming from React.]]></title>
            <link>https://iamkiplagat.medium.com/6-days-into-angular-and-here-is-my-biggest-realization-coming-from-react-0222bed09d14?source=rss-3b6eac58b142------2</link>
            <guid isPermaLink="false">https://medium.com/p/0222bed09d14</guid>
            <dc:creator><![CDATA[Bethwel Kiplagat]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 10:28:29 GMT</pubDate>
            <atom:updated>2026-01-06T10:28:29.621Z</atom:updated>
            <content:encoded><![CDATA[<p>In React, I often spent the first hour deciding which libraries to use for routing, state, and forms. In Angular, the framework just says: “Here is how we do it. Now go build.”</p><p>It’s opinionated, yes. But honestly? It feels incredibly freeing. I’m spending less time on “setup decisions” and more time understanding the architecture.</p><p>Currently deep-diving into <strong>TypeScript interfaces</strong> and getting my head around the file structure. It’s a lot of boilerplate compared to a simple .jsx file, but I can already see how this scales for the enterprise apps I want to build.</p><p>To my Angular friends: How long did it take you to stop “thinking in React” and start “thinking in Angular”?</p><p>#Angular #RoadToGDE #SoftwareEngineering #LearningPublicly</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0222bed09d14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I’m Betting on Angular in 2026: My Zero-to-GDE Roadmap Subtitle: From React developer to Google…]]></title>
            <link>https://iamkiplagat.medium.com/why-im-betting-on-angular-in-2026-my-zero-to-gde-roadmap-subtitle-from-react-developer-to-google-af1093a5114e?source=rss-3b6eac58b142------2</link>
            <guid isPermaLink="false">https://medium.com/p/af1093a5114e</guid>
            <dc:creator><![CDATA[Bethwel Kiplagat]]></dc:creator>
            <pubDate>Fri, 02 Jan 2026 06:40:30 GMT</pubDate>
            <atom:updated>2026-01-02T06:40:30.908Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why I’m Betting on Angular in 2026: My Zero-to-GDE Roadmap <strong>Subtitle:</strong> From React developer to Google Developer Expert — documenting the wins, the bugs, and everything in between.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AC5xXhNBDjuHNb6UKtVqEg.png" /></figure><p>It started with a pen, a piece of paper, and a quiet promise to myself.</p><p>On December 30th, 2025, I sat down and wrote a “contract” for the new year. It wasn’t just a resolution to code more; it was a specific, ambitious career trajectory. As I wrote the words <em>“From 1st January, I’ll be learning Angular…”</em>, I wasn’t just planning a study schedule. I was planning a transformation.</p><p>My goal for 2026 is crystal clear: <strong>To become a Google Developer Expert (GDE) for Angular.</strong></p><p>I’m not there yet. Far from it. I’m a developer who has spent the last year building with React and Supabase, winning hackathons, and speaking at STEM events. I love the flexibility of the tech I’ve used, so why the switch? And why aim for GDE?</p><p>Here is the plan.</p><h4>Why Angular? Why Now?</h4><p>I am passionate about two specific fields: <strong>EdTech</strong> (Education Technology) and <strong>IoT</strong> (Internet of Things).</p><p>When I look at the applications I want to build — complex dashboards for university hubs, real-time sensor monitoring systems, and scalable learning platforms — I realized I needed a framework that enforces structure. I needed opinionated architecture. I needed performance at scale.</p><p>I’m moving to Angular not because I dislike React, but because I want to master the “Enterprise Way” of building software. I want to understand:</p><ul><li><strong>Signals:</strong> How fine-grained reactivity changes the game.</li><li><strong>RxJS:</strong> How to manage complex streams of data (essential for my IoT projects).</li><li><strong>The Ecosystem:</strong> How the new Angular renaissance (v17+) is reshaping web development.</li></ul><h4>The Roadmap: Learning by Building</h4><p>I don’t believe in “tutorial hell.” I believe in shipping code. Over the next 12 months, I will be following a strict roadmap of <strong>Learning → Building → Teaching</strong>.</p><ol><li><strong>Phase 1: The Foundation.</strong> Building <em>“Classroom Connect,”</em> an EdTech dashboard to master the new control flow and Standalone Components.</li><li><strong>Phase 2: The Deep Dive.</strong> Building a real-time <strong>IoT Sensor Monitor</strong> to master State Management (NgRx) and RxJS.</li><li><strong>Phase 3: The Contribution.</strong> Developing an Open Source UI library to give back to the Angular community.</li></ol><h4>This is an Invitation</h4><p>The path to GDE requires <strong>Community Impact</strong>. That’s why I’m writing this.</p><p>I won’t just be posting the highlights. I’ll be posting the error messages that kept me up at 2 a.m., the concepts that confused me, and the breakthroughs that made it all worth it.</p><p>If you are an Angular veteran, I’d love your feedback on my code. If you are a learner like me, let’s grow together.</p><p>My journey starts now. Let’s build something great.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af1093a5114e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>