<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom"
>
  <channel>
    <title>Akhand Singh</title>
    <link>https://akhandsingh.com</link>
    <description>Poems for starting again: The Shape of Hope by Akhand Singh. Also writing on engineering and AI.</description>
    <language>en-US</language>
    <lastBuildDate>Thu, 12 Nov 2026 00:00:00 GMT</lastBuildDate>
    <atom:link href="https://akhandsingh.com/feed.xml" rel="self" type="application/rss+xml" />
    <image>
      <url>https://akhandsingh.com/icon.svg</url>
      <title>Akhand Singh</title>
      <link>https://akhandsingh.com</link>
    </image>

    <item>
      <title>The Cycle of Memory and Loss</title>
      <link>https://akhandsingh.com/slow-mornings/the-cycle-of-memory-and-loss</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/the-cycle-of-memory-and-loss</guid>
      <description>We never really understand grief until we encounter it ourselves.</description>
      <content:encoded><![CDATA[<p>We never really understand grief until we encounter it ourselves. Of course empathy is there when others go through it, and we would say I understand what you must be feeling, or I am here for you, but none of that really feels true. You may mean it, but you can&#39;t really understand the grief unless you&#39;ve gone through it. And everything about grief is a torture. One moment you are minding your own business and doing the chores you are supposed to.</p>
<p>But the very next moment you struggle to breathe, nothing you do at the moment will release your thoughts. Your mind will be flooded and you wouldn&#39;t find an escape. And then at some point, when you&#39;ve mustered the courage, you would write or talk about it. And you may say how grief helped you recall some memories. Maybe that is true, but it&#39;s not helpful.</p>
<p>If you think about it long enough, you realize that memories lead to grief, and grief leads to memories. And this vicious circle continues for years before the new memories start to layer the old. Don&#39;t lose heart, though. This is the process of life, and this is how all before us and after us would be.</p>
]]></content:encoded>
      <pubDate>Thu, 12 Nov 2026 00:00:00 GMT</pubDate>
      <category>Slow Mornings</category>
    </item>

    <item>
      <title>Right or Selfless</title>
      <link>https://akhandsingh.com/slow-mornings/right-or-selfless</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/right-or-selfless</guid>
      <description>I often think of myself and the people in my life, and I wonder who we are. We spend so much energy trying to win the argument inside our own heads.</description>
      <content:encoded><![CDATA[<blockquote>
<p>Forced into a conflict,<br>Do I choose to be right, or selfless at last?</p>
</blockquote>
<p>I often think of myself and the people in my life, and I wonder who we are.</p>
<p>We spend so much energy trying to win the argument inside our own heads. We pull out old rules, old family names, opinions about respect and blood, and we weigh them against what we actually want. It feels exhausting, honestly: like trying to balance two heavy buckets of water on a narrow plank, terrified that spilling a single drop makes us bad people.</p>
<p>Does winning that internal debate ever actually bring us peace?</p>
<p>I wonder why we treat being right as such a prize. You can argue your point until the other person has nothing left to say, and you can prove you followed every standard of culture and caste to the letter. But then you are left standing alone with your clean record, completely miserable. Being correct is cheap; it rarely holds you when things fall apart.</p>
<p>Maybe the real trouble is that being selfless feels like losing a piece of your skin. It feels like giving up ground you bled to defend. The lines talk about trespassing boundaries and scars from love, and I know you feel every inch of that boundary. You think if you drop your guard, you erase yourself.</p>
<p>I don’t think you do. I think you just stop fighting a ghost.</p>
<p>I only hope you let yourself lay down that heavy armor tonight, even for an hour, and stop keeping score against your own heart.</p>
<p>What would happen if you simply let the other side have the last word and chose to just be kind instead?</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “Between Words.” <a href="https://akhandsingh.com/books/between-words">Read the rest of the collection in “Between Words”</a></p>
]]></content:encoded>
      <pubDate>Mon, 02 Nov 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>What October Teaches Us About Change</title>
      <link>https://akhandsingh.com/slow-mornings/what-october-teaches-us-about-change</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/what-october-teaches-us-about-change</guid>
      <description>October brings in this cold weather, but it signifies more than that. It tells the story of how everything, once green, can fade into oblivion.</description>
      <content:encoded><![CDATA[<p>October brings in this cold weather, but it signifies more than that. It tells the story of how everything, once green, can fade into oblivion. And it resonates so much with what we learn as we grow up. Every story has its transitions, phases, and underlying messages. Nature itself is the world&#39;s best storyteller. It tells how life evolves, grows, and eventually withers, making way for new beginnings. And in that continuation, what we call life unfolds.</p>
<p>From the first laughter to the last smile, life goes on and we end up carrying memories. Memories that stay with us while we breathe and go with us when we depart. So whenever you think there is nothing more to say, think of the air, the earth and this nature. Think of how the world around you moves and how the ever-expanding universe tells its own story. Then take a deep breath because there is so much more to experience.</p>
]]></content:encoded>
      <pubDate>Wed, 28 Oct 2026 00:00:00 GMT</pubDate>
      <category>Slow Mornings</category>
    </item>

    <item>
      <title>Endless Circles</title>
      <link>https://akhandsingh.com/slow-mornings/endless-circles</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/endless-circles</guid>
      <description>I wonder why we pretend our routines are leading anywhere brand new. We run around the same yard every week.</description>
      <content:encoded><![CDATA[<blockquote>
<p>A few wolves, a few foxes,<br>Life runs in endless circles.</p>
</blockquote>
<p>I wonder why we pretend our routines are leading anywhere brand new.</p>
<p>We run around the same yard every week. You wake up, you answer someone who demands your hours, you eat over a kitchen counter, and you tell yourself next month will be different. It is like an old hound pacing the fence line until the grass wears down to plain dirt.</p>
<p>Why do you tell yourself the running has a destination?</p>
<p>I catch myself doing it, too. I think a new project or another conversation will pull me clear of the past, but the past does not leave the room. It just stands there whispering, louder than the good sense people try to hand us.</p>
<p>Most of the advice thrown at us is just noise, isn’t it?</p>
<p>People want to fix your restlessness with tidy phrases. “Everything will be ok” they’ll say.</p>
<p>But the fire inside keeps catching anyway, small and stubborn, pushing us right toward the edge of an ordinary evening. Maybe that is just how we are built. We want to be poised, to look steady, while something underneath is shouting for a clean break from old grief.</p>
<p>You think you are about to fall freely into the dark. Then morning comes, the alarm rings, and you are right back in the loop with the life and the clever animals.</p>
<p>I do not know how we step outside that circle, or if anyone ever truly does.</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “Between Words.” <a href="https://akhandsingh.com/books/between-words">Read the rest of the collection in “Between Words”</a></p>
]]></content:encoded>
      <pubDate>Mon, 26 Oct 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>What Goes Around</title>
      <link>https://akhandsingh.com/slow-mornings/what-goes-around</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/what-goes-around</guid>
      <description>I wonder how hard you try to prove you are fine. You buy a new coat, you get behind the wheel of a car, and you tell yourself that is what being free looks like.</description>
      <content:encoded><![CDATA[<blockquote>
<p>Oh, my foolish friend, look around,<br>The world is not flat, but round.</p>
</blockquote>
<p>I wonder how hard you try to prove you are fine.</p>
<p>You buy a new coat, you get behind the wheel of a car, and you tell yourself that is what being free looks like. It is such an easy trap to fall into, isn’t it? You measure how well you understand everything by looking at a map, as if drawing lines across paper ever told anyone where they actually stood.</p>
<p>Maybe you think courtesy is just a polite habit you can put on and take off. But it breaks easily, like thin glass.</p>
<p>When you treat the day like a small contest you have to win, you end up starting a quiet fight with everyone around you. A heart gets greedy very fast. It wants more things to hold, more proof that it is separate and safe, but none of that protects you from what comes back to your doorstep.</p>
<p>Look around.</p>
<p>The things you throw out do not disappear into thin air. You hand out sharp edges, and then you wonder why your hands get cut when you reach for someone. I just want you to stop running from that circle.</p>
<p>I hope you roll the car window down today and let the cold air hit your face without trying to buy your way out of the silence.</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “Between Words.” <a href="https://akhandsingh.com/books/between-words">Read the rest of the collection in “Between Words”</a></p>
]]></content:encoded>
      <pubDate>Sat, 24 Oct 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>The Missing Screen: What You Lose When Nobody Is Watching</title>
      <link>https://akhandsingh.com/engineering/designing-for-the-unwatched-part-1-the-missing-screen</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/designing-for-the-unwatched-part-1-the-missing-screen</guid>
      <description>Most software assumes a person is watching. This series is about the opposite case: work that happens at 2 a.m., and a person who finds out at 7:30.</description>
      <content:encoded><![CDATA[<p><em>Part 1 of 4 in Designing for the Unwatched</em></p>
<p>Most of the software I have worked on assumes a person is looking at it. Someone clicks, something spins, a toast appears, and if the result is wrong, the face of the person who clicked changes before they have finished reading. That feedback loop is so ordinary that we stopped counting it as a feature.</p>
<p>This series is about the opposite case. At <em>Larkspur Bakery, an invented online bakery</em>, the interesting work happens at 2 a.m. Orders get packed into a queue, refunds get evaluated, supplier restocks get placed, and the morning newsletter gets assembled. Nobody is there. A person shows up at 7:30 with coffee and has to find out what happened.</p>
<p>This is Part 1 of the series in <strong>Designing for the Unwatched</strong>. The question for the whole series is simple: <em><strong>what does an interface owe someone who was not there when the work happened?</strong></em></p>
<p>Before I can answer it, I have to describe what disappears. That is this article.</p>
<p><img src="https://akhandsingh.com/images/articles/designing-for-the-unwatched-part-1-the-missing-screen/01.webp" alt="Side-by-side comparison of a live UI showing progress, inline errors, and a stop button versus an unwatched run producing only a 214-line log file with exit code 0."></p>
<p><em>Side-by-side comparison of a live UI showing progress, inline errors, and a stop button versus an unwatched run producing only a 214-line log file with exit code 0.</em></p>
<h3>What a Live Screen Gives You for Free</h3>
<p>When a person watches a job run, the interface does at least five things without anyone designing them on purpose.</p>
<ul>
<li><strong>Progress.</strong> You can see that it is moving, and roughly how far along it is. A job that takes eleven minutes instead of ninety seconds looks wrong before you can say why.</li>
<li><strong>Errors in context.</strong> The failure appears next to the thing that failed, while you are still looking at the thing. You do not have to reconstruct which supplier call produced which red line.</li>
<li><strong>Magnitude.</strong> A number on a screen sits beside other numbers. You see a vanilla order priced at three times last week’s and you flinch. The flinch is a cheap, fast anomaly detector, and it only works because the number was rendered where your eyes already were.</li>
<li><strong>The chance to say stop.</strong> This is the one we notice least. A running job has a window in which a human can interrupt it. Every confirmation dialog, every ‘Are you sure’, every cancel button is a small piece of that window.</li>
<li><strong>Implied scope.</strong> A live screen shows what is in front of you and implies nothing else is happening. You know the boundary of the work because you can see the edges of the screen.</li>
</ul>
<p>An unwatched job loses all five at once. Not partially. The agent still does the work, but the window closes, the flinch has nowhere to happen, and the only artifact that survives is whatever the author of the job decided to write down at the time they wrote it.</p>
<blockquote>
<p>That last clause is the whole problem. Logs are written by the person building the job, for the person debugging the job. The person reading at 7:30 is a different person with a different question.</p>
</blockquote>
<h3>The Demo: One Queue, Two Outputs</h3>
<p><a href="https://subtle-panda-f23762.netlify.app/">The Missing Screen</a></p>
<p>I built a small project to make this concrete, and you can build it in an afternoon. It is a toy nightly agent for Larkspur Bakery. It loads a made-up queue of fourteen items: customer orders, two refund requests, and a handful of supplier restocks. It processes them in order, then renders two outputs from the same run, side by side:</p>
<ol>
<li>A raw log dump, the kind most jobs leave behind.</li>
<li>A structured morning report.</li>
</ol>
<p>Both outputs come from one event stream, so neither knows anything the other does not. That constraint matters. It means any difference in usefulness comes from structure, not from hidden information.</p>
<p><img src="https://akhandsingh.com/images/articles/designing-for-the-unwatched-part-1-the-missing-screen/02.webp" alt="Architecture diagram showing a 14-item queue processed by a nightly agent into an event stream, then split into a raw log dump and a structured morning report for a human at 07:30."></p>
<p><em>Architecture diagram showing a 14-item queue processed by a nightly agent into an event stream, then split into a raw log dump and a structured morning report for a human at 07:30.</em></p>
<p>The agent itself is boring on purpose. Each decision emits one typed event instead of a formatted string:</p>
<pre><code>type Event = {
  at: string;            // ISO timestamp
  kind: &#39;restock&#39; | &#39;refund&#39; | &#39;order&#39; | &#39;newsletter&#39;;
  subject: string;       // sku or order id
  outcome: &#39;done&#39; | &#39;skipped&#39; | &#39;failed&#39; | &#39;held&#39;;
  reason?: string;
  detail: Record&lt;string, number | string&gt;;
};
</code></pre>
<p>The log renderer maps each event to a line. The report renderer groups them. Same data, two projections. Hold that thought, because it is the design move this whole article leans on.</p>
<h3>A Night in the Log</h3>
<p>Here is what the raw dump looks like for the restock portion of one run. The data is invented, including the supplier.</p>
<pre><code>02:00:01 INFO job start restock-nightly v0.3 queue=14
02:00:02 INFO sku=BUT-SALT-5K stock=11 min=20 reorder qty=40 supplier=hollis-mill
02:00:02 INFO po created po=PO-7731 sku=BUT-SALT-5K qty=40 unit=6.20
02:00:04 INFO sku=VAN-MAD-1L stock=0 min=3 reorder qty=6 supplier=anselm-spice
02:00:04 INFO po created po=PO-7732 sku=VAN-MAD-1L qty=6 unit=54.00
02:00:06 INFO sku=RYE-FLR-25K stock=4 min=10 reorder qty=10 supplier=hollis-mill
02:00:09 WARN supplier=hollis-mill status=503 retry=3/3
02:00:09 WARN restock failed sku=RYE-FLR-25K
02:00:10 INFO refund order=L-20418 amount=212.00 limit=150.00
02:00:10 INFO refund order=L-20418 routed=review
02:00:12 INFO newsletter segment=weekend-bakers recipients=3182 queued
02:00:14 INFO job end ok processed=14 exit=0
</code></pre>
<p>Read it once as the author. Everything is there. You can reconstruct the night.</p>
<p>Now read it as someone who has four minutes before a delivery call. Three things happened that matter, and none of them is legible.</p>
<ul>
<li><strong>The butter was probably a duplicate.</strong> The agent saw stock at 11 against a minimum of 20 and ordered 40. But PO-7729, placed the previous night, had not arrived yet. The agent computed need from on-hand stock, not from on-hand plus on-order. So the bakery now has 80 kilos of salted butter inbound for a minimum of 20. Every line about it says INFO.</li>
<li><strong>The vanilla price tripled.</strong> Last month’s unit price was 18.00. Tonight’s was 54.00. The agent’s guard was a per-line spending cap of 400, and 6 times 54 is 324. Under the cap, so it passed. The log prints the unit price, but nothing prints the previous one, so nobody flinches.</li>
<li><strong>The rye flour never got ordered.</strong> The supplier returned a 503 three times, and the agent gave up. That is a reasonable thing for an agent to do. What is not reasonable is that the bakery has four bags, sells roughly two a day, and now has about forty-eight hours before the Thursday sourdough run fails. The WARN line is line 7 of 11 in this excerpt. In a real log it would be line 140 of 214.</li>
</ul>
<p>Then the last line: job end ok processed=14 exit=0.</p>
<p>Exit code 0 is the loudest sentence in the file, and it is a lie of omission. It says the process did not crash. A reader hears ‘<em><strong>the night went fine</strong></em>’. Those are different claims, and the gap between them is where an unwatched system does its damage.</p>
<p><img src="https://akhandsingh.com/images/articles/designing-for-the-unwatched-part-1-the-missing-screen/03.webp" alt="Diagram showing lines from Larkspur Bakery’s nightly restock log connected to annotations explaining real-world consequences: duplicate butter order, tripled vanilla price, and rye flour running out."></p>
<p><em>Diagram showing lines from Larkspur Bakery’s nightly restock log connected to annotations explaining real-world consequences: duplicate butter order, tripled vanilla price, and rye flour running out.</em></p>
<h3>What the Log Cannot Tell You</h3>
<p>I want to be precise about why the log fails, because the fix is not ‘<em><strong>log more</strong></em>’.</p>
<p>The log is chronological. The reader’s question is not chronological. At 7:30 nobody asks what happened at 02:00:06. They ask what do I need to do before 9:00. Chronology is the author’s order. Priority is the reader’s order.</p>
<ul>
<li><strong>The log has no concept of a skipped action</strong>. A skip is an absence, and absences do not produce lines unless someone explicitly writes one. The refund for order L-20418 appears because the code path logged a routing decision. The refund that was never evaluated because the queue item was malformed? That does not appear at all. The reader cannot distinguish ‘<em>nothing needed doing</em>’ from ‘<em>something needed doing and I never saw it’</em>.</li>
<li><strong>The log carries no consequence</strong>. ‘<em>restock failed</em>’ is a fact. ‘<em>Rye flour runs out Wednesday night</em>’ is a consequence. The agent had the numbers to compute the second one and did not, because nobody asked it to.</li>
<li><strong>The log has no addressee</strong>. It never says this one is for a human. It does not know there is a human.</li>
<li><strong>And the log is uniformly flat</strong>. Every line has the same weight except for a three or four character level token that, in practice, readers learn to ignore. If you have ever ignored a WARN, you have done what everyone does.</li>
</ul>
<p>I will take a position here. Adding structured fields, JSON lines, trace IDs and dashboards is good engineering and it does not solve this. Those tools help the person who already knows what to look for. The absent user does not know what to look for, and the interface has to tell them.</p>
<blockquote>
<p>That is a design problem, not an observability problem.</p>
</blockquote>
<h3>The Report Is the Only Screen</h3>
<p>So treat the report as what it is: the only screen this person will ever get for last night’s work. It has to do the jobs the live screen did for free, in a static, scannable form. In the demo, the report renderer produces exactly three sections, in this fixed order.</p>
<ul>
<li><strong>What I did.</strong> Actions that completed and need no response. This section should be short and boring, and it should be countable. ‘<em>Placed 2 purchase orders, queued 1 newsletter to 3,182 recipients, routed 1 refund to review</em>.’ A reader wants to be able to say yes, that is about what I expected.</li>
<li><strong>What I skipped.</strong> Every skip carries a reason and a consequence. This is the section the log does not have, and it is the most important one to get right.</li>
<li><strong>What needs a human.</strong> Items where the agent stopped, or where it acted but a person should check. Each one has a deadline and a default.</li>
</ul>
<p>The report is built from the same events. Here is the shape the renderer works with:</p>
<pre><code>type Skip = {
  subject: string;
  reason: string;       // why the agent did not act
  consequence: string;  // what happens if nobody acts
  nextChance?: string;  // when the agent will try again, if ever
};

type Ask = {
  subject: string;
  question: string;     // phrased as a decision, not a status
  deadline: string;     // when waiting starts to cost something
  ifSilent: string;     // what happens if the human does nothing
};
</code></pre>
<p>Two fields do the heavy lifting: consequence and ifSilent. They force the author of the job to say what a missed item costs, at design time, while thinking clearly, instead of leaving the reader to infer it at 7:30. If you cannot fill those two fields in, you do not yet understand your own job well enough to run it unwatched.</p>
<p>Here is how last night comes out:</p>
<pre><code>Larkspur nightly run, Tue 02:00 to 02:00:14
14 items. 9 done, 2 skipped, 3 need you.
</code></pre>
<pre><code>NEEDS A HUMAN
1. Rye flour 25kg (RYE-FLR-25K): not ordered. Hollis Mill returned 503 x3.
   Stock 4 bags, about 2 per day. Runs out Wed night.
   Decide by 12:00 today: reorder from Dunmore Grain, or wait for Hollis Mill.
   If you do nothing: agent retries at 02:00, Sourdough run Thu is at risk.
2. Vanilla (VAN-MAD-1L): PO-7732 placed at 54.00/L, last price 18.00/L (3.0x).
   Total 324.00, under the 400 line cap, so I did not stop.
   Decide by 10:00: confirm or cancel while the PO is still unsent.
   If you do nothing: PO is sent to Anselm Spice at 10:00.
3. Refund L-20418, 212.00: over the 150.00 limit. Held for review.
   If you do nothing: customer is not notified; no deadline set.
</code></pre>
<pre><code>SKIPPED
- Salted butter: not skipped, but PO-7731 (40 kg) overlaps PO-7729 (40 kg, due Thu).
  On-order stock was not counted. See note.
- Order L-20431: malformed address. Not packed. Customer not yet contacted.
</code></pre>
<pre><code>DONE
- 2 purchase orders placed (PO-7731, PO-7732)
- 1 newsletter queued: weekend-bakers, 3,182 recipients
- 6 orders packed and labelled
</code></pre>
<p>Notice what changed. The vanilla item now carries the previous price and a ratio, which restores the flinch. The rye flour item carries a consequence and a clock. The duplicate butter order, which the agent could not have flagged by itself, is flagged because the report renderer compares each new PO against open POs. That is a few lines of code that live in the rendering layer, not the agent, and they surface a bug the agent itself does not know it has.</p>
<p>And the report would be honest even if it were wrong. The line about the vanilla cap says in plain words that the agent acted because it was under a threshold. A person can disagree with the threshold. They cannot disagree with a line that says only ‘<em>po created</em>’.</p>
<p><img src="https://akhandsingh.com/images/articles/designing-for-the-unwatched-part-1-the-missing-screen/04.webp" alt="Mockup of an action-oriented morning report interface showing 14 items categorized into ‘Needs a human’ with deadlines, ‘Skipped’ actions, and a collapsed ‘Done’ section."></p>
<p><em>Mockup of an action-oriented morning report interface showing 14 items categorized into ‘Needs a human’ with deadlines, ‘Skipped’ actions, and a collapsed ‘Done’ section.</em></p>
<h3>Why the Order of Sections Matters</h3>
<p>I put ‘<em>needs a human</em>’ first, above ‘<em>done</em>’. That feels backwards the first time, because the natural story of a night is what happened, then what went wrong. But the reader’s job is to act, and the first screenful of anything is the only part guaranteed to be read.</p>
<p>If the report opens with a long list of successes, you train the reader to skim, and skimming is exactly the behavior that misses the one line that mattered. Make the happy path collapsed and countable. Make the unhappy path expanded and specific. If a night has zero items that need a human, the report should say so in one line and stop. A short report is a feature. It tells the reader their absence cost nothing.</p>
<p>There is also a calibration effect over time. A report that cries wolf on every run gets ignored within two weeks. A report that is quiet on quiet nights and specific on bad ones earns the right to be believed. I will come back to this in the part on interruption, because the line between ‘put it in the morning report’ and ‘wake someone up’ is its own design problem.</p>
<h3>What the Report Still Cannot Do</h3>
<p>I do not want to oversell the morning report. It is the minimum, not the answer.</p>
<p>It arrives after the work is done. Everything in it has already happened, except the items still in a held state. The vanilla PO is cancellable only because the demo deliberately delays sending it until 10:00. That delay is a design decision about the work, not about the report. If the agent had sent the PO at 02:00:04, the report would be an accurate obituary.</p>
<p>It also assumes someone reads it. A structured report in an inbox nobody opens is just a better-formatted log.</p>
<p>And it cannot replace a decision about what the agent should have been allowed to do in the first place. A perfect report of an action you would never have approved is still a report of an action you would never have approved. The butter did not need a better summary. It needed the agent to count on-order stock.</p>
<p>These limits are why a report alone is not enough, and why this is a series.</p>
<h3>Four Debts</h3>
<p>Here is the framework I will use for the next three parts. An interface for unwatched work owes the absent user four things. I think of them as debts because they accrue silently while nobody is looking, and because the failure shows up later, at the worst time, as interest.</p>
<ul>
<li><strong>The debt of approval.</strong> Before the work runs, someone has to decide what the agent may do without asking. A per-line cap of 400 is an approval policy, whether or not anyone wrote it down that way. Part 2 is about making those policies explicit, tiered and legible, so that ‘under the cap’ is a decision a human made and not an accident of a config file.</li>
<li><strong>The debt of status.</strong> While and after the work runs, the system owes a truthful account of where it stands. Not an exit code. A statement of what is done, what is pending and what is stuck. The morning report is the first draft of this.</li>
<li><strong>The debt of interruption.</strong> Some things cannot wait for 7:30. The system owes the human a rule for when to speak up, and the discipline not to speak up otherwise. Status and interruption belong together because they are two ends of the same dial, and I will treat them in Part 3.</li>
<li><strong>The debt of trust and undo.</strong> Eventually the agent will do something wrong with full confidence. The interface owes a way to see exactly what it did, reverse what can be reversed, and be honest about what cannot. A purchase order that has been emailed to a supplier is not the same kind of thing as a draft.</li>
</ul>
<p><img src="https://akhandsingh.com/images/articles/designing-for-the-unwatched-part-1-the-missing-screen/05.webp" alt="Flowchart of the four debts of unwatched work: Approval, Status, Interruption, and Trust and Undo, with a feedback loop from Undo back to Approval labeled ‘adjust policy’."></p>
<p><em>Flowchart of the four debts of unwatched work: Approval, Status, Interruption, and Trust and Undo, with a feedback loop from Undo back to Approval labeled ‘adjust policy’.</em></p>
<p>The loop at the bottom is not decoration. What you learn from undoing a mistake changes what you approve next time. The four debts are one system, and the missing screen is what makes all of them invisible at once.</p>
<h3>Build It and Compare</h3>
<p>If you want to feel this rather than take my word for it, build the demo. It is small: a fixture file of fourteen queue items, an agent loop that emits typed events, and two renderers. Seed the data so that three things go wrong: a duplicate PO, a price jump under the cap, and a supplier 503. Then run it, open the log, and give yourself thirty seconds to answer three questions: what is at risk, by when, and what do I decide? Do the same with the report.</p>
<p>I suspect you will answer all three from the report and, from the log, you will answer one or two and feel unsure about the rest. That unsureness is the cost of the missing screen, and it is the cost your own users pay every morning.</p>
<p>One more observation from building it. The hardest part was not the rendering. It was filling in consequence and ifSilent for each kind of event. I kept discovering jobs whose failure modes I had not thought through. The report did not just inform the reader. It audited the author.</p>
<p><strong>Actionable takeaway:</strong> Take one job in your own system that runs while nobody is watching. Write down, for each of its outcomes, the consequence of a miss and what happens if the human does nothing. If you cannot write those two lines, the job is not ready to run unwatched. If you can, put them at the top of whatever it leaves behind, and let exit code 0 mean only that the process did not crash.</p>
<p>Next in the series, Part 2 takes up the approval gate: how to decide what an agent may do without asking, and how to make that decision visible instead of buried in a threshold.</p>
<blockquote>
<p><strong>Which of your overnight jobs would you least want to read the log of at 7:30 on a bad day?</strong></p>
</blockquote>
]]></content:encoded>
      <pubDate>Wed, 21 Oct 2026 00:00:00 GMT</pubDate>
      <category>Designing for the Unwatched</category>
    </item>

    <item>
      <title>Sail and Sink</title>
      <link>https://akhandsingh.com/slow-mornings/sail-and-sink</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/sail-and-sink</guid>
      <description>I keep coming back to that plain idea of a code. When things collapse and I am crawling through the mud, what do I actually hold on to?</description>
      <content:encoded><![CDATA[<blockquote>
<p>I may be mortal, but I still have a code,<br>Love all, sail and sink together with the boat.</p>
</blockquote>
<p>I keep coming back to that plain idea of a code. When things collapse and I am crawling through the mud, what do I actually hold on to?</p>
<p>It is easy to look around for someone or something else to blame. I ask where the help was, why the tests had to be so hard, or why people let dogma and ancient rules get in the way of simple warmth. But maybe that anger is just an easy way to avoid looking at my own hands.</p>
<p>If a boat goes down, you do not jump out just to save your own skin while leaving everyone else behind. You stay. You pull your weight, or you go under with the rest of them. It sounds stubborn, maybe even a little foolish. Why tie yourself to something that might not make it across the water?</p>
<p>Because the alternative is worse. Walking away untouched while leaving everyone else behind leaves a mark that never quite washes off. I would rather take the loss alongside the people I care about than survive alone on some clean, empty shore.</p>
<p>I wonder if that is the whole point. We fight, we make thousands of efforts that feel completely useless, and we get broken in the middle of it. But standing by people without cutting deals or running away is the only thing that actually matters in the end.</p>
<p>So today, I am not going to worry about winning or keeping score. I will just reach out to a friend, keep my word, and take whatever comes with it.</p>
<p>If you strip away the fear and the noise, what else is really worth keeping?</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “Between Words.” <a href="https://akhandsingh.com/books/between-words">Read the rest of the collection in “Between Words”</a></p>
]]></content:encoded>
      <pubDate>Thu, 15 Oct 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>All About Now</title>
      <link>https://akhandsingh.com/slow-mornings/all-about-now</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/all-about-now</guid>
      <description>I find myself wondering why we spend so much breath defending our ways to people who are not even walking beside us. Someone always asks if you are doing it wrong.</description>
      <content:encoded><![CDATA[<blockquote>
<p>Forever is a long time,<br>But what I am is all about now.</p>
</blockquote>
<p>I find myself wondering why we spend so much breath defending our ways to people who are not even walking beside us.</p>
<p>Someone always asks if you are doing it wrong. They bring their rules, their old habits, their heavy expectations, and they set them at your feet like luggage you are supposed to carry for them.</p>
<p>But what is right, anyway? You have your own measure, and I have mine.</p>
<p>Maybe living honestly is simpler than the old arguments make it seem.</p>
<p>You answer to your own chest before you answer to a crowd. You refuse to bend just to make a room feel comfortable. You hold on to what is true even when tradition pulls the other way. And you take the next step on a rough road without asking for permission.</p>
<p>We get so tangled in what everyone else calls proper, don’t we? We let distant voices decide how we should carry ourselves today.</p>
<p>But forever is too far away to live in, and yesterday has already closed its doors. All you actually have is this afternoon.</p>
<p>Take off your shoes today, stand on the bare floor, and decide one small thing just for yourself.</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “Between Words.” <a href="https://akhandsingh.com/books/between-words">Read the rest of the collection in “Between Words”</a></p>
]]></content:encoded>
      <pubDate>Mon, 12 Oct 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>Torn Armor</title>
      <link>https://akhandsingh.com/slow-mornings/torn-armor</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/torn-armor</guid>
      <description>Sometimes I feel an ache that is hard to shake, and I write whatever comes to my mind. And these lines here make me think hard on our fears.</description>
      <content:encoded><![CDATA[<blockquote>
<p><em>The enemy before me is scared, too,<br>I see it in his eyes, the fear is true.</em></p>
</blockquote>
<p>Sometimes I feel an ache that is hard to shake, and I write whatever comes to my mind. And these lines here make me think hard on our fears.</p>
<p>We tell ourselves we take a stand only to protect the people waiting for us at home. A child, a wife, a quiet house that needs defending. But when you look closely at the person standing across from you, you see the exact same panic in their eyes.</p>
<p>Have you ever looked at someone you were ready to fight, only to realize they are just as terrified as you are?</p>
<p>It is like two people pulling opposite ends of an old rope in the dirt, both of them bleeding from the friction, both convinced that letting go means losing everything. You hold on not because you want to hurt anyone, but because you think you have no other choice. Maybe that is the hardest part of any fight. You tell yourself it is necessary, yet the act itself leaves a mark you cannot wash away.</p>
<p>I wonder if strength is really about enduring the blows, or if it is just refusing to let your heart turn cold while your armor falls apart. We gather whatever courage we have left, we stand our ground, and we tell ourselves it is not the time to rest. But the fear in the other man’s face does not go away just because your reasons are good.</p>
<p>And so fighting for what you love never makes the destruction feel right.</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “Between Words.” <a href="https://akhandsingh.com/books/between-words">Read the rest of the collection in “Between Words”</a></p>
]]></content:encoded>
      <pubDate>Thu, 08 Oct 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>Sticks and Stones</title>
      <link>https://akhandsingh.com/slow-mornings/sticks-and-stones</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/sticks-and-stones</guid>
      <description>We spend so much time carrying heavy rules around like bags of wet cement. Hauling them up every little hill, convinced that if we put them down for five minutes, everything will fall apart.</description>
      <content:encoded><![CDATA[<blockquote>
<p>The bars of right and wrong,<br>Impose this tiredness.<br>We were born free, yet enslaved</p>
</blockquote>
<p>We spend so much time carrying heavy rules around like bags of wet cement. Hauling them up every little hill, convinced that if we put them down for five minutes, everything will fall apart.</p>
<p>I wonder why we do that to ourselves?</p>
<p>Nobody actually asked us to bleed for every single argument. Nobody is keeping a notebook at the door to tally up how rigid we managed to stay while our knees gave out. Maybe we just made up half the tasks because being exhausted feels more noble than simply admitting we want to sit down.</p>
<p>I think we mistake a quiet life for a cowardly one. We think if we are not locked in some great, dramatic fight with the world, we must be doing it wrong. But it is not a crime to just want an honest morning, a quiet room, and to come home to the person you love without having to bandage yourself first.</p>
<p>That is not quitting. That is just having a heart that still works.</p>
<p>You do not have to win every war you were invited to. You can just put the stick down and walk off the mountain.</p>
<p>Anyway, my shoulders hurt just thinking about all that climbing, and I think I am going to go take a nap.</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “Between Words.” <a href="https://akhandsingh.com/books/between-words">Read the rest of the collection in “Between Words”</a></p>
]]></content:encoded>
      <pubDate>Mon, 05 Oct 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>The Weight of Staying Alive</title>
      <link>https://akhandsingh.com/slow-mornings/the-weight-of-staying-alive</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/the-weight-of-staying-alive</guid>
      <description>I always wonder what it would be to persist against all odds. Would there be any logical reason to continue?</description>
      <content:encoded><![CDATA[<blockquote>
<p>When, like sleep, death came to me,<br>I whispered, “Not now! I can’t leave.”</p>
</blockquote>
<p>I always wonder what it would be to persist against all odds. Would there be any logical reason to continue?</p>
<p>When psychological exhaustion reaches a critical threshold, would my mind still frame survival not as a victory, but as an act of stubborn defiance against an inevitable quiet?</p>
<p>And there is not a clear answer, but the unyielding desire to face it anyway. To discard this fundamental tension of a human relationship with mortality. And to resist the end. Not because the internal ledger feels incomplete, but because leaving would just be unfair with unfulfilled debts.</p>
<p>I think I would negotiate with the finality of death in that moment, just like how all of us would want to continue against whatever the odds we face. And that in the end, the refusal to yield stems from an uncompromising ownership of our own capacity to feel, regardless of how heavy that feeling has become.</p>
<p>But whatever I think today may not always hold true when the moment comes. We are like that, aren’t we? Thinking about the future that still has to come, and forgetting the present that is still with us.</p>
<p>I don’t think there is a grand revelation waiting on the other side of this unyielding endurance to continue, but only the stark realization that the self would remain intact. And that is it. The mandate to continue living would reassert itself without fanfare or instructions.</p>
<p>Don’t you think? That survival proves to be an autonomous responsibility, rather than a gift, returning us to the unmediated weight of our own choices.</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “Between Words.” <a href="https://akhandsingh.com/books/between-words">Read the rest of the collection in “Between Words”</a></p>
]]></content:encoded>
      <pubDate>Fri, 02 Oct 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>Close to the Ground</title>
      <link>https://akhandsingh.com/slow-mornings/close-to-the-ground</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/close-to-the-ground</guid>
      <description>I keep reading these lines and thinking about the world. It is easy to get caught up in who is winning what race, or who built what first.</description>
      <content:encoded><![CDATA[<blockquote>
<p>Let us live together,<br>close to the ground,<br>where I am not a king</p>
</blockquote>
<p>I keep reading these lines and thinking about the world.</p>
<p>It is easy to get caught up in who is winning what race, or who built what first. But that is exhausting, isn’t it? When you carry something old across a great distance, like a song or a quiet piece of knowledge, you are not trying to conquer anyone. You just want a spot to put it down.</p>
<p>Maybe you feel that pressure too, the unending need to prove that what you bring to the table has value. I look at how everyone guards their borders, their titles, and their small crowns. It feels so heavy.</p>
<p>Why do we make welcoming someone else feel like a transaction?</p>
<p>What happens if we just drop all of that? No thrones, no measuring tape, no need to rule over anything. Just two people standing on the bare earth, listening to a rhythm that came from somewhere far away.</p>
<p>I hope you give yourself permission today to just sit with a song that has traveled a long way. Without an urge to prove a single thing.</p>
<p>When you hear it, will you still tap your feet?</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “The Shape of Hope.” <a href="https://akhandsingh.com/books/the-shape-of-hope">Read the rest of the collection in “The Shape of Hope”</a></p>
]]></content:encoded>
      <pubDate>Thu, 01 Oct 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>AI-Native UX: Part 4 — Designing for Uncertainty: How to Make AI Decisions Feel Trustworthy</title>
      <link>https://akhandsingh.com/engineering/ai-native-ux-part-4-designing-for-uncertainty</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/ai-native-ux-part-4-designing-for-uncertainty</guid>
      <description>Once an interface adapts to intent, a harder problem appears. Traditional software is deterministic: it never guesses, estimates or approximates what it shows.</description>
      <content:encoded><![CDATA[<p>In <a href="https://medium.com/the-thinking-interface/ai-native-ux-part-1-adding-ai-is-not-the-same-as-designing-an-ai-native-product-e54135e72c29">Part 1</a>, I argued that adding AI to an existing layout is not the same as redesigning the interaction model. In <a href="https://medium.com/the-thinking-interface/ai-native-ux-part-2-from-navigation-to-intent-the-ux-shift-behind-ai-products-33f64c7af639">Part 2</a>, I examined how the foundation shifts from navigation-first to intent-first software. In <a href="https://medium.com/the-thinking-interface/ai-native-ux-part-3-why-adaptive-interfaces-change-what-ux-needs-to-do-8841a87aa276">Part 3</a>, I looked at how interfaces respond by reshaping the workspace dynamically around the task.</p>
<p>Once an interface adapts to intent, a harder problem immediately appears.</p>
<p>Traditional software is deterministic. You click a button, a database query runs, and the exact records display. If the records are wrong, it is a data entry error or a bug in the code. The system does not guess, estimate, or approximate. The interface presents raw facts, and the user assumes mechanical precision.</p>
<p>AI is different. Machine learning models do not return certainty; they calculate statistical likelihoods. They predict tokens, classify embeddings, evaluate clusters, and compute confidence intervals. When you place a probabilistic engine underneath an interface built on deterministic assumptions, the product experience fractures.</p>
<p>If the system acts confident when it is wrong, the user feels deceived. If the system acts hesitant about obvious facts, the user discards it as useless. If the interface hides its assumptions, users cannot verify the work.</p>
<p>This is the uncertainty challenge in AI-native product design.</p>
<p>Trust is not built by pretending the model is infallible. Trust is built by making uncertainty visible, calibrated, steerable, and actionable.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-4-designing-for-uncertainty/01.webp" alt="Left: A deterministic grid displaying static database rows with absolute values. Right: An AI-native workspace showing variance root-cause analysis with a primary prediction card, 87% confidence badge, highlighted data signals, and alternative hypothesis tabs."></p>
<p><em>Left: A deterministic grid displaying static database rows with absolute values. Right: An AI-native workspace showing variance root-cause analysis with a primary prediction card, 87% confidence badge, highlighted data signals, and alternative hypothesis tabs.</em></p>
<h3>The Breakdown of Deterministic UX Assumptions</h3>
<p>For thirty years, human-computer interaction patterns assumed binary correctness. A state was either saved or unsaved, valid or invalid, present or absent. Form validation returned an error only when a regex or schema check failed.</p>
<p>Probabilistic systems break these baseline expectations in three distinct ways.</p>
<p><strong>First</strong>, probabilistic outputs produce non-reproducible states. A prompt or intent expressed identically on two separate days may return different structures, different summaries, or alternate rankings. When an interface adapts around that output, the workspace layout shifts without a direct, deterministic trigger from the user.</p>
<p><strong>Second</strong>, probabilistic systems can be subtly wrong. A conventional software failure results in a crash, an empty state, or a 500 error. The failure is noisy and obvious. An LLM or classification model fails silently by generating plausible statements with incorrect facts or erroneous data associations. The UI looks polished, but the underlying judgment is flawed.</p>
<p><strong>Third</strong>, the user’s role transitions from direct operator to supervisory evaluator. In a traditional tool, if an anomaly appears in a ledger, the accountant assumes the number is real and audits the transaction. In an AI-native tool, when the system flags a supplier anomaly, the accountant must simultaneously evaluate two questions: Is this transaction actually an anomaly, and did the model accurately analyze the context?</p>
<p>If the interface does not help the user evaluate both questions quickly, cognitive load increases instead of dropping. The user spends more time verifying the system’s output than they would have spent doing the manual work from scratch.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-4-designing-for-uncertainty/02.webp" alt="Left: Traditional software failure — a hard error boundary with a 500 code and system alerts. Right: AI failure — a subtly hallucinated metric inside a polished card, with an inspection panel surfacing the discrepancy between source invoices and generated output."></p>
<p><em>Left: Traditional software failure — a hard error boundary with a 500 code and system alerts. Right: AI failure — a subtly hallucinated metric inside a polished card, with an inspection panel surfacing the discrepancy between source invoices and generated output.</em></p>
<h3>The Trust Calibration Problem</h3>
<p>Product teams often assume the goal is to make users trust the AI completely. That is a mistake.</p>
<p>Over-trust leads to automation complacency, where users blindly approve erroneous suggestions, publish incorrect calculations, or accept bad system actions. Under-trust leads to product abandonment, where users bypass the intelligence entirely and return to manual navigation and manual spreadsheets.</p>
<p>The real goal is calibrated trust: the user’s confidence in the system matches the actual reliability of the system for that specific task in that specific moment.</p>
<p>Calibrating trust requires the interface to communicate confidence without cluttering the screen with statistical jargon.</p>
<h3>Why Raw Percentages Fail in Everyday UX</h3>
<p>Placing an badge reading “94% Confidence” next to every output rarely solves the problem. To a financial analyst or an operations lead, what does 94% actually represent?</p>
<p>Does it mean the model is 94% certain that the data exists? Does it mean 94% of the training distribution aligns with this case? Or does it mean there is a 6% chance that the recommended adjustment is disastrously wrong?</p>
<p>Raw probabilities confuse users because machine confidence is not human certainty. A language model can generate a completely hallucinated explanation with 99% token-probability metrics if its prompt context was misleading or incomplete.</p>
<p>Instead of exposing raw numbers everywhere, AI-native UX relies on qualitative confidence bands paired with explicit drivers:</p>
<ol>
<li><strong>High Confidence (Verified Baseline):</strong> The system has complete source evidence, matched historical precedents, and clean data pipelines. The UI emphasizes immediate action while keeping evidence one click away.</li>
<li><strong>Moderate Confidence (Plausible Inference):</strong> The system sees strong correlations but detects missing variables, conflicting historical records, or partial edge-case matches. The UI surfaces the recommendation as a proposal, highlighting assumptions directly in the view.</li>
<li><strong>Low Confidence (Ambiguous Context):</strong> The system lacks sufficient data or detects contradictory signals. The UI avoids automated conclusions, assembling an exploratory workspace that asks the user to clarify intent or resolve conflicting facts.</li>
</ol>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-4-designing-for-uncertainty/03.webp" alt="Qualitative confidence bands paired with explicit drivers"></p>
<p><em>Qualitative confidence bands paired with explicit drivers</em></p>
<h3>Practical Patterns for Legible Reasoning</h3>
<p>To make probabilistic decisions trustworthy, the interface must make the system’s reasoning legible. Legibility does not mean dumping JSON traces, embedding vectors, or full system prompts onto the screen. It means providing clear, structural answers to four practical questions:</p>
<ol>
<li>What signals did the system use?</li>
<li>What assumptions did it make?</li>
<li>What alternate explanations were discarded?</li>
<li>How can the user adjust the parameters?</li>
</ol>
<p>Here are specific UI patterns that answer these questions inside enterprise workflows.</p>
<h3>Pattern 1: Progressive Disclosure of Evidence</h3>
<p>When an AI-native system synthesizes information, it should never present a bare paragraph of text as an authoritative answer. Every claim must be tethered to identifiable source records.</p>
<p>In FinanceOS, when the system detects an unexpected margin compression in European operations, it should not simply say: “Margin decreased by 4.2% due to increased freight costs and supplier surcharges.”</p>
<p>Instead, it presents the core insight with inline visual anchors. Clicking or hovering over “freight costs” opens a grounded drawer containing the three specific logistics invoices, the month-over-month variance delta, and the relevant currency conversion rates applied.</p>
<p>This follows the rule of progressive disclosure: present the synthesis cleanly for rapid scanning, but keep the underlying evidence immediately accessible for audit. The user never has to wonder if the model invented the insight; the proof sits right beneath the surface.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-4-designing-for-uncertainty/04.webp" alt="Progressive disclosure in practice: an anomaly summary with underlined source references in the center, and an expanded evidence drawer on the right showing interactive invoice line items, timestamped ERP records, and a filter toggle to audit the source material."></p>
<p><em>Progressive disclosure in practice: an anomaly summary with underlined source references in the center, and an expanded evidence drawer on the right showing interactive invoice line items, timestamped ERP records, and a filter toggle to audit the source material.</em></p>
<h3>Pattern 2: Explicit Assumption Controls</h3>
<p>Machine learning models frequently make implicit assumptions when interpreting broad user intent. If a user asks FinanceOS to “Forecast Q3 operating spend under headcount expansion,” the system must assume specific salary bands, ramp-up schedules, and regional tax implications.</p>
<p>A static interface hides those variables. An AI-native interface extracts them into an interactive Assumption Bar.</p>
<p>At the top of the generated forecast workspace, the interface renders a structured chip bar:</p>
<ul>
<li><em>Hiring Pace: 15 roles/month (Historical Average)</em></li>
<li><em>Location Mix: 60% US / 40% EU</em></li>
<li><em>Inflation Adjustment: 3.2%</em></li>
</ul>
<p>If the financial analyst knows that hiring will actually occur entirely in Canada, they do not need to rewrite their entire prompt. They click the <em>Location Mix</em> chip, adjust the dropdown to 100% Canada, and the workspace recalculates. The interface treats the model’s judgment as a flexible baseline, giving the user direct control over the operational inputs.</p>
<h3>Pattern 3: Hypothesis Comparison Views</h3>
<p>When a problem is complex, an AI system should not force a single consensus answer if the underlying data supports multiple valid interpretations.</p>
<p>In the finance scenario, a sudden variance in software expenditure could be driven by redundant tooling purchases, or it could be an early renewal cycle on annual enterprise agreements. Both hypotheses have supporting data.</p>
<p>Rather than picking one arbitrarily, the adaptive interface presents a Split Hypothesis View. The screen displays two parallel cards, each summarizing the premise, the supporting evidence weight, and the immediate impact. The user can compare the logic side by side, select the accurate driver, or merge elements from both into the active investigation.</p>
<p>This completely changes the human-computer dynamic. The machine acts as an analyst presenting alternative findings, and the human operates as the decision-maker evaluating options.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-4-designing-for-uncertainty/05.webp" alt="Split hypothesis comparison view. Hypothesis A (68% match): Mid-Contract License Tier Adjustments. Hypothesis B (32% match): Accelerated Annual Renewal Cycles. Each card shows evidence bullets, a confidence meter, and an accept button. A merge option lets the user combine both branches."></p>
<p><em>Split hypothesis comparison view. Hypothesis A (68% match): Mid-Contract License Tier Adjustments. Hypothesis B (32% match): Accelerated Annual Renewal Cycles. Each card shows evidence bullets, a confidence meter, and an accept button. A merge option lets the user combine both branches.</em></p>
<h3>Graceful Fallbacks and the Failure Boundary</h3>
<p>Every AI system will fail. It will encounter out-of-distribution inputs, corrupted data streams, conflicting intents, or unresolvable ambiguities.</p>
<p>The mark of an AI-native interface is how it behaves when things go wrong.</p>
<p>In bolted-on AI, failure is a dead end. The chatbot returns a generic message: <em>“I’m sorry, I cannot process that request. Please try again.”</em> The user is left stranded, with no clear path forward.</p>
<p>In an AI-native architecture, failure is designed as a smooth transition back to deterministic control. I call this the Failure Boundary.</p>
<p>When the system recognizes that its confidence has fallen below an acceptable threshold, it executes a graceful fallback:</p>
<ol>
<li><strong>Acknowledge the specific gap:</strong> The system states exactly what it could not resolve (e.g., “Unable to reconcile vendor ID #8849 with active procurement contracts”).</li>
<li><strong>Preserve partial work:</strong> If the system successfully parsed 80% of the ledger but failed on the remaining 20%, it renders the valid portions and isolates the unparsed rows.</li>
<li><strong>Surface deterministic tools:</strong> The workspace automatically exposes manual filters, reconciliation tables, and raw search bars directly around the problematic data.</li>
</ol>
<p>The user never hits a blank wall. The system does what it can, explains where it stalled, and hands control back to the operator with the right manual tools already open.</p>
<h3>Designing the Partnership Between Intent and Execution</h3>
<p>Across this series, I have tracked a fundamental progression in how software is conceived and built:</p>
<ul>
<li>In <a href="https://medium.com/the-thinking-interface/ai-native-ux-part-1-adding-ai-is-not-the-same-as-designing-an-ai-native-product-e54135e72c29"><strong>Part 1</strong></a>, I broke down why taping a chat sidebar onto an old layout fails to transform the workflow, and why true AI-native design requires reorganizing around user goals.</li>
<li>In <a href="https://medium.com/the-thinking-interface/ai-native-ux-part-2-from-navigation-to-intent-the-ux-shift-behind-ai-products-33f64c7af639"><strong>Part 2</strong></a>, I mapped the shift from navigation-first to intent-first software, collapsing the distance between what a user wants to achieve and where the work begins.</li>
<li>In <a href="https://medium.com/the-thinking-interface/ai-native-ux-part-3-why-adaptive-interfaces-change-what-ux-needs-to-do-8841a87aa276"><strong>Part 3</strong></a>, I explored the mechanics of adaptive workspaces, examining how interfaces adjust their shape around real-time context without creating disorientation.</li>
<li>Here in <strong>Part 4</strong>, I have addressed the central requirement for making those adaptive systems viable: designing for uncertainty and calibrating trust through legible, steerable interactions.</li>
</ul>
<p>The ultimate goal of AI-native UX is not full automation, nor is it the elimination of human input. The real goal is a tight partnership between human intent and machine execution.</p>
<p>When software begins with intent, dynamically adapts to the task, surfaces its evidence with clarity, and yields control gracefully when uncertain, it stops feeling like a fragile tool. It becomes a reliable working environment where humans think faster, explore deeper, and make better decisions.</p>
<p>Building these interfaces is significantly harder than designing static screens. It requires product teams to think in dynamic states, probabilistic bounds, evidence paths, and ergonomic fallback systems.</p>
<p>That is the work ahead for designers, engineers, and product leaders.</p>
<p><strong>Actionable Takeaway for Product Teams:</strong> Audit your AI interfaces for silent assumptions. Whenever your system generates a recommendation or reorganizes a workspace, ensure there are at least three visible anchors: a clear indication of confidence, an expandable trail of source evidence, and an immediate visual mechanism for the user to edit or reject the underlying premises.</p>
<p>The shift from navigation to intent, static views to adaptive canvases, and binary certainty to calibrated trust isn’t a cosmetic trend, it is the baseline for the next era of enterprise software.</p>
<p><strong>Over to you:</strong></p>
<p>In your current workflows, what is the harder hurdle: pulling users out of <strong>automation complacency</strong>, or overcoming <strong>skeptical avoidance</strong>? How are you visualizing confidence in your own interfaces? Let’s discuss below.</p>
]]></content:encoded>
      <pubDate>Wed, 30 Sep 2026 00:00:00 GMT</pubDate>
      <category>AI-Native UX</category>
    </item>

    <item>
      <title>The Logic of Inevitable Parting</title>
      <link>https://akhandsingh.com/slow-mornings/the-logic-of-inevitable-parting</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/the-logic-of-inevitable-parting</guid>
      <description>When two people try to preserve a shared space that has begun to fracture, the effort itself often accelerates the collapse.</description>
      <content:encoded><![CDATA[<blockquote>
<p>We were once friends,<br>And perhaps we will be friends of time.</p>
</blockquote>
<p>When two people try to preserve a shared space that has begun to fracture, the effort itself often accelerates the collapse. We tend to frame separation as an acute moral failing, assigning blame to deliberate malice, selfishness, or deception. In reality, the breakdown is usually mechanical. Two distinct trajectories temporarily align, produce friction, and gradually diverge as the cost of alignment exceeds what either person can bear.</p>
<p>The impulse to exhaust oneself trying to rescue a dynamic stems from a misunderstanding of compatibility. We believe that continuous exertion can substitute for structural coherence. When that effort fails, the realization arrives that self-preservation often looks identical to selfishness from the outside. Both parties make decisions to survive the association, and each views the other’s retreat as a betrayal. The construction of justifications, defenses, and selective narratives becomes necessary to legitimize walking away without accepting total responsibility for the decay.</p>
<p>Resentment lingers only as long as the expectation of a different outcome remains active. Once the necessity of the division is accepted, the emotional weight shifts. The anger dissipates, replaced by an impersonal clarity about what was actually possible.</p>
<p>Time alters the nature of these associations. It strips away the immediate demands of mutual obligation, leaving only the neutral fact that the connection existed. When the urgency to defend one’s innocence fades, what remains is an understanding that some endings are dictated by the simple momentum of individual preservation.</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “Between Words.” <a href="https://akhandsingh.com/books/between-words">Read the rest of the collection in “Between Words”</a></p>
]]></content:encoded>
      <pubDate>Tue, 29 Sep 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>The Architecture of Memory and Distance</title>
      <link>https://akhandsingh.com/slow-mornings/the-architecture-of-memory-and-distance</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/the-architecture-of-memory-and-distance</guid>
      <description>Memory functions through a constant tension between closeness and absence. When a person reflects on shared experiences, they rarely encounter a fixed record of those moments.</description>
      <content:encoded><![CDATA[<blockquote>
<p>Like a dream, <br>I still sleep in us, <br>wrapped in a single sheet, <br>the warmth of our bodies</p>
</blockquote>
<p>Memory functions through a constant tension between closeness and absence. When a person reflects on shared experiences, they rarely encounter a fixed record of those moments. Instead, they navigate a dynamic landscape where feelings of love and loss coexist. The emotional toll of clinging to past connections lies in the abrupt shift that can occur. Someone may comfortably dwell in the abstract notion of what once was, only to be jolted by the harsh reality of what has been lost.</p>
<p>This oscillation reveals a deeper understanding of human attachment. We build internal sanctuaries from accumulated sensory experiences—glances, shared spaces, and bodily warmth—and dependently view them as evidence of past permanence.</p>
<p>However, these constructions are inherently fragile. To dwell within them is to embrace a quiet vulnerability, as the very structures meant to preserve intimacy highlight the vastness of our current separation. The mind reaches back to reclaim a face, an expression, a shared breath, treating memory as a recoverable territory rather than a closed chapter.</p>
<p>When the journey into the past comes to an end, returning to the present is seldom a gentle process. Transitioning from internal reflection back to reality reveals the raw mechanics of survival after a change. Tears do not indicate a failure of reasoning; rather, they are a physiological response to reconciling two conflicting states of being. The self remains caught between the person who experienced the intimacy and the person who must now navigate the distance required to live without it.</p>
<p>With love, Akhand</p>
<p>P.S. These lines are from “The Shape of Hope.” <a href="https://akhandsingh.com/books/the-shape-of-hope">Read the rest of the collection in “The Shape of Hope”</a></p>
]]></content:encoded>
      <pubDate>Sat, 26 Sep 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>AI-Native UX: Part 3 — Why Adaptive Interfaces Change What UX Needs to Do</title>
      <link>https://akhandsingh.com/engineering/ai-native-ux-part-3-why-adaptive-interfaces-change-ux</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/ai-native-ux-part-3-why-adaptive-interfaces-change-ux</guid>
      <description>Once software begins with intent, the interface can no longer stay still. The next shift in AI-native UX is reshaping the workspace around the work.</description>
      <content:encoded><![CDATA[<blockquote>
<p>Once software begins with intent, the interface can no longer stay still. The next shift in AI-native UX is not just understanding the user’s goal, but reshaping the workspace around the work itself.</p>
</blockquote>
<p>In <a href="https://medium.com/the-thinking-interface/ai-native-ux-part-1-adding-ai-is-not-the-same-as-designing-an-ai-native-product-e54135e72c29">Part 1</a>, I argued that adding AI does not automatically make a product feel AI-native.</p>
<p>In <a href="https://medium.com/the-thinking-interface/ai-native-ux-part-2-from-navigation-to-intent-the-ux-shift-behind-ai-products-33f64c7af639">Part 2</a>, I argued that one of the deepest shifts behind AI products is the move from navigation-first software to intent-first software. Instead of beginning with where the user should go, the product can begin with what the user is trying to do.</p>
<p>But that shift creates a new design problem.</p>
<p>Once intent becomes the starting point, the interface cannot remain entirely static.</p>
<p>If a system can understand the user’s goal, gather relevant context, surface likely next steps, and assemble the right working state, then the old model of a fixed interface begins to feel incomplete. The product no longer needs to present the same shape in the same way every time. It can start reorganizing around the task at hand.</p>
<p>That is where adaptive interfaces enter the picture.</p>
<p>This is one of the next major shifts in AI-native UX. The interface is no longer just a stable container for features. It begins to act more like a responsive working surface, one that changes emphasis, structure, and support based on what the user is trying to accomplish.</p>
<p>That sounds powerful, and it is.</p>
<p>But it also changes what UX needs to do.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-3-why-adaptive-interfaces-change-ux/01.webp" alt="Left: Static enterprise interface where the user assembles context manually. Right: Adaptive workspace shaped around the task at hand."></p>
<p><em>Left: Static enterprise interface where the user assembles context manually. Right: Adaptive workspace shaped around the task at hand.</em></p>
<h3>Static interfaces were designed to expose capability</h3>
<p>Most software interfaces were built around a relatively stable assumption.</p>
<p>A product had a set of capabilities. The job of UX was to expose those capabilities clearly enough that users could learn the system and use it well. Pages separated functions. Navigation structured movement. Tables, dashboards, filters, forms, and detail views helped users access the right part of the product at the right time.</p>
<p>This model worked because software could not do much interpretation on the user’s behalf.</p>
<p>The system could store, calculate, sort, visualize, and retrieve, but it usually could not understand why the user had arrived or what kind of support the moment actually required. So the interface had to stay stable enough for the user to build familiarity over time.</p>
<p>That stability mattered. It still matters.</p>
<p>Consistency is not just a visual preference. It is one of the ways software becomes learnable. A stable interface gives people a mental model they can return to. It lets them develop fluency. It reduces friction through repetition.</p>
<p>But AI changes the conditions that produced that model.</p>
<p>Once a system can interpret a task instead of merely waiting for commands, the interface no longer has to expose everything the same way every time. It can begin to shift what it emphasizes, what it opens, what it suppresses, and what it suggests based on the work the user is actually trying to move forward.</p>
<p>This is where the interface stops being only a map.</p>
<p>It starts becoming a participant.</p>
<h3>An adaptive interface is not the same as a personalized one</h3>
<p>This distinction matters because the two ideas are often blurred together.</p>
<p>A personalized interface changes based on the user. It remembers preferences, recovers recent activity, surfaces shortcuts, or adjusts itself according to role, history, or habits. It says, in effect, I know who you are.</p>
<p>An adaptive interface changes based on the task. It responds to intent, context, evidence, timing, system state, and likely next actions. It says something closer to this: I understand what you are trying to do right now.</p>
<p>That is a much more important shift.</p>
<p>A product might personalize the home screen for a finance lead, a support manager, or an operations engineer. But adaptivity is something else. It is what happens when the system recognizes that the user is not just opening the product. They are investigating a drop, preparing a decision, comparing explanations, reviewing risk, or trying to take action.</p>
<p>In that moment, the interface does not just need to feel familiar.</p>
<p>It needs to feel relevant.</p>
<p>That is why adaptive UX matters. It is not mainly about making products feel smart. It is about making them better aligned to the work happening now.</p>
<h3>The unit of design begins to change</h3>
<p>In traditional software, the page was often the primary unit of design.</p>
<p>Teams thought in screens, destinations, flows, modules, and panels. Even when the product was sophisticated, the design logic was still built around relatively fixed places. The user moved through the system by going from one container of functionality to another.</p>
<p>But in more AI-native products, the more important unit increasingly becomes the workspace.</p>
<p>A workspace is not just a screen. It is a task-shaped environment.</p>
<p>It gathers the context, signals, evidence, actions, and next steps most relevant to a specific goal. It may still sit inside a broader product structure, but it is no longer defined only by navigation. It is defined by what the user is trying to move forward.</p>
<p>That changes the design problem in a serious way.</p>
<p>The question is no longer just, what should this page contain?</p>
<p>It becomes:</p>
<p>What does the user need to see first?</p>
<p>What context is essential here?</p>
<p>What should remain visible as evidence?</p>
<p>What is the system confident about?</p>
<p>What is still uncertain?</p>
<p>What actions should become available now?</p>
<p>What must stay stable so the experience still feels trustworthy?</p>
<p>That is a more demanding design problem than laying out a good screen.</p>
<p>It requires UX to think less like page composition and more like orchestration.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-3-why-adaptive-interfaces-change-ux/02.webp" alt="The shift from pages and destinations to task-shaped workspaces assembled from evidence, context, actions, and guidance."></p>
<p><em>The shift from pages and destinations to task-shaped workspaces assembled from evidence, context, actions, and guidance.</em></p>
<h3>Adaptivity matters because work is uneven</h3>
<p>One reason static interfaces often create friction is that real work is not evenly distributed.</p>
<p>Some moments are routine. Some are ambiguous. Some are urgent. Some require explanation. Some require decision-making. Some require collaboration. Some require only one key piece of evidence hidden inside a large amount of noise.</p>
<p>Static interfaces tend to flatten these moments too much.</p>
<p>They treat different kinds of work with roughly the same structural response. The user arrives, opens the same containers, scans the same layout, applies the same filters, and then begins assembling meaning on their own.</p>
<p>That is where adaptive interfaces can create real value.</p>
<p>If the user is reviewing a normal status check, the product may remain broad and lightweight. If the system detects a sharp anomaly, the workspace may become narrower and more investigative. If the user asks for an explanation, the interface may elevate likely drivers, related evidence, recent changes, and confidence signals. If the user is ready to act, the interface may shift toward approvals, recommendations, simulations, or execution paths.</p>
<p>The important point is this: adaptivity is not about motion for its own sake.</p>
<p>It is about task sensitivity.</p>
<p>The goal is not to make the interface feel alive. The goal is to make it feel appropriately shaped for the work the user is in.</p>
<p>That is a much higher standard than simply giving the user an answer.</p>
<h3>But adaptivity introduces a new UX risk: instability</h3>
<p>This is where the conversation around AI products often becomes too optimistic.</p>
<p>The moment an interface starts changing itself, it also creates a new class of UX failure.</p>
<p>If the system adapts too aggressively, too often, or without enough explanation, the product stops feeling helpful and starts feeling unstable. The user loses continuity. The environment becomes harder to trust. What was supposed to reduce effort begins to create a different kind of cognitive load.</p>
<p>This is one of the central tensions in AI-native UX.</p>
<p>Static systems risk irrelevance.</p>
<p>Over-adaptive systems risk disorientation.</p>
<p>That tension matters because most users do not want a product that constantly surprises them. They want one that helps them without making the environment feel unreliable.</p>
<p>The best adaptive interfaces will not be the ones that change the most.</p>
<p>They will be the ones that change with judgment.</p>
<p>That means adaptivity has to be restrained. Not every signal should cause reconfiguration. Not every inference should reshape the workspace. Not every smart suggestion deserves interruption. A product can be adaptive without becoming restless.</p>
<p>This is where design maturity becomes visible.</p>
<p>Good adaptive UX does not chase maximum dynamism. It decides carefully what should move, what should remain anchored, and what kind of change the user can absorb without losing orientation.</p>
<h3>The interface has to make the system’s judgment legible</h3>
<p>When AI systems begin shaping the interface, the structure itself starts communicating judgment.</p>
<p>That makes legibility essential.</p>
<p>If a workspace changes because the system believes something matters, the user should be able to understand that shift. They do not need a raw model trace. They do not need technical internals. But they do need the interface to make clear why this working state has appeared, what evidence is supporting it, and what assumptions are guiding it.</p>
<p>This is one of the biggest responsibilities of UX in AI products.</p>
<p>Not just to present output, but to make the system’s framing understandable enough that the user can work with it intelligently.</p>
<p>A good adaptive interface does not simply say, here is your answer.</p>
<p>It helps the user see:</p>
<p>what the system noticed</p>
<p>why this workspace was assembled</p>
<p>what evidence supports the framing</p>
<p>what remains uncertain</p>
<p>what actions are available</p>
<p>how to redirect or refine the interpretation</p>
<p>That is where trust begins.</p>
<p>Not in certainty theater. Not in oversized confidence. But in a structure that helps the user understand the shape of the system’s judgment.</p>
<p>In AI-native products, explanation is not just a model feature.</p>
<p>It is part of interface design.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-3-why-adaptive-interfaces-change-ux/03.webp" alt="Adaptive workspace with highlighted evidence rail, reasoning summary, confidence indicator, and editable assumptions the user can refine."></p>
<p><em>Adaptive workspace with highlighted evidence rail, reasoning summary, confidence indicator, and editable assumptions the user can refine.</em></p>
<h3>The smarter the system gets, the more evidence and control matter</h3>
<p>There is a common assumption that as systems get smarter, interfaces should become simpler by hiding more of the machinery.</p>
<p>Sometimes that is true.</p>
<p>Users should not have to assemble every piece of context manually if the system can do meaningful preparation on their behalf. They should not be forced through unnecessary workflow just to reach the obvious next step.</p>
<p>But smarter systems also make stronger judgments. They frame the situation earlier. They decide what matters first. They prioritize evidence. They suggest actions.</p>
<p>And the stronger that system judgment becomes, the more important it is for the interface to preserve user agency.</p>
<p>That means adaptive interfaces need more than smooth output. They need mechanisms for inspection and correction.</p>
<p>Users need to be able to expand the evidence set, challenge the framing, narrow the scope, compare alternate explanations, reset the workspace, or move back to a stable overview when needed.</p>
<p>In other words, the interface should not only help the system guide the user.</p>
<p>It should also help the user guide the system.</p>
<p>That is where many AI products still feel immature. They can summarize, generate, and suggest, but they do not yet always provide a strong enough correction model. They often help with first-pass output, but not with second-pass control.</p>
<p>And second-pass control is where durable trust often lives.</p>
<h3>The best adaptive interfaces will feel composed, not chaotic</h3>
<p>When people hear the phrase adaptive interface, they sometimes imagine something highly fluid, almost shape-shifting, as if the product should reconstruct itself continuously around every emerging signal.</p>
<p>I do not think that is the most useful direction for serious products.</p>
<p>The best adaptive interfaces will probably feel composed.</p>
<p>They will keep strong structural anchors. They will preserve familiar zones. They will maintain continuity across tasks. They will adapt within a clear system rather than dissolving the system entirely.</p>
<p>A stable shell.</p>
<p>A flexible center.</p>
<p>Clear task framing.</p>
<p>Visible evidence.</p>
<p>Guided next actions.</p>
<p>Easy correction.</p>
<p>That feels like a more realistic model for AI-native UX than total fluidity.</p>
<p>Because users rarely want novelty from serious software. What they want is responsiveness without chaos. They want the product to meet them intelligently while still feeling dependable enough to work inside for long stretches of time.</p>
<p>Dependability is not the opposite of intelligence.</p>
<p>In good UX, it is one of the things that makes intelligence usable.</p>
<h3>A finance example makes this easier to see</h3>
<p>Imagine a finance lead working in a traditional product.</p>
<p>They open a dashboard, notice margin pressure, move into a reporting area, filter by category, compare periods, inspect underlying entries, and then perhaps ask AI to summarize what changed. The product may be powerful, but the user is still doing most of the structural assembly. They have to move through the system, gather the evidence, and create the working context themselves.</p>
<p>Now imagine a more adaptive product.</p>
<p>The system detects the unusual pattern, recognizes that the likely task is investigation, and assembles a workspace around that need. It surfaces the categories most responsible, highlights recent shifts, shows relevant changes in policy or vendor behavior, presents the strongest evidence first, and exposes likely next questions.</p>
<p>That is already better than just adding a chat assistant.</p>
<p>But the real difference appears in what happens next.</p>
<p>The user can expand or narrow the evidence. They can challenge the framing. They can compare two explanations. They can move from diagnosis into action. They can step back into a stable overview without feeling that the product has abandoned structure entirely.</p>
<p>That is what makes the experience feel designed rather than merely automated.</p>
<p>The point is not to replace structure with motion.</p>
<p>It is to let structure respond meaningfully to purpose.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-3-why-adaptive-interfaces-change-ux/04.webp" alt="Finance operations workspace: issue summary at top, evidence panel, suggested drivers with confidence, and next-step actions."></p>
<p><em>Finance operations workspace: issue summary at top, evidence panel, suggested drivers with confidence, and next-step actions.</em></p>
<h3>This changes what UX teams are actually designing</h3>
<p>For UX teams, adaptive interfaces change the work in a fundamental way.</p>
<p>First, teams can no longer think only in terms of screens. They have to think in states, transitions, confidence, evidence, task assembly, and correction paths. The design challenge becomes less about static layout alone and more about how a system should behave as understanding deepens.</p>
<p>Second, trust becomes a structural design responsibility. What remains visible, what gets prioritized, what gets hidden, what can be edited, what can be undone, and what always stays anchored are not secondary decisions. They shape whether the system feels usable and believable.</p>
<p>Third, UX becomes more responsible for designing the relationship between human judgment and machine judgment.</p>
<p>That, more than anything else, is what many AI-native products are really trying to support.</p>
<p>Not pure automation.</p>
<p>Not old software with a chatbot attached.</p>
<p>But a working relationship between human intent, system interpretation, visible evidence, and controllable action.</p>
<p>That is a harder design space than traditional UI.</p>
<p>But it is also a more meaningful one.</p>
<p>Because once software starts adapting to the work itself, UX is no longer only organizing access to features.</p>
<p>It is shaping how intelligence becomes usable.</p>
<h3>The next standard for good UX is not just usability, but good adaptation</h3>
<p>For a long time, good UX was judged primarily through qualities like clarity, consistency, usability, and learnability.</p>
<p>Those still matter. They will always matter.</p>
<p>But AI products introduce another standard.</p>
<p>A product can be clean and easy to use and still feel structurally old. It can include AI and still feel disconnected from real work. It can accept intent and still fail to reshape the experience in a useful way.</p>
<p>That is why adaptive interface design matters.</p>
<p>The next standard for AI-native UX is not simply whether a system can respond. It is whether the interface can adapt in a way that feels relevant, legible, stable, and trustworthy.</p>
<p>That is a much higher bar than adding a prompt box.</p>
<p>It asks more from the system.</p>
<p>And it asks more from UX.</p>
<h3>Where this series is going next</h3>
<p>In <a href="https://medium.com/the-thinking-interface/ai-native-ux-part-1-adding-ai-is-not-the-same-as-designing-an-ai-native-product-e54135e72c29">Part 1</a>, I argued that adding AI does not automatically make a product feel AI-native.</p>
<p>In <a href="https://medium.com/the-thinking-interface/ai-native-ux-part-2-from-navigation-to-intent-the-ux-shift-behind-ai-products-33f64c7af639">Part 2</a>, I argued that the deeper shift is from navigation-first software to intent-first software.</p>
<p>This part extends that argument.</p>
<p>Once software begins with intent, the interface cannot remain static in the same way. It has to become more adaptive to the task. But that adaptivity only becomes good UX when it is balanced with continuity, evidence, and user control.</p>
<p>That leads naturally to the next question:</p>
<p><strong>If the interface adapts, how does the user keep trusting it?</strong></p>
<p>That is where I want to go next.</p>
<p>Because the more software begins acting on the user’s behalf, the more important it becomes for the interface to show not just what it can do, but why the user should believe it.</p>
]]></content:encoded>
      <pubDate>Wed, 23 Sep 2026 00:00:00 GMT</pubDate>
      <category>AI-Native UX</category>
    </item>

    <item>
      <title>The Smell of Rain on Concrete</title>
      <link>https://akhandsingh.com/slow-mornings/the-smell-of-rain-on-concrete</link>
      <guid isPermaLink="true">https://akhandsingh.com/slow-mornings/the-smell-of-rain-on-concrete</guid>
      <description>I wrote these two lines sitting on the floor of my mother’s kitchen, the afternoon after a long monsoon had finally broken the heat. The pressure cooker was hissing on the stove.</description>
      <content:encoded><![CDATA[<blockquote>
<p><em>“The fragrance of earth, damp and divine,</em><br><em>Chaotic, yet a comfort by design.”</em></p>
</blockquote>
<hr>
<p>I wrote these two lines sitting on the floor of my mother’s kitchen, the afternoon after a long monsoon had finally broken the heat. The pressure cooker was hissing on the stove. My father’s slippers were drying near the door. The whole house smelled like wet mud and cumin, and I remember thinking: <em>this is not beautiful in any way I was taught to call beautiful.</em></p>
<p>And yet.</p>
<p>There is a kind of comfort that does not arrive gently. It does not knock. It comes in sideways, the way that smell does, filling a room before you’ve had a chance to prepare for it. Petrichor is the word scientists use for it, that wet-earth scent after rain. But the word feels too clean. What I was breathing in was older than language. It was the smell of a roof that had leaked for three months and my father choosing not to fix it because the money was needed elsewhere. It was the smell of a courtyard where my mother used to sit and spread out raw mangoes to pickle in the late afternoon. It was grief and warmth jammed together in the same inhale, the way family often is.</p>
<p>That is what I meant by <em>chaotic, yet a comfort by design.</em> Not that chaos is secretly tidy, or that pain has a hidden plan. I meant that the things which unsettle us are sometimes the very things that hold us. The leaky roof. The hissing cooker. The slippers someone left by the door because they are still here, still alive, still coming home muddy.</p>
<p>I have moved cities four times in the last decade. I carry very little. But that smell follows me into every new apartment, every unfamiliar corridor. It is the most honest thing I know. It does not let me pretend I am someone without a past.</p>
<p>When I smell rain on concrete now, I do not reach for my phone. I just stand there for a moment, held.</p>
<hr>
<p>With love, <strong>Akhand</strong></p>
<hr>
<p><em>P.S. These lines are from my poetry collection</em> <a href="https://akhandsingh.com/books/between-words">Between Words</a><em>. If this reflection stirred something in you, the full book will take you further into that place.</em></p>
]]></content:encoded>
      <pubDate>Mon, 21 Sep 2026 00:00:00 GMT</pubDate>
      <category>The Writer’s Desk</category>
    </item>

    <item>
      <title>AI-Native UX: Part 2 — From Navigation to Intent: The UX Shift Behind AI Products</title>
      <link>https://akhandsingh.com/engineering/ai-native-ux-part-2-from-navigation-to-intent</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/ai-native-ux-part-2-from-navigation-to-intent</guid>
      <description>AI-native UX begins when software stops asking where you want to go and starts asking what you are trying to do. That changes the starting point of the product.</description>
      <content:encoded><![CDATA[<p>In Part 1, I argued that AI-native UX begins when software stops asking, <strong>“Where do you want to go?”</strong> and starts asking, <strong>“What are you trying to do?”</strong></p>
<p>That shift sounds simple, but it changes more than language. It changes the starting point of the product.</p>
<p>Traditional software was built around navigation. Dashboards, reports, tables, filters, modules, and pages gave users a map of the system. If you learned that map well enough, you could usually get where you needed to go. The interface rewarded familiarity. It assumed that value began when the user entered the right part of the software.</p>
<p><strong>AI introduces a different possibility.</strong></p>
<blockquote>
<p>When a system can interpret goals, assemble context, and help shape the right working state, the user no longer has to begin with the product’s structure in the same way. They can begin with intent.</p>
</blockquote>
<p>That is one of the deepest UX shifts behind AI products.</p>
<p>This part is about that shift more directly: from navigation-first software, which assumes work begins with destinations, to intent-first software, which assumes work begins with the user’s goal.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-2-from-navigation-to-intent/01.webp" alt="Intent-first products do not begin by asking users where to go. They begin by asking what users are trying to do."></p>
<p><em>Intent-first products do not begin by asking users where to go. They begin by asking what users are trying to do.</em></p>
<h3>Traditional software was built around destinations</h3>
<p>Most software has historically been organized around places.</p>
<p>The dashboard. The analytics screen. The report builder. The settings panel. The account record. The workflow page.</p>
<p>Even as products became more sophisticated, the underlying assumption often stayed the same: users would learn the product by learning its structure. That is why so much software design has revolved around navigation systems, information architecture, tabs, modules, search, filters, and drill-down flows.</p>
<p>These are not arbitrary patterns. They are what software looks like when the interface has to expose capability through structure.</p>
<p>If a user wants to understand churn, review spend anomalies, investigate account health, or explain a KPI shift, the traditional product usually asks them to translate that goal into the system’s map. The user has to know where the relevant information probably lives, what sequence of screens might help, and how to assemble the path through the interface.</p>
<p>That is what navigation-first UX really means.</p>
<p>It does not just mean there is a sidebar. It means the product assumes that progress begins when the user finds the right destination.</p>
<h3>Why this model worked for so long</h3>
<p>Navigation-first software was not a mistake. It was a good answer to the kind of software most products used to be.</p>
<p>When systems were primarily deterministic, they could store, calculate, retrieve, and display. They could not reliably interpret broad intent, assemble the best evidence for a task, or generate a task-specific workspace in response to a user’s goal.</p>
<p>So the interface had to do more of that work explicitly.</p>
<p>Dashboards summarized the system. Tables exposed raw information. Reports organized history. Search helped users jump toward known destinations. Filters narrowed scope. Pages separated responsibilities. Modules made capabilities visible.</p>
<p>This model worked because the system itself was not doing much interpretation on the user’s behalf.</p>
<p>The burden fell on the user. The user had to learn the map, find the right place, combine the right views, interpret what mattered, and decide what to do next.</p>
<p>For a long time, that was normal. And in many cases, it still is.</p>
<p>Navigation-first UX remains stable, learnable, and supportive of habit. It gives users continuity, boundaries, and familiar patterns they can return to.</p>
<p>But it also creates a hidden cost.</p>
<h3>The hidden tax of navigation-first UX</h3>
<p>The strength of navigation-first design is that it makes software explorable.</p>
<p>Its weakness is that it often makes the user do the assembly work.</p>
<p>A user usually does not wake up wanting to “go to the reporting module.” They want to answer something or move something forward. Why did spend increase? Which accounts need attention? What changed this week? What should I review first?</p>
<p>But traditional products rarely begin there.</p>
<p>They begin with the product’s structure. And then the user begins assembling. They open the dashboard, apply the right filters, inspect a chart, drill into a table, search for related context, compare views, form a theory, and then increasingly ask AI to summarize what they have already uncovered.</p>
<p>You can see this navigation tax in small workflow moments. In a traditional product, the path might look like this: open the dashboard, apply the right filter, search for the relevant account, compare the variance, then ask AI to summarize what changed. In a more intent-first product, the flow is shorter: state the goal, let the system assemble the investigation workspace, review the likely drivers, and move to the next useful action.</p>
<p>The difference is not only speed. It is cognitive burden.</p>
<p>Navigation-first software often leans heavily on recall. This maps directly to <a href="https://www.nngroup.com/articles/recognition-and-recall">Jakob Nielsen’s</a> usability heuristic of recognition rather than recall: good interfaces reduce memory load by making actions, options, and next steps visible instead of forcing users to remember the path. Navigation-first products often make users recall where the answer lives. Intent-first products work better when they shift more of that burden toward recognition, and sometimes even anticipation, by surfacing the right entry points, relevant context, and likely next steps before users have to reconstruct them manually.</p>
<p>That is one of the deepest UX implications of AI. Once the system can help assemble the work, the cost of navigation-heavy interaction starts to look less inevitable.</p>
<p><strong>That burden is not just conceptual</strong>. UX research has shown that when <a href="https://www.nngroup.com/articles/hamburger-menus">navigation is harder</a> to discover or users must take extra steps to expose and move through it, task time increases and perceived task difficulty goes up. Intent-first systems have an opportunity to reduce that friction by bringing the right workspace closer to the goal.</p>
<h3>Intent-first UX starts from a different assumption</h3>
<p>Intent-first UX begins with a different question. Not “Which page do you want?” but “What are you trying to figure out?” Not “Which module should we open?” but “What are you trying to accomplish?”</p>
<p>That is not just a softer prompt. It reflects a different assumption about where work begins.</p>
<p>It also changes the distance between the user’s goal and the system’s response. <a href="https://www.nngroup.com/articles/two-ux-gulfs-evaluation-execution">Don Norman</a> described the Gulf of Execution as the gap between what a user wants to do and the means available to do it. Navigation-first products often make users bridge that gulf manually. Intent-first products can begin to collapse it by moving the system closer to the goal itself.</p>
<p><strong>Navigation-first products assume the user should adapt to the software’s structure</strong>. Intent-first products assume the software should help adapt itself to the user’s goal.</p>
<p>Once the system understands intent, it can begin doing more of the assembly work. It can choose relevant context, narrow the field, suppress irrelevant noise, surface likely drivers, assemble the right working state, and guide the next useful move.</p>
<p>That changes the UX in a meaningful way.</p>
<p>The value of the product no longer depends only on whether the user can navigate well. It also depends on whether the system can reduce orientation cost and help users begin closer to the work they actually need to do.</p>
<h3>Intent-first does not mean structure disappears</h3>
<p>This is where AI product conversations often become simplistic.</p>
<p>Intent-first UX does not mean every product becomes a blank prompt box. It does not mean dashboards vanish, navigation dies, or users want to negotiate every task through natural language. Structure still matters because users need continuity, predictability, visible capability boundaries, and stable reference points they can return to.</p>
<p>The real shift is not from structure to no structure.</p>
<p>It is from structure as the default starting point to intent as the more useful starting point for many tasks.</p>
<p>That means the best AI-native products will likely combine stable product foundations with intent-based entry points, suggested actions, contextual workspaces, visible next steps, and clear ways to refine, reject, or reset the system’s direction.</p>
<p>It also means adaptivity has to be balanced with continuity. If the interface reorganizes too often, too aggressively, or without clear rationale, it can feel jumpy instead of helpful. Intent-first UX still needs anchors: stable reference points, familiar patterns, and enough structural consistency for users to stay oriented as the workspace adapts around the task.</p>
<p>And intent-first UX does not mean dropping users into an empty box and hoping they guess what is possible. Good AI-native products still need scaffolding. Suggested tasks, starter prompts, recent workflows, and contextual entry points help users understand what the system can do and how to begin.</p>
<p>That is why intent-first design is not the removal of UX structure. It is the redesign of where UX starts.</p>
<h3>Why dashboards still matter</h3>
<p>One of the easiest mistakes to make in AI product thinking is to assume that intent-first UX makes dashboards obsolete.</p>
<p>It does not.</p>
<p>Dashboards still matter because they serve functions that remain valuable. They help users orient themselves, monitor a system over time, scan for changes, build confidence, and maintain awareness of overall state.</p>
<p><strong>One useful way to think about the difference is that dashboards are better for asynchronous awareness, while intent-first workspaces are better for synchronous problem solving</strong>. Dashboards help users monitor the system over time. Intent-first UX helps them act when something specific needs to be understood, explained, or moved forward.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-2-from-navigation-to-intent/02.webp" alt="Dashboards still matter, but they no longer need to be the universal starting point for every task."></p>
<p><em>Dashboards still matter, but they no longer need to be the universal starting point for every task.</em></p>
<p>The issue is not that dashboards exist. It is that many products still treat the dashboard as the universal starting point for everything.</p>
<p>That made sense when dashboards were one of the best ways to expose a system the user had to interpret manually. But if software can now assemble context around a task, the dashboard becomes one tool among many, not the front door for every meaningful workflow.</p>
<p>In AI-native products, dashboards increasingly become awareness surfaces, monitoring layers, contextual reference points, and stable home bases. They still matter. They just do not always need to be where action begins.</p>
<p>A FinanceOS user investigating a spend increase may not want a broad financial summary first. They may want the product to open a spend investigation workspace around the anomaly itself.</p>
<p>A finance lead reviewing month-end issues may not want to start with every KPI at once. They may want the system to surface what changed, what is likely driving it, and what needs attention now.</p>
<p>Dashboards remain useful. They are just no longer the only reasonable place for work to start.</p>
<h3>Why copilots emerged</h3>
<p>Copilots emerged because most products were still built around destinations.</p>
<p>That is the key point.</p>
<p>When generative AI became usable, the fastest way to introduce intent into older product architectures was not to redesign the whole product. It was to add a new surface where users could express goals directly.</p>
<p>That surface became the copilot.</p>
<p>Copilots mattered because they solved a real structural problem. They gave users a place to say: explain this, summarize this, compare these, draft that, show me what changed, tell me what matters, help me understand the likely cause, or suggest what to do next.</p>
<p>In other words, copilots emerged because users needed a goal-oriented layer inside products that were still mostly destination-oriented.</p>
<p>That is why they spread so quickly. They were not just fashionable. They were convenient. They gave products a way to support intent without forcing teams to rebuild the whole interaction model immediately.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-2-from-navigation-to-intent/03.webp" alt="Copilots emerged because users needed a goal-oriented layer inside products that were still built around destinations."></p>
<p><em>Copilots emerged because users needed a goal-oriented layer inside products that were still built around destinations.</em></p>
<h3>Why copilots often feel transitional rather than final</h3>
<p>Copilots are often genuinely useful.</p>
<p>They reduce friction. They make products easier to approach. They create a natural-language layer inside systems that were never designed to begin with intent. In many cases, they are the first meaningful step toward more AI-native UX.</p>
<p>But they are often transitional because they sit beside an interaction model that has not fully changed yet.</p>
<p>The user can express intent in the copilot, but the surrounding product may still expect them to navigate the old way. Answers appear in one place. Action still lives somewhere else. The product sounds smarter, but the working model underneath remains familiar.</p>
<p>That is why copilots often feel useful but incomplete.</p>
<p>They reveal the demand for intent-first interaction, but they do not always satisfy it by themselves.</p>
<p>The longer-term opportunity is not just to give users a smarter sidebar. It is to let the product itself start behaving more intelligently.</p>
<p>That means intent should not live only in the assistant. It should shape what opens, what gets prioritized, what context is surfaced, what actions become visible, and how the workspace is assembled.</p>
<p>Once that begins to happen, the copilot stops being the entire AI strategy. It becomes one input path among others: a refinement tool, a collaborative layer, a follow-up mechanism, a place to resolve ambiguity, or a way to steer the system when needed.</p>
<p>That is why copilots are often transitional rather than final. They are the bridge between navigation-heavy software and products that begin to absorb intelligence deeper into the interface itself.</p>
<h3>A FinanceOS example of the shift</h3>
<p>You can see this difference clearly in FinanceOS.</p>
<p>In a more traditional version of the product, a finance user might begin on a dashboard, notice that spend is unusually high, open a category report, apply filters, inspect a transaction table, and then ask a copilot to summarize what changed.</p>
<p>In a more intent-first version of FinanceOS, the system might detect the unusual spike, open a spend investigation workspace automatically, surface the likely drivers, highlight the accounts that need review, and bring the most relevant evidence and next actions into one place.</p>
<p>The difference is not that one version has AI and the other does not.</p>
<p>The difference is where the work begins.</p>
<p>That is the deeper UX shift.</p>
<h3>What this means for product teams</h3>
<p>For product teams, this changes the design question.</p>
<p>The question is no longer only: <strong>How do users move through this interface?</strong></p>
<p>It is also: <strong>How does the product meet users closer to their intent?</strong></p>
<p>That changes the role of information architecture, navigation, search, dashboards, workspace assembly, suggested actions, correction and refinement, continuity, and trust.</p>
<p>In a navigation-first world, the product’s job is to make the map usable.</p>
<p>In an intent-first world, the product’s job is increasingly to reduce the amount of map-reading required in the first place.</p>
<p>That does not make UX simpler. It makes it more demanding.</p>
<p>Because now the system has to do more than expose information. It has to interpret intent, choose context, preserve trust, maintain continuity, support correction, and help users act without becoming opaque.</p>
<p>That is why the shift matters. It is not just a new pattern. It is a new assumption about where work begins.</p>
<h3>Where this leaves copilots</h3>
<p>Copilots still matter.</p>
<p>They matter because they helped products make the first move away from rigid navigation-first interaction. They created a place for intent inside systems that were not built around it.</p>
<p>But they should not be confused with the destination.</p>
<p>If users keep needing to ask the side assistant what matters, what changed, what to do next, and where to go, that is often a signal that the surrounding product still has not absorbed enough intelligence into its own structure.</p>
<p>That is the deeper lesson.</p>
<blockquote>
<p>The most important AI UX shift is not that software can now talk. It is that software can increasingly begin from the user’s goal rather than forcing the user to begin from the software’s map.</p>
</blockquote>
<h3>Where this series is going</h3>
<p>In Part 1, we looked at why adding AI does not automatically make a product feel AI-native. In this part, we defined the first major structural shift: moving from navigation-first to intent-first interaction.</p>
<p>But once a product begins with intent, the static interface of the past is no longer enough. The workspace itself has to become more responsive to the task, while still preserving the structure and continuity users need to stay oriented.</p>
<p><strong>That is where I want to go next:</strong> what makes an interface feel adaptive instead of static, how context becomes part of the interface itself, and why trust, evidence, and user control become even more important as software moves from assistive AI toward more agentic behavior.</p>
<blockquote>
<p>The most important shift in software is not that it can now talk. It is that it can begin from the user’s goal rather than forcing the user to begin from the software’s map.</p>
</blockquote>
<p>In the next article, I’ll go deeper into what happens after the prompt: <em><strong>the rise of the adaptive interface</strong></em>.</p>
<p><strong>Where does your product still make users navigate before users can think?</strong> Moving from navigation-first to intent-first design is not just about adding a prompt box. It is about changing the starting point of the work itself. I’d be curious to hear from other product teams: what is the hardest part of reducing that navigation tax in your own product?</p>
]]></content:encoded>
      <pubDate>Tue, 14 Apr 2026 00:00:00 GMT</pubDate>
      <category>AI-Native UX</category>
    </item>

    <item>
      <title>AI-Native UX: Part 1 — Adding AI Is Not the Same as Designing an AI-Native Product</title>
      <link>https://akhandsingh.com/engineering/ai-native-ux-part-1-adding-ai-is-not-ai-native</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/ai-native-ux-part-1-adding-ai-is-not-ai-native</guid>
      <description>Many products now add an assistant, a copilot or a chat panel yet still feel old. What separates AI-enhanced from AI-native is the interaction model.</description>
      <content:encoded><![CDATA[<blockquote>
<p>Many products now include AI, but their UX still reflects an older software model. What separates AI-enhanced from AI-native is not the presence of intelligence, but whether the interaction model has truly changed.</p>
</blockquote>
<p>Software is full of AI now.</p>
<p>Every product seems to have an assistant, a copilot, a prompt box, or a chat panel attached to the side of an existing interface. On paper, that sounds like progress. Products that once had dashboards, tables, filters, and forms now also have AI.</p>
<p>But many of these products still do not feel AI-native.</p>
<p><strong>They feel like old software with AI taped onto it.</strong></p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-1-adding-ai-is-not-ai-native/01.webp" alt="Adding AI to a product does not make it AI-native. What changes the experience is when the interface itself reorganizes around the user’s goal."></p>
<p><em>Adding AI to a product does not make it AI-native. What changes the experience is when the interface itself reorganizes around the user’s goal.</em></p>
<p>This is the distinction many products still miss.</p>
<p><strong>On the left</strong>, AI has been added to the product, but the product still starts the old way: with dashboards, tables, and manual inspection.</p>
<p><strong>On the right</strong>, the interface starts with intent instead. The system reorganizes the workspace around the task, bringing the most relevant anomalies, evidence, relationships, and actions into one place.</p>
<p>And users can feel the difference immediately.</p>
<h3>The current pattern: AI as an extra layer</h3>
<p>A lot of AI product work today follows the same pattern: keep the same navigation, workflows, dashboards, filters, and forms, then add a chat panel and call it transformation.</p>
<p>From a roadmap perspective, this is understandable. It is faster to ship an AI feature than to rethink the structure of the product itself.</p>
<p>But from a UX perspective, that often creates a mismatch. The product still expects users to navigate the old way, assemble context manually, and force-fit their workflow into the product’s rigid menus. AI becomes an accessory rather than a new interaction model.</p>
<blockquote>
<p>That is why so many AI features feel impressive but still disconnected. The <strong>intelligence</strong> exists, but the experience has not fundamentally changed.</p>
</blockquote>
<h3>Why chat alone is not enough</h3>
<p>Chat can be a useful interface. It lowers friction and gives users a natural way to express intent.</p>
<blockquote>
<p>But chat alone is not what makes a product feel AI-native.</p>
</blockquote>
<p>A chatbot added to a traditional product often behaves like a parallel workflow rather than an integrated one. Users ask questions in one place, then go somewhere else to verify the answer, inspect the evidence, and take action.</p>
<p><strong>This is the key problem: text alone does not equal transformation.</strong></p>
<blockquote>
<p>In fact, relying entirely on text can degrade the experience. <a href="https://www.uxtigers.com/post/ux-roundup-20251222">Jakob Nielsen</a> argues that today’s chat-based AI interfaces are still primitive.</p>
</blockquote>
<p>In practice, that often means users have to behave like prompt engineers to get outcomes that a well-designed visual interface could have surfaced much faster.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-1-adding-ai-is-not-ai-native/02.webp" alt="On the left, the answer lives in chat. On the right, the answer reshapes the interface."></p>
<p><em>On the left, the answer lives in chat. On the right, the answer reshapes the interface.</em></p>
<p>If a user asks, “<strong>What is causing this issue?</strong>” and receives a well-written paragraph, that may be helpful. But if they still have to open panels, compare charts, filter entities, and locate supporting evidence on their own, the AI has not changed the workflow. It has only narrated it.</p>
<p><strong>AI-native products do more than answer</strong>. They dynamically adapt the interface, bring the most relevant context closer, and reduce the amount of manual orientation users must perform before they can act.</p>
<h3>The real gap: workflow vs interface decoration</h3>
<p>The biggest misunderstanding in AI product design is assuming that intelligence can be added without changing the workflow.</p>
<p>But workflows are exactly where the difference shows up.</p>
<p>In <strong>traditional software</strong>, users are often expected to translate their intent into the product’s language. They need to know which page to open, which filter to use, which report to trust, which data matters, and which next step is even possible.</p>
<blockquote>
<p>This dynamic is a perfect example of <a href="https://lawsofux.com/teslers-law/">Tesler’s Law</a>, which states that every system has an inherent amount of complexity that cannot be removed — it can only be shifted.</p>
</blockquote>
<p>For decades, the user has borne the burden of managing that complexity through manual navigation. <strong>In AI-native software, the system finally absorbs it.</strong></p>
<p>Instead of asking, “<em><strong>Which page do you want?</strong></em>” they can start with, “<em><strong>What are you trying to figure out?</strong></em>”</p>
<p>Instead of making users manually assemble evidence across disconnected surfaces, they can pull together the most relevant context around the task.</p>
<p>For example, in a traditional product, a user might search for a churn report, click through filters, open the right dashboard, and then ask an AI sidebar to summarize what changed. In a more AI-native product, the system might detect an unusual churn spike, open a churn investigation workspace automatically, surface the likely drivers, and bring the most relevant evidence and next actions into one place. The difference is not that one product has AI and the other does not. The difference is where the work begins.</p>
<p>Instead of returning a static answer, they can generate a working state:</p>
<ul>
<li>Pre-filtered views</li>
<li>Relevant entities</li>
<li>Likely explanations</li>
<li>Suggested next actions</li>
<li>Inline ways to refine or correct the system’s direction</li>
</ul>
<p>This is where the product starts to feel different. Not because it has AI somewhere inside it, but because the intelligence is changing how the interface behaves.</p>
<p>That is what many current implementations miss. They add AI to the chrome of the product, but not to the core movement of the experience.</p>
<h3>Feature insertion vs interaction redesign</h3>
<p>This is the distinction I think more product teams need to make.</p>
<p><strong>Feature insertion means adding AI to the existing product structure.</strong></p>
<p>The architecture stays the same. The navigation stays the same. The workflow stays the same. AI is introduced as one more capability inside an otherwise familiar interaction model.</p>
<p>This approach can still create value. It can speed up certain tasks. It can reduce friction in isolated moments. It can improve discoverability or help users summarize information faster.</p>
<p>But it rarely changes the feeling of the product.</p>
<p><strong>Interaction redesign means rethinking how the product starts, responds, guides, and adapts when intelligence is available.</strong></p>
<p>That usually means asking more foundational questions:</p>
<ul>
<li>Should the product still begin with navigation, or with intent?</li>
<li>Should users have to assemble their own context, or should the system prepare it?</li>
<li>Should answers remain separate from action, or should the interface evolve in response?</li>
<li>Should the same layout serve every task, or should the product adapt based on what the user is trying to do?</li>
<li>How easily can a user undo, reject, or revise a system-generated change when the interface adapts in the wrong way?</li>
</ul>
<p>These are not small UI decisions. They are product decisions.</p>
<blockquote>
<p>And that is why AI-native UX is not just a new layer of interface polish. It is a deeper shift in how software organizes work.</p>
</blockquote>
<p>True transformation requires moving beyond simple automation toward what Microsoft defines as <a href="https://www.microsoft.com/en-us/research/project/guidelines-for-human-ai-interaction/">Human-AI Interaction</a>, where the system supports human agency rather than replacing it.</p>
<h3>Why bolted-on AI feels disconnected</h3>
<p>When AI is bolted onto an older product architecture, users feel the seams.</p>
<p>They see a product that still behaves like traditional software, except now it also has a place to type questions. The system may sound more natural, but the underlying product still expects the same manual effort from the user.</p>
<p>That creates several experience problems.</p>
<p><strong>First, the AI often lacks enough product context in the moment it is used</strong>. It may respond generally when the user needs specificity. Or it may know something useful but have no way to express that intelligence through the actual interface.</p>
<p><strong>Second, the user is forced to bridge the gap between conversation and execution</strong>. They receive an answer in one surface and then perform the work in another. That extra translation effort becomes part of the UX tax.</p>
<p><strong>Third, the surrounding product still reflects a page-first model, not a goal-first model</strong>. Users must still navigate the product’s structure even when their real need is much simpler: solve this issue, understand this account, prepare for this meeting, identify this risk, move this work forward.</p>
<p>This is why many AI-enhanced products feel more capable, but not more coherent.</p>
<p>The AI is present, but the product has not been reorganized around it.</p>
<h3>What AI-native UX actually starts to look like</h3>
<p>AI-native UX does not mean every product becomes a chat app. It means the product begins to treat intelligence as part of the interface logic itself.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-1-adding-ai-is-not-ai-native/03.webp" alt="AI-native UX does not just add intelligence to the screen. It changes the hierarchy of the workspace around the question the user is trying to answer."></p>
<p><em>AI-native UX does not just add intelligence to the screen. It changes the hierarchy of the workspace around the question the user is trying to answer.</em></p>
<p>That can show up in many ways:</p>
<ul>
<li>A task-first entry point instead of page-first navigation</li>
<li>Interfaces that adapt based on what the user is trying to accomplish</li>
<li>Systems that assemble relevant context before the user asks for every piece of it</li>
<li>Workflows that move from explanation into action without forcing users to restart elsewhere</li>
<li>Products that guide, narrow, recommend, and restructure — not just respond</li>
</ul>
<p>In other words, the product starts acting less like a static toolset and more like a collaborative system.</p>
<p><strong>This shift redefines the user’s role.</strong> They are no longer manual operators navigating a system; they are editors and supervisors of an intelligent partner.</p>
<p>The UX must reflect this by making it as easy to <strong>reject and refine</strong> as it is to <strong>accept and execute</strong>.</p>
<p>That doesn’t remove the need for good UI — in fact, it increases it.</p>
<p>When intelligence enters the product, clarity matters even more. Users need to understand what the system is doing, why it is surfacing certain information, where confidence is high or low, and how to steer the experience when the system is partially right, wrong, or incomplete.</p>
<p>But AI-native UX also has to be legible, not just adaptive. Designing for transparency is essential; as <a href="https://pair.withgoogle.com/guidebook/patterns">Google’s People + AI Guidebook</a> suggests, users need to see the <strong>why</strong> behind an AI’s output to calibrate their trust effectively.</p>
<p>This isn’t just a design preference; <a href="https://f1studioz.com/blog/key-metrics-to-measure-the-success-of-your-ai-ux/">recent research</a> indicates that <strong>AI Acceptance Rate</strong> — the metric of how often users actually rely on a suggestion — drops significantly if the <strong>why</strong> behind the output is hidden.</p>
<p><strong>When a system surfaces a likely explanation, changes the workspace, or recommends a next action, users need to understand why</strong>. They need evidence, context, and a way to verify what the system is doing — especially when the model may be partially right, wrong, or overly confident. The goal is not to make the interface feel magical. It is to make intelligence useful, steerable, and trustworthy inside the workflow.</p>
<blockquote>
<p>AI-native UX is not about replacing interface design with prompting.</p>
</blockquote>
<p><strong>It is about designing interfaces that can work with intelligence responsibly and usefully.</strong></p>
<h3>The shift from navigation to intent</h3>
<p>One of the biggest shifts behind AI-native products is moving from navigation-first design to intent-first design.</p>
<p>Traditional software is organized around destinations. Dashboards. Tables. Reports. Settings. Search. Pages. Modules.</p>
<p>Users learn the structure of the product and then move through it to achieve their goals.</p>
<p>AI-native products can begin somewhere else.</p>
<p>They can begin with intent.</p>
<p>Not “Which page are you looking for?”</p>
<p>But “What are you trying to do?”</p>
<p>That change seems small, but it has big implications.</p>
<p>When a product starts with intent, it gains permission to reorganize the experience around the user’s goal. It can surface the right data, suppress noise, suggest likely paths, and construct a useful working state instead of making the user build one from scratch.</p>
<p>But adaptivity has to be balanced with consistency. If the interface reorganizes too often, too aggressively, or without clear rationale, it can feel jumpy instead of helpful. AI-native UX should reduce cognitive load, not replace it with a new kind of unpredictability.</p>
<p>The best systems will adapt around the task while still preserving enough structure, continuity, and memory for users to stay grounded. While AI allows for more dynamic interfaces, we must still respect <a href="https://lawsofux.com/jakobs-law/">Jakob’s Law</a>, which reminds us that users rely on familiar patterns to feel in control of their digital environment.</p>
<p>Intent-first UX also does not mean dropping users into an empty box and hoping they guess what is possible. Good AI-native products still need constraints, scaffolding, and visible affordances. Suggested tasks, starter prompts, recent workflows, and contextual entry points help users understand both what the system can do and how to begin.</p>
<p>That is a fundamentally different interaction model from “here is the full product, now go figure it out.”</p>
<p>And that is what makes a product start to feel AI-native — not just because AI is present, but because the product is using intelligence to reduce orientation cost and guide action.</p>
<h3>This is the real design challenge</h3>
<p>The design challenge in AI products is no longer where to place the prompt box. It is deciding what happens after the prompt.</p>
<p>A truly AI-native product does not just reply with text and leave the workspace untouched; it transforms the state of the interface in meaningful ways. Instead of forcing the user to know exactly where every feature lives, the system must actively bridge the gap between intent and execution.</p>
<p>AI can no longer remain an isolated feature on the periphery — it must become the core operating model of the product itself.</p>
<p>These are harder design choices than simply adding a new chat panel, but they are the only ones that matter. If we avoid them, we risk building products that are technically AI-powered, but experientially unchanged.</p>
<p><img src="https://akhandsingh.com/images/articles/ai-native-ux-part-1-adding-ai-is-not-ai-native/04.webp" alt="The shift from navigation to intent can begin at the very first screen."></p>
<p><em>The shift from navigation to intent can begin at the very first screen.</em></p>
<p>That is where this conversation gets more interesting.</p>
<p>Because the future of AI products will not be defined by who added a prompt box first. It will be defined by who redesigned the interaction model so the product itself feels meaningfully different.</p>
<p>Not more crowded.<br>Not more verbose.<br>Different.</p>
<p>It will be a shift toward interfaces that are <strong>aware of intent</strong>, <strong>capable of structuring work</strong>, and <strong>designed to turn intelligence into action.</strong></p>
<blockquote>
<p>The difference between <strong>AI included</strong> and <strong>AI-native</strong> is not a feature check. It is a design shift.</p>
</blockquote>
<p>And that shift starts the moment a product stops asking, “<strong>Where do you want to go?</strong>” and starts asking, “<strong>What are you trying to do?”</strong></p>
<p><strong>Is your team building “Features” or “Interactions”?</strong> Moving from navigation-first to intent-first design is a massive cultural shift for product teams. I’d love to hear from other PMs and Designers: What is the biggest hurdle you’re facing in making your product feel truly AI-native?</p>
]]></content:encoded>
      <pubDate>Tue, 07 Apr 2026 00:00:00 GMT</pubDate>
      <category>AI-Native UX</category>
    </item>

    <item>
      <title>Building Scalable UI Architectures — Final Part: What Actually Scales</title>
      <link>https://akhandsingh.com/engineering/building-scalable-ui-architectures-final-part-what-scales</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/building-scalable-ui-architectures-final-part-what-scales</guid>
      <description>The series covered architecture boundaries, modular monorepos, observability, design systems, performance, release confidence and governance. Now, judgment.</description>
      <content:encoded><![CDATA[<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-final-part-what-scales/01.webp" alt=""></p>
<p>Over the course of this series, I have covered the main layers that I believe shape scalable frontend systems: <strong>architecture boundaries, modular monorepos, observability, design systems, performance, release confidence, and team governance</strong>.</p>
<p>Those are the systems.</p>
<p>Now I want to talk about judgment.</p>
<p>Because in the end, scalable frontend architecture is not just about having the right layers or the right tools.</p>
<blockquote>
<p>It is about knowing which things matter at which stage, which problems deserve structure, which abstractions are worth keeping, and which forms of complexity are quietly making the product harder to build and maintain.</p>
</blockquote>
<p>That is the part I find most interesting now.</p>
<p>After working across multiple startup environments, I have become less interested in architecture that sounds impressive and more interested in architecture that teams can actually live with. The best frontend systems are not the most elaborate. They are the ones that remain understandable, adaptable, and trustworthy as the product and organization grow.</p>
<p>In this final part, I want to step back from individual layers and talk about what actually scales.</p>
<h3>What Matters at 3 Engineers</h3>
<p>At a very small team size, architecture should help people move, not slow them down.</p>
<p>This is the stage where over-engineering is most tempting because the product still feels clean and teams want to “set things up right.” But early-stage products usually benefit more from simple boundaries than from elaborate systems.</p>
<p>At this stage, what matters most is:</p>
<ul>
<li>Clear separation between shared UI, domain logic, and data access</li>
<li>Readable code organization</li>
<li>A few strong conventions</li>
<li>Lightweight consistency in naming and component structure</li>
<li>Enough discipline to avoid accidental chaos</li>
</ul>
<p>What does not usually help yet:</p>
<ul>
<li>Too many packages</li>
<li>Premature platform layers</li>
<li>Large governance models</li>
<li>Generic abstractions before product patterns stabilize</li>
<li>Process that assumes a team larger than the one you have</li>
</ul>
<blockquote>
<p>A small team scales best when it can still reason about the product quickly. Architecture should reduce confusion, not create ceremony.</p>
</blockquote>
<p>At this stage, I <strong>trust conventions more than frameworks of process</strong>.</p>
<h3>What Matters at 10 Engineers</h3>
<p>This is often where scaling gets real.</p>
<p>By now, the product has more surface area, more workflows, and more contributors. Informal coordination starts to weaken. Different parts of the UI begin drifting. Shared modules gain more consumers. Dependency choices matter more. Product consistency starts requiring active maintenance.</p>
<p>This is usually the point where systems begin to matter:</p>
<ul>
<li>Package and ownership boundaries</li>
<li>Stronger design system foundations</li>
<li>Documentation for shared primitives</li>
<li>Testing and visual confidence for core UI</li>
<li>Observability that makes regressions visible</li>
<li>Performance discipline</li>
<li>Explicit contribution paths into shared layers</li>
</ul>
<p>At this stage, architecture becomes less about “what is the ideal structure?” and more about “how do we stop reasonable local decisions from fragmenting the system?”</p>
<blockquote>
<p>That is where modularity, design systems, release confidence, and governance stop feeling optional.</p>
</blockquote>
<p><strong>What scales here is not just code reuse. It is clarity of responsibility.</strong></p>
<h3>What Breaks at 20+ Engineers</h3>
<p>By the time a frontend organization reaches a larger scale, many of the original technical decisions are no longer the main source of difficulty.</p>
<p>The bigger problems usually look like this:</p>
<ul>
<li>Too many things are nominally shared but poorly owned</li>
<li>The design system becomes bloated or political</li>
<li>Package boundaries exist but are inconsistently respected</li>
<li>Teams duplicate patterns because the shared path feels slow</li>
<li>Visual and interaction drift accelerates</li>
<li>Performance expectations are vague</li>
<li>Migrations stall because no one wants to absorb the cost</li>
<li>Release confidence depends on a few individuals instead of the system</li>
</ul>
<p>This is why I do not believe frontend scale problems are mostly React problems or framework problems. They are much more often ownership, boundary, and decision-quality problems.</p>
<blockquote>
<p>At larger scale, architecture fails less because it lacked sophistication and more because it lost coherence.</p>
</blockquote>
<p><strong>What scales here is not complexity. It is governable complexity.</strong></p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-final-part-what-scales/02.webp" alt="The systems that matter in frontend architecture change as team size and coordination cost increase."></p>
<p><em>The systems that matter in frontend architecture change as team size and coordination cost increase.</em></p>
<h3>What to Avoid Over-Engineering</h3>
<p>If there is one theme that has repeated across startups, it is this: <strong>frontend teams often over-engineer in the wrong places and under-invest in the places that actually matter later</strong>.</p>
<p>A few examples of over-engineering that I have learned to be cautious about:</p>
<h4>1. Too many packages too early</h4>
<p>A monorepo can be powerful, but splitting a small system into too many packages before boundaries are real usually creates overhead faster than it creates leverage.</p>
<h4>2. Generic components with no real consumer clarity</h4>
<p>The phrase “reusable” can hide a lot of design debt. A component is not valuable just because it is generic. It is valuable when it solves a stable problem clearly.</p>
<h4>3. Shared layers absorbing domain behavior</h4>
<p>This often feels efficient at first, but it reduces the long-term usefulness of the shared layer.</p>
<h4>4. Complex state models for ordinary UI</h4>
<p>Not every surface needs a broad global abstraction. A lot of frontend performance and maintainability improves when state remains local until it genuinely needs to be shared.</p>
<h4>5. Tooling without operating discipline</h4>
<p>A stack can include Storybook, visual testing, RUM, flags, and audits, but if the team does not actually use them well, the architecture is not stronger. It is only noisier.</p>
<h4>6. Governance that centralizes too much</h4>
<p>Standards help. Bottlenecks do not. A shared system should make good decisions easier, not require permission for everything.</p>
<p>The pattern behind all of these is the same: building systems for imagined scale rather than for the real shape of the product and team.</p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-final-part-what-scales/03.webp" alt="Many frontend systems struggle not because they lack structure, but because they add complexity in the wrong places."></p>
<p><em>Many frontend systems struggle not because they lack structure, but because they add complexity in the wrong places.</em></p>
<h3>The Rules I Now Trust</h3>
<p>Across multiple frontend environments, these are the rules I keep coming back to.</p>
<h4>1. Start with boundaries, not tools</h4>
<p>A clean mental model matters more than the latest stack choice. Teams need to understand where shared UI ends, where domain behavior lives, and how data enters the system.</p>
<h4>2. Reuse should be earned</h4>
<p>Do not promote patterns into shared layers just because they look similar once or twice. Reuse becomes valuable when the pattern is stable, repeated, and can keep a clean API.</p>
<h4>3. Tokens scale better than one-off styling</h4>
<p>Visual consistency survives growth when the design system is built on semantic foundations, not on ad hoc color and spacing choices.</p>
<h4>4. Shared UI should stay presentational</h4>
<p>The more domain meaning the shared layer absorbs, the less broadly useful it becomes.</p>
<h4>5. Performance is part of architecture</h4>
<p>A product does not become fast by accident. Bundle boundaries, rendering discipline, and data loading shape performance long before optimization tickets appear.</p>
<h4>6. Observability is part of frontend maturity</h4>
<p>Teams need to understand what is happening after release. RUM, user insights, and workflow telemetry are part of the architecture, not side utilities.</p>
<h4>7. Confidence should be distributed across the lifecycle</h4>
<p>Testing, Storybook, visual review, type safety, feature flags, and observability all contribute to safe delivery. No single tool should carry the entire burden.</p>
<h4>8. Ownership clarity matters more than perfect structure</h4>
<p>An imperfect system with clear owners often scales better than a well-designed system nobody truly stewards.</p>
<h4>9. Governance should reduce repeated debate</h4>
<p>A healthy architecture removes unnecessary decision load from everyday feature work.</p>
<h4>10. Smaller shared systems often scale better</h4>
<p>The most resilient shared layers are usually the ones that stay focused and composable.</p>
<h4>11. Team size should change how explicit your systems become</h4>
<p>Conventions may be enough early. Later, ownership and standards need to be more visible.</p>
<h4>12. If the architecture cannot be explained simply, it is probably doing too much</h4>
<p>This is one of the best tests I know. A scalable system should still be teachable.</p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-final-part-what-scales/04.webp" alt="Scalable frontend systems are shaped by a small set of repeatable principles applied consistently over time."></p>
<p><em>Scalable frontend systems are shaped by a small set of repeatable principles applied consistently over time.</em></p>
<h3>What Actually Scales</h3>
<p>If I had to summarize everything in this series as simply as possible, I would say this:</p>
<p>What actually scales is not complexity. It is clarity.</p>
<p>Clarity of <strong>boundaries</strong>.</p>
<p>Clarity of <strong>ownership</strong>.</p>
<p>Clarity of <strong>shared patterns</strong>.</p>
<p>Clarity of <strong>data contracts</strong>.</p>
<p>Clarity of <strong>quality expectations</strong>.</p>
<p>Clarity of <strong>how teams are supposed to build and evolve the system</strong>.</p>
<p>That clarity does not make the work easy. Frontend systems still grow messy under real product pressure. Requirements still change. Teams still move at different speeds. Shared layers still require hard tradeoffs.</p>
<p><strong>But clarity makes the complexity governable.</strong></p>
<p>And that, more than anything else, is what I have come to value in scalable frontend architecture. Not the prettiest abstraction. Not the most tools. Not the most ambitious structure.</p>
<p><strong>Just systems that remain understandable, maintainable, and trustworthy as they grow.</strong></p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-final-part-what-scales/05.webp" alt="What actually scales is not complexity itself, but clarity across architecture, ownership, and decision-making"></p>
<p><em>What actually scales is not complexity itself, but clarity across architecture, ownership, and decision-making</em></p>
<h3>Final Thoughts</h3>
<p>Frontend architecture advice often focuses on patterns, libraries, and structure. Those things matter. But the deeper lesson for me has been that scalable systems are built less by collecting patterns and more by making better tradeoffs repeatedly over time.</p>
<p>That is why I wanted this series to move across layers:</p>
<ul>
<li>Architecture</li>
<li>Modularity</li>
<li>Observability</li>
<li>Design Systems</li>
<li>Performance</li>
<li>Confidence</li>
<li>Governance</li>
</ul>
<blockquote>
<p>Because scalable frontend systems are not shaped by one idea alone. They are shaped by how all of those decisions work together.</p>
</blockquote>
<p>If there is one closing thought I would leave with, it is this:</p>
<p><strong>A scalable frontend architecture is not the one that looks the most advanced. It is the one your team can keep building on with confidence.</strong></p>
]]></content:encoded>
      <pubDate>Tue, 31 Mar 2026 00:00:00 GMT</pubDate>
      <category>Building Scalable UI Architectures</category>
    </item>

    <item>
      <title>Building Scalable UI Architectures — Part 7: Team Ownership, Governance, and Decision-Making as You Scale</title>
      <link>https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-7-team-ownership</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-7-team-ownership</guid>
      <description>At small scale, good engineers keep a system healthy through judgment. At larger scale it depends on ownership, governance and who owns which layers.</description>
      <content:encoded><![CDATA[<h3>Building Scalable UI Architectures — Part 7: Team Ownership, Governance, and Decision-Making as You Scale</h3>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-7-team-ownership/01.webp" alt=""></p>
<p>In the earlier parts of this series, I focused on <strong>architecture boundaries</strong>, <strong>monorepo structure</strong>, <strong>observability</strong>, <strong>design systems</strong>, <strong>performance</strong>, and Scalable UI Architectures. All of those matter. But as teams grow, another reality becomes impossible to ignore:</p>
<blockquote>
<p>Frontend architecture problems eventually stop being only about code.</p>
</blockquote>
<p>At small scale, good engineers can often keep a system healthy through judgment, communication, and shared context. At larger scale, that same system starts to depend much more on ownership, governance, and decision-making. Teams need to know who owns which layers, how shared systems evolve, when standards are enforced, when local flexibility is allowed, and how architectural decisions get made without turning into bottlenecks.</p>
<p>In my experience, this is where many frontend systems become harder than they need to be. The code may be modular, the design system may exist, and the tooling may be strong, but if ownership is unclear and decisions are inconsistent, the architecture still starts to drift.</p>
<p>That is why I think <strong>scalable frontend architecture has a people layer, not just a code layer.</strong></p>
<p>In this post, I want to talk about that people layer: how ownership, governance, and decision-making affect frontend scale, and what has helped me keep systems healthy as teams and products become more complex.</p>
<h3>Architecture Scales Through Coordination</h3>
<p>One of the clearest shifts I have seen as teams grow is that coordination starts mattering as much as implementation.</p>
<p>At three engineers, architecture often feels like a code-structure problem:</p>
<ul>
<li>Keep files organized</li>
<li>Avoid duplication</li>
<li>Use a sensible component model</li>
<li>Do not mix everything together</li>
</ul>
<p>At ten engineers, that is no longer enough.</p>
<p>Now the real questions become:</p>
<ul>
<li>Who owns the shared SDK?</li>
<li>Who approves a new shared component?</li>
<li>Who decides whether a feature-specific pattern belongs in the design system?</li>
<li>Who is responsible for deprecating old APIs?</li>
<li>Who owns performance expectations for shared surfaces?</li>
<li>Who keeps visual consistency from drifting?</li>
</ul>
<p>If those questions do not have clear answers, the architecture may still look clean on paper, but in practice it starts to fragment.</p>
<p>That is why I think of architecture maturity as partly a coordination maturity problem. Systems do not stay healthy only because the folder structure was good once. <strong>They stay healthy because ownership and decisions remain intentional.</strong></p>
<h3>Ownership Matters as Much as Structure</h3>
<p>A well-structured monorepo is valuable, but its value drops quickly if nobody clearly owns the layers inside it.</p>
<p>For example, a package layout may look sensible:</p>
<pre><code>packages/
  sdk/
  hooks/
  api/
  styles/
  utils/
  types/
  test/
apps/
  web-app/
  admin-panel/
</code></pre>
<p>But even with a structure like this, the system still needs answers to practical questions:</p>
<ul>
<li>Who maintains sdk/ standards?</li>
<li>Who can add or reshape core primitives?</li>
<li>Who reviews breaking changes in styles/ or theme tokens?</li>
<li>Who is responsible for api/ contracts and generated types?</li>
<li>Who updates test helpers when architecture evolves?</li>
<li>Who owns migrations when shared APIs change?</li>
</ul>
<p>Without ownership, shared layers often become one of two things:</p>
<ul>
<li>A dumping ground that everyone can change casually</li>
<li>A fragile zone that nobody wants to touch</li>
</ul>
<p>Neither scales well.</p>
<p><strong>A healthier model is not necessarily centralization. It is clarity</strong>. A shared layer can absolutely accept broad contribution, but someone still needs to be accountable for its direction and quality.</p>
<blockquote>
<p>Ownership does not mean control for its own sake. It means stewardship.</p>
</blockquote>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-7-team-ownership/02.webp" alt="Shared frontend layers scale better when stewardship is explicit, even when contribution is broad."></p>
<p><em>Shared frontend layers scale better when stewardship is explicit, even when contribution is broad.</em></p>
<h3>Governance Should Improve Velocity, Not Reduce It</h3>
<p>The word governance can sound heavier than it needs to be. In frontend teams, I do not think governance should mean committees, endless approvals, or formal process around every small UI decision.</p>
<p>I think governance is simpler than that.</p>
<blockquote>
<p>Governance is the set of mechanisms that helps a system stay coherent as more people contribute to it.</p>
</blockquote>
<p>That can include:</p>
<ul>
<li>Architectural principles that teams understand</li>
<li>Contribution paths for shared layers</li>
<li>Review expectations for APIs and patterns</li>
<li>Deprecation standards</li>
<li>Documentation requirements</li>
<li>Lightweight RFCs for meaningful shifts</li>
</ul>
<p><strong>Good governance should reduce repeated debate and make quality easier to maintain</strong>. Bad governance usually does the opposite. It slows teams, centralizes too much power, and turns the shared layer into a bottleneck.</p>
<p>The balance that has worked best for me is this:</p>
<ul>
<li>Keep local work easy</li>
<li>Make shared-layer changes deliberate</li>
<li>Avoid process for the sake of process</li>
<li>Review decisions more carefully when blast radius is higher</li>
</ul>
<blockquote>
<p>In other words, not every component change deserves ceremony. But a new shared primitive, token model change, or architectural boundary shift probably deserves more than an ordinary feature PR.</p>
</blockquote>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-7-team-ownership/03.webp" alt=""></p>
<h3>Contribution Models Matter More Than Many Teams Realize</h3>
<p>A design system or SDK becomes much easier to scale when teams know how contribution is supposed to work.</p>
<p>For example, if a product team creates a pattern they believe belongs in shared, what happens next?</p>
<p>Without a model, one of two things usually happens:</p>
<ul>
<li>The team puts it directly into the shared layer too early</li>
<li>The team never promotes it, so duplication accumulates locally</li>
</ul>
<p><strong>A better approach is to create a clear contribution path</strong>:</p>
<ol>
<li>Prove the pattern in product space first</li>
<li>Confirm that the behavior is stable and reusable</li>
<li>Define the API intentionally</li>
<li>Document expected states and accessibility behavior</li>
<li>Promote it into the shared layer once reuse is real</li>
</ol>
<p>That model does a few helpful things:</p>
<ul>
<li>It protects the shared layer from premature abstraction</li>
<li>It gives teams permission to experiment locally first</li>
<li>It makes promotion into shared feel earned rather than arbitrary</li>
</ul>
<p>This connects directly to the themes from <a href="https://medium.com/@akhandsingh/building-scalable-ui-architectures-part-4-design-systems-that-scale-inside-product-teams-ca513656b046">Part 4</a>. <strong>Shared systems scale best when teams know not only what belongs there, but how something gets there.</strong></p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-7-team-ownership/04.webp" alt="Reuse scales best when patterns are proven locally before they are promoted into shared layers"></p>
<p><em>Reuse scales best when patterns are proven locally before they are promoted into shared layers</em></p>
<h3>Decision-Making Changes at Different Team Sizes</h3>
<p>The exact amount of process a frontend team needs changes with scale. Small teams can rely more on conventions and fast conversation. Larger teams need clearer stewardship, contribution paths, and shared standards. But the underlying requirement stays the same: shared systems remain healthier when ownership is explicit and decisions are easier to understand.</p>
<blockquote>
<p>As teams grow, architecture depends more on explicit ownership, standards, and migration discipline, not just clean code.</p>
</blockquote>
<h3>Leadership in UI/UX Is More Than Visual Consistency</h3>
<p>Since my role sits at the intersection of UI, UX, and frontend engineering, this is a point I care about a lot: UI/UX leadership in product teams is not just about making things look consistent.</p>
<blockquote>
<p>It is about shaping how teams make better product decisions repeatedly.</p>
</blockquote>
<p>That includes:</p>
<ul>
<li>Defining shared patterns that reduce reinvention</li>
<li>Protecting accessibility as a baseline expectation</li>
<li>Aligning engineering abstractions with actual user workflows</li>
<li>Keeping interaction models coherent across domains</li>
<li>Deciding where flexibility is useful and where consistency matters more</li>
<li>Helping teams move faster by giving them better defaults</li>
</ul>
<blockquote>
<p><strong>A scalable frontend organization is not only one where engineers can ship quickly. It is one where teams can build different features that still feel like they belong to the same product.</strong></p>
</blockquote>
<p>That coherence rarely happens by accident.</p>
<p>It usually requires <strong>intentional leadership</strong> at the shared layer: not to control every decision, but to create enough clarity that teams can make good decisions independently.</p>
<h3>Governance Also Applies to Technical Quality</h3>
<p>Governance is often discussed in terms of design systems and API shape, but it matters for technical quality too.</p>
<p>Examples include:</p>
<ul>
<li>Performance standards for shared components</li>
<li>Expectations around feature flags and rollout safety</li>
<li>Deprecation timelines</li>
<li>Testing expectations for common primitives</li>
<li>Typed data boundaries</li>
<li>Linting and code health discipline</li>
<li>Dependency hygiene and package audits</li>
</ul>
<p>Your tooling stack already reflects part of this broader quality model well:</p>
<ul>
<li>eslint, stylelint, and type-check</li>
<li>vitest and Storybook validation</li>
<li>chromatic for visual checks</li>
<li>knip, e18e, and package audits</li>
<li>feature flags via ConfigCat</li>
<li>RUM and analytics visibility after release</li>
</ul>
<p>None of those tools replace leadership or ownership, but they help operationalize it.</p>
<blockquote>
<p>Governance becomes much more effective when the system itself reinforces healthy defaults.</p>
</blockquote>
<h3>Shared Systems Should Stay Smaller Than Teams Expect</h3>
<p>One of the most useful governance instincts I have developed is to keep shared systems smaller and cleaner than teams initially want them to be.</p>
<p>There is always pressure to put more into shared layers:</p>
<ul>
<li>Shared cards</li>
<li>Shared layout wrappers</li>
<li>Shared page shells</li>
<li>Shared workflow components</li>
<li>Shared orchestration logic</li>
</ul>
<p><em><strong>Some of that is reasonable. A lot of it is not.</strong></em></p>
<p>The shared layer becomes less scalable when it starts absorbing domain meaning too early. Teams think they are increasing reuse, but often they are just relocating complexity.</p>
<blockquote>
<p>A smaller shared layer with strong primitives, clear tokens, and good composability usually scales better than a larger shared layer filled with awkward abstractions.</p>
</blockquote>
<p>This is another place where governance matters. It should help teams say no when the system is about to become too generic to stay useful.</p>
<h3>Decision Quality Matters More Than Decision Volume</h3>
<p>One of the real benefits of ownership and governance is that they reduce unnecessary decision load. Teams should spend their energy on product problems, not on repeatedly reinventing solved UI and architecture choices. A healthier frontend system removes avoidable debate from everyday feature work and makes better decisions easier to repeat.</p>
<h3>What I Have Come to Trust</h3>
<p>Across teams and products, a few ownership and governance principles have held up for me:</p>
<ul>
<li>Architecture scales through coordination, not only code structure</li>
<li>Shared layers need clear stewards, even when contribution is broad</li>
<li>Governance should improve consistency without turning into bureaucracy</li>
<li>Contribution models matter because they shape how reuse actually evolves</li>
<li>Team-size changes should influence how explicit standards become</li>
<li>UI/UX leadership is about shaping better defaults, not just visuals</li>
<li>Smaller shared systems often scale better than larger, more generic ones</li>
<li>Quality standards are easier to sustain when tools reinforce them</li>
<li>The best governance reduces repeated debate rather than increasing it</li>
<li>Unclear ownership scales worse than imperfect architecture</li>
</ul>
<h3>Final Thoughts</h3>
<p>As frontend teams grow, code structure remains important, but it is no longer enough on its own.</p>
<p>The system also needs a people model:</p>
<ul>
<li>Who owns what</li>
<li>How decisions are made</li>
<li>When standards are enforced</li>
<li>How shared layers evolve</li>
<li>How teams contribute without creating drift</li>
<li>How the architecture stays coherent as the organization becomes more complex</li>
</ul>
<p>That is what governance and ownership really mean in practice.</p>
<p>The goal is not to create process for its own sake.</p>
<blockquote>
<p>The goal is to create a frontend system where quality, consistency, and decision-making can scale without slowing teams down.</p>
</blockquote>
<p><strong>A scalable architecture is not only one that is well-designed. It is one that remains governable.</strong></p>
]]></content:encoded>
      <pubDate>Wed, 25 Mar 2026 00:00:00 GMT</pubDate>
      <category>Building Scalable UI Architectures</category>
    </item>

    <item>
      <title>Building Scalable UI Architectures — Part 6: Testing, Storybook, and Release Confidence at Scale</title>
      <link>https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-6-testing-and-release</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-6-testing-and-release</guid>
      <description>As the codebase, shared components and contributors multiply, local judgment and manual testing stop being enough. Testing becomes part of the architecture.</description>
      <content:encoded><![CDATA[<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-6-testing-and-release/01.webp" alt=""></p>
<p>In the earlier parts of this series, I focused on architecture boundaries, modularity, observability, design systems, and performance. But there is another question that every growing frontend team eventually faces:</p>
<blockquote>
<p>How do we keep moving quickly without losing confidence in what we ship?</p>
</blockquote>
<p>That question becomes more important as the <strong>codebase grows</strong>, the <strong>number of shared components increases</strong>, <strong>product surfaces multiply</strong>, and <strong>more engineers contribute across the system</strong>. A small team can often rely on local judgment, manual testing, and familiarity with the product. A growing team cannot.</p>
<p><strong>This is where testing becomes more than a technical practice. It becomes part of the architecture.</strong></p>
<p>I do not think scalable frontend teams need the largest possible test suite. I think they need confidence systems that match how the product is built: shared UI should be <strong>testable in isolation</strong>, domain workflows should be validated where <strong>behavior matters most</strong>, and release processes should make <strong>regression risk visible</strong> before and after code lands.</p>
<p>In this post, I want to walk through how I think about testing and release confidence in scalable frontend architectures, where <a href="https://storybook.js.org/">Storybook</a> fits into that system, and what has worked well for me in real product teams.</p>
<h3>Testing Should Follow Architecture</h3>
<p>One of the biggest reasons frontend testing becomes noisy is that it does not reflect the actual architecture of the product.</p>
<p><strong>If a codebase has layered boundaries, then the testing strategy should respect those boundaries too.</strong></p>
<p>For example:</p>
<ul>
<li>Shared UI primitives need focused behavioral and accessibility coverage</li>
<li>Domain components need workflow-oriented integration checks</li>
<li>API and data layers need typed contracts and predictable mocks</li>
<li>Release confidence needs visual, interaction, and observability support</li>
</ul>
<p>When tests do not map to those layers, teams often end up with a mix of brittle shallow tests, duplicated assertions, and large end-to-end flows that are expensive to maintain.</p>
<p>A better model is to treat each layer according to its role.</p>
<ul>
<li>Shared UI should be trusted because it behaves consistently across states.</li>
<li>Domain code should be trusted because real workflows hold together.</li>
<li>Data boundaries should be trusted because types and contracts remain stable.</li>
<li>Releases should be trusted because both pre-merge and post-merge signals make regressions easier to catch.</li>
</ul>
<p>That is what I mean by testing as architecture, not just tooling.</p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-6-testing-and-release/02.webp" alt="A scalable testing strategy works best when it follows the architecture of the product"></p>
<p><em>A scalable testing strategy works best when it follows the architecture of the product</em></p>
<h3>Shared Components Need Stronger Isolation</h3>
<p>By the time a product has a meaningful SDK or design system, shared components become leverage points. A small break in a shared component can affect dozens of screens.</p>
<p>That is why I tend to test shared UI more carefully than local feature code in a few specific ways:</p>
<ul>
<li>Behavior across common states</li>
<li>Accessibility basics</li>
<li>Interaction patterns for inputs, menus, dialogs, tabs, and tooltips</li>
<li>Visual confidence for variants and edge cases</li>
<li>Documentation that makes intended usage obvious</li>
</ul>
<p>In a <a href="https://react.dev/">React</a> and <a href="https://vitest.dev/">Vitest</a> setup, this can stay straightforward:</p>
<pre><code>import { render, screen } from &#39;@testing-library/react&#39;;
import userEvent from &#39;@testing-library/user-event&#39;;
import { Button } from &#39;./Button&#39;;

test(&#39;calls onClick when pressed&#39;, async () =&gt; {
  const user = userEvent.setup();
  const onClick = vi.fn();

  render(&lt;Button onClick={onClick}&gt;Save&lt;/Button&gt;);
  await user.click(screen.getByRole(&#39;button&#39;, { name: &#39;Save&#39; }));

  expect(onClick).toHaveBeenCalledTimes(1);
});

test(&#39;disables interaction while loading&#39;, () =&gt; {
  render(&lt;Button isLoading&gt;Save&lt;/Button&gt;);
  expect(screen.getByRole(&#39;button&#39;, { name: &#39;Save&#39; })).toBeDisabled();
});
</code></pre>
<blockquote>
<p>The goal here is not to assert implementation details. It is to prove the contract of the component.</p>
</blockquote>
<p>A good shared component test answers:</p>
<ul>
<li>Can it be used safely?</li>
<li>Does it behave predictably?</li>
<li>Do important states remain intact over time?</li>
</ul>
<p>That kind of confidence scales.</p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-6-testing-and-release/03.webp" alt="Shared components become more trustworthy when their behavior, states, accessibility, and interactions are validated in isolation"></p>
<p><em>Shared components become more trustworthy when their behavior, states, accessibility, and interactions are validated in isolation</em></p>
<h3>Integration Tests Matter More Than Perfect Unit Coverage</h3>
<p>I have generally found frontend teams get better returns from solid integration tests than from chasing isolated unit coverage everywhere.</p>
<p>That is especially true for product workflows that involve:</p>
<ul>
<li>Filters</li>
<li>Routing</li>
<li>Query state</li>
<li>Forms</li>
<li>Async Data transitions</li>
<li>Layered Panels or Modals</li>
<li>Permission or Feature-flag conditions</li>
</ul>
<p>These are the places where architecture and user behavior actually meet.</p>
<p>A lightweight integration example might look like this:</p>
<pre><code>test(&#39;opens issue details when a row is selected&#39;, async () =&gt; {
  const user = userEvent.setup();

  render(&lt;IssueTablePage /&gt;);

  await user.click(screen.getByRole(&#39;row&#39;, { name: /payment-service latency/i }));

  expect(screen.getByRole(&#39;heading&#39;, { name: /issue details/i })).toBeInTheDocument();
  expect(screen.getByText(/payment-service/i)).toBeInTheDocument();
});
</code></pre>
<p>This kind of test gives more useful confidence than proving that every internal function was called in the exact expected order.</p>
<blockquote>
<p>Frontend systems are valuable when flows hold together. Integration tests are often the most efficient way to verify that.</p>
</blockquote>
<h3>Storybook Should Be an Operational Home, Not Just a Gallery</h3>
<p>For teams investing in shared UI, <a href="https://storybook.js.org/">Storybook</a> becomes very useful when it is treated as part of the operating model rather than just a visual sandbox.</p>
<p>I do not think of Storybook as “the place where buttons live.” I think of it as a working environment for:</p>
<ul>
<li>Documenting component intent</li>
<li>Reviewing variants and edge cases</li>
<li>Validating interaction states</li>
<li>Supporting accessibility review</li>
<li>Enabling visual regression checks</li>
<li>Making shared component quality visible to the team</li>
</ul>
<p>That matters because <strong>scalable design systems need somewhere concrete to live</strong>. Shared UI should not only exist inside production screens and test files. It should have a place where it can be inspected, exercised, and trusted in isolation.</p>
<p>A simple story might look like this:</p>
<pre><code>import type { Meta, StoryObj } from &#39;@storybook/react&#39;;
import { Tag } from &#39;./Tag&#39;;

const meta: Meta&lt;typeof Tag&gt; = {
  title: &#39;SDK/Tag&#39;,
  component: Tag,
};

export default meta;

type Story = StoryObj&lt;typeof Tag&gt;;

export const Variants: Story = {
  render: () =&gt; (
    &lt;div style={{ display: &#39;flex&#39;, gap: 12 }}&gt;
      &lt;Tag tone=&quot;neutral&quot;&gt;Neutral&lt;/Tag&gt;
      &lt;Tag tone=&quot;info&quot;&gt;Info&lt;/Tag&gt;
      &lt;Tag tone=&quot;success&quot;&gt;Success&lt;/Tag&gt;
      &lt;Tag tone=&quot;warning&quot;&gt;Warning&lt;/Tag&gt;
      &lt;Tag tone=&quot;danger&quot;&gt;Danger&lt;/Tag&gt;
    &lt;/div&gt;
  ),
};
</code></pre>
<p>This looks simple, but it creates leverage:</p>
<ul>
<li>Designers can review intent quickly</li>
<li>Engineers can confirm expected states</li>
<li>Visual changes become more visible</li>
<li>Stories become reusable inputs for automated checks</li>
</ul>
<blockquote>
<p>That is why <a href="https://storybook.js.org/">Storybook</a> belongs in the architecture conversation, not just the tooling list.</p>
</blockquote>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-6-testing-and-release/04.webp" alt="Storybook becomes more valuable when it serves as a working environment for reviewing, testing, and documenting shared UI"></p>
<p><em>Storybook becomes more valuable when it serves as a working environment for reviewing, testing, and documenting shared UI</em></p>
<h3>Visual Confidence Matters More as Teams Grow</h3>
<p>As product surfaces expand, visual drift becomes one of the most common classes of regression:</p>
<ul>
<li>Spacing changes unintentionally</li>
<li>States stop matching the design system</li>
<li>Layout breaks in dense screens</li>
<li>Dark mode diverges from light mode</li>
<li>A shared component change cascades into unrelated areas</li>
</ul>
<p>This is where visual testing becomes valuable.</p>
<p>In your stack, <a href="https://www.chromatic.com/">Chromatic</a> is an especially practical fit because it builds naturally on Storybook:</p>
<pre><code>{
  &quot;scripts&quot;: {
    &quot;build:storybook&quot;: &quot;storybook build&quot;,
    &quot;publish:storybook-chromatic&quot;: &quot;npx chromatic --project-token=... --build-script-name=build:storybook&quot;
  }
}
</code></pre>
<p>I like this kind of workflow because it pushes visual confidence closer to where shared UI actually lives. Instead of discovering visual regressions only after deployment or manual review, teams can catch them while reviewing the shared layer itself.</p>
<blockquote>
<p>Visual testing does not replace product validation, but it significantly improves confidence for shared components and layout-heavy surfaces.</p>
</blockquote>
<h3>Accessibility Should Be Part of the Confidence System</h3>
<p>Accessibility should not live only in design reviews or cleanup passes. It should be part of the way teams validate shared UI continuously.</p>
<p>That does not mean every accessibility issue can be caught automatically. It cannot. But basic automated checks still help raise the quality floor, especially for shared components.</p>
<p>In your stack, that can fit naturally through Storybook addons and targeted testing support:</p>
<ul>
<li>Storybook accessibility review</li>
<li>Testing Library checks on semantic roles and labels</li>
<li>Targeted browser automation where needed</li>
<li>Consistent use of accessible primitives like Radix UI for key patterns</li>
</ul>
<p>This is one reason I like design-system testing in isolation. If accessible behavior is built into shared primitives, every consuming feature benefits.</p>
<blockquote>
<p>Confidence scales best when baseline quality scales too.</p>
</blockquote>
<h3>Release Confidence is Bigger Than Test Files</h3>
<p>One of the reasons I prefer the phrase release confidence over just testing is that safe delivery depends on more than assertions.</p>
<p>A healthy frontend release model usually combines multiple layers:</p>
<ul>
<li>Linting and type safety</li>
<li>Unit and integration testing</li>
<li>Storybook documentation and interaction review</li>
<li>Visual regression checks</li>
<li>Feature flags</li>
<li>Post-release observability</li>
<li>Clear rollback or mitigation paths</li>
</ul>
<p>Your package setup already reflects part of this broader model well:</p>
<ul>
<li>eslint, stylelint, and type-check protect code quality</li>
<li>vitest supports component and integration validation</li>
<li>test-storybook supports story-level checks</li>
<li>chromatic supports visual review</li>
<li>@configcat/sdk supports feature flagging</li>
<li>posthog-js, and related tools support post-release visibility</li>
</ul>
<p>That kind of stack is powerful because confidence becomes distributed across the delivery lifecycle rather than concentrated in one type of test.</p>
<blockquote>
<p>A frontend team should not need to rely on a single gate. It should rely on a system of reinforcing signals.</p>
</blockquote>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-6-testing-and-release/05.webp" alt="Release confidence scales best when multiple signals reinforce one another across the delivery lifecycle"></p>
<p><em>Release confidence scales best when multiple signals reinforce one another across the delivery lifecycle</em></p>
<h3>Contract Confidence Matters for Data Boundaries Too</h3>
<p>In modular frontends, a lot of fragility appears at the boundary between UI and data:</p>
<ul>
<li>Assumptions about field availability drift</li>
<li>Query shapes change</li>
<li>Components depend on more than they need</li>
<li>Mocks stop reflecting actual contracts</li>
<li>Frontend code quietly becomes coupled to unstable backend details</li>
</ul>
<p>This is where contract confidence becomes important.</p>
<p>Whether a team is using GraphQL, REST, tRPC, OpenAPI-generated clients, or another data-access approach, the core problem is the same: <strong>the frontend needs a reliable way to understand what data exists, what shape it has, and when that shape changes</strong>.</p>
<p>Strong contracts help reduce a surprising amount of frontend risk. They make it easier to:</p>
<ul>
<li>Catch breaking changes earlier</li>
<li>Keep mocks and test data aligned with reality</li>
<li>Prevent components from depending on accidental fields</li>
<li>Make data boundaries clearer across teams</li>
<li>Treat backend changes as visible architectural events rather than hidden regressions</li>
</ul>
<p>GraphQL is one good example here, especially when paired with code generation and typed operations. In that kind of setup, schema changes become visible much earlier in development, and the frontend can treat generated types as real contracts rather than optional helpers.</p>
<p>A script setup like this reflects that idea well:</p>
<pre><code>{
  &quot;scripts&quot;: {
    &quot;build:gql&quot;: &quot;graphql-codegen --config graphql-codegen.ts&quot;
  }
}
</code></pre>
<p>But the broader point is not GraphQL itself. The real value is having a workflow where contract changes become hard to ignore. That could come from generated GraphQL types, OpenAPI clients, shared schemas, typed REST layers, or other forms of contract validation.</p>
<blockquote>
<p>Release confidence improves when data boundaries are explicit, visible, and difficult to bypass.</p>
</blockquote>
<h3>Confidence Systems Need to Be Maintainable</h3>
<p>One trap growing teams fall into is building too many tests without keeping the system maintainable.</p>
<p>A confidence system stops helping when:</p>
<ul>
<li>Tests are too brittle to trust</li>
<li>Stories are stale</li>
<li>Visual baselines are ignored</li>
<li>CI becomes so noisy that people dismiss failures</li>
<li>The test pyramid becomes a collection of unowned scripts</li>
</ul>
<p>This is why I prefer a smaller number of meaningful layers used consistently rather than a large number of disconnected tools.</p>
<p>The most valuable confidence systems tend to share a few traits:</p>
<ul>
<li>They map clearly to architecture boundaries</li>
<li>They are fast enough to run often</li>
<li>They catch failures that matter</li>
<li>They are close to how teams actually build and review work</li>
<li>They remain understandable as contributors increase</li>
</ul>
<blockquote>
<p>The goal is not maximum ceremony. It is dependable change.</p>
</blockquote>
<h3>What I Have Come to Trust</h3>
<p>Across products and teams, a few testing and release principles have held up for me:</p>
<ul>
<li>Testing works best when it follows architectural layers</li>
<li>Shared components deserve strong behavioral and visual confidence</li>
<li>Integration tests usually provide more product value than chasing isolated unit coverage everywhere</li>
<li>Storybook is most useful as an operational home for shared UI quality</li>
<li>Visual regression review becomes more valuable as the design system grows</li>
<li>Accessibility should be part of the confidence system, not a separate cleanup effort</li>
<li>Release confidence depends on multiple reinforcing signals, not one tool</li>
<li>Typed data contracts reduce a surprising amount of frontend fragility</li>
<li>Confidence systems should stay maintainable enough that teams continue to trust them</li>
<li>The best testing strategy is the one that makes safe iteration easier, not heavier</li>
</ul>
<h3>Final Thoughts</h3>
<p>As products grow, the question is no longer whether bugs will exist. They will. The real question is whether the team has enough confidence to keep shipping without slowing to a crawl.</p>
<p>That confidence does not come from one perfect test suite. It comes from <strong>architecture-aware validation</strong>: shared UI tested in isolation, workflows tested where behavior matters most, visual changes made visible, contracts kept honest, and releases supported by feature flags and observability.</p>
<p>That is what scalable frontend quality looks like in practice.</p>
<p>The goal is not to create the most complicated testing setup.</p>
<p><strong>The goal is to create a frontend system that teams can change with trust.</strong></p>
]]></content:encoded>
      <pubDate>Wed, 18 Mar 2026 00:00:00 GMT</pubDate>
      <category>Building Scalable UI Architectures</category>
    </item>

    <item>
      <title>Building Scalable UI Architectures — Part 4: Design Systems That Scale Inside Product Teams</title>
      <link>https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-4-design-systems</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-4-design-systems</guid>
      <description>Design systems scale best when tokens, reusable primitives and product boundaries work together as one architectural system, inside the product team.</description>
      <content:encoded><![CDATA[<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-4-design-systems/01.webp" alt="Design systems scale best when tokens, reusable primitives, and product boundaries work together as one architectural system"></p>
<p><em>Design systems scale best when tokens, reusable primitives, and product boundaries work together as one architectural system</em></p>
<p>In <a href="https://medium.com/@akhandsingh/building-scalable-ui-architectures-lessons-from-leading-frontend-at-multiple-startups-0a3a182b2363">Part 1</a>, I introduced the <strong>layered frontend architecture</strong> that has helped me scale products across multiple startups. In <a href="https://medium.com/@akhandsingh/building-scalable-ui-architectures-part-2-modular-patterns-in-a-monorepo-f449ef77a787">Part 2</a>, I showed how that architecture becomes more enforceable and maintainable inside a <strong>modular monorepo</strong>. In <a href="https://medium.com/@akhandsingh/building-scalable-ui-architectures-part-3-rum-observability-user-insights-in-a-modular-f30b94ae459c">Part 3</a>, I extended the same thinking to <strong>observability and user insights</strong>.</p>
<p>Now, I want to cover another layer that becomes critical as product teams grow: <strong>the design system</strong>.</p>
<p>A scalable frontend architecture is not only about where code lives. It is also about how teams create consistent experiences without slowing each other down. At some point, every growing product reaches the same challenge:</p>
<blockquote>
<p>How do we maintain UI consistency, accessibility, and reuse across multiple features and teams without turning the shared layer into a bottleneck?</p>
</blockquote>
<p>That is where a good design system earns its place.</p>
<p>Over time, I have learned that the strongest product teams do not treat the design system as a side project or a folder full of buttons. They treat it as a system of decisions: shared tokens, shared primitives, accessibility rules, composable APIs, and clear governance around what belongs in the shared layer versus what should stay local.</p>
<p>In this post, I’ll walk through how I think about design systems inside scalable product teams, how they connect to the SDK layer, and the practical rules that have helped keep shared UI clean and useful instead of bloated and fragile.</p>
<h3>Revisiting the Architecture</h3>
<p>In the earlier parts of this series, I described a layered structure that keeps responsibilities clean:</p>
<ul>
<li><strong>SDK Layer</strong>: internal UI kit, presentational and reusable</li>
<li><strong>Domain Layer</strong>: feature-specific UI and behavior</li>
<li><strong>API/Logic Layer</strong>: typed data access, state handling, async interactions</li>
</ul>
<p>That same structure still applies here. The design system does not replace the SDK layer. It strengthens it.</p>
<p>You can think of it like this:</p>
<pre><code>packages/
  sdk/            → UI primitives and composable shared components
  styles/         → tokens, themes, global styles
  types/          → shared component types and contracts
  utils/          → UI-safe helpers
  api/            → typed data access
  hooks/          → reusable logic
  context/        → theme, auth, feature flags
  test/           → shared test helpers
apps/
  web-app/
    domain/
      map/
      onboarding/
      settings/
    routes/
  admin-panel/
    domain/
      users/
      reports/
</code></pre>
<p>The design system lives primarily across sdk/ and styles/, but its influence goes further. It shapes how components are named, how accessibility is built in, how theming works, and how teams decide whether a pattern should become shared.</p>
<p>That distinction matters a lot.</p>
<h3>SDK vs Design System</h3>
<p>One of the most common mistakes I see is <strong><em>treating the SDK and the design system as the same thing</em>.</strong></p>
<p><strong>They are related, but they are not identical</strong>.</p>
<p>The design system is the shared language:</p>
<ul>
<li>Colors</li>
<li>Spacing</li>
<li>Typography</li>
<li>Motion</li>
<li>Elevation</li>
<li>Interaction Patterns</li>
<li>Accessibility Expectations</li>
<li>Component Usage Guidelines</li>
</ul>
<p>The SDK is the implementation layer:</p>
<ul>
<li>Button</li>
<li>Input</li>
<li>Modal</li>
<li>Tabs</li>
<li>Tag</li>
<li>Tooltip</li>
<li>Card</li>
<li>Stack</li>
<li>Grid</li>
</ul>
<p>In other words, the design system <strong>defines</strong> the rules. The SDK <strong>expresses</strong> those rules in code.</p>
<p>That separation helps in two important ways.</p>
<p>First, it keeps the shared layer from becoming a random collection of product-specific components. Second, it gives teams a stable foundation they can compose in different ways across domains.</p>
<p>For example:</p>
<pre><code>// packages/sdk/button/Button.tsx
export interface ButtonProps extends React.ButtonHTMLAttributes&lt;HTMLButtonElement&gt; {
  variant?: &#39;primary&#39; | &#39;secondary&#39; | &#39;ghost&#39; | &#39;danger&#39;;
  size?: &#39;sm&#39; | &#39;md&#39; | &#39;lg&#39;;
  isLoading?: boolean;
  leadingIcon?: React.ReactNode;
}

export function Button({
  variant = &#39;primary&#39;,
  size = &#39;md&#39;,
  isLoading = false,
  leadingIcon,
  children,
  ...props
}: ButtonProps) {
  return (
    &lt;button
      className={cx(&#39;my-button&#39;, `my-button--${variant}`, `my-button--${size}`)}
      disabled={isLoading || props.disabled}
      {...props}
    &gt;
      {leadingIcon}
      &lt;span&gt;{children}&lt;/span&gt;
    &lt;/button&gt;
  );
}
</code></pre>
<p>This belongs in the SDK because <strong>it is presentational, composable, and broadly reusable</strong>.</p>
<p>Now compare that to something like this:</p>
<pre><code>// apps/web-app/domain/onboarding/ConnectCloudButton.tsx
export function ConnectCloudButton() {
  const { connect, isLoading } = useCloudIntegration();
  const track = useTrackEvent();

  return (
    &lt;Button
      variant=&quot;primary&quot;
      isLoading={isLoading}
      onClick={() =&gt; {
        track(&#39;onboarding_connect_cloud_clicked&#39;);
        connect();
      }}
    &gt;
      Connect Cloud Account
    &lt;/Button&gt;
  );
}
</code></pre>
<p>This should stay in the domain layer.</p>
<p>It uses the SDK, but it is not part of the design system. <strong>It contains domain-specific behavior, analytics, and product meaning</strong>. If you move this into the shared layer, the SDK starts absorbing business logic, and the boundary becomes blurry very quickly.</p>
<p>That is usually the beginning of shared-layer bloat.</p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-4-design-systems/02.webp" alt="Design System vs SDK Components"></p>
<p><em>Design System vs SDK Components</em></p>
<h3>Why Design Systems Become Necessary</h3>
<p>In early-stage products, teams can move quickly by building most things locally. That speed is useful. In fact, it is often the right tradeoff.</p>
<p>But as the product grows, patterns start repeating:</p>
<ul>
<li>Multiple modals with slightly different close behavior</li>
<li>Multiple tables with different empty states</li>
<li>Five tag styles that all mean “warning”</li>
<li>Inconsistent keyboard behavior across menus and dialogs</li>
<li>Duplicated spacing and typography decisions</li>
<li>Dark mode handled differently in different features</li>
<li>Accessibility fixed one screen at a time instead of one component at a time</li>
</ul>
<p>At that point, the issue is no longer just code duplication. It becomes a <strong>product consistency problem</strong> and an <strong>operational scale problem</strong>.</p>
<p>Without a design system, every team keeps solving the same UI problems over and over again. That slows delivery, increases drift, and makes the product feel fragmented even when the underlying architecture is technically sound.</p>
<blockquote>
<p>A good design system reduces that cost by standardizing the decisions that should not be re-litigated every sprint.</p>
</blockquote>
<h3>Tokens First, Components Second</h3>
<p>If I had to choose where a scalable design system really starts, I would not say components. I would say <strong>tokens</strong>.</p>
<p>Tokens are what allow consistency to scale across components, screens, and themes. They give your UI a <strong>shared vocabulary</strong> that can evolve without forcing you to rewrite everything.</p>
<p>A simple token structure might look like this:</p>
<pre><code>// packages/styles/tokens.ts
export const tokens = {
  color: {
    bg: {
      canvas: &#39;var(--color-bg-canvas)&#39;,
      surface: &#39;var(--color-bg-surface)&#39;,
      elevated: &#39;var(--color-bg-elevated)&#39;,
    },
    text: {
      primary: &#39;var(--color-text-primary)&#39;,
      secondary: &#39;var(--color-text-secondary)&#39;,
      muted: &#39;var(--color-text-muted)&#39;,
    },
    border: {
      subtle: &#39;var(--color-border-subtle)&#39;,
      strong: &#39;var(--color-border-strong)&#39;,
    },
    intent: {
      info: &#39;var(--color-intent-info)&#39;,
      success: &#39;var(--color-intent-success)&#39;,
      warning: &#39;var(--color-intent-warning)&#39;,
      danger: &#39;var(--color-intent-danger)&#39;,
    },
  },
  spacing: {
    xs: &#39;4px&#39;,
    sm: &#39;8px&#39;,
    md: &#39;12px&#39;,
    lg: &#39;16px&#39;,
    xl: &#39;24px&#39;,
  },
  radius: {
    sm: &#39;6px&#39;,
    md: &#39;10px&#39;,
    lg: &#39;14px&#39;,
  },
  shadow: {
    sm: &#39;var(--shadow-sm)&#39;,
    md: &#39;var(--shadow-md)&#39;,
  },
  typography: {
    bodySm: &#39;400 13px/20px Inter, sans-serif&#39;,
    bodyMd: &#39;400 14px/22px Inter, sans-serif&#39;,
    labelMd: &#39;600 14px/20px Inter, sans-serif&#39;,
    titleSm: &#39;600 16px/24px Inter, sans-serif&#39;,
  },
};
</code></pre>
<p>The important thing here is not just that tokens exist. It is that they are semantic.</p>
<ul>
<li>color.intent.warning scales better than hardcoding #f5a623.</li>
<li>spacing.lg scales better than every component choosing between 14px, 15px, and 16px.</li>
<li>text.secondary scales better than each feature inventing its own muted text color.</li>
</ul>
<p>Semantic tokens also make theming much easier.</p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-4-design-systems/03.webp" alt="Tokens First, Components Second"></p>
<p><em>Tokens First, Components Second</em></p>
<h3>Theming Without Chaos</h3>
<p>Theming is one of those areas where teams often underestimate future needs. At first, it seems like a simple light versus dark mode toggle. Later, you realize you also need:</p>
<ul>
<li>Product branding flexibility</li>
<li>Internal admin themes</li>
<li>Enterprise customization</li>
<li>Accessible contrast adjustments</li>
<li>Stateful styling consistency across all components</li>
</ul>
<p>That is why it helps to separate raw values from semantic meaning.</p>
<p>For example:</p>
<pre><code>/* packages/styles/themes/light.css */
:root[data-theme=&#39;light&#39;] {
  --color-bg-canvas: #ffffff;
  --color-bg-surface: #f8fafc;
  --color-bg-elevated: #ffffff;

  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;

  --color-border-subtle: #e2e8f0;
  --color-border-strong: #cbd5e1;

  --color-intent-info: #2563eb;
  --color-intent-success: #059669;
  --color-intent-warning: #d97706;
  --color-intent-danger: #dc2626;
}

/* packages/styles/themes/dark.css */
:root[data-theme=&#39;dark&#39;] {
  --color-bg-canvas: #020617;
  --color-bg-surface: #0f172a;
  --color-bg-elevated: #111827;

  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;

  --color-border-subtle: #1e293b;
  --color-border-strong: #334155;

  --color-intent-info: #60a5fa;
  --color-intent-success: #34d399;
  --color-intent-warning: #fbbf24;
  --color-intent-danger: #f87171;
}
</code></pre>
<p>With this model, components do not care whether the app is in light or dark mode. They only consume semantic tokens. That keeps the component API stable and the theme layer flexible.</p>
<p>The same approach also makes future <strong>rebranding</strong> or <strong>product line variation</strong> much easier.</p>
<h3>Accessibility Should Shape the API</h3>
<blockquote>
<p>A mature design system is not just visually consistent. It is accessible by default.</p>
</blockquote>
<p>This is one of the biggest advantages of investing in the shared layer. If accessibility is baked into shared primitives, every feature gets the benefit automatically.</p>
<p>For example, your modal primitive should already handle:</p>
<ul>
<li>Focus trapping</li>
<li>Escape key behavior</li>
<li>Aria roles</li>
<li>Accessible labelling</li>
<li>Keyboard navigation</li>
<li>Scroll locking</li>
<li>Restore focus on close</li>
</ul>
<p>That way, product teams are not rebuilding modal behavior from scratch every time.</p>
<p>A simplified example:</p>
<pre><code>// packages/sdk/modal/Modal.tsx
interface ModalProps {
  title: string;
  description?: string;
  open: boolean;
  onClose: () =&gt; void;
  children: React.ReactNode;
}

export function Modal({ title, description, open, onClose, children }: ModalProps) {
  if (!open) return null;

  return (
    &lt;div role=&quot;presentation&quot; className=&quot;my-modal-backdrop&quot; onClick={onClose}&gt;
      &lt;div
        role=&quot;dialog&quot;
        aria-modal=&quot;true&quot;
        aria-labelledby=&quot;modal-title&quot;
        aria-describedby={description ? &#39;modal-description&#39; : undefined}
        className=&quot;my-modal&quot;
        onClick={(e) =&gt; e.stopPropagation()}
      &gt;
        &lt;header&gt;
          &lt;h2 id=&quot;modal-title&quot;&gt;{title}&lt;/h2&gt;
          {description ? &lt;p id=&quot;modal-description&quot;&gt;{description}&lt;/p&gt; : null}
        &lt;/header&gt;
        &lt;div&gt;{children}&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  );
}
</code></pre>
<p>In a real implementation, you would likely rely on well-tested primitives or libraries for the full accessibility behavior. But the key principle remains the same: <strong>accessibility belongs in the component contract, not in a cleanup pass later.</strong></p>
<p>I have found that this improves more than inclusion. It also improves component quality. APIs become clearer. Behavior becomes more predictable. Edge cases are handled once instead of repeatedly.</p>
<p>In practice, <strong>accessibility is one of the best forcing functions for better shared component design</strong>.</p>
<h3>Keeping Presentational Components Clean</h3>
<p>This has been one of the strongest recurring rules throughout my architecture work: shared UI should remain presentational.</p>
<p>The moment your SDK starts depending on domain assumptions, feature flags, route awareness, analytics events, or backend response shapes, it stops being a reliable foundation.</p>
<blockquote>
<p>A clean shared component should answer a UI question, not a product question.</p>
</blockquote>
<p>✅ <strong>Good shared component:</strong></p>
<pre><code>// packages/sdk/empty-state/EmptyState.tsx
interface EmptyStateProps {
  title: string;
  description?: string;
  illustration?: React.ReactNode;
  action?: React.ReactNode;
}

export function EmptyState({ title, description, illustration, action }: EmptyStateProps) {
  return (
    &lt;div className=&quot;my-empty-state&quot;&gt;
      {illustration}
      &lt;h3&gt;{title}&lt;/h3&gt;
      {description ? &lt;p&gt;{description}&lt;/p&gt; : null}
      {action}
    &lt;/div&gt;
  );
}
</code></pre>
<p>✅ <strong>Good domain composition:</strong></p>
<pre><code>// apps/web-app/domain/alerts/NoAlertsState.tsx
export function NoAlertsState() {
  return (
    &lt;EmptyState
      title=&quot;No active alerts&quot;
      description=&quot;Everything looks stable right now. When new alerts appear, they’ll show up here.&quot;
      action={&lt;Button variant=&quot;secondary&quot;&gt;View alert history&lt;/Button&gt;}
    /&gt;
  );
}
</code></pre>
<p>❌ <strong>Problematic shared component:</strong></p>
<pre><code>// packages/sdk/alerts/AlertEmptyState.tsx
export function AlertEmptyState() {
  const alerts = useAlerts();
  const navigate = useNavigate();
  const track = useTrackEvent();

  // domain logic, app navigation, analytics inside sdk
}
</code></pre>
<p>That last version might feel convenient in the moment, but it is the sort of convenience that becomes expensive later. <strong>Shared layers should not depend on specific product workflows.</strong></p>
<p>A useful test is this:</p>
<ul>
<li>If I moved this component into another product tomorrow, would its API still make sense?</li>
</ul>
<p><strong>If the answer is no, it probably belongs in the domain layer.</strong></p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-4-design-systems/04.webp" alt="Keeping Presentational Components Clean"></p>
<p><em>Keeping Presentational Components Clean</em></p>
<h3>When to Extract a Pattern</h3>
<p>This is where design systems usually succeed or fail.</p>
<p>Some teams extract too early and end up with generic components nobody likes using. Other teams extract too late and accumulate duplication everywhere.</p>
<p>The right question is not “Can this be shared?”</p>
<p>The better question is “<strong>Has this pattern become stable enough and common enough to deserve standardization?</strong>”</p>
<p>Here are the signals I usually look for.</p>
<h4>Extract into the shared layer when:</h4>
<ul>
<li>The pattern appears in multiple domains or apps</li>
<li>The interaction model is stable</li>
<li>The API can stay relatively simple</li>
<li>Accessibility and consistency matter across all instances</li>
<li>Standardization will reduce repeated decisions</li>
</ul>
<p>For example:</p>
<ul>
<li>Buttons</li>
<li>Form fields</li>
<li>Layout primitives</li>
<li>Dialogs</li>
<li>Menus</li>
<li>Tabs</li>
<li>Badges/Tags</li>
<li>Tables or Table primitives</li>
<li>Empty states</li>
<li>Skeleton loaders</li>
<li>Toasts</li>
<li>Tooltips</li>
</ul>
<h4>Keep local when:</h4>
<ul>
<li>The pattern is specific to one workflow</li>
<li>Requirements are changing rapidly</li>
<li>The abstraction introduces awkward props</li>
<li>Naming becomes vague or overly generic</li>
<li>The component only looks reusable because two screens happen to resemble each other today</li>
</ul>
<p>For example, a highly specific onboarding stepper with domain-specific progress logic may look like a shared pattern at first. But if it carries product terminology, conditional branching, analytics, and route coupling, it likely belongs in the domain layer for now.</p>
<p>A practical example:</p>
<pre><code>// good candidate for sdk
&lt;Tabs items={items} selectedKey={selectedKey} onSelectionChange={setSelectedKey} /&gt;

// probably domain-specific
&lt;AlertInvestigationTabs
  alertId={alertId}
  impactCount={impactCount}
  onOpen={...}
/&gt;
</code></pre>
<ul>
<li>The first solves a general UI problem.</li>
<li>The second solves a product workflow problem.</li>
</ul>
<p><strong>Not every repeated thing deserves promotion into the design system.</strong></p>
<h3>Composition Beats Over-Configuration</h3>
<p>Another lesson I trust more every year: <strong>shared components scale better through composition than through endless prop growth</strong>.</p>
<p>It is very tempting to keep adding props to a shared component:</p>
<ul>
<li>showIcon</li>
<li>showSubtitle</li>
<li>showMetadata</li>
<li>alignActions</li>
<li>compact</li>
<li>dense</li>
<li>withDivider</li>
<li>emphasized</li>
<li>collapsible</li>
</ul>
<p>Eventually, the component becomes hard to understand and harder to maintain.</p>
<p><strong>A better pattern is to create smaller primitives that compose well.</strong></p>
<p>For example:</p>
<pre><code>&lt;Card&gt;
  &lt;CardHeader
    title=&quot;Deployment History&quot;
    subtitle=&quot;Recent service releases and rollout state&quot;
    action={&lt;Button variant=&quot;ghost&quot;&gt;View all&lt;/Button&gt;}
  /&gt;
  &lt;CardBody&gt;
    &lt;DeploymentTable /&gt;
  &lt;/CardBody&gt;
&lt;/Card&gt;
</code></pre>
<p>This usually scales better than one giant DashboardCard with twenty specialized props.</p>
<p><strong>Composition keeps the shared layer flexible without making it domain-aware.</strong></p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-4-design-systems/05.webp" alt="Composition Beats Over-Configuration"></p>
<p><em>Composition Beats Over-Configuration</em></p>
<h3>Governance Without Bureaucracy</h3>
<p>A design system does need governance. <strong>But good governance should improve velocity, not suffocate it</strong>.</p>
<blockquote>
<p>The goal is not to create a committee for every button change. The goal is to keep the shared layer healthy.</p>
</blockquote>
<p>A lightweight governance model can work really well:</p>
<h4>1. Clear ownership</h4>
<p>Some team or set of engineers/designers should own the shared layer. That does not mean they are the only contributors. It means they are responsible for quality, direction, and consistency.</p>
<h4>2. Contribution guidelines</h4>
<p>If a product team wants to add or modify a shared component, there should be a clear path:</p>
<ul>
<li>What problem it solves</li>
<li>Why it belongs in shared</li>
<li>Expected API</li>
<li>Accessibility considerations</li>
<li>Visual examples</li>
<li>Migration implications</li>
</ul>
<h4>3. Story-driven documentation</h4>
<p>Every shared component should have examples of:</p>
<ul>
<li>Default usage</li>
<li>Variants</li>
<li>Edge cases</li>
<li>Loading or disabled states</li>
<li>Accessibility behavior where relevant</li>
</ul>
<p>This helps both onboarding and regression prevention.</p>
<h4>4. Deprecation discipline</h4>
<p>A system becomes harder to use when old and new patterns coexist forever. If you introduce a better primitive, create a path to migrate the old one.</p>
<h4>5. Review shared APIs carefully</h4>
<p>A small decision in the SDK can affect dozens of screens. That is why I tend to review naming, prop shape, and composition patterns more carefully in the shared layer than in local feature code.</p>
<blockquote>
<p>Good governance is really about protecting leverage.</p>
</blockquote>
<h3>Testing the Design System</h3>
<p>The shared layer deserves stronger testing than feature code in some areas, because breakage there multiplies across the app.</p>
<p>A practical testing stack usually includes:</p>
<ul>
<li>Unit tests for behavior and edge cases</li>
<li>Accessibility checks where possible</li>
<li>Visual stories for variants and states</li>
<li>Interaction tests for components like Dropdowns, Dialogs, Tabs, and Tooltips</li>
</ul>
<p>For example:</p>
<pre><code>// packages/sdk/button/Button.test.tsx
import { render, screen } from &#39;@testing-library/react&#39;;
import userEvent from &#39;@testing-library/user-event&#39;;
import { Button } from &#39;./Button&#39;;

test(&#39;calls onClick when pressed&#39;, async () =&gt; {
  const user = userEvent.setup();
  const onClick = vi.fn();

  render(&lt;Button onClick={onClick}&gt;Save&lt;/Button&gt;);
  await user.click(screen.getByRole(&#39;button&#39;, { name: &#39;Save&#39; }));

  expect(onClick).toHaveBeenCalledTimes(1);
});

test(&#39;is disabled while loading&#39;, () =&gt; {
  render(&lt;Button isLoading&gt;Save&lt;/Button&gt;);
  expect(screen.getByRole(&#39;button&#39;, { name: &#39;Save&#39; })).toBeDisabled();
});
</code></pre>
<p>And visually, a story file helps keep the design system legible:</p>
<pre><code>// packages/sdk/button/Button.stories.tsx
export const Variants = () =&gt; (
  &lt;Stack gap=&quot;md&quot;&gt;
    &lt;Button variant=&quot;primary&quot;&gt;Primary&lt;/Button&gt;
    &lt;Button variant=&quot;secondary&quot;&gt;Secondary&lt;/Button&gt;
    &lt;Button variant=&quot;ghost&quot;&gt;Ghost&lt;/Button&gt;
    &lt;Button variant=&quot;danger&quot;&gt;Danger&lt;/Button&gt;
  &lt;/Stack&gt;
);
</code></pre>
<blockquote>
<p>That documentation becomes even more valuable as more teams consume the SDK.</p>
</blockquote>
<p>A mature design system also needs an operational home. For many teams, that ends up being <a href="https://storybook.js.org/"><strong>Storybook</strong></a>. Used well, it is not just a showcase of buttons and inputs. It becomes the place where shared UI is documented, reviewed, and increasingly tested before it lands in product workflows.</p>
<p><a href="https://storybook.js.org/"><strong>Storybook 10</strong></a> continues that direction with stronger testing workflows around stories, including Vitest-based component testing, interaction testing, visual testing integrations, and its broader addon ecosystem.</p>
<p>I would still keep this as a support layer rather than the center of the system, but it is a very practical way to make design-system quality visible and repeatable as teams grow. <strong>One caution, especially around Storybook 10 upgrades, is that it is now ESM-only and addon compatibility can require extra attention during migration.</strong></p>
<h3>Example: Designing a Scalable Tag System</h3>
<p>A good example of where design systems either help or hurt is <strong>tags</strong> and <strong>badges</strong>.</p>
<p>Teams often use them everywhere:</p>
<ul>
<li>status</li>
<li>severity</li>
<li>environment</li>
<li>ownership</li>
<li>category</li>
<li>health state</li>
</ul>
<p>Without shared rules, tags quickly become inconsistent and overloaded.</p>
<p>A better approach is to <strong>keep the primitive simple</strong> and <strong>map domain meaning in the product layer</strong>.</p>
<p><strong>Shared primitive:</strong></p>
<pre><code>// packages/sdk/tag/Tag.tsx
interface TagProps {
  children: React.ReactNode;
  tone?: &#39;neutral&#39; | &#39;info&#39; | &#39;success&#39; | &#39;warning&#39; | &#39;danger&#39;;
  variant?: &#39;soft&#39; | &#39;solid&#39; | &#39;outline&#39;;
  icon?: React.ReactNode;
}

export function Tag({
  children,
  tone = &#39;neutral&#39;,
  variant = &#39;soft&#39;,
  icon,
}: TagProps) {
  return (
    &lt;span className={cx(&#39;my-tag&#39;, `my-tag--${tone}`, `my-tag--${variant}`)}&gt;
      {icon}
      {children}
    &lt;/span&gt;
  );
}
</code></pre>
<p><strong>Domain mapping:</strong></p>
<pre><code>// apps/web-app/domain/alerts/AlertSeverityTag.tsx
export function AlertSeverityTag({ severity }: { severity: &#39;critical&#39; | &#39;warning&#39; | &#39;info&#39; }) {
  const tone = {
    critical: &#39;danger&#39;,
    warning: &#39;warning&#39;,
    info: &#39;info&#39;,
  }[severity];

  return &lt;Tag tone={tone}&gt;{severity}&lt;/Tag&gt;;
}
</code></pre>
<p>This gives you consistency in spacing, typography, states, and theming while allowing the product to control meaning.</p>
<p>That is usually the sweet spot.</p>
<h3>Principles I’ve Come to Rely On</h3>
<p>Across products and teams, a few design system principles have consistently held up for me:</p>
<ul>
<li>Start with tokens, not just components</li>
<li>Keep shared components presentational</li>
<li>Prefer composition over highly configurable mega-components</li>
<li>Accessibility should shape APIs early</li>
<li>Shared layers should solve UI problems, not domain workflows</li>
<li>Extract patterns only after they prove stable and reusable</li>
<li>Use semantic tokens so theming can evolve safely</li>
<li>Document examples, not just props</li>
<li>Governance should guide quality, not block teams</li>
<li>A smaller, cleaner design system is usually more scalable than a larger, noisier one</li>
</ul>
<h3>Final Thoughts</h3>
<p>A design system is not valuable because it centralizes components. It is valuable because it <strong>centralizes decisions</strong> that should be consistent across the product.</p>
<p>When done well, it gives product teams speed without sacrificing quality. It keeps shared UI predictable, accessible, and easier to evolve. It reduces repeated work, lowers visual drift, and makes the frontend architecture more resilient as the team grows.</p>
<p>Just as importantly, it helps preserve the boundary that matters so much in scalable frontend systems: the shared layer provides composable UI primitives, while the domain layer owns product meaning and behavior.</p>
<blockquote>
<p>That separation is what keeps the system healthy.</p>
</blockquote>
<p>You do not need to build a massive design system on day one. In fact, you probably should not. But once your team starts repeating the same patterns, solving the same accessibility problems, and debating the same interaction details over and over, it is time to invest.</p>
<p>The goal is not to create more shared components.</p>
<p><strong>The goal is to create better boundaries, better defaults, and better ways for teams to build consistently together.</strong></p>
]]></content:encoded>
      <pubDate>Fri, 13 Mar 2026 00:00:00 GMT</pubDate>
      <category>Building Scalable UI Architectures</category>
    </item>

    <item>
      <title>Building Scalable UI Architectures — Part 5: Performance as a Product and Architecture Concern</title>
      <link>https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-5-performance</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-5-performance</guid>
      <description>Frontend performance is often treated as a late-stage optimization: the bundle grows, interactions slow down, then comes cleanup. That framing is too narrow.</description>
      <content:encoded><![CDATA[<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-5-performance/01.webp" alt=""></p>
<p>In the earlier parts of this series, I focused on boundaries, modularity, observability, and design systems. Those are all essential. But there is another area that every product team eventually runs into, whether they plan for it or not: <strong>performance</strong>.</p>
<p>Frontend performance is often treated as a late-stage optimization problem. Teams ship features, the UI grows, the bundle grows, interactions slow down, and then performance becomes a cleanup task.</p>
<p>In my experience, that framing is too narrow.</p>
<blockquote>
<p>Performance is not just an optimization topic. It is an architecture topic.</p>
</blockquote>
<p>The way we <strong>split code</strong>, <strong>structure domains</strong>, <strong>load data</strong>, <strong>compose components</strong>, <strong>manage state</strong>, and <strong>render heavy views</strong> all shape how the product feels to users long before anyone opens a profiler. A product can have a clean design system, strong modularity, and solid observability, but if interactions feel sluggish or screens take too long to stabilize, users still experience the system as slow.</p>
<p>That is why I <strong>think of performance as both a product concern and an architecture concern</strong>. It affects usability, trust, and focus. And the decisions that shape it usually happen much earlier than teams expect.</p>
<p>In this post, I want to walk through how I think about performance inside scalable frontend architectures, how architecture choices influence it, and the practical patterns that have helped me keep performance from becoming a reactive firefight.</p>
<h3>Performance Begins with Boundaries</h3>
<p>One of the clearest lessons I have learned is that performance problems rarely begin with a single large component. They usually begin with weak boundaries.</p>
<p>When a codebase lacks clear architectural boundaries, performance issues spread more easily:</p>
<ul>
<li>Features pull in more dependencies than they need</li>
<li>Shared modules become heavier over time</li>
<li>Route bundles grow unpredictably</li>
<li>Domain code leaks into places it should not</li>
<li>Rendering work expands because too many components are connected to the same state changes</li>
</ul>
<blockquote>
<p>A layered architecture helps performance because it limits blast radius.</p>
</blockquote>
<p>If <strong>shared UI remains presentational</strong>, if <strong>domain code stays close to product workflows</strong>, and if <strong>data access stays typed and intentional</strong>, then performance tuning becomes more local and more understandable. You can reason about where the <strong>cost</strong> is coming from.</p>
<p>For example, in a modular frontend, it becomes easier to ask:</p>
<ul>
<li>Is this route loading too much upfront?</li>
<li>Is this graph view pulling a heavy visualization dependency too early?</li>
<li>Is this domain package causing too many rerenders?</li>
<li>Is this table expensive because of the dataset or because of component composition?</li>
</ul>
<p><strong>Those are architecture questions as much as they are runtime questions.</strong></p>
<h3>Performance is a Product Experience, Not Just a Metric</h3>
<p>It is easy to reduce frontend performance to <a href="https://developer.chrome.com/docs/lighthouse/performance/performance-scoring"><strong>Lighthouse scores</strong></a> or <a href="https://web.dev/articles/vitals#core-web-vitals"><strong>Web Vitals</strong></a> alone. Those are useful signals, but users do not experience a product as a spreadsheet of metrics. They experience it as responsiveness.</p>
<p>They notice:</p>
<ul>
<li>Whether filters update without friction</li>
<li>Whether graphs and tables settle quickly</li>
<li>Whether search feels fluid</li>
<li>Whether a modal opens instantly or stutters</li>
<li>Whether the page remains stable while data streams in</li>
<li>Whether dense workflows feel calm or exhausting</li>
</ul>
<p>In data-heavy products especially, perceived speed matters a lot. A system can technically finish loading, but still feel slow because the UI is visually unstable, the interaction model is noisy, or too much content shifts as data arrives.</p>
<blockquote>
<p>That is why performance work should be tied to actual workflows, not abstract scoring alone.</p>
</blockquote>
<p>If a product has investigative workflows, dashboards, large topology maps, deep filters, panels, overlays, and data-rich tables, then performance goals should reflect those realities.</p>
<p><strong>A scalable frontend should not only render correctly. It should support concentration under load.</strong></p>
<h3>Measure Before You Optimize</h3>
<p>One of the fastest ways to waste time is to optimize based on instinct alone.</p>
<p>I do not mean that intuition is useless. Experienced engineers often have good instincts about likely bottlenecks. But performance work becomes much more effective when teams can confirm what is actually expensive.</p>
<p>In a modern frontend stack, that usually means combining lab analysis with product telemetry:</p>
<ul>
<li>Bundle analysis for dependency and chunk visibility</li>
<li>React profiling for render hotspots</li>
<li>Browser performance tools for scripting, layout, and paint costs</li>
<li>RUM or session telemetry for real-user signals</li>
<li>Targeted instrumentation for workflow-specific timing</li>
</ul>
<p>This is where having observability from <a href="https://medium.com/@akhandsingh/building-scalable-ui-architectures-part-3-rum-observability-user-insights-in-a-modular-f30b94ae459c">Part 3</a> becomes very useful. When Datadog RUM, PostHog, or other telemetry exists in the product, performance stops being guesswork. It becomes something teams can observe in real usage, not only in local benchmarks.</p>
<p>In your own stack, a very practical example is bundle visibility during development:</p>
<pre><code>{
  &quot;scripts&quot;: {
    &quot;analyze&quot;: &quot;npx vite-bundle-visualizer&quot;,
    &quot;audit:pkgsize&quot;: &quot;npx pkg-size&quot;,
    &quot;audit:npmgraph&quot;: &quot;npx npmgraph ./ --open&quot;
  }
}
</code></pre>
<p>This kind of tooling helps answer simple but important questions:</p>
<ul>
<li>Which dependencies are inflating route bundles?</li>
<li>Where are heavy charting or graph libraries being pulled in?</li>
<li>Which shared packages are dragging unrelated code into more screens than expected?</li>
<li>Are we paying the cost of a tool globally when only one domain really needs it?</li>
</ul>
<p><strong>That visibility matters because a lot of frontend performance problems begin with dependency shape, not rendering tricks.</strong></p>
<h3>Bundle Size is an Architectural Signal</h3>
<p>I think of bundle size as a signal of architectural intent.</p>
<p>A large bundle is not automatically wrong. Some products genuinely need heavy capabilities. But when bundles grow in ways that do not match user workflows, that usually points to a <strong>structural issue</strong>.</p>
<p>For example, if an investigative graph screen uses libraries like @xyflow/react, elkjs, charting packages, or syntax/highlighting utilities, that does not mean the homepage or admin settings should pay for all of them upfront.</p>
<blockquote>
<p>A scalable architecture should make it easier to isolate that weight.</p>
</blockquote>
<p>With Vite and modern route-level composition, this often means being disciplined about lazy loading and import boundaries:</p>
<pre><code>import { lazy, Suspense } from &#39;react&#39;;

const GraphView = lazy(() =&gt; import(&#39;./graphView.component&#39;));

export function GraphRoute() {
  return (
    &lt;Suspense fallback={&lt;GraphSkeleton /&gt;}&gt;
      &lt;GraphView /&gt;
    &lt;/Suspense&gt;
  );
}
</code></pre>
<p>This is not a new idea, but what matters is where and how it gets used. <a href="https://react.dev/reference/react/lazy#suspense-for-code-splitting">Lazy loading</a> is most effective when it follows domain boundaries rather than being scattered randomly across the app.</p>
<p>Good candidates include:</p>
<ul>
<li>Heavy graph views</li>
<li>Infrequently visited admin flows</li>
<li>Advanced editors</li>
<li>Embedded markdown/rendering tools</li>
<li>Export/reporting screens</li>
<li>Rarely used visualizations</li>
</ul>
<blockquote>
<p>The goal is not to lazy-load everything. The goal is to align loading cost with actual user intent.</p>
</blockquote>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-5-performance/02.webp" alt="Route and domain boundaries help isolate heavy dependencies and align loading cost with actual user intent."></p>
<p><em>Route and domain boundaries help isolate heavy dependencies and align loading cost with actual user intent.</em></p>
<h3>Performance is Also About Rendering Discipline</h3>
<p>Once a screen loads, rendering behavior becomes the next major factor.</p>
<p>This is where teams often reach too quickly for memoization without first asking whether the component model itself is clean. In my experience, <strong>the best rendering performance improvements usually come from architectural clarity before they come from tactical hooks</strong>.</p>
<p>A few patterns consistently help:</p>
<ul>
<li>Keep shared components presentational</li>
<li>Avoid passing unstable objects or callbacks unnecessarily</li>
<li>Split expensive views into meaningful subtrees</li>
<li>Isolate frequently changing state from broad UI trees</li>
<li>Virtualize long lists and dense tables</li>
<li>Avoid coupling large screens to global state changes if local state is enough</li>
</ul>
<p>For example, if a filter panel changes on every keystroke, but the entire surrounding page rerenders including charts, tables, and headers, that is rarely a memoization problem alone. That is usually a state placement and component boundary problem.</p>
<p>A healthier pattern is to <strong>keep high-frequency state changes closer to the interaction surface</strong>:</p>
<pre><code>export function SearchToolbar({ onSearch }: { onSearch: (value: string) =&gt; void }) {
  const [value, setValue] = useState(&#39;&#39;);

  return (
    &lt;Input
      value={value}
      onChange={(e) =&gt; setValue(e.target.value)}
      onKeyDown={(e) =&gt; {
        if (e.key === &#39;Enter&#39;) onSearch(value);
      }}
      placeholder=&quot;Search services, issues, or alerts&quot;
    /&gt;
  );
}
</code></pre>
<p>This keeps transient typing state local rather than pushing every keystroke through a broader container that might trigger more work than necessary.</p>
<blockquote>
<p>Performance often improves when state lives where it changes.</p>
</blockquote>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-5-performance/03.webp" alt="Keeping frequent state changes local helps avoid unnecessary re-renders across the page"></p>
<p><em>Keeping frequent state changes local helps avoid unnecessary re-renders across the page</em></p>
<h3>Large Data Views Need Explicit Strategies</h3>
<p>The moment a product contains large tables, graph views, timelines, or nested panels, performance can no longer be treated casually.</p>
<p>A few examples from modern frontend work:</p>
<ul>
<li>Table rows in the hundreds or thousands</li>
<li>Topology graphs with layered nodes and edges</li>
<li>Panels with live metrics or status updates</li>
<li>Markdown or JSON viewers rendering large payloads</li>
<li>Dashboards with multiple visual surfaces mounted at once</li>
</ul>
<p>In these cases, good performance usually depends on explicit techniques:</p>
<ul>
<li>Virtualization for long lists or tables</li>
<li>Selective rendering for hidden panels</li>
<li>Debouncing or batching expensive updates</li>
<li>Memoized data transformations only where needed</li>
<li>Worker-based processing for computationally heavy transforms</li>
<li>Progressive hydration of secondary content</li>
</ul>
<p>A package list like yours already shows the kind of product surface area where these concerns matter. Libraries such as react-virtuoso, @xyflow/react, elkjs, echarts, and @uiw/react-json-view can be extremely valuable, but they all imply rendering and bundle tradeoffs that should be managed intentionally.</p>
<blockquote>
<p>Performance work is not about avoiding powerful tools. It is about ensuring those tools are used where their cost makes sense.</p>
</blockquote>
<h3>Data Fetching Shapes Perceived Speed</h3>
<p>Performance is also deeply tied to data architecture.</p>
<p>A screen may render quickly but still feel slow if:</p>
<ul>
<li>Queries are too broad</li>
<li>Independent data requests are serialized unnecessarily</li>
<li>Loading states are poorly coordinated</li>
<li>The UI blocks on secondary data</li>
<li>Caching strategy is inconsistent</li>
<li>Refetches cause avoidable visual churn</li>
</ul>
<p>This is where a well-structured data layer becomes important. Whether a frontend is using GraphQL with Apollo Client, REST with a query layer, or another server-state approach, <strong>strong request boundaries and predictable caching behavior make it easier to control what a screen needs and when it needs it</strong>.</p>
<p>For example, not every surface should block on the same full payload. A primary summary can often render first, while secondary panels load independently.</p>
<pre><code>export function ConfigurationOverviewPage() {
  const summary = useSummaryQuery();
  const relatedIssues = useRelatedIssuesQuery();

  if (summary.loading) return &lt;PageSkeleton /&gt;;

  return (
    &lt;PageLayout&gt;
      &lt;ConfigurationSummaryCard data={summary.data} /&gt;
      &lt;RelatedIssuesPanel data={relatedIssues.data} isLoading={relatedIssues.loading} /&gt;
    &lt;/PageLayout&gt;
  );
}
</code></pre>
<p>This kind of decomposition improves perceived speed because the page becomes useful earlier, even if secondary content is still resolving.</p>
<p><strong>Users usually care more about early usefulness than perfect simultaneity.</strong></p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-5-performance/04.webp" alt="A page feels faster when primary content becomes useful before secondary data fully resolves"></p>
<p><em>A page feels faster when primary content becomes useful before secondary data fully resolves</em></p>
<h3>Performance Needs Budgets, Not Just Good Intentions</h3>
<p>One challenge with frontend performance is that almost everyone agrees it matters, but very few teams define what “good enough” means in practical terms.</p>
<p>That is why I think performance budgets are helpful. They do not need to be overly formal, but they do need to exist.</p>
<p>Examples might include:</p>
<ul>
<li>Route bundle expectations for common screens</li>
<li>Interaction timing goals for filters and search</li>
<li>Acceptable thresholds for graph or table mount time</li>
<li>Limits on loading secondary visualizations eagerly</li>
<li>Alerting when key workflows regress significantly</li>
</ul>
<blockquote>
<p>Without budgets, performance often becomes a vague aspiration. With budgets, teams can make tradeoffs more explicitly.</p>
</blockquote>
<p>Even a lightweight standard helps:</p>
<ul>
<li>This route should not pull advanced visualization code upfront</li>
<li>This interaction should remain responsive during common usage</li>
<li>This component should not mount hidden heavy children by default</li>
<li>This dependency should justify its cost</li>
</ul>
<p><strong>Budgets do not eliminate complexity. They make it easier to manage it honestly.</strong></p>
<h3>Performance is a Shared Responsibility</h3>
<p>One of the reasons performance deteriorates in growing teams is that no one owns it clearly.</p>
<ul>
<li>Sometimes it is treated as a platform concern.</li>
<li>Sometimes it is treated as a feature-team concern.</li>
<li>Sometimes it is treated as something QA or RUM dashboards will catch later.</li>
</ul>
<p>In reality, scalable performance needs shared responsibility with clear roles:</p>
<ul>
<li>Design influences visual stability and interaction load</li>
<li>Frontend architecture influences rendering and loading cost</li>
<li>Backend or API design influences payload size and request behavior</li>
<li>Shared component owners influence baseline efficiency</li>
<li>Product teams influence how many heavy surfaces are combined in one workflow</li>
</ul>
<p>This is another reason performance belongs inside architecture discussions. It cannot be preserved by one team alone if the structure of the product keeps making expensive patterns easy.</p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-5-performance/05.webp" alt="Performance is shaped by design, rendering, data, and architectural boundaries together"></p>
<p><em>Performance is shaped by design, rendering, data, and architectural boundaries together</em></p>
<h3>What I Have Come to Trust</h3>
<p>Across products and teams, a few performance principles have held up for me:</p>
<ul>
<li>Performance should be discussed at the architecture level, not only after regressions appear</li>
<li>Bundle growth is often a signal of boundary problems</li>
<li>Lazy loading works best when aligned to domain and route boundaries</li>
<li>Perceived speed matters as much as raw load completion</li>
<li>High-frequency state changes should stay as local as possible</li>
<li>Large data surfaces need explicit rendering strategies</li>
<li>Measure before optimizing, but instrument enough to make measurement useful</li>
<li>Performance budgets are more effective than vague intentions</li>
<li>Powerful libraries are fine when their cost matches real user workflows</li>
<li>A fast-feeling product is part of UX quality, not a separate concern</li>
</ul>
<h3>Final Thoughts</h3>
<p>Performance is often treated like a refinement layer added after architecture, product design, and feature work. I think that view is backward.</p>
<blockquote>
<p>Performance is one of the clearest ways architecture becomes visible to users.</p>
</blockquote>
<p>Users do not see package boundaries, query structure, or component layering directly. But they absolutely feel the result of those decisions when they search, navigate, expand panels, inspect graphs, or wait for screens to stabilize.</p>
<p>That is why scalable frontend architecture should make performance easier to preserve. It should create boundaries that limit bundle growth, state models that reduce unnecessary work, data flows that support progressive usefulness, and UI patterns that remain responsive under real product conditions.</p>
<blockquote>
<p>A system that scales cleanly in code but feels heavy in practice is not truly scaled yet.</p>
</blockquote>
<p>The goal is not to chase perfect scores or premature micro-optimizations.</p>
<p><strong>The goal is to build product architectures that stay fast enough, focused enough, and resilient enough as complexity grows.</strong></p>
]]></content:encoded>
      <pubDate>Fri, 13 Mar 2026 00:00:00 GMT</pubDate>
      <category>Building Scalable UI Architectures</category>
    </item>

    <item>
      <title>Building Scalable UI Architectures — Part 3: RUM, Observability &amp; User Insights in a Modular Frontend</title>
      <link>https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-3-rum-observability-and-user-insights</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-3-rum-observability-and-user-insights</guid>
      <description>How to build a modular, vendor-agnostic observability layer for a scalable frontend: RUM, error tracking with session replay, feature flags and user analytics.</description>
      <content:encoded><![CDATA[<p>In <a href="https://medium.com/@akhandsingh/building-scalable-ui-architectures-lessons-from-leading-frontend-at-multiple-startups-0a3a182b2363">Part 1</a> and <a href="https://medium.com/@akhandsingh/building-scalable-ui-architectures-part-2-modular-patterns-in-a-monorepo-f449ef77a787">Part 2</a>, we laid the groundwork for scalable frontend architectures using modular monorepo patterns. Now, we tackle a crucial piece often overlooked: <strong>observability and user insights</strong>.</p>
<p>A scalable frontend isn’t complete without understanding how real users experience your app, where errors occur, and how features are adopted. This article explains how to build a <strong>modular, vendor-agnostic observability layer</strong> that includes Real User Monitoring (RUM), error tracking with session replay, feature flags, user analytics, product adoption, feedback loops, and privacy controls.</p>
<p>Whether you are an engineer, product manager, or team lead, this guide provides practical patterns to embed observability deeply into your scalable frontend architecture.</p>
<h3>Modular Layer Recap</h3>
<p>To scale observability effectively, we isolate it in a dedicated <code>/packages/observability</code> package within our monorepo:</p>
<pre><code>packages/
  sdk/            
  api/            
  hooks/          
  context/        
  utils/          
  types/          
  styles/         
  test/           
  observability/   → observability layer here

apps/
  web-app/        
    app/             
    domain/           
      map/             
    context/          
    utils/            
    types/            
    routes/           
    test/             
  admin-panel/    
</code></pre>
<p>This package <strong>wraps vendor SDKs and instrumentation</strong>, offers <strong>simple, consistent APIs</strong>, and <strong>enforces metadata standards and privacy</strong> across all telemetry events.</p>
<h3>RUM (Real User Monitoring)</h3>
<p>RUM captures how your app performs <strong>in real user environments</strong>, measuring metrics including Core Web Vitals — Largest Contentful Paint (LCP), First Input Delay (FID), Cumulative Layout Shift (CLS) — along with resource load times and interaction latencies.</p>
<p>Synthetic tests simulate ideal conditions, but RUM reveals the <strong>true user experience</strong> impacted by network variability, device capabilities, and user behavior. These insights are invaluable for:</p>
<ul>
<li>Quickly spotting performance regressions affecting real users</li>
<li>Prioritizing fixes based on actual user impact</li>
<li>Validating performance improvements after releases</li>
</ul>
<p>For example, if a new feature flag enables a heavy dashboard widget, causing slower LCP on mobile devices, RUM data combined with flag context helps you target fixes precisely.</p>
<p>To maintain flexibility, abstract your RUM tools behind a modular wrapper. This lets you switch or combine providers with minimal app changes, choosing from:</p>
<ul>
<li><a href="https://embrace.io/"><strong>Embrace.io</strong></a> — specialized RUM with rich session and device context</li>
<li><a href="https://opentelemetry.io/docs/languages/js/getting-started/browser/"><strong>OpenTelemetry</strong></a> — open-source, vendor-neutral distributed tracing</li>
<li>Custom or proprietary tools</li>
</ul>
<p>Your wrapper should inject <strong>shared session metadata and feature flags</strong> to correlate RUM data with errors and experiments.</p>
<pre><code>// packages/observability/rum.ts
import { getSessionContext } from &#39;./context&#39;;

let embrace: any;

export async function initRUM() {
  const ctx = getSessionContext();

  const module = await import(&#39;@embrace/web-core&#39;);
  embrace = module.default;

  embrace.init({
    appId: process.env.EMBRACE_APP_ID!,
    sessionId: ctx.sessionId,
    userId: ctx.userId,
    featureFlags: ctx.featureFlags,
  });

  console.log(&#39;[RUM] Embrace.io initialized&#39;);
}
</code></pre>
<h4>Error Tracking &amp; Session Replay</h4>
<p>Errors happen. The difference between a long bug hunt and a quick fix is <strong>knowing exactly what the user experienced leading up to the failure</strong>.</p>
<p>Session replay provides a video-like record of user actions and UI state, while error tracking captures stack traces and metadata. Together, they give you rich context to diagnose and resolve issues rapidly.</p>
<p>Key benefits for your team include:</p>
<ul>
<li>See the precise user interactions, environment, and device state when errors occur</li>
<li>Correlate errors with feature flags and user segments to prioritize impactful fixes</li>
<li>Reduce mean time to resolution and improve product stability</li>
</ul>
<p>To maximize overage and maintain flexibility, build a modular wrapper around multiple providers that leverage their unique strengths and reduce blind spots:</p>
<ul>
<li>Use <a href="https://posthog.com/"><strong>PostHog</strong></a> <strong>&amp;</strong> <a href="https://embrace.io/"><strong>Embrace.io</strong></a> for session replay plus enhanced error context</li>
<li>Integrate <a href="https://sentry.io/"><strong>Sentry</strong></a> for robust error telemetry and alerting</li>
<li>Incorporate additional custom or vendor solutions as your needs evolve</li>
</ul>
<p>This unified wrapper enriches every error event with consistent metadata, enabling seamless cross-tool correlation and streamlined analysis across your observability stack.</p>
<pre><code>// packages/observability/errors.ts

let embrace: any = null;
let posthog: any = null;
let sentry: any = null;

export async function initErrorTracking() {
  const ctx = getSessionContext();

  try {
    const embraceModule = await import(&#39;@embrace/web-core&#39;);
    embrace = embraceModule.default;
    embrace.init({ appId: process.env.EMBRACE_APP_ID!, sessionId: ctx.sessionId, userId: ctx.userId, featureFlags: ctx.featureFlags });
  } catch (e) {
    console.warn(&#39;Embrace.io init failed&#39;, e);
  }

  try {
    const ph = await import(&#39;posthog-js&#39;);
    posthog = ph;
    posthog.init(process.env.POSTHOG_API_KEY!, { api_host: process.env.POSTHOG_API_HOST!, autocapture: false, disable_session_recording: true });
  } catch (e) {
    console.warn(&#39;PostHog init failed&#39;, e);
  }

  try {
    const Sentry = await import(&#39;@sentry/browser&#39;);
    sentry = Sentry;
    sentry.init({ dsn: process.env.SENTRY_DSN!, environment: process.env.NODE_ENV });
  } catch (e) {
    console.warn(&#39;Sentry init failed&#39;, e);
  }

  console.log(&#39;[ErrorTracking] Initialized providers&#39;);
}

export function captureError({ error, context = {} }: { error: Error; context?: Record&lt;string, any&gt; }) {
  if (embrace) embrace.captureException(error);
  if (posthog) posthog.capture(&#39;frontend_error&#39;, { errorMessage: error.message, stack: error.stack, ...context, featureFlags: JSON.stringify(getSessionContext().featureFlags) });
  if (sentry) sentry.captureException(error);
}
</code></pre>
<h4>Feature Flags &amp; Experimentation</h4>
<p>Feature flags enable <strong>safe rollouts, canary releases, and A/B testing</strong>, allowing teams to iterate rapidly while minimizing risk. Flags help you:</p>
<ul>
<li>Deploy unfinished or experimental features to small user subsets</li>
<li>Experiment and validate feature impact before full rollout</li>
<li>Quickly roll back problematic features without new deployments</li>
</ul>
<p>Abstracting feature flag providers such as <a href="https://posthog.com/"><strong>PostHog</strong></a>, <a href="https://launchdarkly.com/"><strong>LaunchDarkly</strong></a>, or <a href="https://configcat.com/"><strong>ConfigCat</strong></a> behind a unified API gives you centralized control to:</p>
<ul>
<li>Retrieve flag states and variants consistently across your app</li>
<li>Inject flag context into observability events, enabling seamless correlation between feature exposure and system behavior</li>
</ul>
<pre><code>// packages/observability/flags.ts

let flags: Record&lt;string, boolean&gt; = {};
let client: any;

export async function initFeatureFlags(userId: string) {
  const ph = await import(&#39;posthog-js&#39;);
  client = ph;
  client.init(process.env.POSTHOG_API_KEY!);
  flags = await client.getFeatureFlags();
}

export function getFlag(key: string) {
  return flags[key] ?? false;
}
</code></pre>
<h3>User Behaviour Analytics</h3>
<p>Analytics provide a window into <strong>how users engage with your app, where they abandon flows, and how new features impact retention and conversion</strong>. These insights fuel data-driven product decisions and continuous improvement by helping teams to:</p>
<ul>
<li>Measure feature adoption and overall user engagement</li>
<li>Identify usage patterns and pain points within user flows</li>
<li>Understand drop-offs and optimize conversion funnels</li>
</ul>
<p>By abstracting analytics providers like <a href="https://www.pendo.io/"><strong>Pendo</strong></a>, <a href="https://posthog.com/"><strong>PostHog</strong></a>, <a href="https://mixpanel.com/"><strong>Mixpanel</strong></a>, or <a href="https://amplitude.com/"><strong>Amplitude</strong></a> behind simple, consistent APIs, you gain the flexibility to track page views, custom events, and funnel steps without coupling your app to any single tool. This modularity makes it easy to swap or combine analytics solutions as your needs evolve.</p>
<pre><code>// packages/observability/analytics.ts

let analyticsClient: any;

export async function initAnalytics() {
  const pendo = await import(&#39;pendo-js&#39;);
  analyticsClient = pendo;
  analyticsClient.initialize({ visitor: { id: &#39;user123&#39; }, account: { id: &#39;acct123&#39; } });
}

export function trackPageView(name: string) {
  analyticsClient?.trackPageView({ name });
}

export function trackEvent(name: string, props: Record&lt;string, any&gt; = {}) {
  analyticsClient?.track(name, props);
}
</code></pre>
<h3>Product Adoption &amp; Retention Tracking</h3>
<p>Tracking <strong>when and how users adopt features</strong> provides valuable insights that inform product roadmap prioritization and retention strategies. Since not all users are exposed to every feature, combining adoption metrics with feature flag states ensures your analysis is accurate and meaningful.</p>
<p>Key benefits include:</p>
<ul>
<li>Identify successful features early</li>
<li>Measure sustained engagement over time</li>
<li>Segment users by adoption and usage for personalized experiences</li>
</ul>
<pre><code>// packages/observability/adoption.ts
import { trackEvent } from &#39;./analytics&#39;;
import { getFlag } from &#39;./flags&#39;;

export function trackFeatureAdoption(featureKey: string) {
  if (getFlag(featureKey)) {
    trackEvent(&#39;feature_adoption&#39;, { feature: featureKey, timestamp: Date.now() });
  }
}
</code></pre>
<h3>User Feedback Loops</h3>
<p>Telemetry delivers quantitative data, while user feedback adds <strong>qualitative depth</strong> — surfacing frustrations, feature requests, and direct validation from your users. The key benefits of integrating user feedback into your application include:</p>
<ul>
<li>Detect usability issues early before they become widespread problems</li>
<li>Prioritize feature requests based on real user input</li>
<li>Build trust by providing transparent and accessible communication channels</li>
</ul>
<p>By abstracting feedback tools such as <a href="https://userback.io/"><strong>UserBack</strong></a>, <a href="https://www.hotjar.com/"><strong>Hotjar</strong></a>, or custom solutions behind a unified API, you ensure feedback events include vital session and feature flag context, enriching your insights and enabling better correlation with other telemetry data.</p>
<pre><code>// packages/observability/feedback.ts

let userback: any;

export async function initFeedback() {
  userback = await import(&#39;@userback/browser&#39;);
  userback.init({ token: process.env.USERBACK_TOKEN });
}

export function showFeedbackWidget() {
  userback?.open();
}
</code></pre>
<h3>Privacy, Sampling &amp; Performance</h3>
<p>Collecting user data entails a significant responsibility. It is essential to uphold privacy compliance, such as adhering to <strong>GDPR</strong> and <strong>CCPA</strong> regulations, while also respecting user consent. Doing so is crucial for maintaining trust and ensuring a high-quality app experience. Additionally, it is important to minimize any performance impact that telemetry may introduce.</p>
<p>Best practices include:</p>
<ul>
<li>Sanitize and scrub personally identifiable information (PII) before sending any telemetry data.</li>
<li>Fully honor user consent preferences and opt-out mechanisms in line with privacy regulations.</li>
<li>Implement intelligent sampling on high-volume events to reduce data noise and control costs.</li>
<li>Use batching and throttling techniques for telemetry transmissions to prevent UI lag and avoid sudden network spikes.</li>
</ul>
<pre><code>// packages/observability/utils.ts

export function sanitizePayload(payload: Record&lt;string, any&gt;) {
  const sanitized = { ...payload };
  if (sanitized.email) sanitized.email = hash(sanitized.email);
  if (sanitized.phone) sanitized.phone = &#39;REDACTED&#39;;
  return sanitized;
}
</code></pre>
<h3>Cross-Tool Correlation &amp; End-to-End Visibility</h3>
<p>One of the greatest advantages of a modular observability layer is the ability to <strong>correlate data across multiple tools</strong> by sharing consistent identifiers, such as <code>sessionId</code>, <code>userId</code>, and active feature flags.</p>
<p>This capability enables you to link:</p>
<ul>
<li>RUM-detected performance issues with specific frontend errors</li>
<li>Errors in the state of feature flags and impacted user segments</li>
<li>Product adoption signals to qualitative user feedback</li>
</ul>
<p>Combined with backend tracing (e.g., OpenTelemetry on APIs), this creates true <strong>end-to-end visibility</strong> for comprehensive debugging and data-driven product insights.</p>
<h3>Final Thoughts</h3>
<p>Building a <strong>modular, vendor-agnostic observability layer</strong> empowers your frontend teams to:</p>
<ul>
<li>Understand real user experience with RUM</li>
<li>Quickly detect and reproduce errors via session replay</li>
<li>Safely roll out features with robust feature flagging</li>
<li>Analyze user behavior and adoption comprehensively</li>
<li>Capture direct user feedback</li>
<li>Ensure privacy and maintain app performance</li>
</ul>
<p><em><strong>Abstracting diverse telemetry providers behind unified, consistent wrappers gives you the flexibility, maintainability, and confidence required to scale your frontend architecture reliably and responsibly.</strong></em></p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-3-rum-observability-and-user-insights/01.webp" alt=""></p>
<blockquote>
<p><em>This architecture reflects how I approach building frontend systems that are modular, maintainable, and scalable across teams. While I’ve applied similar ideas in previous roles, I’m continuing to evolve this model as I help shape new interfaces at Causely, a platform focused on uncovering root causes in complex systems.</em></p>
</blockquote>
<blockquote>
<p><em>If you’re exploring ways to organize your frontend layers more intentionally, or thinking about design systems and developer experience, I’d love to connect.</em></p>
</blockquote>
]]></content:encoded>
      <pubDate>Tue, 12 Aug 2025 00:00:00 GMT</pubDate>
      <category>Building Scalable UI Architectures</category>
    </item>

    <item>
      <title>Building Scalable UI Architectures — Part 2: Modular Patterns in a Monorepo</title>
      <link>https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-2-modular-patterns-in-a-monorepo</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-2-modular-patterns-in-a-monorepo</guid>
      <description>A clean architecture on paper isn&apos;t enough once teams grow. How Turborepo turns a layered frontend into modular, testable, cacheable units you can enforce.</description>
      <content:encoded><![CDATA[<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-2-modular-patterns-in-a-monorepo/01.webp" alt=""></p>
<p>In <a href="https://medium.com/@akhandsingh/building-scalable-ui-architectures-lessons-from-leading-frontend-at-multiple-startups-0a3a182b2363">Part 1</a>, I outlined a layered approach to frontend architecture that’s helped me scale multiple products, from seed-stage velocity to enterprise complexity.</p>
<p>But a clean architecture on paper isn’t enough. Once your team grows and features evolve in parallel, you need enforcement mechanisms. You need tooling that turns your ideal structure into <strong>modular</strong>, <strong>testable</strong>, <strong>cacheable units</strong>.</p>
<p>That’s where a tool like <a href="https://turborepo.com/">Turborepo</a> can help.</p>
<h3>Layered Architecture Recap</h3>
<p>Let’s revisit the layers from the previous post:</p>
<ul>
<li><strong>SDK Layer</strong> — Internal UI kit (pure presentation)</li>
<li><strong>Domain Layer</strong> — Feature-specific UI + behavior</li>
<li><strong>API/Logic Layer</strong> — Typed data access, hooks, error/loading logic</li>
</ul>
<p>As your product scales, you’ll also build a supporting structure, including shared directories that live alongside those layers to maintain the system&#39;s coherence and developer-friendliness.</p>
<p>Here’s an example of how you can organize all of this modularly while maintaining consistency as your team grows:</p>
<pre><code>packages/
  sdk/            → UI components, design tokens
  api/            → API clients and data-fetching hooks
  hooks/          → Shared cross-cutting logic (e.g., useSound)
  context/        → Global state (auth, theme, feature flags)
  utils/          → Formatting, transforms, pure helpers
  types/          → Shared TS types and guards
  styles/         → CSS themes, global styles
  test/           → Mocks, setup, and test utils

apps/
  web-app/        → Main frontend app
    app/              → App entrypoint (main.tsx, layout.tsx)
    domain/           
      map/              → Feature-specific logic: map views, behaviors 
    context/          → App-only provides (session, layout state)
    utils/            → App-only helpers (e.g., navigation utils)
    types/            → App-only types
    routes/           → Route configuration
    test/             → App-specific test config
  admin-panel/    → Internal dashboard
</code></pre>
<p>Each app <code>apps/*</code> owns its own <code>routes/</code>, <code>domain/</code>, local <code>context/</code>, <code>types/</code>, <code>utils/</code>, and <code>tests/</code> folders as needed.</p>
<p>You can think of the <code>apps/</code> layer as the final assembler, it composes and orchestrates all feature domains, shared packages, and app-specific concerns into a complete product experience.</p>
<h3>Principles to Follow</h3>
<p>To keep the repo scalable as you grow:</p>
<ul>
<li><strong>Upward-only dependencies:</strong> Lower-level packages like <code>sdk</code>, <code>utils</code>, or <code>types</code> should never import from <code>domain</code> or <code>apps</code>.</li>
<li><strong>Stable interfaces:</strong> Each package exposes only its public API. Internal modules stay internal.</li>
<li><strong>Monorepo atomicity:</strong> Everything runs on the latest version inside the repo, no semver required, just clear boundaries.</li>
</ul>
<p>Here’s a quick guide to which packages can depend on which:</p>
<ul>
<li><code>sdk/*</code> — can import from <code>styles</code>, <code>types</code>, <code>utils</code></li>
<li><code>api/*</code> — can import from <code>types</code>, <code>utils</code></li>
<li><code>hooks/*</code> — can import from <code>utils</code>, <code>types</code></li>
<li><code>context/*</code> — can import from <code>hooks</code>, <code>types</code></li>
<li><code>apps/*</code> — can import from any package</li>
</ul>
<blockquote>
<p>❌ <code>sdk</code> should never import from <code>apps</code></p>
<p>✅ <code>app</code> is allowed to use presentation (<code>sdk</code>) and logic (<code>api</code>, <code>hooks</code>)</p>
</blockquote>
<h3>Why Turborepo?</h3>
<p><a href="https://turborepo.com/">Turborepo</a> is a high-performance monorepo build tool that lets you:</p>
<ul>
<li><strong>Enforce boundaries between packages</strong> (e.g., design tokens shouldn’t depend on feature logic)</li>
<li><strong>Speed up builds</strong> with caching and task pipelines</li>
<li><strong>Structure your app</strong> around your architectural layers</li>
<li><strong>Empower teams</strong> to build in parallel without stepping on each other</li>
</ul>
<p>It’s not magic, just a smart way to treat packages and pipelines like first-class citizens.</p>
<h3>Enforcing Structure with ESLint</h3>
<p>You’ll eventually forget one of these rules. That’s fine. The linter won’t.</p>
<p>Using <code>eslint-plugin-boundaries</code> or <code>eslint-plugin-import</code> You can catch invalid imports at dev time:</p>
<pre><code>// .eslintrc.js
rules: {
  &#39;no-restricted-imports&#39;: [
    &#39;error&#39;,
    {
      paths: [
        {
          name: &#39;@myorg/domain&#39;,
          message: &#39;Do not import domain logic into shared packages like sdk&#39;,
        },
      ],
    },
  ],
}
</code></pre>
<p>You can also tag each package with a “layer” <code>tsconfig.json</code> to help IDEs and tooling recognize architectural boundaries.</p>
<h3>Workflow Pipelines with turbo.json</h3>
<p>Defining clear build pipelines is what keeps this structure fast and sustainable. Here’s an example of how to set up <code>turbo.json</code> to coordinate builds across packages:</p>
<pre><code>{
  &quot;pipeline&quot;: {
    &quot;build&quot;: {
      &quot;dependsOn&quot;: [&quot;^build&quot;],
      &quot;outputs&quot;: [&quot;dist/**&quot;]
    },
    &quot;lint&quot;: {},
    &quot;typecheck&quot;: {},
    &quot;test&quot;: {
      &quot;dependsOn&quot;: [&quot;build&quot;]
    }
  }
}
</code></pre>
<p>With this setup, changing <code>sdk/</code> only triggers builds/tests for packages and apps that depend on <code>sdk/</code>. It’s cache-aware and graph-aware, so you waste zero cycles.</p>
<h3>Example: Building a Feature the Right Way</h3>
<p>Suppose you’re building <strong>two features</strong>: a <strong>Service Map</strong> and a <strong>Notifications</strong> panel.</p>
<p>Here’s how to organize the pieces:</p>
<pre><code>apps/
 web-app/
   domain/
     map/                  → Map UI components
   routes/
     map.tsx               → Route config for Map feature
 admin-panel/
    domain/
      notifications/       → Notifications UI components
    routes/
      notifications.tsx    → Route config for Notifications feature  
</code></pre>
<p>Feature: Interactive Map</p>
<pre><code>// apps/web-app/domain/map/Map.tsx
export function Map() {
  // UI logic for rendering map
}

// packages/api/useMapData.ts
export function useMapData() {
  // fetch map points, boundaries
}

// packages/utils/latLngToText.ts
export function latLngToText(lat: number, lng: number) {
  return `${lat}, ${lng}`;
}

// packages/hooks/usePanToLocation.ts
export function usePanToLocation(mapRef: RefObject&lt;Map&gt;) {
  // smooth pan-to behavior
}

// packages/types/Map.ts
export interface MapRegion {
  id: string;
  name: string;
  coordinates: number[][];
}

// packages/sdk/ZoomControl.tsx
export function ZoomControl() {
  // shared UI control
}
</code></pre>
<p>Feature: Notifications Panel</p>
<pre><code>// apps/admin-panel/domain/notifications/NotificationsList.tsx
export function NotificationsList() {
  // list UI
}

// packages/api/useNotifications.ts
export function useNotifications() {
  // fetch and subscribe to notifications
}

// packages/hooks/useSound.ts
export function useSound(src: string) {
  // plays a chime when notification arrives
}

// packages/types/Notification.ts
export interface Notification {
  id: string;
  type: string;
  message: string;
  timestamp: string;
}

// packages/sdk/Badge.tsx
export function Badge({ count }: { count: number }) {
  return &lt;span&gt;{count}&lt;/span&gt;;
}
</code></pre>
<h4>Why This Matters</h4>
<ul>
<li><strong>Feature UI and logic</strong> live inside the app’s <code>domain/</code>, keeping them close to the routes and easier to evolve.</li>
<li><strong>Data-fetching hooks</strong> live in <code>packages/api/</code> for easy reuse across apps (web, admin, mobile, etc.).</li>
<li><strong>Helpers and utilities</strong> (like formatters, transforms) go in <code>packages/utils/</code> or <code>packages/hooks/</code>, no more duplicating logic across apps.</li>
<li><strong>UI primitives</strong> like <code>&lt;Badge /&gt;</code> are centralized in <code>packages/sdk/</code> for a consistent look and feel across the product.</li>
<li><strong>Routes</strong> are defined in <code>apps/*/routes/</code>, keeping navigation concerns separate from business logic.</li>
</ul>
<p>Every layer has a distinct responsibility, which enhances clarity. This clarity simplifies onboarding, debugging, and scaling as your team expands. More importantly, it maintains <strong>modularity without being overly rigid</strong></p>
<h3>A Note on Testing</h3>
<p>Every package and app has its test config, usually <code>vitest.config.ts</code> or <code>jest.config.js</code></p>
<p>You can create a base for these configurations and extend it for consistency across the repo.</p>
<pre><code>packages/
 test/                         → setup, test utils, mocks
apps/
 web-app/
  domain/
   map/
    __tests__/
       MapView.test.tsx        → test for specific view
</code></pre>
<p>Turborepo caches your test runs, so you’re only testing what’s changed. That makes a huge difference when you’re iterating fast across dozens of packages.</p>
<h3>Final Thoughts</h3>
<p>A clean folder structure is a good start.</p>
<p>But true scalability comes from modularity, with clear ownership, consistent contracts, and tooling that supports how teams build.</p>
<p><em><strong>Combined with proper boundaries, type safety, and a solid design system, you can build a frontend that’s as elegant under the hood as it is on the screen.</strong></em></p>
<blockquote>
<p>This architecture reflects how I approach building frontend systems that are modular, maintainable, and scalable across teams. While I’ve applied similar ideas in previous roles, I’m continuing to evolve this model as I help shape new interfaces at Causely, a platform focused on uncovering root causes in complex systems.</p>
</blockquote>
<blockquote>
<p>If you’re exploring ways to organize your frontend layers more intentionally, or thinking about design systems and developer experience, I’d love to connect.</p>
</blockquote>
]]></content:encoded>
      <pubDate>Fri, 25 Jul 2025 00:00:00 GMT</pubDate>
      <category>Building Scalable UI Architectures</category>
    </item>

    <item>
      <title>Building Scalable UI Architectures — Part 1: Lessons From Leading Frontend at Multiple Startups</title>
      <link>https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-1-lessons-from-leading-frontend</link>
      <guid isPermaLink="true">https://akhandsingh.com/engineering/building-scalable-ui-architectures-part-1-lessons-from-leading-frontend</guid>
      <description>Leading frontend at fast-paced startups and enterprises, I kept facing one challenge: a UI architecture that moves quickly today without hindering tomorrow.</description>
      <content:encoded><![CDATA[<p>Over the past few years, I have had the opportunity to lead frontend engineering efforts at fast-paced startups and enterprises, often joining as the first UI/UX engineer or as a founding member of the frontend team. Each time, I have faced the same core challenge:</p>
<p><strong>How do we build a UI architecture that allows us to move quickly today without hindering our progress tomorrow?</strong></p>
<p>In the early stages, speed is crucial. However, without the right foundation, every new feature becomes slower to implement, harder to test, and messier to maintain.</p>
<p>What I have discovered through experience with multiple products is that the solution lies in <strong>a layered, SDK-first approach to UI architecture</strong>. While the specific needs may vary from company to company, the fundamental structure has remained remarkably consistent.</p>
<p>In this post, I’ll walk through how we’ve approached this architecture, how it evolves, and why it’s worked well across different teams and products.</p>
<h3>A Scalable Foundation: Layered by Design</h3>
<p>Every time I’ve helped design a new frontend system, I’ve leaned on a three-layer foundation that keeps responsibilities clean and scalable.</p>
<h3>1. The SDK Layer</h3>
<p>This is our internal UI kit, a lightweight design system implemented as code.</p>
<ul>
<li>Reusable visual components (buttons, inputs, modals, layouts, etc.)</li>
<li>Purely presentational, no business logic</li>
<li>Consistent styling, behavior, and accessibility</li>
<li>Built to be composable and extendable</li>
</ul>
<p>Sometimes this layer grows into a formal design system; other times, it stays lean and pragmatic. Either way, it always makes the difference between a chaotic UI and a consistent product experience.</p>
<h3>2. The Domain Layer</h3>
<p>This is where the actual product lives, feature-specific components organized by business domain.</p>
<ul>
<li>Built using SDK components</li>
<li>Encapsulates domain-specific UI and logic</li>
<li>Scoped by feature areas (e.g., dashboards, settings, onboarding)</li>
</ul>
<p>As the product evolves, new folders appear, but the pattern stays the same. Feature teams can work independently, and changes are easy to test and maintain.</p>
<h3>3. The API/Logic Layer</h3>
<p>This is where all backend interactions are abstracted:</p>
<ul>
<li>Centralized API hooks</li>
<li>Typed data interfaces</li>
<li>Loading/error states and retries</li>
<li>Caching and optimistic updates when needed</li>
</ul>
<p>Keeping this layer separate from the UI has helped us manage complexity and avoid backend changes rippling through the entire codebase.</p>
<h3>Supporting Structure That Scales</h3>
<p>Beyond the core layers, we’ve consistently added supporting directories that make the system easier to work with as the product grows:</p>
<ul>
<li><strong>/hooks</strong> — Custom logic (authentication, analytics, feature flags, etc.)</li>
<li><strong>/context</strong> — Global state (theme, auth, app settings)</li>
<li><strong>/utils</strong> — Helpers for formatting, parsing, and transformations</li>
<li><strong>/types</strong> — Shared TypeScript interfaces and type guards</li>
<li><strong>/routes</strong> — Page layouts, navigation, and route config</li>
<li><strong>/styles</strong> — Design tokens, theming, and global styles</li>
<li><strong>/test</strong> — Shared mocks, test helpers, and setup logic</li>
</ul>
<p>The structure is intentionally consistent and easy to navigate, even as the product scales from MVP to platform.</p>
<p><img src="https://akhandsingh.com/images/articles/building-scalable-ui-architectures-part-1-lessons-from-leading-frontend/01.webp" alt=""></p>
<h3>How This Architecture Evolves</h3>
<p>One thing I’ve learned is that no architecture stays static, nor should it. Across companies, we’ve treated this structure as a <strong>living system</strong> that adapts with our needs while keeping the core intact.</p>
<p>Some of the ways it has evolved over time:</p>
<ul>
<li>Extracting the SDK into a standalone package for broader reuse</li>
<li>Standardizing form systems to handle validation and layout</li>
<li>Integrating analytics hooks into the domain layer for richer tracking</li>
<li>Introducing feature flag wrappers to manage rollout logic</li>
<li>Improving test strategies with story-driven and visual tests</li>
</ul>
<p>But even with all these changes, we’ve never had to “start over”, because the core separation of concerns was designed to scale from the beginning.</p>
<h3>Why This Architecture Keeps Working</h3>
<p>No matter the company, the product, or the team size, this approach has consistently delivered value:</p>
<h3>1. Clarity</h3>
<p>Everyone knows where things live and how they connect. New developers get up to speed faster.</p>
<h3>2. Consistency</h3>
<p>SDK components enforce consistent UI patterns, behaviors, and accessibility across the app.</p>
<h3>3. Speed</h3>
<p>Teams move faster when they don’t have to reinvent patterns or guess where logic should go.</p>
<h3>4. Maintainability</h3>
<p>Changes are scoped. Business logic is isolated. Tech debt is easier to manage.</p>
<h3>5. Scalability</h3>
<p>As the product grows, new areas slot into the same architecture, without architectural chaos.</p>
<h3>Principles I’ve Come to Rely On</h3>
<p>Across teams and stacks, a few guiding principles have helped keep things smooth:</p>
<ul>
<li>Keep SDK components <strong>purely presentational,</strong> no data, no logic</li>
<li>Organize by <strong>feature/domain</strong>, not just by component type</li>
<li>Centralize and type all API access</li>
<li>Use <strong>custom hooks</strong> to isolate and reuse logic</li>
<li>Avoid early over-abstraction, but keep code ready for reuse</li>
<li>Document just enough to <strong>onboard quickly</strong></li>
<li>Prioritize clarity over cleverness</li>
</ul>
<h3>Final Thoughts</h3>
<p>Good frontend architecture isn’t just about structure, it’s a strategy for shipping confidently as your team and product scale. It affects how quickly teams move, how easy it is to onboard, and how resilient your UI is under pressure.</p>
<p>Having led this effort across multiple companies, what I’ve learned is that <strong>consistency beats complexity</strong>. You don’t need a perfect system, just one that’s easy to evolve, and easy to trust.</p>
<p>If you’re starting fresh or wrangling a growing codebase, I’d highly recommend thinking in <strong>layers</strong>: UI SDK, domain logic, and data abstraction.</p>
<p>Keep them focused, keep them separate, and let the rest grow as your product does.</p>
<p>That approach has helped us build faster, scale cleaner, and deliver better UI experiences, and I hope it helps you too.</p>
<p>This journey has never been a solo adventure; I’ve had the pleasure of collaborating with some amazing teammates throughout the process.</p>
<blockquote>
<p>I’ve applied this architecture across multiple startups, and I continue to evolve it in my current role at <a href="https://www.causely.ai">Causely</a>, where we’re building a platform to help teams uncover root causes across complex systems. If you’re interested in UI architecture, observability, or just want to geek out about composable frontends, feel free to reach out or take a look at what we’re doing</p>
</blockquote>
]]></content:encoded>
      <pubDate>Thu, 17 Jul 2025 00:00:00 GMT</pubDate>
      <category>Building Scalable UI Architectures</category>
    </item>
  </channel>
</rss>