<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~files/atom-premium.xsl"?>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedpress="https://feed.press/xmlns" xmlns:media="http://search.yahoo.com/mrss/" xmlns:podcast="https://podcastindex.org/namespace/1.0">
  <feedpress:locale>en</feedpress:locale>
  <feedpress:newsletterId>telerik-blogs</feedpress:newsletterId>
  <link rel="hub" href="https://feedpress.superfeedr.com/"/>
  <logo>https://static.feedpress.com/logo/telerik-blogs-5aafd3c47efc3.jpg</logo>
  <title type="text">Telerik Blogs</title>
  <subtitle type="text">The official blog of Progress Telerik - expert articles and tutorials for developers.</subtitle>
  <id>uuid:cb6b2ea7-7acf-4be9-a651-9c90c08a25da;id=7189</id>
  <updated>2026-11-27T18:59:41Z</updated>
  <link rel="alternate" href="https://www.telerik.com/"/>
  <link rel="self" type="application/atom+xml" href="https://feeds.telerik.com/blogs"/>
  <entry>
    <id>urn:uuid:c9024558-9f1c-4719-b110-5874ef6c4d7f</id>
    <title type="text">Quiet Quality-of-Life Wins in Vue 3.5</title>
    <summary type="text">Vue 3.5 was a minor release, but it came with some nice quality-of-life upgrades worth exploring. Here’s what one Vue developer uses daily.</summary>
    <published>2026-11-25T17:19:51Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Marina Mosti </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/quiet-quality-life-wins-vue-3-5"/>
    <content type="text"><![CDATA[<p><span class="featured">Vue 3.5 was a minor release, but it came with some nice quality-of-life upgrades worth exploring. Here&rsquo;s what one Vue developer uses daily.</span></p><p>Back in 2019, I wrote <a target="_blank" href="https://www.telerik.com/blogs/how-to-target-the-dom-in-vue">How to Target the DOM in Vue</a>, which was all about <code>ref</code> and the edge cases that come with grabbing a real element out of your template. That article is old enough to have jQuery comparisons in it (). The interesting part is that the advice barely changed for five years, and then Vue 3.5 quietly changed a piece of it.</p><p>Big Vue releases get a blog post, a conference talk and a week of discussion. Minor releases get a changelog that most of us skim on the way to fixing something else. Vue 3.5 shipped in September 2024 and it is full of small things that remove a line or two of boilerplate from files you touch every week.</p><p>We&rsquo;ll go through <code>useTemplateRef</code>, <code>useId</code>, reactive props destructure, <code>onWatcherCleanup</code>, deferred <code>Teleport</code> and lazy hydration, and for each one I want to show you the annoying thing it replaces.</p><h2 id="template-refs-by-name-with-usetemplateref">Template Refs by Name with useTemplateRef</h2><p>Let&rsquo;s start with template refs, since that&rsquo;s where we came in. Here is the shape you have written a hundred times.</p><p><code>MessageBox.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
import { ref, onMounted } from 'vue'

const composer = ref(null)

onMounted(() =&gt; {
  composer.value.focus()
})
&lt;/script&gt;

&lt;template&gt;
  &lt;textarea ref="composer" rows="4"&gt;&lt;/textarea&gt;
&lt;/template&gt;
</code></pre><p>This works because of a compiler trick. Vue looks at the <code>ref="composer"</code> attribute, finds a top-level variable in your <code>&lt;script setup&gt;</code> block called <code>composer</code>, and wires the two together for you. The name match is the whole mechanism.</p><p>That match is also the limitation. The <code>ref</code> attribute has to be a static string, and your variable has to be named exactly the same thing.</p><p>Vue 3.5 adds <code>useTemplateRef</code>, which takes the name as a regular function argument instead.</p><p><code>MessageBox.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
import { useTemplateRef, onMounted } from 'vue'

const el = useTemplateRef('composer')

onMounted(() =&gt; {
  el.value.focus()
})
&lt;/script&gt;

&lt;template&gt;
  &lt;textarea ref="composer" rows="4"&gt;&lt;/textarea&gt;
&lt;/template&gt;
</code></pre><p>Let&rsquo;s break it down. <code>useTemplateRef('composer')</code> gives you back a shallow ref, and Vue points it at whichever element is tagged <code>ref="composer"</code>. The value is <code>null</code> until the component mounts, and it goes back to <code>null</code> when the element is unmounted or hidden by a <code>v-if</code>.</p><p>Notice that the variable is now called <code>el</code> and nothing broke. The string is what binds, so you can name the variable whatever reads best.</p><p>One detail worth knowing. The ref you get back is typed <code>readonly</code>, and Vue warns you if you assign to it in development. That&rsquo;s a feature! Vue owns that value, and in the old pattern nothing stopped you from accidentally clobbering it. More safe, more better, I guess.</p><p>The part we actually care about is that the name can now come from outside the component, like an argument to a composable.</p><p><code>useCursorAtEnd.js</code></p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token keyword">import</span> <span class="token punctuation">{</span> useTemplateRef<span class="token punctuation">,</span> onMounted <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'vue'</span>

<span class="token keyword">const</span> SELECTABLE <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token string">'text'</span><span class="token punctuation">,</span> <span class="token string">'search'</span><span class="token punctuation">,</span> <span class="token string">'url'</span><span class="token punctuation">,</span> <span class="token string">'tel'</span><span class="token punctuation">,</span> <span class="token string">'password'</span><span class="token punctuation">]</span>

<span class="token keyword">export</span> <span class="token keyword">function</span> <span class="token function">useCursorAtEnd</span><span class="token punctuation">(</span>fieldName<span class="token punctuation">)</span> <span class="token punctuation">{</span>
  <span class="token keyword">const</span> field <span class="token operator">=</span> <span class="token function">useTemplateRef</span><span class="token punctuation">(</span>fieldName<span class="token punctuation">)</span>

  <span class="token function">onMounted</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
    <span class="token keyword">const</span> el <span class="token operator">=</span> field<span class="token punctuation">.</span>value
    <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>el<span class="token punctuation">)</span> <span class="token keyword">return</span>

    el<span class="token punctuation">.</span><span class="token function">focus</span><span class="token punctuation">(</span><span class="token punctuation">)</span>

    <span class="token keyword">if</span> <span class="token punctuation">(</span>el<span class="token punctuation">.</span>tagName <span class="token operator">!==</span> <span class="token string">'TEXTAREA'</span> <span class="token operator">&amp;&amp;</span> <span class="token operator">!</span>SELECTABLE<span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>el<span class="token punctuation">.</span>type<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token keyword">return</span>

    el<span class="token punctuation">.</span><span class="token function">setSelectionRange</span><span class="token punctuation">(</span>el<span class="token punctuation">.</span>value<span class="token punctuation">.</span>length<span class="token punctuation">,</span> el<span class="token punctuation">.</span>value<span class="token punctuation">.</span>length<span class="token punctuation">)</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span>

  <span class="token keyword">return</span> field
<span class="token punctuation">}</span>
</code></pre><p>That one focuses a field and drops the cursor after the existing text, which is what you want for a rename box or an inline edit.</p><p>Focusing a field doesn&rsquo;t promise you anything about where the cursor lands. Browsers differ, so the user can end up at the start of the text or with the whole value selected, and either way they have to fix it before typing. Setting the range yourself is the only way to be sure.</p><p>Big disclaimer though. <code>setSelectionRange</code> only works on fields that support text selection, which means a <code>textarea</code> or an <code>input</code> of type <code>text</code>, <code>search</code>, <code>url</code>, <code>tel</code> or <code>password</code>. Point it at an <code>input type="email"</code> or an <code>input type="number"</code>, and the browser throws an <code>InvalidStateError</code> instead. That&rsquo;s what the <code>SELECTABLE</code> check is doing, because this composable takes the field name from the caller and can land on anything.</p><p>Now any component can call <code>useCursorAtEnd('composer')</code> and the composable finds the element on its own. It never has to care what that element is called, and you don&rsquo;t have to declare a ref in the component just to hand it over.</p><p>The <code>ref</code> attribute can also be a dynamic binding, so the name can be computed at runtime instead of hardcoded in the template. For a name that genuinely keeps changing, a function ref is still the tool, and it&rsquo;s clunkier to write.</p><p>One rule though: call <code>useCursorAtEnd</code> (or whatever your composable is called) at the top of your setup block. It reads the active component instance when it runs, so calling it from inside <code>onMounted</code> is already too late. Vue has placed the element by then, and a ref you set up at that point stays <code>null</code> until the next update.</p><p>To be quite honest with you, I don&rsquo;t think the plain <code>ref(null)</code> version is going away, and I don&rsquo;t plan to rewrite existing components. For a one-off focus call in a single file, it&rsquo;s fine and it&rsquo;s shorter. I reach for <code>useTemplateRef</code> when the name needs to travel, which in practice means composables.</p><h2 id="unique-ids-without-hand-rolling-them">Unique IDs Without Hand-Rolling Them</h2><p>Here&rsquo;s a problem that has annoyed me for years. You build a reusable form field, and you need to connect the <code>&lt;label&gt;</code> to the <code>&lt;input&gt;</code> with a matching <code>for</code> and <code>id</code> pair. That pair has to be unique on the page, and a reusable component has no idea how many copies of itself exist.</p><p>So we usually have to improvise, I&rsquo;m sure you&rsquo;ve shipped at least one of these.</p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token comment">// a module-level counter</span>
<span class="token keyword">let</span> fieldCount <span class="token operator">=</span> <span class="token number">0</span>
<span class="token keyword">const</span> idFromCounter <span class="token operator">=</span> <span class="token template-string"><span class="token string">`field-</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>fieldCount<span class="token operator">++</span><span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span>

<span class="token comment">// or a random string</span>
<span class="token keyword">const</span> idFromRandom <span class="token operator">=</span> <span class="token template-string"><span class="token string">`field-</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>Math<span class="token punctuation">.</span><span class="token function">random</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">toString</span><span class="token punctuation">(</span><span class="token number">36</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">slice</span><span class="token punctuation">(</span><span class="token number">2</span><span class="token punctuation">)</span><span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">`</span></span>

<span class="token comment">// or make it the caller's problem, with a required prop</span>
<span class="token function">defineProps</span><span class="token punctuation">(</span><span class="token punctuation">{</span> id<span class="token punctuation">:</span> <span class="token punctuation">{</span> type<span class="token punctuation">:</span> String<span class="token punctuation">,</span> required<span class="token punctuation">:</span> <span class="token boolean">true</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre><p>The counter works until you server-render. The server and the browser each start counting from zero at their own moment, so the two IDs don&rsquo;t match and you get a hydration mismatch.</p><p>The random string is worse, since it produces a different value on every single render. The required prop works fine, but it pushes a boring detail onto everyone who uses your component.</p><p>Vue 3.5 gives us <code>useId</code>.</p><p><code>FormField.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
import { useId } from 'vue'

defineProps({
  label: { type: String, required: true },
})

const model = defineModel({ type: String })
const id = useId()
&lt;/script&gt;

&lt;template&gt;
  &lt;div class="field"&gt;
    &lt;label :for="id"&gt;{{ label }}&lt;/label&gt;
    &lt;input :id="id" v-model="model" /&gt;
  &lt;/div&gt;
&lt;/template&gt;
</code></pre><p><code>useId()</code> hands you a fresh string every time you call it, and no two calls anywhere in the app produce the same one. That is true whether you call it twice in one component or render 20 copies of the same field. The reason it&rsquo;s worth switching is that the server and the browser agree on the value, so nothing mismatches during hydration.</p><p>Two caveats before you go sprinkling it everywhere.</p><p>First, don&rsquo;t call <code>useId()</code> inside a <code>computed()</code>. A computed only runs when something reads it, and <code>useId()</code> reads whichever component is active at that moment, which may not be yours. The server and the browser won&rsquo;t reach that first read at the same point either, so you&rsquo;re back to a hydration mismatch. Call <code>useId()</code> once in your setup block and read that variable from the computed.</p><p>Second, if you mount more than one Vue app on the same page, the generated IDs can collide across apps. There&rsquo;s a config for that, and you set it per app.</p><p><code>main.js</code></p><pre class=" language-javascript"><code class="prism  language-javascript">app<span class="token punctuation">.</span>config<span class="token punctuation">.</span>idPrefix <span class="token operator">=</span> <span class="token string">'checkout'</span>
</code></pre><p>Every ID from that app now starts with <code>checkout-</code>, so it can&rsquo;t clash with IDs from the app next to it.</p><h2 id="reactive-props-destructure-became-the-default">Reactive Props Destructure Became the Default</h2><p>This one changes the meaning of code you may already have written, so it&rsquo;s the one to read carefully.</p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token keyword">const</span> <span class="token punctuation">{</span> total <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">,</span> label <span class="token operator">=</span> <span class="token string">'Items'</span> <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">defineProps</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token string">'total'</span><span class="token punctuation">,</span> <span class="token string">'label'</span><span class="token punctuation">]</span><span class="token punctuation">)</span>
</code></pre><p>In Vue 3.4 and earlier, destructuring props like that quietly broke reactivity. You got the value at setup time, frozen forever, and updating the prop from the parent did nothing. It was a well-known footgun.</p><p>In 3.5 the compiler rewrites every access to a destructured prop back into <code>props.total</code> for you, so it&rsquo;s reactive and updates normally.</p><p>The nice side effect is that prop defaults are now just JavaScript default values, which is a lot more pleasant than a <code>default</code> key in an options object. It&rsquo;s especially nice with type-based declarations, where you used to need <code>withDefaults</code>.</p><p>Big disclaimer though. Reactivity survives inside your template and inside computed properties, but the moment you pass a destructured prop as an argument to a function, you&rsquo;re handing over a plain value and the tracking stops.</p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token keyword">const</span> <span class="token punctuation">{</span> userId <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token function">defineProps</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token string">'userId'</span><span class="token punctuation">]</span><span class="token punctuation">)</span>

<span class="token function">watch</span><span class="token punctuation">(</span>userId<span class="token punctuation">,</span> fetchUser<span class="token punctuation">)</span> <span class="token comment">// compile error, userId is a plain string here</span>

<span class="token function">watch</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> userId<span class="token punctuation">,</span> fetchUser<span class="token punctuation">)</span> <span class="token comment">// correct</span>
</code></pre><p>Same rule for your own composables. Hand over <code>() =&gt; userId</code> instead of <code>userId</code>. Inside the composable, <code>toValue()</code> will unwrap it for you and keep the dependency tracked. If you already write composables that accept getters, nothing changes for you.</p><p>This last bit may be something worth linting for in big codebases.</p><h2 id="onwatchercleanup-for-cancelling-work-in-flight">onWatcherCleanup for Cancelling Work in Flight</h2><p>Watchers that kick off async work have always needed a way to cancel the previous run. The old approach was the third argument of the watcher callback, usually called <code>onCleanup</code>. Vue 3.5 adds <code>onWatcherCleanup</code> as an import, so the cleanup registration is a normal function call instead of a parameter you have to remember to accept.</p><p><code>SearchResults.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
import { ref, watch, onWatcherCleanup } from 'vue'

const query = ref('')
const results = ref([])

watch(query, async (newQuery) =&gt; {
  const controller = new AbortController()
  onWatcherCleanup(() =&gt; controller.abort())

  try {
    const response = await fetch(
      `https://myapp.com/search?q=${encodeURIComponent(newQuery)}`,
      { signal: controller.signal }
    )

    if (!response.ok) throw new Error('Search request failed')

    results.value = await response.json()
  } catch (error) {
    if (error.name !== 'AbortError') throw error
  }
})
&lt;/script&gt;

&lt;template&gt;
  &lt;input v-model="query" type="search" /&gt;
&lt;/template&gt;
</code></pre><p>This abort-the-previous-request shape is the one the Vue docs use in their <a target="_blank" href="https://vuejs.org/guide/essentials/watchers.html#side-effect-cleanup">side effect cleanup</a> section, and their version is worth a read too.</p><p>Let&rsquo;s break it down. Every time <code>query</code> changes, we build a fresh <code>AbortController</code> and register its <code>abort</code> as the cleanup for this run.</p><p>If the user types another character before the request comes back, Vue runs the cleanup first, the in-flight request is aborted, and only then does the new callback start. No more race where an older response lands after a newer one and overwrites your results.</p><p>Notice where the <code>onWatcherCleanup</code> call sits. It has to run during the synchronous part of the callback, which means before the first <code>await</code>. Put it after the fetch, and it will not register, because by then Vue has moved on and no longer knows which watcher you mean.</p><p>Vue does warn you in development rather than failing quietly, so check your console if a stale request sneaks through. If you genuinely need to register cleanup after an <code>await</code>, keep using the <code>onCleanup</code> parameter, which doesn&rsquo;t have that restriction.</p><p>The <code>catch</code> block is there because aborting a fetch makes it reject with an <code>AbortError</code>. That rejection is expected, so we swallow that one and rethrow everything else.</p><h2 id="deferred-teleport">Deferred Teleport</h2><p><code>&lt;Teleport&gt;</code> has always had one rule that surprises people. It looks for its destination the moment it mounts, and if that element isn&rsquo;t on the page yet, it gives up. So this fails.</p><p><code>AppLayout.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;template&gt;
  &lt;Teleport to="#drawer-slot"&gt;
    &lt;p&gt;I never arrive&lt;/p&gt;
  &lt;/Teleport&gt;

  &lt;div id="drawer-slot"&gt;&lt;/div&gt;
&lt;/template&gt;
</code></pre><p>The <code>&lt;div&gt;</code> is right there in the same template. But Teleport looks for its target during the same mounting pass, and at that point the <code>&lt;div&gt;</code> doesn&rsquo;t exist yet. The usual workarounds were moving the target into <code>index.html</code> or wrapping things in <code>v-if</code> plus <code>nextTick</code>.</p><p>Vue 3.5 adds a <code>defer</code> prop that waits until the current render cycle finishes before looking for the target.</p><p><code>AppLayout.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;template&gt;
  &lt;Teleport defer to="#drawer-slot"&gt;
    &lt;p&gt;I arrive on time&lt;/p&gt;
  &lt;/Teleport&gt;

  &lt;div id="drawer-slot"&gt;&lt;/div&gt;
&lt;/template&gt;
</code></pre><p>That&rsquo;s the whole fix, and it kills the ugliest workaround on this list.</p><p>One limit to know about. The wait is short. <code>defer</code> holds off until the current render pass is done, and that&rsquo;s it, so the target still has to exist by the time that pass ends. A container that only appears once a fetch resolves is already too late, and you get the same missing-target error you started with.</p><p>The place I actually use <code>defer</code> is layout components that own their own portal containers, since forcing those containers into the root HTML file feels wrong.</p><h2 id="lazy-hydration-if-you-server-render">Lazy Hydration, If You Server-Render</h2><p>Last one, and it only matters if you&rsquo;re doing SSR. Normally every component in a server-rendered page gets hydrated as soon as the JavaScript loads, whether the user can see it or not. A comments section three screens down costs you the same startup work as the thing at the top of the page.</p><p>Vue 3.5 lets an async component decide when it hydrates.</p><p><code>CommentsPanel.js</code></p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token keyword">import</span> <span class="token punctuation">{</span> defineAsyncComponent<span class="token punctuation">,</span> hydrateOnVisible <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'vue'</span>

<span class="token keyword">const</span> CommentsSection <span class="token operator">=</span> <span class="token function">defineAsyncComponent</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
  loader<span class="token punctuation">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token keyword">import</span><span class="token punctuation">(</span><span class="token string">'./CommentsSection.vue'</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
  hydrate<span class="token punctuation">:</span> <span class="token function">hydrateOnVisible</span><span class="token punctuation">(</span><span class="token punctuation">{</span> rootMargin<span class="token punctuation">:</span> <span class="token string">'200px'</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre><p>Now the markup ships and renders, but the component isn&rsquo;t hydrated until it scrolls near the viewport, so nothing inside it is interactive yet. There are four built-in strategies.</p><ul><li><strong><code>hydrateOnVisible(options)</code></strong>: hydrates when the element comes into view, using <code>IntersectionObserver</code>. The options go straight to the observer, so <code>rootMargin</code> lets you start early. This is my default for anything below the fold.</li><li><strong><code>hydrateOnIdle(timeout)</code></strong>: hydrates inside a <code>requestIdleCallback</code>, and you can cap how long it&rsquo;s willing to wait (it defaults to 10 seconds). Good for widgets that sit off to the side but still get clicked.</li></ul><p>The other two are <code>hydrateOnInteraction(events)</code>, which waits for an event and then replays it so the first click isn&rsquo;t lost, and <code>hydrateOnMediaQuery(query)</code>, which stays asleep until the media query you give it starts matching.</p><p>Notice that <code>hydrateOnVisible</code> is its own import. That&rsquo;s on purpose, so your bundle only ships the strategies you actually use.</p><h2 id="wrapping-up">Wrapping Up</h2><p>None of this is going to change how you build Vue apps. That&rsquo;s the point of a minor release. What it does is remove six small annoyances, and three of them (<code>useId</code>, reactive props destructure and <code>onWatcherCleanup</code>) show up in the kind of code I write almost every day.</p><p>If you&rsquo;re on 3.4 and you skipped the upgrade, the reactive props destructure change is the one to look at first, since it turns a footgun into working code.</p><p>If you&rsquo;re already on 3.5 or later without knowing what came with it, go rewrite one form field with <code>useId</code> and enjoy deleting the counter.</p><p>Happy upgrading!</p><hr /><blockquote><p>Have you explored the Progress Kendo UI for <a target="_blank" href="https://www.telerik.com/kendo-vue-ui">Vue component library</a> yet? It comes with a free 30-day trial, so go for it!</p><br /><p><a href="https://www.telerik.com/try/kendo-vue-ui" target="_blank" class="Btn">Try Now</a></p></blockquote>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:057c1346-1924-44cd-82f2-0872d9f7fc77</id>
    <title type="text">Enhancing Blazor User Experience with Prebuilt Editors</title>
    <summary type="text">These editor-like components can help you improve the user experience of your Blazor application, with settings and customizations that adapt to the scenario you need.</summary>
    <published>2026-11-24T21:26:35Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Héctor Pérez </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/enhancing-blazor-user-experience-prebuilt-editors"/>
    <content type="text"><![CDATA[<p><span class="featured">These editor-like components can help you improve the user experience of your Blazor application, with settings and customizations that adapt to the scenario you need.</span></p><p>If you have developed projects in Blazor, you&rsquo;ve likely had to create some kind of form using Blazor controls.</p><p>Although the platform provides native components such as <code>InputText</code>, <code>InputNumber</code> or <code>InputDate</code>, during development we realize we need specialized components to allow displaying interactive calendars, color pickers or rating controls.</p><p>In these cases, the prebuilt controls from the Progress Telerik UI for <a target="_blank" href="https://www.telerik.com/blazor-ui">Blazor library</a> can help us significantly by providing advanced editor components that drastically improve the user experience, without you having to write additional code. Let&rsquo;s take a closer look at how they can help!</p><h2 id="comparing-native-components-vs.-telerik-editors">Comparing Native Components vs. Telerik Editors</h2><p>Blazor offers a number of basic input components, such as:</p><ul><li><code>InputText</code> for text fields</li><li><code>InputNumber</code> for basic numeric fields</li><li><code>InputDate</code> for date selection</li><li><code>InputSelect</code> for dropdown lists</li><li><code>InputCheckbox</code> for checkboxes</li><li><code>InputTextArea</code> for multi-line text areas</li></ul><p>Although the above components serve their purpose for basic scenarios, they lack features that are necessary when building serious, functional applications, such as applying custom visual formatting, input masks, autocomplete, among others.</p><p>On the other hand, the category of <strong>Editors</strong> in Telerik UI for Blazor includes more than 20 specialized components that are not available natively for Blazor, including:</p><ul><li><code>TelerikColorPicker</code>: Color picker with palette and HSV gradient</li><li><code>TelerikRating</code>: Component for entering a configurable star rating</li><li><code>TelerikSignature</code>: Allows capturing digital signatures in base64 format</li><li><code>TelerikAutoComplete</code>: Search with suggestions as the user types</li><li><code>TelerikMaskedTextBox</code>: Text boxes with masks for phone numbers, cards, etc.</li><li><code>TelerikDateRangePicker</code>: Date range selection</li></ul><p>The above components provide a way to build forms and applications more quickly, since otherwise you would have to build them from scratch or resort to external JavaScript libraries that require interop that can be somewhat complex.</p><p>There are some additional reasons why it&rsquo;s convenient to use Telerik components. First, all editors integrate seamlessly with Blazor&rsquo;s form validation system.</p><p>Additionally, Telerik components adhere to accessibility standards without you having to configure anything else. They also have full support for different cultures, date formats, currencies and RTL direction.</p><h2 id="creating-a-form-using-telerik-for-blazor-ui-editors">Creating a Form Using Telerik for Blazor UI Editors</h2><p>Let&rsquo;s look at the benefits of the Telerik editors by creating a user profile form to see their capabilities.</p><h3 id="creating-a-project-with-telerik-editors-for-blazor">Creating a Project with Telerik Editors for Blazor</h3><p>Let&rsquo;s start by creating a Blazor project using the <strong>Blazor Web App</strong> template. We&rsquo;ll select an <strong>Interactive render mode</strong> of <strong>Server</strong> and <strong>Interactivity location</strong> of <strong>Global</strong>.</p><p>To install the Telerik components, you can use the <a target="_blank" href="https://www.telerik.com/blazor-ui/documentation/getting-started/web-app#set-up-telerik-development-environment">prebuilt Telerik template</a> and follow the quick-start guide, or, if you want to add the components to an existing project, you can also do so <a target="_blank" href="https://www.telerik.com/blazor-ui/documentation/getting-started/workflow-details">by following this guide</a>.</p><p>Now let&rsquo;s move on to creating a data model to bind to the UI components.</p><h3 id="creating-a-data-model">Creating a Data Model</h3><p>We&rsquo;ll create a data model that allows us to build a logical representation of a user&rsquo;s profile. For this, we&rsquo;ll create a class called <code>UserProfile</code> that will look like the following:</p><pre class=" language-csharp"><code class="prism  language-csharp"><span class="token keyword">public</span> <span class="token keyword">class</span> <span class="token class-name">UserProfile</span>
<span class="token punctuation">{</span>
    <span class="token keyword">public</span> <span class="token keyword">string</span> FullName <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">string</span><span class="token punctuation">.</span>Empty<span class="token punctuation">;</span>
    <span class="token keyword">public</span> DateTime<span class="token operator">?</span> BirthDate <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
    <span class="token keyword">public</span> <span class="token keyword">int</span><span class="token operator">?</span> Age <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
    <span class="token keyword">public</span> <span class="token keyword">string</span> FavoriteColor <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token string">"rgb(33, 150, 243)"</span><span class="token punctuation">;</span>
    <span class="token keyword">public</span> <span class="token keyword">double</span> SatisfactionRating <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
    <span class="token keyword">public</span> <span class="token keyword">string</span> Signature <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">string</span><span class="token punctuation">.</span>Empty<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
</code></pre><p>The model above reflects properties characteristic of a user profile, such as <code>FullName</code>, <code>BirthDate</code> and <code>Age</code>. Additionally, we added some extra properties to represent favorite color, satisfaction rating and signature.</p><h3 id="building-a-form-page-using-prebuilt-blazor-controls">Building a Form Page Using Prebuilt Blazor Controls</h3><p>Let&rsquo;s create a page so a user can enter their user profile data. We&rsquo;ll do this in parts so you can see the power of the Blazor components.</p><p>First, let&rsquo;s create a component called <code>UserProfileForm.razor</code>, where we&rsquo;ll start by defining the overall structure of the component, such as the route from which it will be accessed, the title, among other things:</p><pre class=" language-xml"><code class="prism  language-xml">@page "/user-profile"
@using UserProfileDemo.Models
@rendermode InteractiveServer

<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>PageTitle</span><span class="token punctuation">&gt;</span></span>User Profile<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>PageTitle</span><span class="token punctuation">&gt;</span></span>

<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>h1</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>mb-4<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>User Profile Form<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>h1</span><span class="token punctuation">&gt;</span></span>

<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>text-muted mb-4<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
    Fill in your profile information using the enhanced editor controls below.
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
</code></pre><p>Now, let&rsquo;s analyze the integration of the Telerik components into the form.</p><h3 id="using-teleriktextbox-as-text-inputs">Using TelerikTextBox as Text Inputs</h3><p>The first component we will add is a <code>TelerikTextBox</code>, which will be used to get the user&rsquo;s name. Although at first glance it may seem similar to a native <code>InputText</code>, it has additional features such as a built-in visual placeholder and prebuilt applicable styles that are consistent throughout the application.</p><p>This is how the section looks:</p><pre class=" language-xml"><code class="prism  language-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>row<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>col-md-8<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>card shadow-sm<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>card-body<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>mb-4<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>label</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>form-label fw-semibold<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>Full Name<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>label</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>TelerikTextBox</span> <span class="token attr-name">@bind-Value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@Profile.FullName<span class="token punctuation">"</span></span>
                                    <span class="token attr-name">Placeholder</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>Enter your full name<span class="token punctuation">"</span></span>
                                    <span class="token attr-name">Width</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>100%<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>

@code {
    private UserProfile Profile { get; set; } = new();
}
</code></pre><p>The result of the execution is the following:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/telerik-textbox-demo.gif?sfvrsn=d78086b_2" alt="Telerik TextBox component in action" /></p><p>In the code above, we can see how using properties such as <code>@bind-value</code>, <code>Placeholder</code> and <code>Width</code> facilitates creating intuitive UIs without having to add extra code.</p><h3 id="selecting-dates-with-the-telerikdatepicker">Selecting Dates with the TelerikDatePicker</h3><p>The next component we will analyze is the <code>TelerikDatePicker</code>. Blazor offers a native control called <code>InputDate</code>; however, it does not provide the best user experience.</p><p>The Telerik component offers a full visual calendar with month and year navigation, customizable formatting, the ability to disable specific dates, programmatic focus, the ability to specify an initial view, among many other features.</p><p>Its implementation looks like this:</p><pre class=" language-xml"><code class="prism  language-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>mb-4<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>label</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>form-label fw-semibold<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>Birth Date<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>label</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>TelerikDatePicker</span> <span class="token attr-name">@bind-Value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@Profile.BirthDate<span class="token punctuation">"</span></span>
                       <span class="token attr-name">Format</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>dd/MM/yyyy<span class="token punctuation">"</span></span>
                       <span class="token attr-name">Min</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@MinDate<span class="token punctuation">"</span></span>
                       <span class="token attr-name">Max</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@MaxDate<span class="token punctuation">"</span></span>
                       <span class="token attr-name">Placeholder</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>Select your birth date<span class="token punctuation">"</span></span>
                       <span class="token attr-name">Width</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>100%<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>

@code {
    private DateTime MinDate { get; set; } = new DateTime(1900, 1, 1);
    private DateTime MaxDate { get; set; } = DateTime.Today;
}
</code></pre><p>With the above code, we&rsquo;ve bound the picker value to a property with <code>@bind-value</code>, as well as specified a format for the date, a range of valid dates with <code>Min</code> and <code>Max</code>, a placeholder and a width. The result is the following:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/telerik-datepicker-date-selection.gif?sfvrsn=1824ed03_2" alt="User selecting a date with Telerik DatePicker control" /></p><p>Using the component helps provide a consistent visual style throughout the application, rather than relying on each browser&rsquo;s styles.</p><h3 id="adding-numeric-fields-using-the-teleriknumerictextbox">Adding Numeric Fields Using the TelerikNumericTextBox</h3><p>Another component we can use to accept number inputs is the <code>TelerikNumericTextBox</code>. It is much more powerful than a <code>InputNumber</code>, allowing you to define numeric formats, specify the number of decimal places, enable a clear button, among other features.</p><p>Here&rsquo;s an example of its use:</p><pre class=" language-xml"><code class="prism  language-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>mb-4<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>label</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>form-label fw-semibold<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>Age<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>label</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>TelerikNumericTextBox</span> <span class="token attr-name">@bind-Value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@Profile.Age<span class="token punctuation">"</span></span>
                           <span class="token attr-name">Min</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>1<span class="token punctuation">"</span></span>
                           <span class="token attr-name">Max</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>120<span class="token punctuation">"</span></span>
                           <span class="token attr-name">Step</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>1<span class="token punctuation">"</span></span>
                           <span class="token attr-name">Format</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>N0<span class="token punctuation">"</span></span>
                           <span class="token attr-name">Placeholder</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>Enter your age<span class="token punctuation">"</span></span>
                           <span class="token attr-name">Width</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>100%<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
</code></pre><p>The component in action looks as follows:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/telerik-numerictextbox-input-demo.gif?sfvrsn=3bc8946b_2" alt="Telerik NumericTextBox displaying numeric input and increment buttons" /></p><h3 id="selecting-colors-thanks-to-the-telerikcolorpicker">Selecting Colors Thanks to the TelerikColorPicker</h3><p>Now let&rsquo;s talk about some components that don&rsquo;t have a native equivalent in Blazor. The first of these is the <code>TelerikColorPicker</code>, which allows selecting a color using a visual picker, in addition to including a predefined color palette and an HSV canvas. This enables precise color selections.</p><p>The implementation looks similar to the following:</p><pre class=" language-xml"><code class="prism  language-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>mb-4<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>label</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>form-label fw-semibold<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>Favorite Color<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>label</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>TelerikColorPicker</span> <span class="token attr-name">@bind-Value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@Profile.FavoriteColor<span class="token punctuation">"</span></span>
                            <span class="token attr-name">ValueFormat</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>ColorFormat.Rgb<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>ms-3 align-middle<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
            Selected: <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>strong</span><span class="token punctuation">&gt;</span></span>@Profile.FavoriteColor<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>strong</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
</code></pre><p>In the code above we specify that the value will be stored in RGB format. The result of running it is the following:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/telerik-colorpicker-precision.gif?sfvrsn=1441eaf7_2" alt="Selecting an exact color with Telerik ColorPicker" /></p><p>Another thing I want to highlight is the ease of use of the Telerik UI for Blazor components, since you can see that by defining a couple of parameters we have a fully functional implementation. This avoided the need to use JavaScript interoperability or an external library.</p><h3 id="evaluating-satisfaction-with-the-telerikrating">Evaluating Satisfaction with the TelerikRating</h3><p>Another component that has no native equivalent, but is certainly required in a large number of apps, is <code>TelerikRating</code>, which allows the user to provide a rating via a visual star system. Its use is quite simple:</p><pre class=" language-xml"><code class="prism  language-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>mb-4<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>label</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>form-label fw-semibold<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>Satisfaction Level<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>label</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>TelerikRating</span> <span class="token attr-name">@bind-Value</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@Profile.SatisfactionRating<span class="token punctuation">"</span></span>
                       <span class="token attr-name">Max</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>5<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>ms-2 text-muted<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>(@Profile.SatisfactionRating / 5)<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
</code></pre><p>In the code above, we use the <code>Max</code> parameter to indicate the maximum number of stars. One advantage of the component is that its value will be updated automatically when clicking on a star. It also has built-in keyboard support and accessibility. Let&rsquo;s see the result:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/telerik-rating-star-control.gif?sfvrsn=91869af8_2" alt="TelerikRating star control displaying selectable stars" /></p><p>If we had wanted to create the component manually, we would probably have had to handle SVG files, events and accessibility logic.</p><h3 id="displaying-the-form-result">Displaying the Form Result</h3><p>To complete the form, we are going to add a couple of buttons of type <code>TelerikButton</code>, as well as a panel to show the summary of the selected data:</p><pre class=" language-xml"><code class="prism  language-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>d-flex gap-2<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>TelerikButton</span> <span class="token attr-name">OnClick</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@SubmitProfile<span class="token punctuation">"</span></span>
                   <span class="token attr-name">ThemeColor</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@ThemeConstants.Button.ThemeColor.Primary<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
        Save Profile
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>TelerikButton</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>TelerikButton</span> <span class="token attr-name">OnClick</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@ClearForm<span class="token punctuation">"</span></span>
                   <span class="token attr-name">ThemeColor</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@ThemeConstants.Button.ThemeColor.Base<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
        Clear
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>TelerikButton</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
...
@code {
    ...

    private bool ShowSummary { get; set; }
    private void SubmitProfile()
    {
        ShowSummary = true;
    }

    private void ClearForm()
    {
        Profile = new UserProfile();
        ShowSummary = false;
    }
}
</code></pre><p>Additionally, we will add a side column in which we will show the summary when the user clicks the <strong>Save Profile</strong> button:</p><pre class=" language-xml"><code class="prism  language-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>row<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>col-md-8<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
        ...

    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>col-md-4<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
        @if (ShowSummary)
        {
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>card shadow-sm border-success<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>card-header bg-success text-white<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>strong</span><span class="token punctuation">&gt;</span></span>Profile Summary<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>strong</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>card-body<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>strong</span><span class="token punctuation">&gt;</span></span>Name:<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>strong</span><span class="token punctuation">&gt;</span></span> @Profile.FullName<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>strong</span><span class="token punctuation">&gt;</span></span>Birth Date:<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>strong</span><span class="token punctuation">&gt;</span></span> @Profile.BirthDate?.ToString("dd/MM/yyyy")<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>strong</span><span class="token punctuation">&gt;</span></span>Age:<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>strong</span><span class="token punctuation">&gt;</span></span> @Profile.Age<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">&gt;</span></span>
                        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>strong</span><span class="token punctuation">&gt;</span></span>Favorite Color:<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>strong</span><span class="token punctuation">&gt;</span></span>
                        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>d-inline-block rounded-circle ms-2<span class="token punctuation">"</span></span><span class="token style-attr language-css"><span class="token attr-name">
                              <span class="token attr-name">style</span></span><span class="token punctuation">="</span><span class="token attr-value"><span class="token property">width</span><span class="token punctuation">:</span> <span class="token number">20</span>px<span class="token punctuation">;</span> <span class="token property">height</span><span class="token punctuation">:</span> <span class="token number">20</span>px<span class="token punctuation">;</span> <span class="token property">background-color</span><span class="token punctuation">:</span> <span class="token atrule"><span class="token rule">@Profile</span>.FavoriteColor<span class="token punctuation">;</span></span> <span class="token property">vertical-align</span><span class="token punctuation">:</span> middle<span class="token punctuation">;</span></span><span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
                        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
                        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>span</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>ms-1<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>@Profile.FavoriteColor<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>span</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
                    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>strong</span><span class="token punctuation">&gt;</span></span>Satisfaction:<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>strong</span><span class="token punctuation">&gt;</span></span> @Profile.SatisfactionRating / 5<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
                    @if (!string.IsNullOrEmpty(Profile.Signature))
                    {
                        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>strong</span><span class="token punctuation">&gt;</span></span>Signature:<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>strong</span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
                        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>img</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>@Profile.Signature<span class="token punctuation">"</span></span> <span class="token attr-name">alt</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>User signature<span class="token punctuation">"</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>img-fluid border rounded<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
                    }
                <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
        }
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
</code></pre><p>The code above allows us to validate that the data binding between controls and properties works correctly, as well as to demonstrate how easy it is to obtain information from the form using Telerik components:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/telerik-blazor-prebuilt-editors-demo.gif?sfvrsn=625ec2a3_2" alt="Final demo of Telerik Blazor prebuilt editors interface" /></p><p>With this implementation, we have created a form that allows users to enter information quickly and reliably, thanks to the Telerik for Blazor controls.</p><h2 id="conclusion">Conclusion</h2><p>Throughout this article, you&rsquo;ve been able to learn first-hand about some Telerik editor-like components that can help you improve the user experience. These components offer settings and customizations that adapt to any type of application, and they are constantly updated.</p><p>Another point to highlight is that the components&rsquo; documentation is quite comprehensive, allowing you to learn all their features in detail. It&rsquo;s time to improve your users&rsquo; experience by using these components.</p><p><a target="_blank" href="https://www.telerik.com/try/ui-for-blazor" class="Btn">Try Telerik UI for Blazor</a></p>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:3d0057ed-8814-4195-994a-969a7ce73f74</id>
    <title type="text">Understanding AI Agents</title>
    <summary type="text">As an AI engineer (the new full-stack developer), you need to understand an agent’s components through task execution, plus how the system retains progress and coordinates the work.</summary>
    <published>2026-11-23T20:13:31Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Hassan Djirdeh </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/understanding-ai-agents"/>
    <content type="text"><![CDATA[<p><span class="featured">As an AI engineer (the new full-stack developer), you need to understand an agent&rsquo;s components through task execution, plus how the system retains progress and coordinates the work.</span></p><p>An <strong>AI agent</strong> is a system that uses a <strong>model</strong> to choose actions toward a goal and adjust its next steps based on the results. The model is one component of the agent, supported by <strong>tools</strong> and <strong>software</strong> that manage execution and keep track of progress.</p><p>In <a target="_blank" href="https://www.telerik.com/blogs/what-makes-application-agentic">What Makes an Application Agentic?</a>, we explored what changes when a model can direct part of a task. In this article, we&rsquo;ll look at an agent&rsquo;s components and follow a task through execution, including how the system retains progress and coordinates the work.</p><h2 id="what-makes-up-an-agent">What Makes Up an Agent?</h2><p>Consider the project management application from the previous article, where a support feature investigated failed data exports. The same application could also prepare release status reports.</p><p>A team lead asks what work remains for an upcoming release and whether anything is blocked. An agent checks the task records and drafts a report with links to the relevant tasks for the team lead to review.</p><p>The model needs descriptions of the operations it can request, while application code handles execution. The following components share that work:</p><table><style>table, th, td {
  border: 1px;
  border-color: #bdbdba;
  border-style: dotted;
  border-collapse: collapse;
  margin-right: auto;
  padding:0in 5.4pt 0in 5.4pt;
  text-align :left;
}
</style>
<thead><tr><th>Component</th><th>Responsibility</th><th>In the Release Reporting Feature</th></tr></thead><tbody><tr><td><strong>Model</strong></td><td>Interprets available information and selects a next step</td><td>Decides which task needs a closer look</td></tr><tr><td><strong>Instructions</strong></td><td>Describe the goal and how the agent should approach it</td><td>Ask for a report grounded in task records, with unresolved questions identified</td></tr><tr><td><strong>Tools</strong></td><td>Expose operations the model can request</td><td>List tasks for a release or retrieve a task&rsquo;s details</td></tr><tr><td><strong>Task state</strong></td><td>Records information about the work in progress</td><td>Retains the selected release and the task records already examined</td></tr><tr><td><strong>Runtime</strong></td><td>Manages execution around model calls</td><td>Checks tool requests, obtains results and decides whether execution can continue</td></tr></tbody></table><br /><p>We can implement the runtime in our backend or use a framework or hosted service. Instructions can tell the model to respect access restrictions, but the code handling a tool request must enforce them.</p><p>The model choice, instructions and available tools form part of the agent&rsquo;s reusable configuration. We&rsquo;ll use <strong>run</strong> to mean one attempt to carry out a task using that configuration. The same release reporting agent could prepare reports for different releases, with each run having its own request and execution history.</p><h2 id="following-a-task-through-the-agent-loop">Following a Task Through the Agent Loop</h2><p>An <strong>agent loop</strong> repeatedly calls the model with the information gathered so far. If the model requests a tool, the runtime checks the request and executes the permitted operation, then supplies its result in the next model call. If the model produces an answer, the runtime can return it to the user and end the loop.</p><p></p><p>For the release report, the loop shown above could work as follows:</p><ol><li><p><strong>Start the run.</strong> The application records the team lead&rsquo;s request and the release identifier. The runtime supplies these to the model along with the reporting instructions and available tool definitions.</p></li><li><p><strong>Request the release tasks.</strong> The model selects <code>list_release_tasks</code> with the release identifier as an argument. The runtime validates the request and obtains the tasks through an operation that enforces the team lead&rsquo;s access rights.</p></li><li><p><strong>Return the result to the model.</strong> The runtime records the tool result and supplies it in the next model request. The returned list includes a blocked task that is waiting for another task to finish.</p></li><li><p><strong>Check the blocking task.</strong> The model requests <code>get_task_details</code> for that related task. After the request is checked and executed, the result shows that the task is still in progress.</p></li><li><p><strong>Prepare the report.</strong> The model summarizes the unfinished work and identifies the task holding up the blocked work. It links to both records so the team lead can check the details.</p></li></ol><p>In pseudocode, the runtime&rsquo;s execution loop could look like this:</p><pre class=" language-py"><code class="prism  language-py">context <span class="token operator">=</span> <span class="token punctuation">[</span>instructions<span class="token punctuation">,</span> user_request<span class="token punctuation">]</span>

<span class="token keyword">for</span> step <span class="token keyword">in</span> <span class="token number">1</span><span class="token punctuation">.</span><span class="token punctuation">.</span>max_steps<span class="token punctuation">:</span>
    response <span class="token operator">=</span> call_model<span class="token punctuation">(</span>context<span class="token punctuation">,</span> tool_definitions<span class="token punctuation">)</span>
    context<span class="token punctuation">.</span>append<span class="token punctuation">(</span>response<span class="token punctuation">)</span>
    <span class="token keyword">if</span> response<span class="token punctuation">.</span>is_final_answer<span class="token punctuation">:</span>
        <span class="token keyword">return</span> response<span class="token punctuation">.</span>answer

    <span class="token keyword">for</span> call <span class="token keyword">in</span> response<span class="token punctuation">.</span>tool_calls<span class="token punctuation">:</span>
        validate<span class="token punctuation">(</span>call<span class="token punctuation">,</span> tool_definitions<span class="token punctuation">,</span> user_permissions<span class="token punctuation">)</span>
        result <span class="token operator">=</span> execute_tool<span class="token punctuation">(</span>call<span class="token punctuation">)</span>
        context<span class="token punctuation">.</span>append<span class="token punctuation">(</span>tool_result<span class="token punctuation">(</span>call<span class="token punctuation">.</span><span class="token builtin">id</span><span class="token punctuation">,</span> result<span class="token punctuation">)</span><span class="token punctuation">)</span>

<span class="token keyword">return</span> needs_attention<span class="token punctuation">(</span><span class="token string">"Step limit reached"</span><span class="token punctuation">)</span>
</code></pre><p>The <code>validate</code> check must succeed before a tool runs. It checks that the tool is available, its arguments are valid, and the user has permission to perform the operation. Each result is paired with its tool call so the model can use it in the next iteration. The <code>max_steps</code> limit bounds the number of model calls in this loop.</p><p>A tool definition describes what the operation does and the arguments it accepts. For <code>get_task_details</code>, that means specifying a required task identifier and explaining what the lookup returns.</p><p>The result from <code>list_release_tasks</code> should distinguish an empty task list from a permission error or service timeout. Otherwise, the model could interpret a failed lookup as evidence that there is no unfinished work.</p><p>We also need to distinguish requesting an operation from completing it. The execution record should show what actually ran and what it returned. A model saying that it checked a task is not evidence that the lookup succeeded.</p><h2 id="an-agent-run-has-a-lifecycle">An Agent Run Has a Lifecycle</h2><p>The loop describes how the agent takes steps, but a run also needs a beginning and a clear outcome. Some runs finish within one request to the application. Others need to pause for input or continue as background work.</p><p>For the reporting feature, we might track a run as <strong>running</strong>, <strong>waiting for input</strong>, <strong>completed</strong>, <strong>failed</strong> or <strong>cancelled</strong>. These are states we choose for the application rather than a universal set of agent statuses. Their purpose is to make the task&rsquo;s condition visible to the runtime and the person using the feature.</p><p>If the request doesn&rsquo;t identify a release clearly, the runtime can pause while the team lead selects one. Saving the run&rsquo;s state lets execution resume when that input arrives. Waiting for a person doesn&rsquo;t require keeping a model request open the whole time.</p><p>Execution limits provide another way to end a run. We can cap tool calls or set a time budget so a run cannot continue indefinitely. A service outage might leave the report incomplete, so the UI should explain what information could not be retrieved.</p><p>Producing a final response doesn&rsquo;t by itself establish that the task succeeded. The runtime can check that a report has the required fields and valid task references. The team lead still needs to review whether the report&rsquo;s explanation is supported by those records.</p><h2 id="state-and-memory-preserve-progress">State and Memory Preserve Progress</h2><p>Continuing a run requires retaining more than its latest response. The <strong>short-term memory</strong> used during a task can include previous tool results and findings that later model calls need. The application also tracks execution state, such as which operation is pending and whether the run is waiting for input.</p><p>For the release report, the retained information should include the release identifier and the task records already retrieved. It should also retain which task is holding up the blocked work, so later model calls can use that finding without repeating the lookup.</p><p>Stored state and <strong>model context</strong> serve different purposes. State holds information the application retains, while context is the information supplied for a particular model call. We might store all retrieved task records but send only the relevant records and a summary of earlier findings in the next request. Keeping the original records available lets us check details that a summary leaves out.</p><p>If a run needs to survive a process restart, its state must be saved to durable storage. We can save a <strong>checkpoint</strong> that <a target="_blank" href="https://learn.microsoft.com/en-us/agent-framework/workflows/checkpoints">records pending work alongside accumulated state</a>, allowing execution to continue from that point. Conversation history alone may not tell the runtime which operation still needs to finish.</p><p>Preserving a run so it can resume is different from <strong>long-term memory</strong>, which retains selected information for use across tasks or sessions. A team&rsquo;s preferred report format could be reused across future reporting runs. The current status of a release should still come from its task records, and long-term memory isn&rsquo;t required to complete an individual report.</p><h2 id="orchestration-coordinates-the-work">Orchestration Coordinates the Work</h2><p>An agent run often forms part of a larger application workflow. <strong>Orchestration</strong> is the logic that coordinates model calls and tools with the rest of that workflow. The runtime carries out this logic, including when to continue execution or wait for input.</p><p>Orchestration applies to both <a target="_blank" href="https://docs.cloud.google.com/architecture/choose-agentic-ai-architecture-components#agent_design_patterns">single-agent and multi-agent systems</a>. We can implement the coordination in application code or use a framework to handle parts of it.</p><p>For release reporting, the application might always validate the selected release before starting the agent and save the resulting draft afterward. Within those fixed steps, the model chooses which task details to inspect. If several requested lookups are independent, the runtime could execute them concurrently and associate each result with the correct request.</p><p>Error handling also belongs in this coordination. A temporary service error may justify a limited retry, while an access restriction needs to be resolved before retrying the same request. The runtime can enforce retry limits and end the run if requests keep failing.</p><p>Some features benefit from delegating work to more than one agent. A larger reporting feature might assign separate agents to inspect different projects before combining their findings. Each would need a defined scope and a clear way to pass results back. We would also need to decide what happens if one cannot finish. A single agent is a reasonable starting point until separate responsibilities justify that additional coordination.</p><h2 id="wrap-up">Wrap-up</h2><p>Understanding an agent means being able to follow a task through the system. We should be able to explain what information the model received, which operation it requested and what result informed the next step.</p><p>Saved state allows that work to continue, while orchestration manages how it fits into the application&rsquo;s workflow.</p><p>For more on building AI-powered applications and agents with Progress, check out the following resources:</p><ul><li><a target="_blank" href="https://www.telerik.com/nexus">Progress Agent Engineering observability platform</a></li><li><a target="_blank" href="https://www.progress.com/">Progress Software: AI-Powered Applications</a></li><li><a target="_blank" href="https://www.progress.com/agentic-rag">Progress Agentic RAG</a></li><li><a href="https://www.telerik.com/blogs/tag/ai-engineering-basics" target="_blank">Read more: AI Engineering Basics</a></li></ul>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:83d74a5c-4a32-4366-9872-333add42e165</id>
    <title type="text">Build This Secret Santa UI in .NET MAUI</title>
    <summary type="text">Let’s practice our .NET MAUI skills by creating this fun Secret Santa app.</summary>
    <published>2026-11-23T17:23:43Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Leomaris Reyes </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/build-secret-santa-ui-net-maui"/>
    <content type="text"><![CDATA[<p><span class="featured">Let&rsquo;s practice our .NET MAUI skills by creating this fun Secret Santa app.</span></p><p>I don&rsquo;t know about you, but for me, Christmas is the most wonderful time of the year! ❤️ It&rsquo;s a time to be with our loved ones, reflect on everything we&rsquo;ve accomplished, set new goals, and keep working toward the dreams we want to achieve.</p><p>And what better way to enjoy this beautiful season than by combining it with something else we&rsquo;re passionate about: app development! Christmas gives us the perfect opportunity to unleash our creativity, step away from our usual routine, and keep learning while building beautiful interfaces filled with holiday spirit.</p><p>That&rsquo;s why, in this article, we&rsquo;ll recreate two screens of a Christmas-themed UI inspired by a design from <a target="_blank" href="https://dribbble.com/shots/20162373-Find-my-Santa-A-Secret-Santa-App">Dribbble</a>, using .NET MAUI.</p><p>And as I always say, <strong>practice is the best way to keep improving your skills!</strong></p><p>So grab your favorite cup of coffee, get comfortable and let&rsquo;s get started! ☕</p><h2 id="how-will-the-explanation-work">How Will the Explanation Work?</h2><p>So you can understand everything 100%, I&rsquo;ll explain how the process will work:</p><p>➖<strong>Visual diagram:</strong> Before we start, you&rsquo;ll see a diagram with a screenshot of the design we want to achieve. This design will be divided into blocks, each identified with a name and a color. Each one will be explained individually.</p><p>➖<strong>Code explanation per block:</strong> In addition to the written explanation, each screen includes a set of blocks with the exact code snippets you need to implement and achieve the final result.</p><p>➖<strong>Step-by-step visual progress:</strong> Each explanation will have its corresponding screenshot, so you can see the progress as we build the UI.</p><p>⚠️ For this design, we took inspiration from an original Dribbble UI, but made some adaptations and adjustments to align it with the goals of this article.</p><h2 id="-environment-setup"> Environment Setup</h2><p>You&rsquo;ll learn how to take advantage of some of the powerful Telerik UI for .NET MAUI components in this post. If you don&rsquo;t have the .NET MAUI library installed yet, visit the <a target="_blank" href="https://www.telerik.com/maui-ui/documentation/get-started/quickstart">quick start page</a>, which explains step-by-step how to install Telerik UI for .NET MAUI, download the license key, configure the Telerik package source and install the Telerik MCP server (if needed).</p><h2 id="breaking-down-the-design">Breaking Down the Design</h2><p>To make this easier to follow, I&rsquo;ve divided the design into clear blocks. We&rsquo;ll build each part one at a time, in the order you see below.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/01_initial_structure.png?sfvrsn=9a3634e6_2" title="Initial structure" alt="" /></p><p>Let&rsquo;s start implementing each step.</p><h2 id="header-step">1. Header Step</h2><p>Before we jump into our first step, there&rsquo;s something important to understand!</p><p>Both Step 1 and Step 2 belong to the same page. So, before adding any elements, we need to create the initial structure of our page, which we&rsquo;ll call <code>FindSantaPage.xaml</code>.</p><p>As you can see in the design, everything is arranged vertically. That&rsquo;s why we&rsquo;ll use a <code>VerticalStackLayout</code> as our main layout. It will contain all the elements we&rsquo;ll add throughout both steps.</p><p>Let&rsquo;s start with the basic structure:</p><pre class=" language-xml"><code class="prism  language-xml">&lt;VerticalStackLayout Padding="10,0" Spacing="10" Margin="15,0"&gt;

    &lt;!-- Step 1: Header --&gt;
    
    &lt;!-- Step 2: Invitation Details --&gt;

&lt;/VerticalStackLayout&gt;
</code></pre><p>Now we&rsquo;re ready!  Let&rsquo;s jump into our first step!</p><p>If you look closely at the header in our design, you&rsquo;ll notice that it contains just three elements:</p><ul><li><strong>App logo:</strong> The &ldquo;Find My Santa&rdquo; logo at the top.</li><li><strong>Santa image:</strong> Our adorable Santa Claus holding a Christmas gift.</li><li><strong>Welcome message:</strong> The text inviting the user to join the Secret Santa event.</li></ul><p>Pretty simple, right? And the best part is that we can recreate this entire section using just two types of controls: <strong>Image</strong> and <strong>Label.</strong></p><pre class=" language-xml"><code class="prism  language-xml">&lt;!-- Logo app--&gt; 
&lt;Image Source="findmysantalogo" WidthRequest="230"/&gt;

&lt;!--Santa's image--&gt; 
&lt;Image Source="santaclaus" WidthRequest="240"/&gt;

&lt;!-- Welcome message--&gt; 
&lt;Label Text="Ho-ho-ho!&amp;#10;You are invited to" FontSize="28" FontAttributes="Bold" TextColor="#535D70" HorizontalTextAlignment="Center" Margin="0,0,0,10" /&gt;
</code></pre><p>And here is the result:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/02_header_step.png?sfvrsn=419ea70e_2" title="Heder step" alt="" /></p><p>Now that our header step is ready, let&rsquo;s move on to the next step! </p><h2 id="invitation-details-step">2. Invitation Details Step</h2><p>We&rsquo;ve reached my favorite part of this UI!  In this step, we&rsquo;ll build three main elements:</p><ul><li><strong>A countdown timer:</strong> You&rsquo;ll see how we can create a really cool design using a Grid and Progress Telerik UI for .NET MAUI controls.</li><li><strong>A label and an input field:</strong> Where users can enter their names.</li><li><strong>A Join button:</strong> To complete the invitation section.</li></ul><p>Let&rsquo;s start with my favorite one: the countdown timer! </p><p>All the countdown elements will be placed inside a card with rounded corners. To achieve this effect, we&rsquo;ll use the <a target="_blank" href="https://www.telerik.com/maui-ui/border">Telerik RadBorder control</a>.</p><p>If you haven&rsquo;t added Telerik UI for .NET MAUI to your project yet, you can follow the instructions above to get it set up!</p><p>Then, add the Telerik namespace to your XAML page:</p><pre class=" language-xml"><code class="prism  language-xml">xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
</code></pre><p>Now we can use <strong>RadBorder</strong>! Our border needs a container to organize its content. For this, we&rsquo;ll use a Grid with five rows and three columns, allowing us to position all the countdown elements exactly where we want them.</p><p>Before adding the visual elements, let&rsquo;s create the basic structure of our card:</p><pre class=" language-xml"><code class="prism  language-xml">&lt;Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto" ColumnDefinitions="*,*,*" RowSpacing="6" Padding="0,0,0,10"&gt;

&lt;!-- Countdown elements go here --&gt;

&lt;/Grid&gt;
</code></pre><p>Pretty simple so far, right? </p><p>Now it&rsquo;s time to bring our card to life!</p><p>We&rsquo;ll add a second border to create the rounded red header effect, followed by the event title, countdown values, their corresponding labels (Days, Hours and Mins) and, finally, two labels displaying the number of members and the event budget.</p><p>Here&rsquo;s how everything comes together in XAML:</p><pre class=" language-xml"><code class="prism  language-xml">&lt;telerik:RadBorder Grid.Row="0" Grid.ColumnSpan="3" BackgroundColor="#FF4B50" BorderThickness="0" Padding="10,5" CornerRadius="10,10,0,0"&gt;

&lt;Label Text="Sasha's Secret Santa Event" FontSize="18" FontAttributes="Bold" TextColor="White" HorizontalTextAlignment="Center" /&gt;

&lt;/telerik:RadBorder&gt;

&lt;Label Grid.Row="1" Grid.ColumnSpan="3" Text="Shuffle will begin in" Margin="0,0,0,5" FontSize="13" TextColor="#535D70" HorizontalTextAlignment="Center" /&gt;

&lt;Label Grid.Row="2" Grid.Column="0" Text="2" FontSize="28" FontAttributes="Bold" TextColor="#535D70" HorizontalTextAlignment="Center" /&gt;

&lt;Label Grid.Row="3" Grid.Column="0" Text="Days" TextColor="#8993A5" HorizontalTextAlignment="Center" /&gt;

&lt;Label Grid.Row="2" Grid.Column="1" Text="16" FontSize="28" FontAttributes="Bold" TextColor="#535D70" HorizontalTextAlignment="Center" /&gt;

&lt;Label Grid.Row="3" Grid.Column="1" Text="Hours" TextColor="#8993A5" HorizontalTextAlignment="Center" /&gt;

&lt;Label Grid.Row="2" Grid.Column="2" Text="32" FontSize="28" FontAttributes="Bold" TextColor="#535D70" HorizontalTextAlignment="Center" /&gt;

&lt;Label Grid.Row="3" Grid.Column="2" Text="Mins" TextColor="#8993A5" HorizontalTextAlignment="Center" /&gt;

&lt;Label Grid.Row="5" Grid.Column="0" HorizontalTextAlignment="Center" Text="Members: 8" FontSize="14" TextColor="#FF4B50" /&gt;

&lt;Label Grid.Row="5" Grid.Column="2" HorizontalTextAlignment="Center" Text="Budget: $15" FontSize="14" TextColor="#FF4B50" /&gt;
</code></pre><p>And there we have it!  Our countdown card is ready!</p><p>Notice how the Grid makes it easy to organize everything into rows and columns without adding unnecessary nested layouts. </p><p>And here&rsquo;s what our countdown card looks like! </p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/03_invitation_details_step.png?sfvrsn=8c746673_2" title="Invitation details step" alt="" /></p><h2 id="wishlist-step">3. Wishlist Step</h2><p>We&rsquo;ve made it to the final step!  It&rsquo;s time to bring our wishlist screen to life!</p><p>Since this step introduces a new screen, we&rsquo;ll start by creating a new page called <code>SantaGiftPage.xaml</code>.</p><p>Just like we did with our first screen, we need a main layout to hold all the visual elements. And if you take a look at the design, you&rsquo;ll notice that everything is again arranged vertically. So, once again, we&rsquo;ll use our good friend, the <strong>VerticalStackLayout</strong>. </p><p>Here&rsquo;s how we&rsquo;ll set up the initial structure:</p><pre class=" language-xml"><code class="prism  language-xml">&lt;VerticalStackLayout Padding="10,0" Spacing="15" Margin="15,0"&gt;
 
    &lt;!-- Wishlist elements go here --&gt; 

&lt;/VerticalStackLayout&gt;
</code></pre><p>Now we&rsquo;re ready!  Let&rsquo;s start adding the components to our wishlist screen!</p><p>First, we&rsquo;ll add <strong>the gift image and the same countdown card</strong> we created in the previous step. Since we&rsquo;ve already built this component, we can reuse the same XAML code here!</p><pre class=" language-xml"><code class="prism  language-xml">&lt;Image Source="santagift" WidthRequest="170"/&gt; 

&lt;telerik:RadBorder BorderColor="#FF4B50" BorderThickness="1" BackgroundColor="White" CornerRadius="10"&gt;
 
    &lt;Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto" ColumnDefinitions="*,*,*" RowSpacing="6" Padding="0,0,0,10"&gt;
     
    &lt;telerik:RadBorder Grid.Row="0" Grid.ColumnSpan="3" BackgroundColor="#FF4B50" BorderThickness="0" Padding="10,5" CornerRadius="10,10,0,0"&gt; 
    &lt;Label Text="Sasha's Secret Santa Event" FontSize="18" FontAttributes="Bold" TextColor="White" HorizontalTextAlignment="Center" /&gt; 
    &lt;/telerik:RadBorder&gt;
 
    &lt;Label Grid.Row="1" Grid.ColumnSpan="3" Text="Shuffle will begin in" Margin="0,0,0,5" FontSize="13" TextColor="#535D70" HorizontalTextAlignment="Center" /&gt;
     
    &lt;Label Grid.Row="2" Grid.Column="0" Text="2" FontSize="28" FontAttributes="Bold" TextColor="#535D70" HorizontalTextAlignment="Center" /&gt;
    
    &lt;Label Grid.Row="3" Grid.Column="0" Text="Days" TextColor="#8993A5" HorizontalTextAlignment="Center" /&gt;
     
    &lt;Label Grid.Row="2" Grid.Column="1" Text="16" FontSize="28" FontAttributes="Bold" TextColor="#535D70" HorizontalTextAlignment="Center" /&gt;
    
    &lt;Label Grid.Row="3" Grid.Column="1" Text="Hours" TextColor="#8993A5" HorizontalTextAlignment="Center" /&gt;
     
    &lt;Label Grid.Row="2" Grid.Column="2" Text="32" FontSize="28" FontAttributes="Bold" TextColor="#535D70" HorizontalTextAlignment="Center" /&gt;
    
    &lt;Label Grid.Row="3" Grid.Column="2" Text="Mins" TextColor="#8993A5" HorizontalTextAlignment="Center" /&gt;
     
    &lt;Label Grid.Row="5" Grid.Column="0" HorizontalTextAlignment="Center" Text="Members: 8" FontSize="14" TextColor="#FF4B50" /&gt;
    
    &lt;Label Grid.Row="5" Grid.Column="2" HorizontalTextAlignment="Center" Text="Budget: $15" FontSize="14" TextColor="#FF4B50" /&gt;
 
&lt;/Grid&gt;
 
&lt;/telerik:RadBorder&gt;
</code></pre><p>Next, let&rsquo;s add <strong>the Wishlist title and gift options</strong>, where users can enter the gifts they&rsquo;d love to receive! </p><pre class=" language-xml"><code class="prism  language-xml">&lt;Label Text="Let's update your Wishlist" FontSize="21" FontAttributes="Bold" TextColor="#535D70" HorizontalTextAlignment="Center" Margin="0,0,0,10" /&gt;
 
&lt;telerik:RadButton BackgroundColor="#ebf4f9" HeightRequest="50" CornerRadius="10" TextColor="Black" Text="Something related to Star Wars"/&gt;
 
&lt;telerik:RadButton BackgroundColor="#ebf4f9" HeightRequest="50" CornerRadius="10" TextColor="Black" Text="A book"/&gt;
 
&lt;telerik:RadButton BackgroundColor="#ebf4f9" HeightRequest="50" CornerRadius="10" TextColor="Black" Text="Colorful Airpod Case"/&gt;
 
&lt;telerik:RadButton BackgroundColor="White" BorderColor="#FF4B50" BorderThickness="2" FontAttributes="Bold" HeightRequest="50" CornerRadius="10" TextColor="#FF4B50" Text="Add item"/&gt; 

&lt;telerik:RadButton BackgroundColor="#FF4B50" HeightRequest="50" CornerRadius="10" TextColor="White" Text="Update"/&gt;
</code></pre><p>And here&rsquo;s what our final screen looks like! </p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/04_wishlist_step.png?sfvrsn=6cb72ce2_2" title="Wishlist step" alt="" /></p><h2 id="conclusion">Conclusion</h2><p>And that&rsquo;s it! We did it!  See how, with just a few simple steps, we were able to recreate such a beautiful Christmas UI using .NET MAUI? </p><p>Along the way, we explored how to organize layouts using VerticalStackLayout and Grid, customize components with Telerik UI for .NET MAUI RadBorder and bring a festive UI to life!</p><p>I hope this article inspires you to keep exploring, experimenting and creating beautiful interfaces. Remember, a little creativity and practice can go a long way! ❤️</p><p>See you in the next article! &zwj;♀️</p><hr /><h3 id="try-telerik-ui-for-.net-maui">Try Telerik UI for .NET MAUI</h3><p>If you want to try out the full suite of .NET MAUI controls from Progress Telerik, download the free 30-day trial.</p><p><a target="_blank" href="https://www.telerik.com/try/ui-for-maui">Try Now</a></p>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:02f17065-86e8-4282-93fc-db81fc349493</id>
    <title type="text">Better Auth with Nuxt and SQLite</title>
    <summary type="text">This unofficial Better Auth Nuxt demo should allow you to integrate your preferred database. It uses Tailwind 4, Nuxt 4, latest shadcn-vue, page protection and SQLite for login.</summary>
    <published>2026-11-20T15:47:15Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Jonathan Gamble </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/better-auth-nuxt-sqlite"/>
    <content type="text"><![CDATA[<p><span class="featured">This unofficial Better Auth Nuxt demo should allow you to integrate your preferred database. It uses Tailwind 4, Nuxt 4, latest shadcn-vue, page protection and SQLite for login.</span></p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/image.png?sfvrsn=d7e40631_2" alt="Better Auth unofficial demo to showcase better-auth features and capabilities" /></p><p>The official <a target="_blank" href="https://github.com/nuxt-modules/better-auth">Better Auth Nuxt</a> repo does not seem to work correctly for me, and it&rsquo;s based on older Nuxt, Tailwind and <a target="_blank" href="https://www.shadcn-vue.com/docs/installation/nuxt">shadcn-vue</a>. I have updated it, added features and fixed security bugs allowing you to use whatever Better Auth <a target="_blank" href="https://better-auth.com/docs/adapters/mysql">database integrations</a> you like.</p><h2 id="tldr">TL;DR</h2><p>This demo uses <a target="_blank" href="https://tailwindcss.com/docs/installation/framework-guides/nuxt">Tailwind 4</a>, <a target="_blank" href="https://nuxt.com/">Nuxt 4</a>, latest <a target="_blank" href="https://www.shadcn-vue.com/docs/installation/nuxt">shadcn-vue</a>, has page protection, allows you to change your password and does not suffer from client loading problems. You log in using <a target="_blank" href="https://sqlite.org/">SQLite</a>, the session is automatically saved, and you can change your password and generate a password reset link.</p><h2 id="setup">Setup</h2><h3 id="nuxt-4">Nuxt 4</h3><p>First, generate a new Nuxt 4 repo.</p><pre class=" language-bash"><code class="prism  language-bash"><span class="token function">npm</span> create nuxt@latest
</code></pre><h3 id="tailwind">Tailwind</h3><p>Follow official instructions to install <a target="_blank" href="https://tailwindcss.com/docs/installation/framework-guides/nuxt">Tailwind 4</a>.</p><p>⚠️ DO NOT USE <a target="_blank" href="https://tailwindcss.nuxtjs.org/">Nuxt Tailwind Module</a> directly.</p><p>But, install it manually:</p><pre class=" language-bash"><code class="prism  language-bash"><span class="token function">npm</span> i -D @nuxtjs/tailwindcss
</code></pre><h3 id="vue-shadcn">Vue ShadCN</h3><p>Configure <a target="_blank" href="https://www.shadcn-vue.com/docs/installation/nuxt">ShadCN Vue for Nuxt</a>. You will need to install all components manually that you need.</p><pre class=" language-bash"><code class="prism  language-bash">npx shadcn-vue@latest add button
</code></pre><p> There is an error with the <code>all</code> flag, as it will try to install old modules. Unfortunately, the only work around is to install the components manually.</p><pre class=" language-bash"><code class="prism  language-bash">npx shadcn-vue@latest add --all
</code></pre><h3 id="better-auth">Better Auth</h3><p>Follow the <a target="_blank" href="https://better-auth.com/docs/installation">installation guide</a>. Here is a quick version.</p><p>Install the package. We will use <code>better-auth/vue</code>.</p><pre class=" language-bash"><code class="prism  language-bash"><span class="token function">npm</span> i better-auth
</code></pre><p>Generate config.</p><pre class=" language-bash"><code class="prism  language-bash">npx auth@latest generate
</code></pre><p>We will generate library files in a following section.</p><h3 id="install-temp-database">Install Temp Database</h3><p>Fastest <a target="_blank" href="https://github.com/WiseLibs/better-sqlite3">SQLite</a> in Node.js.</p><pre class=" language-bash"><code class="prism  language-bash"><span class="token function">npm</span> i better-sqlite3
</code></pre><h2 id="env">.env</h2><p>Setup your config.</p><pre class=" language-bash"><code class="prism  language-bash">BETTER_AUTH_URL<span class="token operator">=</span>http://localhost:3000 <span class="token comment"># Base URL of your app</span>
</code></pre><h2 id="nuxt-config">Nuxt Config</h2><p>Create the catch all server route.</p><pre class=" language-tsx"><code class="prism  language-tsx">// server/api/auth/[...all].ts

import { auth } from "~/lib/auth";

export default defineEventHandler((event) =&gt; {
return auth.handler(toWebRequest(event));
});
</code></pre><p>This will handle all authentication server requests.</p><h3 id="libauth-client.ts">lib/auth-client.ts</h3><p>Let&rsquo;s import the reusable client functions.</p><pre class=" language-tsx"><code class="prism  language-tsx">import { createAuthClient } from "better-auth/vue";

export const authClient = createAuthClient();

export const {
signIn,
signOut,
signUp,
useSession,
requestPasswordReset,
resetPassword,
changePassword
} = authClient;
</code></pre><h3 id="libauth.ts">lib/auth.ts</h3><p>Generate a better auth instance.</p><pre class=" language-tsx"><code class="prism  language-tsx">import Database from "better-sqlite3";
import { betterAuth } from "better-auth";

export const auth = betterAuth({
baseURL: process.env.BETTER_AUTH_URL || "http://localhost:3000",
database: new Database("./db.sqlite"),
emailAndPassword: {
enabled: true,
async sendResetPassword(url, user) {
console.log("Reset password url:", url);
},
},
});
</code></pre><p> You must config an email server later to send emails, for now you can just print the URL.</p><p> Our database will the the file <code>db.sqlite</code>. It will <em>NOT</em> persist when deployed, so you must you a different hosted database. This is for testing on</p><p><strong>Repo:</strong> <a target="_blank" href="https://github.com/jdgamble555/nuxt-better-auth-example">GitHub</a></p><h3 id="protect-your-pages">Protect Your Pages</h3><pre class=" language-tsx"><code class="prism  language-tsx">// middleware/auth.globals.ts

export default defineNuxtRouteMiddleware(async (to, from) =&gt; {
const session = await $fetch("/api/auth/get-session", {
headers: useRequestHeaders(["cookie"]),
}).catch(() =&gt; null);

const authPages = ["/sign-in", "/sign-up", "/forget-password", "/reset-password"];
const protectedPages = ["/dashboard", "/change-password"];

if (!session) {
if (protectedPages.includes(to.path)) {
return navigateTo("/");
}
}

if (session &amp;&amp; authPages.includes(to.path)) {
return navigateTo("/dashboard");
}
});
</code></pre><p> We don&rsquo;t want login pages to be seen when logged-in, and we don&rsquo;t want login-protected pages to be seen without a session. Our server auth handles these cookies and paths for us!</p><h3 id="change-password">Change Password</h3><pre class=" language-html"><code class="prism  language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span> <span class="token attr-name">lang</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>ts<span class="token punctuation">"</span></span> <span class="token attr-name">setup</span><span class="token punctuation">&gt;</span></span><span class="token script language-javascript">
<span class="token keyword">import</span> <span class="token punctuation">{</span> changePassword <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">"~/lib/auth-client.js"</span><span class="token punctuation">;</span>

<span class="token keyword">const</span> router <span class="token operator">=</span> <span class="token function">useRouter</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">const</span> currentPassword <span class="token operator">=</span> <span class="token function">ref</span><span class="token punctuation">(</span><span class="token string">""</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">const</span> newPassword <span class="token operator">=</span> <span class="token function">ref</span><span class="token punctuation">(</span><span class="token string">""</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token keyword">const</span> confirmPassword <span class="token operator">=</span> <span class="token function">ref</span><span class="token punctuation">(</span><span class="token string">""</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">const</span> handleChangePassword <span class="token operator">=</span> <span class="token keyword">async</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
  <span class="token keyword">if</span> <span class="token punctuation">(</span>confirmPassword<span class="token punctuation">.</span>value <span class="token operator">!==</span> newPassword<span class="token punctuation">.</span>value<span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token function">alert</span><span class="token punctuation">(</span><span class="token string">"Please enter the same password in both fields"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">return</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span>

  <span class="token keyword">await</span> <span class="token function">changePassword</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
    currentPassword<span class="token punctuation">:</span> currentPassword<span class="token punctuation">.</span>value<span class="token punctuation">,</span>
    newPassword<span class="token punctuation">:</span> newPassword<span class="token punctuation">.</span>value<span class="token punctuation">,</span>
    fetchOptions<span class="token punctuation">:</span> <span class="token punctuation">{</span>
      <span class="token function">onSuccess</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token function">alert</span><span class="token punctuation">(</span><span class="token string">"Password changed successfully"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        router<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token string">"/dashboard"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
      <span class="token function">onError</span><span class="token punctuation">(</span>context<span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token function">alert</span><span class="token punctuation">(</span>context<span class="token punctuation">.</span>error<span class="token punctuation">.</span>message<span class="token punctuation">)</span><span class="token punctuation">;</span>
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
  <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
</span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">&gt;</span></span>

<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>template</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>h-screen flex justify-center items-center<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Card</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>mx-auto max-w-sm<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>CardHeader</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>CardTitle</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>text-2xl<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>Change Password<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>CardTitle</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>CardDescription</span>
          <span class="token punctuation">&gt;</span></span>Enter your current password and choose a new one<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>CardDescription</span>
        <span class="token punctuation">&gt;</span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>CardHeader</span><span class="token punctuation">&gt;</span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>CardContent</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>form</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>grid gap-4<span class="token punctuation">"</span></span> <span class="token attr-name">@submit.prevent</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>handleChangePassword<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>grid gap-2<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Label</span> <span class="token attr-name">for</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>current-password<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>Current Password<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>Label</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Input</span>
              <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>current-password<span class="token punctuation">"</span></span>
              <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>password<span class="token punctuation">"</span></span>
              <span class="token attr-name">autocomplete</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>current-password<span class="token punctuation">"</span></span>
              <span class="token attr-name">required</span>
              <span class="token attr-name">v-model</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>currentPassword<span class="token punctuation">"</span></span>
              <span class="token attr-name">placeholder</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>Current Password<span class="token punctuation">"</span></span>
            <span class="token punctuation">/&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>grid gap-2<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Label</span> <span class="token attr-name">for</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>new-password<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>New Password<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>Label</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Input</span>
              <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>new-password<span class="token punctuation">"</span></span>
              <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>password<span class="token punctuation">"</span></span>
              <span class="token attr-name">autocomplete</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>new-password<span class="token punctuation">"</span></span>
              <span class="token attr-name">required</span>
              <span class="token attr-name">v-model</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>newPassword<span class="token punctuation">"</span></span>
              <span class="token attr-name">placeholder</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>New Password<span class="token punctuation">"</span></span>
            <span class="token punctuation">/&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>grid gap-2<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Label</span> <span class="token attr-name">for</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>confirm-password<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>Confirm Password<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>Label</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Input</span>
              <span class="token attr-name">id</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>confirm-password<span class="token punctuation">"</span></span>
              <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>password<span class="token punctuation">"</span></span>
              <span class="token attr-name">autocomplete</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>new-password<span class="token punctuation">"</span></span>
              <span class="token attr-name">required</span>
              <span class="token attr-name">placeholder</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>Confirm Password<span class="token punctuation">"</span></span>
              <span class="token attr-name">v-model</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>confirmPassword<span class="token punctuation">"</span></span>
            <span class="token punctuation">/&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Button</span> <span class="token attr-name">type</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>submit<span class="token punctuation">"</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>w-full<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>Change Password<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>Button</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>form</span><span class="token punctuation">&gt;</span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>CardContent</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>Card</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>template</span><span class="token punctuation">&gt;</span></span>
</code></pre><p> We import our <code>auth-client</code> functions to perform the client function for us. We <em>MUST</em> use a <code>form</code> to prevent warnings in Chrome, which is good practice anyway.</p><h3 id="dashboard">Dashboard</h3><pre class=" language-html"><code class="prism  language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span> <span class="token attr-name">setup</span> <span class="token attr-name">lang</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>ts<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span><span class="token script language-javascript">
<span class="token keyword">import</span> <span class="token punctuation">{</span> signOut <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">"~/lib/auth-client"</span><span class="token punctuation">;</span>

<span class="token keyword">const</span> router <span class="token operator">=</span> <span class="token function">useRouter</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token keyword">const</span> <span class="token punctuation">{</span> data<span class="token punctuation">:</span> user <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token function">useAsyncData</span><span class="token punctuation">(</span><span class="token string">"accounts"</span><span class="token punctuation">,</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span>
  <span class="token function">useAuth</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
    <span class="token punctuation">.</span><span class="token function">getSession</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
    <span class="token punctuation">.</span><span class="token function">then</span><span class="token punctuation">(</span><span class="token punctuation">(</span>res<span class="token punctuation">)</span> <span class="token operator">=&gt;</span> res<span class="token punctuation">.</span>data<span class="token operator">?</span><span class="token punctuation">.</span>user<span class="token punctuation">)</span><span class="token punctuation">,</span>
<span class="token punctuation">)</span><span class="token punctuation">;</span>
</span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">&gt;</span></span>

<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>template</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span>
    <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>min-h-[80vh] flex items-center justify-center overflow-hidden no-visible-scrollbar px-6 md:px-0<span class="token punctuation">"</span></span>
  <span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Card</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>w-87.5<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>CardHeader</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>CardTitle</span><span class="token punctuation">&gt;</span></span>User<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>CardTitle</span><span class="token punctuation">&gt;</span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>CardHeader</span><span class="token punctuation">&gt;</span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>CardContent</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">v-if</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>user<span class="token punctuation">"</span></span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>flex gap-2 items-center<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Avatar</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>bg-gray-200<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>AvatarImage</span> <span class="token attr-name">:src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>user.image || <span class="token punctuation">'</span><span class="token punctuation">'</span><span class="token punctuation">"</span></span> <span class="token attr-name">alt</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>User profile<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>AvatarFallback</span><span class="token punctuation">&gt;</span></span>{{ user.name?.[0] }}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>AvatarFallback</span><span class="token punctuation">&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>Avatar</span><span class="token punctuation">&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>text-sm<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>{{ user.name }}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>p</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>text-xs<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>{{ user.email }}<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>p</span><span class="token punctuation">&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">v-else</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>flex gap-2 items-center<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Skeleton</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>h-10 w-10 rounded-full<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>space-y-2<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Skeleton</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>h-4 w-28<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Skeleton</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>h-3 w-40<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>CardContent</span><span class="token punctuation">&gt;</span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>CardFooter</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>flex gap-2<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Button</span> <span class="token attr-name">as-child</span> <span class="token attr-name">variant</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>outline<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>
          <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>NuxtLink</span> <span class="token attr-name">to</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>/change-password<span class="token punctuation">"</span></span><span class="token punctuation">&gt;</span></span>Change Password<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>NuxtLink</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>Button</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Button</span>
          <span class="token attr-name">:disabled</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>!user<span class="token punctuation">"</span></span>
          <span class="token attr-name">@click</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>
            async () =&gt; {
              await signOut();
              router.push(<span class="token punctuation">'</span>/<span class="token punctuation">'</span>);
            }
          <span class="token punctuation">"</span></span>
          <span class="token attr-name">variant</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>secondary<span class="token punctuation">"</span></span>
        <span class="token punctuation">&gt;</span></span>
          Sign Out
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>Button</span><span class="token punctuation">&gt;</span></span>
      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>CardFooter</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>Card</span><span class="token punctuation">&gt;</span></span>
  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>template</span><span class="token punctuation">&gt;</span></span>
</code></pre><p>We want to load the session on the server, <em>NOT</em> on the client with a delay, like the original demo.</p><p> <code>useAuth</code> has many functions we can configure to work in any scenario. <code>useAsyncData</code> loads on the sever and hydrates to the client.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/image-1.png?sfvrsn=4fa030ab_2" alt="useAuth list of functions" /></p><h3 id="forget-password">Forget Password</h3><pre class=" language-tsx"><code class="prism  language-tsx">&lt;script lang="ts" setup&gt;
import { requestPasswordReset } from "~/lib/auth-client.js";

const email = ref("");

const handleRequestPasswordReset = async () =&gt; {
  if (!email.value) {
    alert("Please enter your email address");
    return;
  }
  await requestPasswordReset(
    {
      email: email.value,
      redirectTo: "/reset-password",
    },
    {
      // onSuccess find the url with token in server console. For detail check requestPasswordReset section: https://www.better-auth.com/docs/authentication/email-password
      onSuccess() {
        alert("Password reset link sent to your email");
        window.location.href = "https://www.telerik.com/sign-in";
      },
      onError(context) {
        alert(context.error.message);
      },
    },
  );
};
&lt;/script&gt;

&lt;template&gt;
  &lt;div class="h-screen flex justify-center items-center"&gt;
    &lt;Card class="mx-auto max-w-sm"&gt;
      &lt;CardHeader&gt;
        &lt;CardTitle class="text-2xl"&gt;Reset Password&lt;/CardTitle&gt;
        &lt;CardDescription&gt;
          Enter your email below to reset your password
        &lt;/CardDescription&gt;
      &lt;/CardHeader&gt;
      &lt;CardContent&gt;
        &lt;div class="grid gap-4"&gt;
          &lt;div class="grid gap-2"&gt;
            &lt;Label for="email"&gt;Email&lt;/Label&gt;
            &lt;Input
              id="email"
              type="email"
              autocomplete="email"
              placeholder="m@example.com"
              required
              v-model="email"
            /&gt;
          &lt;/div&gt;
          &lt;Button
            type="button"
            class="w-full"
            @click="handleRequestPasswordReset"
          &gt;
            Reset Password
          &lt;/Button&gt;
        &lt;/div&gt;
        &lt;div class="mt-4 text-center text-sm"&gt;
          &lt;a href="https://www.telerik.com/sign-in" class="underline"&gt;Back to Sign In &lt;/a&gt;
        &lt;/div&gt;
      &lt;/CardContent&gt;
    &lt;/Card&gt;
  &lt;/div&gt;
&lt;/template&gt;
</code></pre><p> We must configure an email server to work in production. This setup is similar to previous pages.</p><h3 id="home">Home</h3><pre class=" language-tsx"><code class="prism  language-tsx">&lt;script setup lang="ts"&gt;
import { useSession } from "~/lib/auth-client";

definePageMeta({
layout: "default",
});

const features = [
"Email &amp; Password",
"Organization | Teams",
"Passkeys",
"Multi Factor",
"Password Reset",
"Email Verification",
"Roles &amp; Permissions",
"Rate Limiting",
"Session Management",
];
const session = useSession();
&lt;/script&gt;

&lt;template&gt;
    &lt;div class="min-h-[80vh] flex items-center justify-center overflow-hidden no-visible-scrollbar px-6 md:px-0"&gt;
        &lt;main class="flex flex-col gap-4 row-start-2 items-center justify-center"&gt;
            &lt;div class="flex flex-col gap-1"&gt;
                &lt;h3 class="font-bold text-4xl text-black dark:text-white text-center"&gt;
                    Better Auth.
                &lt;/h3&gt;

                &lt;p class="text-center wrap-break-word text-sm md:text-base"&gt;
                    &lt;span class="inline-flex items-center gap-2"&gt;
                        &lt;span class="relative inline-block -rotate-2 pr-1 text-[0.78rem] font-black uppercase tracking-[0.16em] text-red-600/80"&gt;
                            &lt;span class="absolute left-0 right-0 top-1/2 h-0.5 -translate-y-1/2 -rotate-3 rounded-full bg-linear-to-r from-red-400 via-red-600 to-red-400 shadow-[0_0_10px_rgba(220,38,38,0.45)]" /&gt;
                            &lt;span&gt;official&lt;/span&gt;
                        &lt;/span&gt;
                        &lt;span class="inline-flex items-center rounded-full border border-blue-500/40 bg-linear-to-r from-blue-500/10 to-blue-500/10 px-2.5 py-0.5 text-[0.72rem] font-bold uppercase tracking-[0.14em] text-blue-700 shadow-sm"&gt;
                            unofficial
                        &lt;/span&gt;
                    &lt;/span&gt;
                    demo to showcase
                    &lt;a
href="https://better-auth.com"
target="_blank"
className="italic underline"
&gt;better-auth
                    &lt;/a&gt;
                    features and capabilities. &lt;br /&gt;
                &lt;/p&gt;

                &lt;div class="flex flex-col gap-3 pt-2 flex-wrap"&gt;
                    &lt;div class="border-y py-2 border-dotted bg-secondary/60 opacity-80"&gt;
                        &lt;div class="text-xs flex items-center gap-2 justify-center text-muted-foreground"&gt;
                            &lt;span class="text-center"&gt;
                                All features on this demo are Implemented with Better Auth without
                                any custom backend code
                            &lt;/span&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="flex gap-2 justify-center flex-wrap"&gt;
                        &lt;div v-for="feature in features" :key="feature"&gt;
                            &lt;span
                                class="border-b pb-1 text-muted-foreground text-xs cursor-pointer hover:text-foreground duration-150 ease-in-out transition-all hover:border-foreground flex items-center gap-1"&gt;{{
                                    feature }}
                            &lt;/span&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class="flex items-center gap-2 mt-2 mx-auto"&gt;
                    &lt;NuxtLink to="/sign-in" v-if="!session?.data"&gt;
                        &lt;Button variant="outline" class="rounded-none"&gt;
                            Sign In
                        &lt;/Button&gt;
                    &lt;/NuxtLink&gt;
                    &lt;NuxtLink to="/dashboard" v-if="session?.data"&gt;
                        &lt;Button variant="outline" class="rounded-none"&gt;
                            Dashboard
                        &lt;/Button&gt;
                    &lt;/NuxtLink&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/main&gt;
    &lt;/div&gt;
&lt;/template&gt;
</code></pre><p> Nothing special here, except for checking for a <code>session</code>.</p><h3 id="reset-password">Reset Password</h3><pre class=" language-tsx"><code class="prism  language-tsx">&lt;script lang="ts" setup&gt;
import { resetPassword } from "~/lib/auth-client.js";

const confirmPassword = ref("");
const password = ref("");

const handleResetPassword = async () =&gt; {
  if (confirmPassword.value !== password.value) {
    alert("Please enter same passwords");
    return;
  }

  await resetPassword({
    newPassword: password.value,
    fetchOptions: {
      onSuccess(context) {
        window.location.href = "https://www.telerik.com/sign-in";
      },
      onError(context) {
        alert(context.error.message);
      },
    },
  });
};
&lt;/script&gt;

&lt;template&gt;
  &lt;div class="h-screen flex justify-center items-center"&gt;
    &lt;Card class="mx-auto max-w-sm"&gt;
      &lt;CardHeader&gt;
        &lt;CardTitle class="text-2xl"&gt;Reset Password&lt;/CardTitle&gt;
        &lt;CardDescription&gt;Enter your new password below&lt;/CardDescription&gt;
      &lt;/CardHeader&gt;
      &lt;CardContent&gt;
        &lt;form class="grid gap-4" @submit.prevent="handleResetPassword"&gt;
          &lt;div class="grid gap-2"&gt;
            &lt;Label for="new-password"&gt;New Password&lt;/Label&gt;
            &lt;Input
              id="new-password"
              type="password"
              autocomplete="new-password"
              required
              v-model="password"
              placeholder="New Password"
            /&gt;
          &lt;/div&gt;
          &lt;div class="grid gap-2"&gt;
            &lt;Label for="confirm-password"&gt;Confirm Password&lt;/Label&gt;
            &lt;Input
              id="confirm-password"
              type="password"
              autocomplete="new-password"
              required
              placeholder="Confirm Password"
              v-model="confirmPassword"
            /&gt;
          &lt;/div&gt;
          &lt;Button type="submit" class="w-full"&gt;Reset&lt;/Button&gt;
        &lt;/form&gt;
      &lt;/CardContent&gt;
    &lt;/Card&gt;
  &lt;/div&gt;
&lt;/template&gt;
</code></pre><p> Same setup as before, import our <code>resetPassword</code> function from our auth library.</p><h3 id="sign-in">Sign In</h3><pre class=" language-tsx"><code class="prism  language-tsx">&lt;script setup lang="ts"&gt;
import { signIn } from "~/lib/auth-client.js";

const email = ref("");
const password = ref("");
const router = useRouter();

const handleSignIn = async () =&gt; {
  await signIn.email({
    email: email.value,
    password: password.value,
    callbackURL: "/dashboard",
    fetchOptions: {
      onError(context) {
        alert(context.error.message);
      },
      onSuccess() {
        router.push("/dashboard");
      },
    },
  });
};
&lt;/script&gt;

&lt;template&gt;
  &lt;div class="h-screen flex justify-center items-center"&gt;
    &lt;Card class="mx-auto max-w-sm"&gt;
      &lt;CardHeader&gt;
        &lt;CardTitle class="text-2xl"&gt; Login &lt;/CardTitle&gt;
        &lt;CardDescription&gt;
          Enter your email below to login to your account
        &lt;/CardDescription&gt;
      &lt;/CardHeader&gt;
      &lt;CardContent&gt;
        &lt;form class="grid gap-4" @submit.prevent="handleSignIn"&gt;
          &lt;div class="grid gap-2"&gt;
            &lt;Label for="email"&gt;Email&lt;/Label&gt;
            &lt;Input
              id="email"
              type="email"
              autocomplete="email"
              placeholder="m@example.com"
              v-model="email"
              required
            /&gt;
          &lt;/div&gt;
          &lt;div class="grid gap-2"&gt;
            &lt;div class="flex items-center"&gt;
              &lt;Label for="password"&gt;Password&lt;/Label&gt;
              &lt;a
                href="https://www.telerik.com/forgot-password"
                class="ml-auto inline-block text-sm underline"
              &gt;
                Forgot your password?
              &lt;/a&gt;
            &lt;/div&gt;
            &lt;Input
              id="password"
              type="password"
              autocomplete="current-password"
              placeholder="password"
              v-model="password"
              required
            /&gt;
          &lt;/div&gt;
          &lt;Button type="submit" class="w-full"&gt; Login &lt;/Button&gt;
        &lt;/form&gt;
        &lt;div class="mt-4 text-center text-sm"&gt;
          Don't have an account?
          &lt;a href="https://www.telerik.com/sign-up" class="underline"&gt; Sign up &lt;/a&gt;
        &lt;/div&gt;
      &lt;/CardContent&gt;
    &lt;/Card&gt;
  &lt;/div&gt;
&lt;/template&gt;
</code></pre><p> Manually forward router to <code>/dashboard</code> upon success.</p><h3 id="sign-up">Sign Up</h3><pre class=" language-tsx"><code class="prism  language-tsx">&lt;script lang="ts" setup&gt;
import { signUp } from "~/lib/auth-client.js";

const firstName = ref("");
const lastName = ref("");
const email = ref("");
const password = ref("");

const handleSignUp = async () =&gt; {
  const user = {
    firstName: firstName.value,
    lastName: lastName.value,
    email: email.value,
    password: password.value,
  };
  await signUp.email({
    email: user.email,
    password: user.password,
    name: `${user.firstName} ${user.lastName}`,
    callbackURL: "/",
    fetchOptions: {
      onError(context) {
        alert(context.error.message);
      },
      onSuccess() {
        useRouter().push("/dashboard");
      },
    },
  });
};
&lt;/script&gt;

&lt;template&gt;
  &lt;div class="h-screen flex justify-center items-center"&gt;
    &lt;Card class="mx-auto max-w-sm"&gt;
      &lt;CardHeader&gt;
        &lt;CardTitle class="text-xl"&gt;Sign Up&lt;/CardTitle&gt;
        &lt;CardDescription&gt;
          Enter your information to create an account
        &lt;/CardDescription&gt;
      &lt;/CardHeader&gt;
      &lt;CardContent&gt;
        &lt;form class="grid gap-4" @submit.prevent="handleSignUp"&gt;
          &lt;div class="grid grid-cols-2 gap-4"&gt;
            &lt;div class="grid gap-2"&gt;
              &lt;Label for="first-name"&gt;First name&lt;/Label&gt;
              &lt;Input
                id="first-name"
                autocomplete="given-name"
                placeholder="Max"
                required
                v-model="firstName"
              /&gt;
            &lt;/div&gt;
            &lt;div class="grid gap-2"&gt;
              &lt;Label for="last-name"&gt;Last name&lt;/Label&gt;
              &lt;Input
                id="last-name"
                autocomplete="family-name"
                placeholder="Robinson"
                required
                v-model="lastName"
              /&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="grid gap-2"&gt;
            &lt;Label for="email"&gt;Email&lt;/Label&gt;
            &lt;Input
              id="email"
              type="email"
              autocomplete="email"
              placeholder="m@example.com"
              required
              v-model="email"
            /&gt;
          &lt;/div&gt;
          &lt;div class="grid gap-2"&gt;
            &lt;Label for="password"&gt;Password&lt;/Label&gt;
            &lt;Input
              id="password"
              type="password"
              autocomplete="new-password"
              v-model="password"
            /&gt;
          &lt;/div&gt;
          &lt;Button type="submit" class="w-full"&gt;Create an account&lt;/Button&gt;
        &lt;/form&gt;
        &lt;div class="mt-4 text-center text-sm"&gt;
          Already have an account?
          &lt;a href="https://www.telerik.com/sign-in" class="underline"&gt; Sign in &lt;/a&gt;
        &lt;/div&gt;
      &lt;/CardContent&gt;
    &lt;/Card&gt;
  &lt;/div&gt;
&lt;/template&gt;
</code></pre><p> We use <code>alert</code> for errors, but this is easily configurable.</p><h2 id="bonus">Bonus</h2><p>We can easily use any <a target="_blank" href="https://better-auth.com/docs/adapters/other-relational-databases">database integration</a> we like.</p><h3 id="postgres">Postgres</h3><p><a target="_blank" href="https://better-auth.com/docs/adapters/postgresql">Postgres</a>:</p><pre class=" language-tsx"><code class="prism  language-tsx">export const auth = betterAuth({
  database: new Pool({
    connectionString: "postgres://user:password@localhost:5432/database",
  }),
});
</code></pre><p><a target="_blank" href="https://better-auth.com/docs/adapters/mysql">MySQL</a>:</p><pre class=" language-tsx"><code class="prism  language-tsx">import { betterAuth } from "better-auth";
import { createPool } from "mysql2/promise";
export const auth = betterAuth({
  database: createPool({
    host: "localhost",
    user: "root",
    password: "password",
    database: "database",
    timezone: "Z", // Important to ensure consistent timezone values
  }),
});
</code></pre><p>Now, go build the rest of your app!</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/image-2.png?sfvrsn=31bef6bd_2" alt="Login screen with email and password fields" /></p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/image-3.png?sfvrsn=660b891a_2" alt="Sign up screen with first name, last name, email, password fields" /></p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/image-4.png?sfvrsn=23763786_2" alt="reset password screen with email field" /></p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/image-5.png?sfvrsn=1c099547_2" alt="User account screen with first and last name, email, avatar, and buttons for change password and sign out" /></p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/image-6.png?sfvrsn=f9a182df_2" alt="Change Password screen with fields for current, new and confirm password" /></p><p><strong>Repo:</strong> <a target="_blank" href="https://github.com/jdgamble555/nuxt-better-auth-example">GitHub</a></p><aside><hr data-sf-ec-immutable="" /><div class="row"><div class="col-4 u-normal-full u-small-mb0"><h4 class="u-fs20 u-fw5 u-lh125 u-mb0">Best Graph Databases in 2026</h4></div><div class="col-8"><p class="u-fs16 u-mb0">One developer weighs <a target="_blank" href="https://www.telerik.com/blogs/best-graph-databases-2026">pros and cons of graph databases</a> and shares his insights into what works best for various use cases.</p></div></div></aside>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:e59fcc63-bf98-42f0-91ca-eb6ff8440588</id>
    <title type="text">Generic Components for Vue 3</title>
    <summary type="text">Generic components in Vue let you reuse a list without specifying what it will contain. Let’s see.</summary>
    <published>2026-11-19T14:35:54Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Marina Mosti </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/generic-components-vue-3"/>
    <content type="text"><![CDATA[<p><span class="featured">Generic components in Vue let you reuse a list without specifying what it will contain. Let&rsquo;s build one with <code>&lt;script setup lang="ts" generic&gt;</code>.</span></p><p>A while back I wrote <a target="_blank" href="https://www.telerik.com/blogs/vue-3-typescript-jump-start">Vue 3 with TypeScript Jump-Start</a>, which covered the pieces you need to be productive on day one. Typing props, typing emits, <code>Ref&lt;T&gt;</code> and getting your editor to stop lying to you. That article stopped at the point where most people stop, which is typing a component that knows exactly what it works with.</p><p>This one picks up where the types stop being concrete. Let&rsquo;s say you&rsquo;ve built a <code>&lt;UserList&gt;</code>. Then somebody needs the same list for products and then for invoices, and now you&rsquo;re staring at three near-identical components or one component whose props are typed <code>any[]</code>.</p><p>That&rsquo;s the problem generic components solve. You write the list once, and it takes on the type of whatever you hand it. The parent gets full autocomplete on the slot props, the emit payloads, everything.</p><p>Let&rsquo;s go ahead and build one!</p><h2 id="what-is-a-generic-component">What Is a Generic Component?</h2><p>A generic component is a component with a type parameter, the same idea as a generic function in TypeScript. You declare a placeholder type, use it in your props and emits, and the caller fills it in.</p><p>The syntax is a <code>generic</code> attribute on the <code>&lt;script setup&gt;</code> tag:</p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup lang="ts" generic="T"&gt;
&lt;/script&gt;
</code></pre><p>That <code>T</code> is now available everywhere inside the block. Whatever you can write between the angle brackets of a generic function, you can write in that attribute. You can constrain <code>T</code> with <code>extends</code>, give it a default, declare a second parameter or point at a type you imported at the top of the file.</p><p>A quick note on versions. The <code>generic</code> attribute shipped in Vue 3.3. The tooling around it got better through 3.4 and 3.5, and 3.5 is where reactive props destructure became stable and on by default. That&rsquo;s the piece that makes prop defaults pleasant on a generic component, we&rsquo;ll cover it further down.</p><h2 id="the-problem-concretely">The Problem, Concretely</h2><p>Here&rsquo;s the list component before implementing generics, written for <code>User</code> instances.</p><p><code>UserList.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup lang="ts"&gt;
type User = {
  id: number
  name: string
  email: string
}

defineProps&lt;{
  items: User[]
}&gt;()

const emit = defineEmits&lt;{
  select: [user: User]
}&gt;()
&lt;/script&gt;

&lt;template&gt;
  &lt;ul&gt;
    &lt;li v-for="user in items" :key="user.id" @click="emit('select', user)"&gt;
      {{ user.name }}
    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/template&gt;
</code></pre><p>Nothing wrong with this component. It&rsquo;s typed, it works, your editor helps you inside the template. The only issue is that it&rsquo;s welded to <code>User</code>.</p><p>When the product list request comes in, you have two bad options. Copy the file and swap the type, which means every fix now has to be made twice. Or loosen <code>items</code> to <code>any[]</code> and lose every bit of type safety the component had, both inside it and in the parent.</p><p>To be quite honest with you, I&rsquo;ve shipped both of these at some point, and the <code>any[]</code> version is the one that comes back to bite you later.</p><h2 id="the-same-list-generic">The Same List, Generic</h2><p><code>TypedList.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup lang="ts" generic="T"&gt;
defineProps&lt;{
  items: T[]
}&gt;()

const emit = defineEmits&lt;{
  select: [item: T]
}&gt;()

defineSlots&lt;{
  default(props: { item: T }): any
}&gt;()
&lt;/script&gt;

&lt;template&gt;
  &lt;ul&gt;
    &lt;li
      v-for="(item, index) in items"
      :key="index"
      @click="emit('select', item)"
    &gt;
      &lt;slot :item="item" /&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/template&gt;
</code></pre><p>Let&rsquo;s break it down. The <code>generic="T"</code> attribute introduces the type parameter. From there, <code>T</code> is just a type name you can use anywhere in the block, so <code>items: T[]</code> says &ldquo;an array of whatever this component was called with.&rdquo;</p><p>The emit declaration uses the same <code>T</code>. That&rsquo;s the part that matters, because the payload of <code>select</code> is now tied to the items you passed in, not to a type the component picked in advance.</p><p><code>defineSlots</code> is optional here (the tooling can usually work the slot prop type out from <code>&lt;slot :item="item" /&gt;</code> on its own), but I like writing it out on anything reusable. It documents the slot contract at the top of the file where a reader will actually see it, instead of leaving it buried in the template.</p><p>Now the parent:</p><p><code>Dashboard.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup lang="ts"&gt;
import { ref } from 'vue'
import TypedList from './TypedList.vue'

type User = {
  id: number
  name: string
  email: string
}

const users = ref&lt;User[]&gt;([
  { id: 1, name: 'Marina', email: 'marina@myapp.com' },
  { id: 2, name: 'Alex', email: 'alex@myapp.com' },
])

const handleSelect = (user: User) =&gt; {
  console.log(user.email)
}
&lt;/script&gt;

&lt;template&gt;
  &lt;TypedList :items="users" @select="handleSelect"&gt;
    &lt;template #default="{ item }"&gt;
      {{ item.name }} ({{ item.email }})
    &lt;/template&gt;
  &lt;/TypedList&gt;
&lt;/template&gt;
</code></pre><p>Notice how nothing here declares what <code>T</code> is. TypeScript works it out from <code>:items="users"</code>, sees a <code>User[]</code>, and fills in <code>T</code> as <code>User</code> for the whole component.</p><p>The payoff shows up in two places. Inside the slot, <code>item</code> is a <code>User</code>, so <code>item.email</code> autocompletes and <code>item.emial</code> is a red squiggle. And <code>handleSelect</code> is checked against the emit, so if you typed it as <code>(product: Product)</code> you&rsquo;d get an error at the <code>@select</code> binding instead of a surprise at runtime.</p><p>Swap <code>users</code> for a <code>Product[]</code> in a different parent and everything re-infers. Same component file, no changes.</p><h2 id="constraints-and-keyof-t">Constraints and keyof T</h2><p>An unconstrained <code>T</code> means the component can&rsquo;t assume anything about the items. That&rsquo;s fine for a simple wrapper, but real components usually need something. A key for <code>v-for</code>, a label to display, a field to sort by.</p><p>You could reach for <code>extends</code> and require a shape:</p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup lang="ts" generic="T extends { id: string | number }"&gt;
&lt;/script&gt;
</code></pre><p>Now anything passed in has to have an <code>id</code>, and you can safely write <code>:key="item.id"</code>. Pass an array of objects without one and the parent gets an error at the binding.</p><p>That works, but it forces every caller into your naming. The version I reach for more often lets the caller pick the field, and still checks that the field exists:</p><p><code>KeyedList.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup lang="ts" generic="T"&gt;
defineProps&lt;{
  items: T[]
  itemKey: keyof T
  labelKey: keyof T
}&gt;()
&lt;/script&gt;

&lt;template&gt;
  &lt;ul&gt;
    &lt;li v-for="item in items" :key="String(item[itemKey])"&gt;
      {{ item[labelKey] }}
    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/template&gt;
</code></pre><p>This works because of <code>keyof T</code>. The prop accepts only the names of keys that actually exist on the item type. In the parent, typing <code>item-key="</code> pops open an autocomplete list of <code>id</code>, <code>name</code>, <code>email</code>, and a typo like <code>item-key="nmae"</code> fails to compile.</p><p><code>Directory.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;template&gt;
  &lt;KeyedList :items="users" item-key="id" label-key="name" /&gt;
&lt;/template&gt;
</code></pre><p>I find this pattern most useful in table and picker components. Those are exactly the ones where you end up passing column or field names around as strings and hoping nobody renames anything.</p><p>One thing. Notice the <code>String()</code> call around <code>item[itemKey]</code>. <code>keyof T</code> accepts every key on the type, including ones holding objects or dates, and <code>:key</code> wants a string or a number. If you want to be stricter, you can filter the keys by the type of their values.</p><p>That takes a small helper, a mapped type you&rsquo;ll find in plenty of codebases, usually under a different name each time. Since <code>generic</code> can reference imported types, you can keep it out of the component:</p><p><code>types.ts</code></p><pre class=" language-typescript"><code class="prism  language-typescript"><span class="token keyword">export</span> <span class="token keyword">type</span> KeysOfType<span class="token operator">&lt;</span>T<span class="token punctuation">,</span> V<span class="token operator">&gt;</span> <span class="token operator">=</span> <span class="token punctuation">{</span>
  <span class="token punctuation">[</span>K <span class="token keyword">in</span> keyof T<span class="token punctuation">]</span><span class="token operator">-</span><span class="token operator">?</span><span class="token punctuation">:</span> T<span class="token punctuation">[</span>K<span class="token punctuation">]</span> <span class="token keyword">extends</span> <span class="token class-name">V</span> <span class="token operator">?</span> K <span class="token punctuation">:</span> never
<span class="token punctuation">}</span><span class="token punctuation">[</span>keyof T<span class="token punctuation">]</span>
</code></pre><p><code>KeyedList.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script
  setup
  lang="ts"
  generic="T, K extends KeysOfType&lt;T, string | number&gt;"
&gt;
import type { KeysOfType } from './types'

defineProps&lt;{
  items: T[]
  itemKey: K
  labelKey: K
}&gt;()
&lt;/script&gt;
</code></pre><p>Say <code>User</code> grows a <code>createdAt</code> field holding a <code>Date</code>. The parent now gets this:</p><p><code>Directory.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;template&gt;
  &lt;KeyedList :items="users" item-key="id" label-key="createdAt" /&gt;
&lt;/template&gt;
</code></pre><p>The error lands on <code>label-key</code> in the parent, at the exact spot where somebody made the wrong call. <code>KeysOfType&lt;User, string | number&gt;</code> resolves to <code>'id' | 'name' | 'email'</code>, and <code>createdAt</code> simply isn&rsquo;t in it. The parent can only name fields you can actually render.</p><p>The <code>String()</code> call still has to stay in the template. While <code>T</code> is still a placeholder, TypeScript can&rsquo;t resolve that constraint. It never gets far enough to see that <code>T[K]</code> is a string or a number.</p><p>Both key props share one <code>K</code> here, which keeps the signature readable. They don&rsquo;t have to name the same field, but they are held to the same constraint. If they ever need different ones (a key that can be a number, a label that must be a string), they need a parameter each.</p><p>I usually don&rsquo;t bother with the second version. Two type parameters plus a helper type makes the component harder to read than the extra safety is worth, and a stray <code>[object Object]</code> in a list is a five-second bug to spot. But it&rsquo;s there when the component is shared widely enough to earn it.</p><h2 id="prop-defaults-on-a-generic-component">Prop Defaults on a Generic Component</h2><p>This is the part that got noticeably better in Vue 3.5. <code>withDefaults</code> has always been an odd fit here. It wraps <code>defineProps</code> in another function call, and that extra layer is where generic inference used to break down. Most of those bugs are fixed now, but it still reads like a workaround.</p><p>Reactive props destructure, stable and on by default as of 3.5, completely works around the problem. You destructure the props and use plain JavaScript default values:</p><p><code>EmptyableList.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup lang="ts" generic="T"&gt;
const { items, emptyMessage = 'Nothing here yet' } = defineProps&lt;{
  items: T[]
  emptyMessage?: string
}&gt;()
&lt;/script&gt;

&lt;template&gt;
  &lt;p v-if="items.length === 0"&gt;{{ emptyMessage }}&lt;/p&gt;
  &lt;ul v-else&gt;
    &lt;li v-for="(item, index) in items" :key="index"&gt;
      &lt;slot :item="item" /&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/template&gt;
</code></pre><p><code>items</code> and <code>emptyMessage</code> stay reactive after destructuring, because the compiler prepends <code>props.</code> to those names for you. Generic inference is untouched, since <code>defineProps</code> is called directly.</p><p>Big disclaimer though! And this is a whopper.</p><p>The compiler does this by rewriting the names, and it rewrites them everywhere in the block. So <code>watch(emptyMessage, ...)</code> would mean <code>watch(props.emptyMessage, ...)</code>. That reads the prop once and passes the result, which leaves <code>watch</code> holding a string it has no way to track.</p><p>The compiler catches this one and fails the build with an error telling you to pass a getter instead. Here&rsquo;s that fix:</p><p><code>EmptyableList.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup lang="ts" generic="T"&gt;
import { watch } from 'vue'

// ...props destructured as above

watch(() =&gt; emptyMessage, (value) =&gt; {
  console.log('changed to', value)
})
&lt;/script&gt;
</code></pre><p>The getter body is still inside <code>&lt;script setup&gt;</code>, so <code>emptyMessage</code> becomes <code>props.emptyMessage</code> there too, and now it&rsquo;s read fresh on every run.</p><p>Same rule for composables. Pass <code>() =&gt; emptyMessage</code> rather than the value. The compiler only checks <code>watch</code> and <code>toRef</code>, so that one is on you. It&rsquo;s the rule you already follow for props, just easier to forget now that they look like ordinary variables.</p><h2 id="when-inference-cant-do-it">When Inference Can&rsquo;t Do It</h2><p>Inference works when a prop carries the type in. Sometimes nothing does. Picture a select component that fetches its own options from an endpoint you pass as a string:</p><p><code>RemoteSelect.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup lang="ts" generic="T extends { id: number; label: string }"&gt;
import { ref, onMounted } from 'vue'
import type { Ref } from 'vue'

const { endpoint } = defineProps&lt;{
  endpoint: string
}&gt;()

const emit = defineEmits&lt;{
  change: [option: T]
}&gt;()

const options = ref([]) as Ref&lt;T[]&gt;
const error = ref('')

const loadOptions = async () =&gt; {
  const response = await fetch(`https://myapp.com${endpoint}`)
  if (!response.ok) {
    throw new Error('Failed to load options')
  }
  options.value = await response.json()
}

onMounted(() =&gt; {
  loadOptions().catch(() =&gt; {
    error.value = 'Could not load the options for this field.'
  })
})

const handleChange = (event: Event) =&gt; {
  const id = Number((event.target as HTMLSelectElement).value)
  const selected = options.value.find((option) =&gt; option.id === id)

  if (selected) {
    emit('change', selected)
  }
}
&lt;/script&gt;

&lt;template&gt;
  &lt;p v-if="error"&gt;{{ error }}&lt;/p&gt;
  &lt;select v-else @change="handleChange"&gt;
    &lt;option v-for="option in options" :key="option.id" :value="option.id"&gt;
      {{ option.label }}
    &lt;/option&gt;
  &lt;/select&gt;
&lt;/template&gt;
</code></pre><p>Let&rsquo;s break it down.</p><p>The constraint on <code>T</code> is what lets the template read <code>option.id</code> and <code>option.label</code> without complaint, since every option is guaranteed to have both.</p><p>I pulled <code>loadOptions</code> out into its own function so the <code>onMounted</code> callback stays synchronous. Vue does catch errors from an <code>async</code> lifecycle hook, but it sends them to the app-level error handler, not to your <code>error</code> ref. The user would sit in front of an empty select with nothing telling them why. Calling <code>.catch()</code> yourself keeps the failure where you can show it.</p><p>The typing problem is that no prop carries <code>T</code> into the component. TypeScript has nothing to work backward from, so <code>T</code> falls back to the constraint. That&rsquo;s fine inside the component, and it&rsquo;s a problem the moment an option travels back out. The <code>change</code> payload is typed as <code>{ id: number; label: string }</code> and nothing else, so a parent listening for a selected country gets none of the fields its own <code>Country</code> type has.</p><p>Vue Language Tools has an answer for this, a <a target="_blank" href="https://vuejs.org/api/sfc-script-setup.html#generics">comment directive called <code>@vue-generic</code></a> that lets the parent state the type by hand:</p><p><code>AddressForm.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;template&gt;
  &lt;!-- @vue-generic {import('@/types').Country} --&gt;
  &lt;RemoteSelect endpoint="/countries" /&gt;

  &lt;!-- @vue-generic {import('@/types').Currency} --&gt;
  &lt;RemoteSelect endpoint="/currencies" /&gt;
&lt;/template&gt;
</code></pre><p>The comment goes on the line directly above the component, and the type inside the braces is what <code>T</code> becomes for that one instance. <code>Country</code> still has to satisfy the constraint, so if your <code>Country</code> type calls its fields <code>code</code> and <code>name</code>, you&rsquo;ll get an error on the comment line rather than on the component. Worth knowing before you spend an afternoon on it.</p><p>Two more things. This is a type-checking feature from the tooling rather than something the Vue runtime knows about, so it only does anything if you&rsquo;re running <code>vue-tsc</code> or working in an editor with the Vue extension. And it&rsquo;s not the prettiest thing you&rsquo;ll write this week.</p><p>Honestly, when I hit this, I first ask whether the component should be fetching at all. Fetching outside and passing the array in as a prop gives you inference for free and a component that&rsquo;s much easier to test. Sometimes the self-contained widget really is what you want, though, and this is how you type it.</p><h2 id="when-not-to-reach-for-a-generic">When Not to Reach for a Generic</h2><p>Generics are for components that genuinely don&rsquo;t care about the shape of their data. Lists, tables, pickers, dropdowns, anything that arranges items and hands them back to a slot.</p><p>They&rsquo;re the wrong tool when your component actually does care. Say you have a <code>&lt;UserCard&gt;</code> that reads <code>user.avatarUrl</code>, falls back to initials from <code>user.firstName</code> and shows a badge when <code>user.role</code> is <code>admin</code>. That component works with users. Typing the prop as <code>User</code> says so in one word, and anyone reading the file knows what they&rsquo;re holding. Make it generic, and you&rsquo;d need a constraint listing all three fields. That&rsquo;s the same information in a form that&rsquo;s harder to read. And you&rsquo;d have to update it by hand every time the card uses one more field.</p><p>The other case I&rsquo;d skip it is when a component used in exactly one place. The type parameter is real complexity, and it only pays off across several call sites. Write it concrete, and make it generic on the day the second caller shows up.</p><h2 id="wrapping-up">Wrapping Up</h2><p>Generic components close the last real gap in Vue&rsquo;s TypeScript support. Components that work with data shapes they don&rsquo;t know in advance can now be typed properly, with one attribute. You get inferred slot props, inferred emit payloads and <code>keyof T</code> constraints that make string props check themselves.</p><p>For the details, the <a target="_blank" href="https://vuejs.org/api/sfc-script-setup.html#generics"><code>generic</code> section</a> and the <a target="_blank" href="https://vuejs.org/api/sfc-script-setup.html#defineslots"><code>defineSlots</code> section</a> of the <code>&lt;script setup&gt;</code> docs are both short and worth reading, and <a target="_blank" href="https://vuejs.org/guide/components/props.html#reactive-props-destructure">Reactive Props Destructure</a> covers the defaults behavior in full.</p><p>Happy typing!</p><aside><hr data-sf-ec-immutable="" /><div class="row"><div class="col-4 u-normal-full u-small-mb0"><h4 class="u-fs20 u-fw5 u-lh125 u-mb0">A Better v-model with defineModel</h4></div><div class="col-8"><p class="u-fs16 u-mb0"><a target="_blank" href="https://www.telerik.com/blogs/better-v-model-definemodel">Learn more about defineModel.</a> Rather than three separate pieces for a two-way bound value, defineModel gives this common Vue component pattern a single line of syntax.</p></div></div></aside>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:f3a4ac36-4f5f-4585-93fc-02d9dbb1d727</id>
    <title type="text">What Makes an Application Agentic?</title>
    <summary type="text">With more autonomy than a predefined AI workflow, an agentic application uses AI to make decisions, plan and execute tasks, use tools and adapt its actions to achieve a goal with limited human input.</summary>
    <published>2026-11-18T14:49:37Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Hassan Djirdeh </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/what-makes-application-agentic"/>
    <content type="text"><![CDATA[<p><span class="featured">With more autonomy than a predefined AI workflow, an agentic application uses AI to make decisions, plan and execute tasks, use tools and adapt its actions to achieve a goal with limited human input.</span></p><p>An <strong>agentic application</strong> gives an AI model responsibility for choosing some of the steps needed to complete a task. As a task progresses, the model uses the results of earlier actions to decide how to proceed within limits set by the application.</p><p>In <a target="_blank" href="https://www.telerik.com/blogs/how-ai-powered-applications-work">How AI-Powered Applications Work</a>, we explored the architecture behind model calls and tool use. In this article, we&rsquo;ll look at what makes a workflow agentic and where that flexibility is useful.</p><h2 id="who-decides-what-happens-next">Who Decides What Happens Next?</h2><p>The terms <em>agent</em> and <em>agentic</em> don&rsquo;t have one universally applied definition. A useful distinction is how the work is controlled: predefined workflows follow paths set by application code, while agents give the model room to choose and revise steps as new information arrives.</p><p>Consider a project management application that lets customers export their project data as a downloadable file. When an export job fails, the application&rsquo;s support feature investigates the failure and prepares a recommended next step for a support engineer to review.</p><p>We could build this feature in several ways:</p><table><style>table,
 th,
    td {
      border: 1px;
      border-color: #bdbdba;
      border-style: dotted;
      border-collapse: collapse;
      margin-right: auto;
      padding: 0in 5.4pt 0in 5.4pt;
      text-align: left;
    }
  </style>
 <thead><tr><th>Approach</th><th>How the Work Proceeds</th><th>Role of the Model</th></tr></thead><tbody><tr><td><strong>Direct model call</strong></td><td>The application supplies a failed job&rsquo;s details and asks for a summary</td><td>Explains the supplied information</td></tr><tr><td><strong>Predefined AI workflow</strong></td><td>The application retrieves job details, follows configured diagnostic branches and generates a response</td><td>Performs assigned tasks within the workflow</td></tr><tr><td><strong>Agentic workflow</strong></td><td>The model chooses which evidence to gather and revises the investigation after each result</td><td>Directs the investigation within application limits</td></tr></tbody></table><br /><p>A predefined workflow can still have conditional branches and recover from errors. An agentic workflow becomes useful when deciding what to investigate requires interpreting information that doesn&rsquo;t fit neatly into those branches.</p><p>Both approaches can work within a single product. The application&rsquo;s support feature might use a predefined workflow for common export failures and delegate unfamiliar cases to an agent. A chat interface could expose either approach, so the interface alone tells us little about how the work is controlled.</p><p>Building the agentic version of this feature starts with defining what it should accomplish and how much control it should have. From there, we can look at how it plans the investigation and uses tools and memory to carry it out. These decisions will help us assess whether an agent is a useful fit for the task.</p><h2 id="goals-and-autonomy-define-the-task">Goals and Autonomy: Define the Task</h2><h3 id="goal-oriented-behavior">Goal-Oriented Behavior</h3><p><strong>Goal-oriented behavior</strong> means choosing actions that help complete a defined task. For our support feature, success means preparing a recommendation backed by evidence and identifying anything the investigation couldn&rsquo;t resolve.</p><p>The application might report that the export timed out without explaining what the customer should do next. The agent can continue investigating until it has enough evidence to support a response or needs help from a support engineer.</p><h3 id="autonomy">Autonomy</h3><p><strong>Autonomy</strong> describes the decisions the system can make without asking a person at every step. We might allow the agent in our support feature to inspect the customer&rsquo;s export history and search relevant documentation independently. Restarting an export or changing account settings would require separate authority.</p><p>We can let the agent choose its investigative steps while leaving the final customer response to a person. Our code must enforce the requesting user&rsquo;s access rights and check any required approval before running an operation. We explored these boundaries in <a target="_blank" href="https://www.telerik.com/blogs/understanding-human-agent-collaboration-patterns">Understanding Human-Agent Collaboration Patterns</a>.</p><h2 id="planning-and-reasoning-guide-the-investigation">Planning and Reasoning Guide the Investigation</h2><p>With the goal and permissions defined, the agent uses planning and reasoning to choose its next steps and adapt as new evidence arrives.</p><h3 id="planning">Planning</h3><p><strong>Planning</strong> organizes the work needed to reach the goal. The agent behind this support feature might begin by inspecting the failed export, then gathering evidence about its failure before preparing a recommendation. That plan can change when a tool returns information the agent didn&rsquo;t have at the start.</p><p>Suppose the export details show a timeout while contacting a storage service. The agent may decide to check service incidents before searching the product&rsquo;s configuration documentation. If there is no relevant incident, it may search the documentation using details from the error.</p><h3 id="reasoning">Reasoning</h3><p><strong>Reasoning</strong> is how the model uses available information to evaluate possible explanations and select a next step. It helps the model decide whether to follow the plan or revise it as new evidence arrives.</p><p>The agent doesn&rsquo;t need to work out every step before it starts. It can use each result to refine its plan and decide what to investigate next.</p><p>As the agent follows these leads, it needs to check whether the evidence supports its conclusions. A service incident that happened around the same time as the export failure may be relevant, but timing alone doesn&rsquo;t establish that it caused the failure.</p><h2 id="tools-and-the-agent-loop">Tools and the Agent Loop</h2><p><strong>Tools</strong> are operations our application exposes to the model. For this support feature, these might include <code>get_export_job</code> and <code>search_product_docs</code>, alongside a tool for checking service incidents. The model requests an operation with arguments, and our code validates the request before executing it.</p><p>The result goes back to the model, which can request another operation or prepare a response. This repeated cycle of choosing an action and checking its result is an <strong>agent loop</strong>.</p><p></p><p>For the failed export, the agent could follow the loop shown above:</p><ol><li><p><strong>Inspect the failed job.</strong> The agent requests its details and receives a timeout error that identifies the storage service involved.</p></li><li><p><strong>Check a possible explanation.</strong> It looks for service incidents and finds one that may be relevant. It then checks whether the incident affects the storage service used by the export.</p></li><li><p><strong>Find a supported next step.</strong> It searches the recovery guidance for that failure. If the guidance says to wait for service recovery, it includes that condition in the recommendation.</p></li><li><p><strong>Prepare the response.</strong> It explains what the evidence supports and identifies any remaining uncertainty for the support engineer reviewing the draft.</p></li></ol><p>If the incident affects an unrelated service, the agent should continue investigating rather than present it as the cause. If the necessary evidence is unavailable, it can hand the case to a support engineer with a record of what it found.</p><p>Read-only tools can support this entire process. Agentic behavior doesn&rsquo;t require permission to modify business records, and access to a write tool doesn&rsquo;t establish agentic behavior on its own.</p><p>Even with read-only tools, the agent needs limits on how long it can keep working. We can cap the number of tool calls and set a time or cost budget for each run. If repeated lookups produce no useful evidence, the application should stop the loop and show that the task needs attention.</p><h2 id="memory-carries-the-task-forward">Memory Carries the Task Forward</h2><p>The agent loop depends on carrying useful information from one step to the next. <strong>Short-term memory</strong> holds the current task&rsquo;s state so later model calls can build on work already completed.</p><p>In the export workflow described above, this state would include the export&rsquo;s identifier and the evidence gathered so far. If an incident is ruled out because it affected an unrelated service, that finding should be retained too. Without it, a later model call could repeat the lookup or mistakenly cite the incident as the cause.</p><p>Application code saves the results we want to retain and supplies relevant details in later model requests. This gives the model access to earlier findings without retraining it. A documentation search can supply context too, but finding reference material is different from retaining the history of a task.</p><p><strong>Long-term memory</strong>, on the other hand, retains selected information across tasks or sessions. It might store a support team&rsquo;s preferred diagnostic report format so the agent can reuse it in future cases. An agent can still complete a task using only short-term memory.</p><p>We should keep generated summaries separate from the records they describe. A saved summary of an earlier incident may guide a search, but the agent should get the current status from the service before recommending a next step. We should also prevent one customer&rsquo;s saved information from appearing in another customer&rsquo;s requests and remove it when it&rsquo;s no longer needed.</p><h2 id="wrap-up">Wrap-up</h2><p>A system with tools and persistent memory can still follow a predefined workflow. To decide whether our feature would benefit from giving the model more control, we can work through four questions:</p><ol><li><p><strong>What outcome are we delegating?</strong> Define what the system should accomplish and what evidence is needed to judge the result.</p></li><li><p><strong>Which decisions depend on information found during execution?</strong> Identify where the model needs discretion to choose a next step. If the useful paths are already well understood, ordinary workflow logic may be sufficient.</p></li><li><p><strong>Can the application support those decisions?</strong> Check that the required tools expose useful results and that task state preserves relevant evidence. Define the permissions and stopping conditions around the work.</p></li><li><p><strong>Does that discretion improve the outcome?</strong> Compare the agent with a simpler workflow on representative tasks. Include unsuccessful runs when measuring completion quality and operating cost.</p></li></ol><p>For more on building AI-powered applications and agents with Progress, check out the following resources:</p><ul><li><a target="_blank" href="https://www.telerik.com/nexus">Progress Nexus AI observability platform</a></li><li><a target="_blank" href="https://www.progress.com/">Progress Software: AI-Powered Applications</a></li><li><a target="_blank" href="https://www.progress.com/agentic-rag">Progress Agentic RAG</a></li></ul>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:10773d14-6dee-4d5f-87df-744ba0bf2560</id>
    <title type="text">Build and Deploy a Dockerized NestJS Application on Google Cloud Run</title>
    <summary type="text">Build an image for a NestJS project and deploy it on Google Cloud Platform and learn common tweaks and tips for updating and improving deployed services.</summary>
    <published>2026-11-17T17:46:16Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Christian Nwamba </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/build-deploy-dockerized-nestjs-application-google-cloud-run"/>
    <content type="text"><![CDATA[<p><span class="featured">Build an image for a NestJS project and deploy it on Google Cloud Platform and learn common tweaks and tips for updating and improving deployed services.</span></p><p>Containers allow us to package software and all its dependencies into a lightweight, portable unit that we can run and scale either locally or in the cloud. <a target="_blank" href="https://cloud.google.com/run">Google Cloud Run</a> is a service provided on Google Cloud Platform that allows developers to deploy and scale containers for virtually any kind of application with minimal effort.</p><p>Before running containers, we have to build images. Google Cloud Run allows us to build them in the cloud using buildpacks, or build them locally on our PC with container runtimes like <a target="_blank" href="https://www.docker.com/">Docker</a> or <a target="_blank" href="https://podman.io/">Podman</a>. This article will focus on the latter. We&rsquo;ll build an image for a <a target="_blank" href="https://nestjs.com/">NestJS</a> project and deploy it on Google Cloud Platform. We&rsquo;ll also cover common tips for updating and improving deployed services.</p><h2 id="prerequisites">Prerequisites</h2><p>This guide assumes that you&rsquo;re familiar with server-side programming in <a target="_blank" href="https://www.typescriptlang.org/">TypeScript</a> and have some familiarity with a container runtime like Docker or Podman.</p><h2 id="project-setup">Project Setup</h2><p>Let&rsquo;s start by setting up the NestJS project we&rsquo;ll be deploying. Open your terminal and run the following command:</p><pre class=" language-shell"><code class="prism  language-shell">ng new my-nest-backend
</code></pre><p>The command above uses the Nest CLI to create a project in a folder called <code>my-nest-backend</code>. Follow the prompts and accept all the defaults.</p><p>Next, let&rsquo;s install the dependencies we&rsquo;ll be needing. Run this command in your terminal:</p><pre class=" language-shell"><code class="prism  language-shell">pnpm i -save @nestjs/config 
</code></pre><p>We installed the config module to use environment variables. Later on, we&rsquo;ll show how to add and use environment variables in our deployment. For now, run this command in your terminal to create a file that will hold environment variables locally.</p><pre class=" language-shell"><code class="prism  language-shell">touch .env
</code></pre><p>Next, update the <code>.env</code> file to look like this:</p><pre class=" language-js"><code class="prism  language-js">MESSAGE<span class="token operator">=</span>dev<span class="token operator">-</span>message
</code></pre><p>Now let&rsquo;s update the contents of our <code>app.module.ts</code> file.</p><pre class=" language-ts"><code class="prism  language-ts"><span class="token keyword">import</span> <span class="token punctuation">{</span> Module <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@nestjs/common'</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> AppController <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'./app.controller'</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> AppService <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'./app.service'</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> ConfigModule <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@nestjs/config'</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> CoreModule <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'./dummy/core.module'</span><span class="token punctuation">;</span>

@<span class="token function">Module</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
imports<span class="token punctuation">:</span> <span class="token punctuation">[</span>
ConfigModule<span class="token punctuation">.</span><span class="token function">forRoot</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
    isGlobal<span class="token punctuation">:</span> <span class="token keyword">true</span><span class="token punctuation">,</span>
    ignoreEnvFile<span class="token punctuation">:</span> process<span class="token punctuation">.</span>env<span class="token punctuation">.</span>NODE_ENV <span class="token operator">===</span> <span class="token string">'production'</span><span class="token punctuation">,</span>
    envFilePath<span class="token punctuation">:</span> <span class="token punctuation">[</span>process<span class="token punctuation">.</span>env<span class="token punctuation">.</span>NODE_ENV <span class="token operator">!==</span> <span class="token string">'production'</span> <span class="token operator">?</span> <span class="token string">'.env'</span> <span class="token punctuation">:</span> <span class="token string">''</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
CoreModule<span class="token punctuation">,</span>
<span class="token punctuation">]</span><span class="token punctuation">,</span>
controllers<span class="token punctuation">:</span> <span class="token punctuation">[</span>AppController<span class="token punctuation">]</span><span class="token punctuation">,</span>
providers<span class="token punctuation">:</span> <span class="token punctuation">[</span>AppService<span class="token punctuation">]</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span>
<span class="token keyword">export</span> <span class="token keyword">class</span> <span class="token class-name">AppModule</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
</code></pre><p>We updated our <code>app.module.ts</code> to use the config module. There are two things to notice here: when not in production, we read environment variables from the <code>.env</code> file. In production, notice that the <code>ignoreEnv</code> option will be <code>true</code>. This allows our app to read any environment variables we inject into the container when we run our application in the cloud.</p><p>We&rsquo;ll also need one endpoint. Let&rsquo;s now update the <code>app.controller.ts</code> file with the following:</p><pre class=" language-ts"><code class="prism  language-ts"><span class="token keyword">import</span> <span class="token punctuation">{</span> Controller<span class="token punctuation">,</span> Get<span class="token punctuation">,</span> Post <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@nestjs/common'</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> AppService <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'./app.service'</span><span class="token punctuation">;</span>

@<span class="token function">Controller</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
<span class="token keyword">export</span> <span class="token keyword">class</span> <span class="token class-name">AppController</span> <span class="token punctuation">{</span>
<span class="token keyword">constructor</span><span class="token punctuation">(</span><span class="token keyword">private</span> readonly appService<span class="token punctuation">:</span> AppService<span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>

@<span class="token function">Get</span><span class="token punctuation">(</span><span class="token string">'/'</span><span class="token punctuation">)</span>
<span class="token function">getHello</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">string</span> <span class="token punctuation">{</span>
<span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span>appService<span class="token punctuation">.</span><span class="token function">getHello</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre><p>Also update your <code>app.service.ts</code> file with the following:</p><pre class=" language-ts"><code class="prism  language-ts"><span class="token keyword">import</span> <span class="token punctuation">{</span> Injectable <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@nestjs/common'</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> ConfigService <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@nestjs/config'</span><span class="token punctuation">;</span>

@<span class="token function">Injectable</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
<span class="token keyword">export</span> <span class="token keyword">class</span> <span class="token class-name">AppService</span> <span class="token punctuation">{</span>
    <span class="token keyword">constructor</span><span class="token punctuation">(</span><span class="token keyword">private</span> readonly configService<span class="token punctuation">:</span> ConfigService<span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
    <span class="token function">getHello</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">string</span> <span class="token punctuation">{</span>
    <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span>configService<span class="token punctuation">.</span>getOrThrow<span class="token operator">&lt;</span><span class="token keyword">string</span><span class="token operator">&gt;</span><span class="token punctuation">(</span><span class="token string">'MESSAGE'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre><p>Our demo app has one route, <code>/</code>, which, when triggered, calls the <code>getHello</code> method. This method returns the value of the <code>MESSAGE</code> environment variable.</p><p>To see our running application, open your terminal and run the following command:</p><pre class=" language-shell"><code class="prism  language-shell">pnpm run start:dev
</code></pre><p>Our app currently listens on port 3000, as shown in the <code>main.ts</code> file below:</p><pre class=" language-ts"><code class="prism  language-ts"><span class="token keyword">import</span> <span class="token punctuation">{</span> NestFactory <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@nestjs/core'</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> AppModule <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'./app.module'</span><span class="token punctuation">;</span>

<span class="token keyword">async</span> <span class="token keyword">function</span> <span class="token function">bootstrap</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">const</span> app <span class="token operator">=</span> <span class="token keyword">await</span> NestFactory<span class="token punctuation">.</span><span class="token function">create</span><span class="token punctuation">(</span>AppModule<span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">await</span> app<span class="token punctuation">.</span><span class="token function">listen</span><span class="token punctuation">(</span>process<span class="token punctuation">.</span>env<span class="token punctuation">.</span>PORT <span class="token operator">?</span><span class="token operator">?</span> <span class="token number">3000</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
<span class="token function">bootstrap</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre><p>Notice that our app listens on the special <code>process.env.PORT</code> value when provided. This will be important in production, since this value will be dynamically injected when the application is running within the container. For now, since we don&rsquo;t have it set locally, it defaults to port 3000.</p><p>Now visit <code>http://localhost:3000</code> to see the running application, as shown below:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/preview-of-local-nest-application.png?sfvrsn=632599f9_2" title="Preview of local Nest application" alt="Preview of local Nest application" /></p><h2 id="building-the-image">Building the Image</h2><p>We need to build the application&rsquo;s image before running it as a container. We already mentioned in the introductory section that the image can be built either locally or remotely.</p><p>When building locally, we can either use local buildpacks or, as in our case, leverage container runtimes like Docker or Podman.</p><p>Now, within the <code>my-nest-backend</code> folder, create a file called <code>Dockerfile</code> and update its contents as follows:</p><pre class=" language-js"><code class="prism  language-js">FROM node<span class="token punctuation">:</span><span class="token number">22</span><span class="token operator">-</span>alpine AS builder
WORKDIR <span class="token operator">/</span>app
RUN npm i <span class="token operator">-</span>g pnpm@<span class="token number">9</span>
COPY <span class="token keyword">package</span><span class="token punctuation">.</span>json pnpm<span class="token operator">-</span>lock<span class="token punctuation">.</span>yaml <span class="token punctuation">.</span><span class="token operator">/</span>
RUN pnpm install
COPY <span class="token punctuation">.</span> <span class="token punctuation">.</span>
RUN pnpm run build

FROM node<span class="token punctuation">:</span><span class="token number">22</span><span class="token operator">-</span>alpine AS runner
WORKDIR <span class="token operator">/</span>app
COPY <span class="token operator">--</span><span class="token keyword">from</span><span class="token operator">=</span>builder <span class="token operator">/</span>app<span class="token operator">/</span>node_modules <span class="token punctuation">.</span><span class="token operator">/</span>node_modules
COPY <span class="token operator">--</span><span class="token keyword">from</span><span class="token operator">=</span>builder <span class="token operator">/</span>app<span class="token operator">/</span>dist <span class="token punctuation">.</span><span class="token operator">/</span>dist
USER test
EXPOSE <span class="token number">3000</span>
CMD <span class="token punctuation">[</span><span class="token string">"node"</span><span class="token punctuation">,</span> <span class="token string">"dist/main.js"</span><span class="token punctuation">]</span>
</code></pre><p>Our Dockerfile is straightforward: it has two main stages. In the first stage, we install the pnpm package manager, use it to install all dependencies listed in <code>package.json</code>, and then build the app.</p><p>The second stage simply copies over the contents from the build step: the <code>node_modules</code> folder and the generated <code>dist</code> folder, from the first (<code>builder</code>) stage.</p><p>For security reasons, we also set the <code>USER</code> to <code>test</code> so that commands don&rsquo;t run as root. The <code>EXPOSE</code> instruction just documents in the image metadata that the app may listen on port 3000. Finally, the <code>CMD</code> instruction holds the command used to start the container from the image.</p><p>To build the image, open your terminal within the project directory and run the following command:</p><pre class=" language-shell"><code class="prism  language-shell">docker build . -f Dockerfile --platform linux/amd64 -t chrisnw/dummy-app:0002
</code></pre><p>The command above builds the image. The period (<code>.</code>) defines the build context, which in our case is the <code>my-nest-backend</code> folder. The <code>-f</code> flag specifies the file where the build script is located. This is optional if the file is named <code>Dockerfile</code>; we only added here for clarity.</p><p>Also notice that we specified the <code>--platform</code> flag and set it to <code>linux/amd64</code>. This is important to allow the generated image to run correctly, particularly when the image is built on an Apple Silicon machine.</p><p>We tag the image <code>chrisnw/dummy-app:0002</code>. This follows the standard format of <code>&lt;DOCKER_HUB_USERNAME&gt;/IMAGE_NAME:TAG</code>. If you don&rsquo;t have a Docker Hub username, feel free to create one.</p><p>To push the image to Docker Hub, run the following command:</p><pre class=" language-shell"><code class="prism  language-shell">docker push chrisnw/dummy-app:0002  
</code></pre><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/docker-image-pushed.png?sfvrsn=4fabe86a_2" title="Docker image pushed to the personal Docker Hub registry" alt="Docker image pushed to the personal Docker Hub registry" /></p><p>As seen above, the command executes successfully. The Docker image is pushed to the personal Docker Hub registry associated with the specified username.</p><h2 id="deploying-the-container-on-google-cloud-run">Deploying the Container on Google Cloud Run</h2><p>Internally, Google Cloud Run is based on Kubernetes, but with a simplified interface. Users are able to run any kind of workload, provided it&rsquo;s housed in a container. You can either provide a built image, like we did, or have Cloud Run build it for you, either by pointing it to your source code or by using their provided buildpacks to have the build done in the cloud.</p><p>To start, visit Google Cloud Platform and create a project. Note that we can use the <code>gcloud</code> CLI to execute all these steps in the terminal, but for simplicity, we&rsquo;ll be doing everything through the UI.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/creating-a-project-on-gcp.png?sfvrsn=a1c006d5_2" title="Creating a project on GCP" alt="Creating a project on GCP" /></p><p>Select the project as the default project, as shown below.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/selecting-a-project.png?sfvrsn=5d2a290b_2" title="Selecting a project" alt="Selecting a project" /></p><p>Next, we need to enable billing on our project to be able to use Cloud Run. Select <strong>Billing</strong> from the sidebar.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/locating-billing-option.png?sfvrsn=9e05f369_2" title="Locating the billing option" alt="Locating the billing option" /></p><p>Next, click on <strong>&ldquo;Link a billing account&rdquo;</strong> and select an account to link.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/enabling-billing.png?sfvrsn=eec54b13_2" title="Enabling billing on the project" alt="Enabling billing on the project" /></p><p>Now that billing is set up, we can go to the Cloud Run console. The quickest way to access it is by using the search bar.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/locating-cloud-run.png?sfvrsn=dd0168ce_2" title="Locating the Cloud Run application platform" alt="Locating the Cloud Run application platform" /></p><h2 id="creating-a-service">Creating a Service</h2><p>Now click on <strong>Cloud Run</strong>. Next, on the sidebar, select <strong>Services</strong> and click on <strong>Deploy container</strong>.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/creating-a-service.png?sfvrsn=3b83222b_2" title="Creating a service on Cloud run" alt="Creating a service on Cloud run" /></p><p>We chose the <strong>Service</strong> option because this is used for any HTTP-triggerable workload, like a web server in our case. Note that a service can be used to run one or more containers.</p><p>After clicking on <strong>Deploy container</strong> we&rsquo;re presented with a form to configure the service before deploying.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/configure-the-service.png?sfvrsn=2f79bde6_2" title="Form to configure the service" alt="Form to configure the service" /></p><p>We choose <strong>&ldquo;Deploy from a container image&rdquo;</strong>, then provide the URL to the image we just pushed to Docker Hub. We name our service <code>dummy-app</code>. Notice that we also get an automatically generated URL to visit our application. In our case, it&rsquo;s <code>https://dummy-app-847822676051.europe-west1.run.app/</code>.</p><h2 id="configuring-instances-and-billing">Configuring Instances and Billing</h2><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/request-based-billing.png?sfvrsn=751b99ae_2" title="Enabling request based billing for service" alt="Enabling request based billing for service" /></p><p>Services can be billed per request or per instance. Request-based billing, as the name implies, means you&rsquo;re charged per request to your server. This way, lower traffic means lower charges, and vice versa.</p><p>However, your server won&rsquo;t be able to run background tasks like CRON jobs or spawn workers to process tasks in a queue, since instances sleep when there&rsquo;s no traffic.</p><p>If your web server needs to do this, it&rsquo;s preferable to opt for instance-based billing and specify a minimum number of instances to run, so the server is reachable and running without any cold starts. For our small server, we&rsquo;re fine with the request-based setup.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/configure-resources-for-container.png?sfvrsn=bc2bdb8a_2" title="Configure resources for container" alt="Configure resources for container" /></p><p>Next, we need to configure the container settings. For memory and compute, we leave the defaults. We didn&rsquo;t set the container command field, since we already set it when we built the image&mdash;i.e., the <code>CMD ["node", "dist/main.js"]</code> we set earlier in our Dockerfile.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/adding-environment-variables.png?sfvrsn=37e60acc_2" title="Adding environment variables for container" alt="Adding environment variables for container" /></p><p>Next, we switch to the <strong>Variables and Secrets</strong> tab. We added one environment variable called <code>MESSAGE</code> and set its value to a dummy value we called <code>prod-message</code>. You can add multiple variables by clicking the <strong>Add variable</strong> button.</p><p>However, for sensitive credentials, like API keys or database connection strings, which shouldn&rsquo;t be exposed as plain text, you can click on <strong>&ldquo;Reference a secret&rdquo;</strong> to enable the Secret Manager API and add one or more secrets to reference here.</p><p>Finally, click on the <strong>Create</strong> button to deploy the service. If everything works fine, visit the URL now, and you should see the running application, as shown below:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/testing-the-production-url.png?sfvrsn=b54f812a_2" title="Testing the production URL" alt="Testing the production URL" /></p><h2 id="making-changes-and-redeploying-the-application">Making Changes and Redeploying the Application</h2><p>To redeploy our application, let&rsquo;s make a change to the code. Update your <code>app.service.ts</code> file.</p><pre class=" language-ts"><code class="prism  language-ts"><span class="token keyword">import</span> <span class="token punctuation">{</span> Injectable <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@nestjs/common'</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> ConfigService <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@nestjs/config'</span><span class="token punctuation">;</span>

@<span class="token function">Injectable</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
<span class="token keyword">export</span> <span class="token keyword">class</span> <span class="token class-name">AppService</span> <span class="token punctuation">{</span>
 <span class="token keyword">constructor</span><span class="token punctuation">(</span><span class="token keyword">private</span> readonly configService<span class="token punctuation">:</span> ConfigService<span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>
 <span class="token function">getHello</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token keyword">string</span> <span class="token punctuation">{</span>
   <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span>configService<span class="token punctuation">.</span>getOrThrow<span class="token operator">&lt;</span><span class="token keyword">string</span><span class="token operator">&gt;</span><span class="token punctuation">(</span><span class="token string">'MESSAGE'</span><span class="token punctuation">)</span> <span class="token operator">+</span> <span class="token string">''</span><span class="token punctuation">;</span>
 <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre><p>We simply added an emoji to the returned string from our <code>getHello</code> method. Now we can proceed to build the image by running:</p><pre class=" language-shell"><code class="prism  language-shell">docker build . --platform linux/amd64 -t chrisnw/dummy-app:0003
</code></pre><p>And push the image by running:</p><pre class=" language-shell"><code class="prism  language-shell">docker push benguma/dummy-app:0003
</code></pre><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/redeploying-an-existing-service.png?sfvrsn=673390c2_2" title="Changing the image tag and redeploying an existing service" alt="Changing the image tag and redeploying an existing service" /></p><p>Now, on the <strong>Container</strong> tab, we update the field pointing to the new image. Click <strong>&ldquo;View diff and deploy&rdquo;</strong>, then click <strong>&ldquo;Deploy changes&rdquo;</strong>.</p><h2 id="automating-for-cicd">Automating for CI/CD</h2><p>Instead of manually building and publishing the image, we can make the build step part of our CI/CD pipeline using common options like GitHub Actions. Google Cloud Run also provides the necessary automation scripts we can plug in to speed up image building, pushing and deployment.</p><h2 id="conclusion">Conclusion</h2><p>Google Cloud Run makes it easy for developers to leverage the powerful features of Kubernetes, including its rich ecosystem of middleware and plugins, without dealing with the usual complexity. Hopefully, this demo can serve as a starting point for deploying similar workloads on Google Cloud Platform in your future projects.</p><aside><hr data-sf-ec-immutable="" /><div class="row"><div class="col-4 u-normal-full u-small-mb0"><h4 class="u-fs20 u-fw5 u-lh125 u-mb0">So the &lsquo;AI Differentiator&rsquo; Is Taste &hellip; But What IS Taste?</h4></div><div class="col-8"><p class="u-fs16 u-mb0"><a target="_blank" href="https://www.telerik.com/blogs/so-ai-differentiator-taste-but-what-taste">How do we define &ldquo;taste&rdquo; as developers?</a> And can we cultivate taste as a skill?</p></div></div></aside>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:213ce27b-6fba-4e4a-b71f-1fa47172dd7e</id>
    <title type="text">Blazor Basics: Introduction to Generic Type Support in Blazor</title>
    <summary type="text">Learn the benefits of using generic type arguments using the @typeparam directive to implement reusable and type-safe Razor components.</summary>
    <published>2026-11-17T17:28:00Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Claudio Bernasconi </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/blazor-basics-introduction-generic-type-support-blazor"/>
    <content type="text"><![CDATA[<p><span class="featured">Learn the benefits of using generic type arguments using the @typeparam directive to implement reusable and type-safe Razor components.</span></p><p>Generic type support brings generic types to Razor components, letting us build scalable Blazor web applications.</p><p>In this article, we will learn how to use generic types in our Razor components and when we might want to consider using them.</p><p><strong>Hint:</strong> If you are new to generics in C#, please familiarize yourself first with generic types and methods in C# to be able to follow along.</p><p>You can <a target="_blank" href="https://github.com/claudiobernasconi/BlazorGenericTypeSupport">access the code on GitHub</a>.</p><h2 id="implementing-a-simple-generic-razor-component">Implementing a Simple Generic Razor Component</h2><p>The <code>@typeparam</code> attribute allows us to define a generic parameter for a Razor component.</p><p>Consider the following simple generic <code>NamedObjectRenderer</code> component:</p><pre class=" language-csharp"><code class="prism  language-csharp">@typeparam TType <span class="token keyword">where</span> TType <span class="token punctuation">:</span> INamedObject

<span class="token operator">&lt;</span>div<span class="token operator">&gt;</span>@Object<span class="token punctuation">.</span><span class="token function">GetName</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>

@code <span class="token punctuation">{</span>
    <span class="token punctuation">[</span>Parameter<span class="token punctuation">]</span>
    <span class="token keyword">public</span> required TType Object <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre><p>This component defines a generic type using the <code>@typeparam</code> directive.</p><p>We can then use <code>TType</code> as the type for the parameter property called <code>Object</code>.</p><p>Since we use a <strong>type constraint</strong>, we can use the <code>GetName</code> method defined in the <code>INamedObject</code> interface:</p><pre class=" language-csharp"><code class="prism  language-csharp"><span class="token keyword">public</span> <span class="token keyword">interface</span> <span class="token class-name">INamedObject</span>
<span class="token punctuation">{</span>
    <span class="token keyword">string</span> <span class="token function">GetName</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
</code></pre><p>Now, let&rsquo;s use the component.</p><pre class=" language-csharp"><code class="prism  language-csharp">@code <span class="token punctuation">{</span>
    <span class="token keyword">private</span> Person person <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Person</span> <span class="token punctuation">{</span> Name <span class="token operator">=</span> <span class="token string">"Peter Parker"</span><span class="token punctuation">,</span> Age <span class="token operator">=</span> <span class="token number">22</span> <span class="token punctuation">}</span><span class="token punctuation">;</span>

    <span class="token keyword">public</span> <span class="token keyword">class</span> <span class="token class-name">Person</span> <span class="token punctuation">:</span> INamedObject
    <span class="token punctuation">{</span>
        <span class="token keyword">public</span> required <span class="token keyword">string</span> Name <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
        <span class="token keyword">public</span> required <span class="token keyword">int</span> Age <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>

        <span class="token keyword">public</span> <span class="token keyword">string</span> <span class="token function">GetName</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
        <span class="token punctuation">{</span>
            <span class="token keyword">return</span> Name<span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre><p>First, we create a <code>Person</code> class that implements the <code>INamedObject</code> interface. We add two properties <code>Name</code> and <code>Age</code>, and provide the value of the <code>Name</code> property in the <code>GetName</code> method from the <code>INamedObject</code> interface.</p><p>The usage of the <code>NamedObjectRenderer</code> component is straightforward:</p><pre class=" language-html"><code class="prism  language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>NamedObjectRenderer</span> <span class="token attr-name">Object</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>person<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
</code></pre><p>We provide an object of the <code>Person</code> class as the argument for the <code>Object</code> parameter of the <code>NamedObjectRenderer</code> component.</p><p><strong>Hint:</strong> Notice that we do not specifically provide the <code>Person</code> type as an argument for the <code>TType</code> parameter. That&rsquo;s possible because Blazor is able to infer the type of the provided object.</p><p>It&rsquo;s also possible to explicitly provide the type for the generic type argument. However, in most cases, type inference is good enough and makes using generic Razor components straightforward.</p><pre class=" language-html"><code class="prism  language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>NamedObjectRenderer</span> <span class="token attr-name">Object</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>person<span class="token punctuation">"</span></span> <span class="token attr-name">TType</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>Person<span class="token punctuation">"</span></span> <span class="token punctuation">/&gt;</span></span>
</code></pre><h2 id="implementing-a-higher-level-generic-razor-component">Implementing a Higher-Level Generic Razor Component</h2><p>The previous example demonstrated the foundation of how to implement generic Razor components.</p><p>I agree that the example doesn&rsquo;t feel revolutionary. There might be use cases here and there for it, but it does not change the general approach to how you will implement your Blazor web applications.</p><p>However, we can build on that foundation and implement a more advanced generic Razor component that has the potential to change how you structure and architect your Blazor web applications.</p><p><strong>Consider the following scenario:</strong> We want to render two columns on the screen. A name and a value column. We want to implement a single component to encapsulate the behavior and the look and feel of the component.</p><p><strong>But there is a twist!</strong> We want to be able to use that component with completely <strong>different</strong> data objects.</p><p>The following generic <code>DataTable</code> component is a great example:</p><pre class=" language-csharp"><code class="prism  language-csharp">@typeparam TItem

<span class="token operator">&lt;</span>table style<span class="token operator">=</span><span class="token string">"margin-top: 20px"</span><span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span>thead<span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span>tr<span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>th style<span class="token operator">=</span><span class="token string">"width: 120px"</span><span class="token operator">&gt;</span>Name<span class="token operator">&lt;</span><span class="token operator">/</span>th<span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>th<span class="token operator">&gt;</span>Value<span class="token operator">&lt;</span><span class="token operator">/</span>th<span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span><span class="token operator">/</span>tr<span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span><span class="token operator">/</span>thead<span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span>tbody<span class="token operator">&gt;</span>
        @<span class="token keyword">foreach</span> <span class="token punctuation">(</span><span class="token keyword">var</span> item <span class="token keyword">in</span> Items<span class="token punctuation">)</span>
        <span class="token punctuation">{</span>
            <span class="token operator">&lt;</span>tr<span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span>td<span class="token operator">&gt;</span>@<span class="token function">GetName</span><span class="token punctuation">(</span>item<span class="token punctuation">)</span><span class="token operator">&lt;</span><span class="token operator">/</span>td<span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span>td<span class="token operator">&gt;</span>@<span class="token function">GetValue</span><span class="token punctuation">(</span>item<span class="token punctuation">)</span><span class="token operator">&lt;</span><span class="token operator">/</span>td<span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span><span class="token operator">/</span>tr<span class="token operator">&gt;</span>
        <span class="token punctuation">}</span>
    <span class="token operator">&lt;</span><span class="token operator">/</span>tbody<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>table<span class="token operator">&gt;</span>

@code <span class="token punctuation">{</span>
    <span class="token punctuation">[</span>Parameter<span class="token punctuation">]</span>
    <span class="token keyword">public</span> IEnumerable<span class="token operator">&lt;</span>TItem<span class="token operator">&gt;</span> Items <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>

    <span class="token punctuation">[</span>Parameter<span class="token punctuation">]</span>
    <span class="token keyword">public</span> required Func<span class="token operator">&lt;</span>TItem<span class="token punctuation">,</span> <span class="token keyword">string</span><span class="token operator">&gt;</span> GetName <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>

    <span class="token punctuation">[</span>Parameter<span class="token punctuation">]</span>
    <span class="token keyword">public</span> required Func<span class="token operator">&lt;</span>TItem<span class="token punctuation">,</span> <span class="token keyword">string</span><span class="token operator">&gt;</span> GetValue <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre><p>Again, we define a generic type argument using the <code>@typeparam</code> directive at the top of the component.</p><p>In the code section, we use that type to implement three parameter properties. The <code>Items</code> property of type <code>IEnumerable&lt;TItem&gt;</code> contains a list of the provided items.</p><p>This list is looped through in the template section of the code, and for each item, the <code>GetName</code> and <code>GetValue</code> functions provided in the second and third component parameter are called.</p><p>Now, let&rsquo;s see how we can use that component in our applications and why this implementation is as powerful as I advertised it.</p><pre class=" language-csharp"><code class="prism  language-csharp">@page <span class="token string">"/"</span>

<span class="token operator">&lt;</span>DataTable Items<span class="token operator">=</span><span class="token string">"persons"</span>
           GetName<span class="token operator">=</span><span class="token string">"p =&gt; p.GetName()"</span>
           GetValue<span class="token operator">=</span><span class="token string">"p =&gt; p.Age.ToString()"</span> <span class="token operator">/</span><span class="token operator">&gt;</span>

@code <span class="token punctuation">{</span>
    <span class="token keyword">private</span> Person<span class="token punctuation">[</span><span class="token punctuation">]</span> persons <span class="token operator">=</span> <span class="token punctuation">[</span>
        <span class="token keyword">new</span> <span class="token class-name">Person</span> <span class="token punctuation">{</span> Name <span class="token operator">=</span> <span class="token string">"Peter Parker"</span><span class="token punctuation">,</span> Age <span class="token operator">=</span> <span class="token number">22</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> 
        <span class="token keyword">new</span> <span class="token class-name">Person</span> <span class="token punctuation">{</span> Name <span class="token operator">=</span> <span class="token string">"Mary Jane"</span><span class="token punctuation">,</span> Age <span class="token operator">=</span> <span class="token number">20</span> <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">;</span>

    <span class="token keyword">public</span> <span class="token keyword">class</span> <span class="token class-name">Person</span> <span class="token punctuation">:</span> INamedObject
    <span class="token punctuation">{</span>
        <span class="token keyword">public</span> required <span class="token keyword">string</span> Name <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
        <span class="token keyword">public</span> required <span class="token keyword">int</span> Age <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>

        <span class="token keyword">public</span> <span class="token keyword">string</span> <span class="token function">GetName</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
        <span class="token punctuation">{</span>
            <span class="token keyword">return</span> Name<span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre><p>Here, we have the same <code>Person</code> class we already used in the first chapter of this article. We create a list of <code>Person</code> objects and provide that list to the <code>Items</code> parameter of the <code>DataTable</code> component.</p><p>The magic happens in the definition of the <code>GetName</code> and <code>GetValue</code> parameter functions.</p><p>We use a lambda expression to define the behavior of the <code>GetName</code> and <code>GetValue</code> parameters.</p><p>For the <code>Person</code> class, we use its <code>GetName</code> method to render the person&rsquo;s name, and for the value column, we use the <code>Age</code> property and call its <code>ToString</code> method.</p><p><strong>By using a generic type argument, we can implement the behavior of the <code>DataTable</code> component outside the component definition.</strong></p><p>Let&rsquo;s look at a second example using a completely unrelated object:</p><pre class=" language-csharp"><code class="prism  language-csharp">@page <span class="token string">"/"</span>

<span class="token operator">&lt;</span>DataTable Items<span class="token operator">=</span><span class="token string">"animals"</span>
           GetName<span class="token operator">=</span><span class="token string">"p =&gt; p.Name"</span>
           GetValue<span class="token operator">=</span><span class="token string">"p =&gt; p.Type"</span> <span class="token operator">/</span><span class="token operator">&gt;</span>

@code <span class="token punctuation">{</span>
    <span class="token keyword">private</span> Animal<span class="token punctuation">[</span><span class="token punctuation">]</span> animals <span class="token operator">=</span> <span class="token punctuation">[</span>
        <span class="token keyword">new</span> <span class="token class-name">Animal</span> <span class="token punctuation">{</span> Name <span class="token operator">=</span> <span class="token string">"Tom"</span><span class="token punctuation">,</span> Type <span class="token operator">=</span> <span class="token string">"Cat"</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">new</span> <span class="token class-name">Animal</span> <span class="token punctuation">{</span> Name <span class="token operator">=</span> <span class="token string">"Cherry"</span><span class="token punctuation">,</span> Type <span class="token operator">=</span> <span class="token string">"Mouse"</span> <span class="token punctuation">}</span>
    <span class="token punctuation">]</span><span class="token punctuation">;</span>

    <span class="token keyword">public</span> <span class="token keyword">class</span> <span class="token class-name">Animal</span>
    <span class="token punctuation">{</span>
        <span class="token keyword">public</span> required <span class="token keyword">string</span> Name <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
        <span class="token keyword">public</span> required <span class="token keyword">string</span> Type <span class="token punctuation">{</span> <span class="token keyword">get</span><span class="token punctuation">;</span> <span class="token keyword">set</span><span class="token punctuation">;</span> <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre><p>Here, we implement an <code>Animal</code> class with two properties <code>Name</code> and <code>Type</code>.</p><p>We want the animal&rsquo;s name (what the owner calls the pet) and its type (kind of animal).</p><p>We can reuse the same <code>DataTable</code> component and provide a list of animals to the <code>Items</code> property. Again, type inference works perfectly; we do not need to explicitly provide the <code>Animal</code> type.</p><p>And again, we implement the behavior from outside the <code>DataTable</code> component when we use it, rather than when we define it. We use the <code>Name</code> property for the name column value and the <code>Type</code> property for the value column.</p><p><strong>This example shows how to implement flexible, generic Razor components that let you share code across multiple uses of the same component and let each instance provide the behavior.</strong></p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/generic-type-arguments-in-action.png?sfvrsn=172da4c0_2" title="Generic Type Arguments in Action" alt="A Blazor web application with two data tables rendered using the same DataTable component. Both tables look and feel the same with a Name column and a Value column." /></p><p><em>We can see that the look and feel of the first and the second list are exactly the same while we know that we provided two completely unrelated data types.</em></p><h2 id="the-advantages-of-generic-razor-components">The Advantages of Generic Razor Components</h2><p>We learned how to use the <code>@typeparam</code> directive to implement a generic type argument for Razor components.</p><p>We also implemented two examples that show how to build generic Razor components for your Blazor web applications.</p><p>Now, let&rsquo;s look at the advantages of using generic type arguments in Razor components more broadly:</p><ol><li>Generic type arguments make components <strong>more reusable</strong> and keep them type-safe. Instead of using object as the base type of a parameter or using <code>System.Reflection</code>, the compiler provides a type-safe environment.</li><li>Using the <code>Func&lt;TItem, ...&gt;</code> construct, we can <strong>inject/provide behavior from outside the component</strong>. It is possible to use different behavior in each component instance depending on the data provided.<br />The component in our second example does not need to know whether it renders a list of animals, persons, or buildings. But it is responsible for providing a consistent and user-friendly experience.</li><li>Thanks to <strong>type inference</strong>, we do not need to explicitly provide the generic type when using the component. Blazor can infer the type for us. This helps us keep the code concise and expressive.</li></ol><p><strong>In short:</strong> Generic type support lets us implement generic type arguments in Razor components, allowing us to reuse a type-safe component that provides a consistent look and feel and provides the behavior for each instance.</p><h2 id="conclusion">Conclusion</h2><p>Generic Razor components are a powerful tool for building reusable and type-safe Blazor applications. By using the <code>@typeparam</code> directive, we can create components that work with different data types.</p><p>Generic components can separate a component&rsquo;s presentation (rendering) from its data and behavior.</p><p>In the <code>DataTable</code> example component, we demonstrated how to use the same Razor component with two completely unrelated data classes.</p><p>Compared to implementing a Razor component for each data type and somehow finding a solution to share the template code, generic type arguments provide an elegant and concise solution.</p><p>If you want to learn more about Blazor development, watch my <a target="_blank" href="https://www.youtube.com/playlist?list=PLwISgxnkpZGL_LhTQCWwp-WCzupv7lcp0">free Blazor Crash Course</a> on YouTube. And stay tuned to the Telerik blog for more <a target="_blank" href="https://www.telerik.com/blogs/tag/blazor-basics">Blazor Basics</a>.</p>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:1a8b66e3-d506-44d2-9a7e-c84ff7fc17fc</id>
    <title type="text">5 Agent Skills for Production Web Apps: Teach Your AI Coding Agent to Slow Down</title>
    <summary type="text">Explore five Agent Skills, plus a bonus, that make AI coding agents act like 10x engineers.</summary>
    <published>2026-11-16T21:07:38Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Peter Mbanugo </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/5-agent-skills-production-web-apps-teach-ai-coding-agent-slow-down"/>
    <content type="text"><![CDATA[<p><span class="featured">Explore five Agent Skills, plus a bonus, that make AI coding agents act like 10x engineers.</span></p><p>Coding agents have become a daily tool for most people. They give you a useful prototype to convince your team or management of a new feature or product, but soon after, you have to ship and maintain that prototype in production. Six months down the line, you&rsquo;re struggling to ship a quality product despite the initial productivity gains. Why?</p><p>Most likely because your coding agent has turned the codebase into a big ball of spaghetti where fixing one issue quietly surfaces another bug. Features are partially done, and bug fixes are shallow and sometimes brittle.</p><p>The media is full of hype that AI will replace coding and software engineers, showing apps that were created (one-shotted?) with a single prompt. These <em>hype-driven</em> apps paint a different reality to what those of us who have to maintain and continuously ship products to customers experience. While some people are suffering from AI slop, there are others who are shipping quality products with AI. Large Language Models have improved a lot in the past few months, but so has the tooling around AI, which is what makes it either valuable or useless.</p><p>One of those capabilities for AI Agents is <a target="_blank" href="https://agentskills.io/"><strong>Agent Skills</strong></a>.</p><p>Agent Skills are a way to make agents more capable and smart by giving them special knowledge or a defined workflow for specific tasks. In this post, I&rsquo;m going to share five skills to take you from ideation/prototype to production. With them, you can build a loop/lifecycle&mdash; <strong>specify &rarr; build &rarr; measure &rarr; secure &rarr; diagnose &rarr; repeat </strong> &mdash;for high-quality <strong>agentic web development</strong> with any coding agents. The following sections list five Agent Skills I recommend today.</p><aside><hr data-sf-ec-immutable="" /><div class="row"><div class="col-4 u-normal-full u-small-mb0"><h4 class="u-fs20 u-fw5 u-lh125 u-mb0">AI Crash Course: MCP Servers, Agents, AI Assistants and Skills</h4></div><div class="col-8"><p class="u-fs16 u-mb0">Still unsure what Agent Skills are? Let&rsquo;s sort out the differences between <a target="_blank" href="https://www.telerik.com/blogs/ai-crash-course-mcp-servers-agents-ai-assistants-skills">MCP servers, AI agents or assistants, and AI skills</a>.</p></div></div><hr class="u-mb3" /></aside><h2 id="specification-driven-development">1. Specification-Driven Development</h2><p>Claims about <em>one-shot prompts</em> are only worthy of media attention. They don&rsquo;t work for real issues in the real world. To get your agent to consistently produce quality work, you need to document the requirements of the product or feature.</p><p>Most software teams already have a practice of writing a product specification to manage a product&rsquo;s development and verify the right product gets delivered. Agents benefit from such a document as well because it helps them avoid hallucinations.</p><p>Therefore, the first recommendation is Addy Osmani&rsquo;s <a target="_blank" href="https://skills.addy.ie/skills/spec-driven-development/"><code>spec-driven-development</code></a> skill. You use it to create requirement document(s) for a project, new features, big changes, vague tickets or older codebases where the agent needs to learn the boundaries before it touches anything.</p><p>You can add it to your project using the skills CLI command below:</p><pre class=" language-bash"><code class="prism  language-bash">npx skills add addyosmani/agent-skills --skill spec-driven-development
</code></pre><h2 id="incremental-implementation-keep-the-diffs-small">2. incremental-implementation: Keep the Diffs Small</h2><p>Coding agents are good at generating lots of code, which can be overwhelming for a &ldquo;human in the loop&rdquo; to review. They add more code than they remove, which leads to code/architecture complexity. My second recommendation, the <a target="_blank" href="https://skills.addy.ie/skills/incremental-implementation/"><code>incremental-implementation</code></a> skill, is a way to guide the agent toward delivering changes incrementally. Using it breaks up work into thin, end-to-end slices you can test and revert, with safe defaults and feature flags where they fit.</p><p>Say you&rsquo;re adding passkeys to an existing login system. The tempting move by the agent could be one big change that cuts across database schema, sign-up and login screen, settings, account recovery, API types and tests. It might not even work properly. This skill steers the agent toward iterative development such that you might discover cross-functional concerns as the work progresses.</p><p>You can add this skill to your project using the command:</p><pre class=" language-bash"><code class="prism  language-bash">npx skills add addyosmani/agent-skills --skill incremental-implementation
</code></pre><h2 id="web-performance-audit-and-optimization">3. Web Performance Audit and Optimization</h2><p>Performance is an important aspect of delivering a great product and user experience. I&rsquo;ve consulted for teams that usually leave out performance until after a product is shipped and their users are complaining. Coding agents and skills make it easier to adopt performance as part of your engineering process, rather than an afterthought. You should add it to your product requirement when drafting a PRD with the <a target="_blank" href="https://skills.addy.ie/skills/spec-driven-development/"><code>spec-driven-development</code></a> skill, and measure it at various milestones.</p><p>The <a target="_blank" href="https://github.com/cloudflare/skills/blob/main/skills/web-perf/SKILL.md"><code>web-perf</code></a> skill can be used to measure, diagnose or optimize your web application&rsquo;s performance. The agent gets smarter with tools to record a trace, read the Core Web Vitals, diagnose with Chrome DevTools and report or fix issues found. Use this skill when you want to audit and fix, or to optimize web performance.</p><p>Run the command below to add it to your project:</p><pre class=" language-bash"><code class="prism  language-bash">npx skills add https://github.com/cloudflare/skills --skill web-perf
</code></pre><h2 id="security-audit">4. Security Audit</h2><p>Just like performance, security is an important component of the web. My fourth skills recommendation is the <a target="_blank" href="https://github.com/cloudflare/security-audit-skill"><code>security-audit</code></a> made by the folks at Cloudflare. It turns your agent into a security auditor that orchestrates isolated agents through reconnaissance, coverage-led hunting, candidate validation, structured output, independent record verification and target-neutral reporting. You could even build a custom security harness out of it.</p><p>Reach for this skill when you need to audit/review authentication or authorization changes, public API, periodic security analysis and other security related needs.</p><p>You can install it with the Skills CLI using the command below:</p><pre class=" language-bash"><code class="prism  language-bash">npx skills add https://github.com/cloudflare/security-audit-skill --skill security-audit
</code></pre><h2 id="debugging">5. Debugging</h2><p>LLMs will give you a solution to any problem you throw at it, but it&rsquo;s very likely to produce a poor-quality result. They can easily solve simple problems, but fail when the problem is a complex one in a large codebase. Just as you developed a structure when debugging as a programmer, you need to give your agents a process if you want quality results.</p><p>That&rsquo;s where the <a target="_blank" href="https://mcpservers.org/agent-skills/cloudflare/debug-plan"><code>debug-plan</code></a> agent skill comes in. It is a skill that gives the agent a structure for diagnosing problems and exploring solutions.</p><p>You can add it to your project using the Skills CLI:</p><pre class=" language-bash"><code class="prism  language-bash">npx skills add https://github.com/cloudflare/agents --skill debug-plan
</code></pre><h2 id="your-agentic-engineering-looplifecycle">Your Agentic Engineering Loop/Lifecycle</h2><p>I have given you five Agent Skills to give various expertise to your AI agent. You can apply them to develop an agentic product engineering lifecycle that looks like the following:</p><pre class=" language-text"><code class="prism  language-text">SPECIFY &rarr; BUILD &rarr; MEASURE PERFORMANCE &rarr; SECURE &rarr; RUN / DEBUG
   &uarr;                                  │
   └────────────── change ────────────┘
</code></pre><p>You start by creating a product requirement document or specification for a feature. Then move to iterative development, and afterward a performance and security audit before deploying to production. Here are the five Agent Skills at a glance:</p><table><style>table,
 th,
    td {
      border: 1px;
      border-color: #bdbdba;
      border-style: dotted;
      border-collapse: collapse;
      margin-right: auto;
      padding: 0in 5.4pt 0in 5.4pt;
      text-align: left;
    }
  </style>
 <thead><tr><th>Skill</th><th>Job</th><th>Why it made the list</th></tr></thead><tbody><tr><td><a target="_blank" href="https://skills.addy.ie/skills/spec-driven-development/"><code>spec-driven-development</code></a></td><td>Define</td><td>Turns a fuzzy request into a written spec before coding starts.</td></tr><tr><td><a target="_blank" href="https://skills.addy.ie/skills/incremental-implementation/"><code>incremental-implementation</code></a></td><td>Build</td><td>Keeps changes small, testable and easy to roll back.</td></tr><tr><td><a target="_blank" href="https://github.com/cloudflare/skills/blob/main/skills/web-perf/SKILL.md"><code>web-perf</code></a></td><td>Performance</td><td>Uses real browser trace and devtools to find performance problems.</td></tr><tr><td><a target="_blank" href="https://github.com/cloudflare/security-audit-skill"><code>security-audit</code></a></td><td>Secure</td><td>Runs a security review where findings must survive independent checks.</td></tr><tr><td><a target="_blank" href="https://mcpservers.org/agent-skills/cloudflare/debug-plan"><code>debug-plan</code></a></td><td>Diagnose</td><td>Starts production debugging with evidence, not fixes.</td></tr></tbody></table><br /><p>There&rsquo;s one bonus skill I&rsquo;d recommend in addition to the other five&mdash;the <a target="_blank" href="https://skills.addy.ie/skills/doubt-driven-development/">doubt-driven-development</a> skill. It is a skill that spawns a fresh-context reviewer for important decisions where multiple rounds of review could better reduce possible mistakes in your design or code. It looks for wrong assumptions, edge cases, hidden coupling and failure modes. You can add it to your project by running the command <code>npx skills add addyosmani/agent-skills --skill doubt-driven-development</code>.</p><p>You should consider using the doubt-driven-development agent skill when you&rsquo;re in an unfamiliar codebase where the stakes are high, or verifying <em>now</em> beats debugging later.</p><p>In reality, good Agent Skills don&rsquo;t make your AI coding agent faster. They make them produce better results by giving them the right context and structure.</p><p>You don&rsquo;t need 50 skills to get started. Pick one of the six I suggested and gradually integrate them to your project. Here are a few more resources for further reading and exploration:</p><ul><li><a target="_blank" href="https://agentskills.io/">Agent Skills open specification</a></li><li><a target="_blank" href="https://www.skills.sh/docs">skills.sh documentation</a></li><li><a target="_blank" href="https://skills.addy.ie/skills/">Addy Osmani&rsquo;s Agent Skills catalogue</a></li><li><a target="_blank" href="https://github.com/cloudflare/skills">Cloudflare Agent Skills repository</a></li></ul>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:f76c36a4-0466-45ae-8b4f-dcc9c764982b</id>
    <title type="text">Create a Cute Animal UI in .NET MAUI with Telerik UI Controls</title>
    <summary type="text">Using a fun design, we’ll build an application user interface for learning animals in .NET MAUI. Progress Telerik UI for .NET MAUI will make it easy!</summary>
    <published>2026-11-16T19:34:25Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Leomaris Reyes </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/create-cute-animal-ui-net-maui-telerik-ui-controls"/>
    <content type="text"><![CDATA[<p><span class="featured">Using a fun design, we&rsquo;ll build an application user interface for learning animals in .NET MAUI. Progress Telerik UI for .NET MAUI will make it easy!</span></p><p>This confession is probably not too surprising if you have been visiting the Telerik blog for a while: I <strong>love</strong> discovering beautiful designs and recreating them in .NET MAUI! There&rsquo;s no better way to learn, improve and sharpen development skills than by building interfaces.</p><p>For this project, we&rsquo;ll replicate a lovely animal UI inspired by a design I found on <a target="_blank" href="https://dribbble.com/shots/7172559-Learning-Animals-Kids-App">Dribbble</a>. The app consists of two screens: an animal list screen and a detail screen where users can explore more information about each animal.</p><p>So grab your favorite beverage ☕, open Visual Studio or Visual Studio Code, and let&rsquo;s bring this design to life with .NET MAUI!</p><h2 id="how-will-the-explanation-work">How Will the Explanation Work?</h2><p>So you can understand everything 100%, I&rsquo;ll explain how the process will work:</p><p>➖<strong>Visual diagram:</strong> Before we start, you&rsquo;ll see a diagram with a screenshot of the design we want to achieve. This design will be divided into blocks, each identified with a name and a color. Each one will be explained individually.</p><p>➖<strong>Code explanation per block:</strong> In addition to the written explanation, each screen includes a set of blocks with the code snippets you need to implement and achieve the final result.</p><p>➖<strong>Step-by-step visual progress:</strong> Each explanation will have its corresponding screenshot, so you can see the progress as we build the UI.</p><p>⚠️ For this design, we took inspiration from an original Dribbble UI, but made some adaptations and adjustments to align it with the goals of this article.</p><h3 id="-environment-setup"> Environment Setup</h3><p>You&rsquo;ll learn how to take advantage of some of the powerful Telerik UI for .NET MAUI components in this post. If you don&rsquo;t have the .NET MAUI library installed yet, visit the <a target="_blank" href="https://www.telerik.com/maui-ui/documentation/get-started/quickstart">quick start page</a>, which explains step-by-step how to install Telerik UI for .NET MAUI, download the license key, configure the Telerik package source and install the Telerik MCP server (if needed).</p><h2 id="breaking-down-the-design">Breaking Down the Design</h2><p>To make this easier to follow, I&rsquo;ve divided the design into clear blocks. We&rsquo;ll build each part one at a time, in the order you see below.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/01_animal_structure.png?sfvrsn=3d0fc5fd_2" alt="Visual structure" /></p><h2 id="popular-animals">1. Popular Animals</h2><p>Both the first and second sections belong to the main screen of our application. So, before we start creating the individual UI elements, let&rsquo;s create a page called <strong>LearningAnimals.xaml</strong>, which will contain Blocks 1 and 2.</p><pre class=" language-xml"><code class="prism  language-xml">&lt;Grid ColumnDefinitions="*,Auto" 
    RowDefinitions="Auto,Auto,Auto,Auto,Auto" 
    Margin="20,30" 
    VerticalOptions="Fill"&gt;
 
&lt;!-- Add blocks one and two here --&gt;
 
&lt;/Grid&gt;
</code></pre><p>Now we&rsquo;re ready to build the first section!</p><p>Inside this Grid, we&rsquo;ll start adding each of its elements along with the corresponding code snippets.</p><h3 id="learning-animals-label--search-button">Learning Animals Label &amp; Search Button</h3><p>There are two important details worth highlighting in this section:</p><p>➖ For the title, let&rsquo;s use this symbols combination <code>&amp;#10;</code>. This allows us to create a line break in the text without needing to create a Label for each word.</p><p>➖ To create the circular search button, we simply set the same value for both the <strong>HeightRequest</strong> and <strong>WidthRequest</strong> properties, and then set the <strong>CornerRadius</strong> to half of that value.</p><pre class=" language-xml"><code class="prism  language-xml">&lt;Label Grid.Column="0" Grid.Row="0" 
    Text="Learning&amp;#10;Animals" 
    HorizontalOptions="Start" 
    FontSize="23" 
    FontAttributes="Bold"/&gt; 
    
&lt;Button Grid.Column="0" Grid.Row="0" 
    HeightRequest="40" 
    WidthRequest="40" 
    CornerRadius="20" 
    ImageSource="searchicon" 
    BackgroundColor="#f7f7f7" 
    HorizontalOptions="End" /&gt;
</code></pre><h3 id="popular-animal-title-and-list">Popular Animal Title and List</h3><p>Next, we need to add a horizontal list of popular animals. Each item in the list will display an image and the animal&rsquo;s name. To accomplish this, we&rsquo;ll use Progress Telerik UI for <a target="_blank" href="https://www.telerik.com/maui-ui/collectionview">.NET MAUI CollectionView</a>, one of my favorite Telerik controls. </p><p>To keep this example simple, let&rsquo;s first create a model and populate it with some mock data so our CollectionView has content to display.</p><p>1. Create a model for the popular animals:</p><pre class=" language-csharp"><code class="prism  language-csharp">class PopularAnimal 
{ 
    public string ImageSource { get; set; } 
    public string Name { get; set; } 
}
</code></pre><p>2. Add some mock data to populate the list:</p><pre class=" language-xml"><code class="prism  language-xml">animalTypes = new ObservableCollection<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>Models.AnimalTypes</span><span class="token punctuation">&gt;</span></span> 
{ 
  new AnimalTypes { ImageSource = "mammals.png", LabelColor = Color.FromArgb("#88748a"), Name = "MAMMALS", Description = "Mammals breathe air, have fur, and feed their babies with milk." },
    
  new AnimalTypes { ImageSource = "reptiles.png", LabelColor = Color.FromArgb("#db9d4c"), Name = "REPTILES", Description = "Reptiles have scales, lay eggs, and are cold-blooded animals. " } 
};
</code></pre><p>3. Set the data as the BindingContext of your LearningAnimals.xaml.cs:</p><pre class=" language-csharp"><code class="prism  language-csharp">BindingContext <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">ViewModels<span class="token punctuation">.</span>LearningAnimalsViewModel</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><p>4. Finally, add the Telerik namespace to your XAML:</p><pre class=" language-xml"><code class="prism  language-xml">xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
</code></pre><p>And the title with the CollectionView:</p><pre class=" language-xml"><code class="prism  language-xml">&lt;Label Grid.Column="0" Grid.Row="1" 
    Text="Popular Animals" 
    Margin="0,40,0,0" 
    HorizontalOptions="Start" 
    FontSize="18" /&gt;
 
&lt;telerik:RadCollectionView 
    Grid.Column="0" Grid.Row="2" 
    Margin="0,20,-20,0" 
    ItemsSource="{Binding popularAnimals}" 
    HorizontalScrollBarVisibility="Never" 
    SelectionMode="None" 
    HeightRequest="210"&gt;
     
&lt;telerik:RadCollectionView.ItemsLayout&gt; 
&lt;telerik:CollectionViewLinearLayout Orientation="Horizontal" ItemSpacing="20" /&gt;

&lt;/telerik:RadCollectionView.ItemsLayout&gt; 
    &lt;telerik:RadCollectionView.ItemViewStyle&gt; 
    &lt;Style TargetType="telerik:RadCollectionViewItemView"&gt; 
    &lt;Setter Property="BackgroundColor" Value="Transparent" /&gt; 
    &lt;Setter Property="BorderColor" Value="Transparent" /&gt; 
    &lt;/Style&gt; 
    &lt;/telerik:RadCollectionView.ItemViewStyle&gt; 
&lt;telerik:RadCollectionView.ItemTemplate&gt; 
    &lt;DataTemplate&gt; 
    &lt;VerticalStackLayout&gt; 
    &lt;telerik:RadBorder CornerRadius="18" 
    HeightRequest="180" 
    WidthRequest="150"&gt; 
    &lt;Image Source="{Binding ImageSource}" 
    Aspect="AspectFill" /&gt; 
    &lt;/telerik:RadBorder&gt;
     
    &lt;Label Text="{Binding Name}" 
    HorizontalOptions="Center" 
    Margin="0,10" 
    FontSize="15" /&gt; 
    &lt;/VerticalStackLayout&gt; 
    &lt;/DataTemplate&gt; 
&lt;/telerik:RadCollectionView.ItemTemplate&gt;
&lt;/telerik:RadCollectionView&gt;
</code></pre><p>⚠️ Did you notice the rounded corners on the images? Oh yeah! We achieved that effect using <a target="_blank" href="https://www.telerik.com/maui-ui/border">Telerik UI for .NET MAUI RadBorder</a>!  Since you&rsquo;ve already completed the Telerik setup when adding the CollectionView, no additional configuration is required. Simply add the RadBorder to your code! Highly recommended!</p><p>And you&rsquo;ll get a result like this:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/02_animal_popular_animals_block.png?sfvrsn=9ddfa7c_2" width="400" alt="Popular animals block" /></p><h2 id="animal-types">2. Animal Types</h2><p>Yeah! We&rsquo;re already moving on to the second section!  This section is very similar to the first one because it also includes a title and a list. And of course, we&rsquo;ll use Telerik CollectionView again!</p><p>For this step, please follow the same approach explained in the previous section to create and add some mock data. Then, in your XAML, implement the UI as follows:</p><pre class=" language-xml"><code class="prism  language-xml">&lt;Label Grid.Column="0" Grid.Row="3" 
    Text="Animal Types" 
    Margin="0,40,0,0" 
    HorizontalOptions="Start" 
    FontSize="18" /&gt;
 
&lt;telerik:RadCollectionView 
    Grid.Column="0" Grid.Row="4" 
    Margin="0,20,-20,0" 
    ItemsSource="{Binding animalTypes}" 
    HorizontalScrollBarVisibility="Never" 
    SelectionMode="None" 
    HeightRequest="270"&gt; 
&lt;telerik:RadCollectionView.ItemsLayout&gt; 
&lt;telerik:CollectionViewLinearLayout Orientation="Horizontal" ItemSpacing="20" /&gt;

&lt;/telerik:RadCollectionView.ItemsLayout&gt; 
&lt;telerik:RadCollectionView.ItemViewStyle&gt; 
    &lt;Style TargetType="telerik:RadCollectionViewItemView"&gt; 
    &lt;Setter Property="BackgroundColor" Value="Transparent" /&gt; 
    &lt;Setter Property="BorderColor" Value="Transparent" /&gt;     
   &lt;/Style&gt; 
&lt;/telerik:RadCollectionView.ItemViewStyle&gt;
 
&lt;telerik:RadCollectionView.ItemTemplate&gt; 
    &lt;DataTemplate&gt; 
    &lt;VerticalStackLayout&gt;
     
    &lt;telerik:RadBorder CornerRadius="18" 
    HeightRequest="180" 
    WidthRequest="220"&gt; 
    &lt;Image Source="{Binding ImageSource}" 
    Aspect="AspectFill" /&gt; 
    &lt;/telerik:RadBorder&gt;
     
    &lt;Label Text="{Binding Name}" 
    TextColor="{Binding LabelColor}" 
    HorizontalOptions="Center" 
    Margin="0,10" 
    FontSize="13" /&gt;
     
    &lt;Label Text="{Binding Description}" 
    MaxLines="2" 
    HorizontalOptions="Center" 
    WidthRequest="220" 
    FontSize="14" /&gt;
     
    &lt;/VerticalStackLayout&gt; 
    &lt;/DataTemplate&gt; 
&lt;/telerik:RadCollectionView.ItemTemplate&gt; 
&lt;/telerik:RadCollectionView&gt;
</code></pre><p>And you&rsquo;ll get a result like this:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/03_animal_types_block.png?sfvrsn=a690c4f9_2" width="400" alt="Animal types block" /></p><h2 id="header">3. Header</h2><p>For this third section, we need to create a new screen. I&rsquo;ll call this page <strong>LearningAnimalsDetails.xaml.</strong> Its main layout will also be a <strong>Grid</strong>, this time with eight rows.</p><pre class=" language-xml"><code class="prism  language-xml">&lt;Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto"
    Margin="10,30" 
    RowSpacing="20" 
    VerticalOptions="Fill"&gt; 

&lt;!-- Add blocks three and four here --&gt;
 
&lt;/Grid&gt;
</code></pre><p>Inside this Grid, you can add the elements explained in this section and the next one, starting with the animal&rsquo;s name and short description:</p><pre class=" language-xml"><code class="prism  language-xml">&lt;Label Grid.Row="0" 
    Text="Polo Bear" 
    HorizontalOptions="Center" 
    FontSize="23" 
    FontAttributes="Bold"/&gt; 

&lt;Label Grid.Row="1" 
    Text="Polar bear mams give bith to one to &amp;#10;three cubs" 
    HorizontalTextAlignment="Center" 
    TextColor="Gray" 
    FontSize="14" /&gt;
</code></pre><p>Now let&rsquo;s continue with the main photo, the image description and the animal description:</p><pre class=" language-xml"><code class="prism  language-xml">&lt;telerik:RadBorder 
    Grid.Row="2" 
    CornerRadius="25" 
    HeightRequest="230"&gt; 
    &lt;Image Source="bluebear.png" Aspect="AspectFill"/&gt; 
    &lt;/telerik:RadBorder&gt;
     
&lt;Label Grid.Row="3" 
    Text="VIEW POLAR BEAR SLIDEHOW" 
    HorizontalTextAlignment="Center" 
    TextColor="#6771a8" 
    FontSize="12" 
    FontAttributes="Bold"/&gt;
     
&lt;Label Grid.Row="4" 
    Margin="10,0" 
    HorizontalOptions="Start" 
    Text="Polar bears live along shores and on sea ice in the icy cold Arctic. When sea ice forms over the ocean in cold weather, many polar bears, except pregnant females, head out onto the ice to hunt seals."/&gt;
</code></pre><p>And you&rsquo;ll get a result like this:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/04_animal_header_block.png?sfvrsn=352f8118_2" width="400" alt="Animal Header block" /></p><h2 id="key-facts">4. Key Facts</h2><p>We&rsquo;ve reached our final section!  This one displays a list of Key Facts, and yes, we&rsquo;ll be using <strong>Telerik CollectionView</strong> once again! Each item in the list is composed of three elements: a number, a title, and a short description.</p><p>To build this section, follow the same approach we used in the previous CollectionView examples: create a model, populate it with some mock data, and bind it to your page. Then, implement the CollectionView in your XAML as shown below:</p><pre class=" language-xml"><code class="prism  language-xml">&lt;Label Grid.Row="5" 
    Text="Key Facts" 
    Margin="10,0" 
    TextColor="#6771a8" 
    FontSize="20" 
    HorizontalTextAlignment="Start" 
    FontAttributes="Bold"/&gt;
     
&lt;telerik:RadCollectionView 
    Grid.Row="6" 
    Margin="10,0" 
    ItemsSource="{Binding animalFacts}" 
    HorizontalScrollBarVisibility="Never" 
    SelectionMode="None" 
    HeightRequest="270"&gt;
     
    &lt;telerik:RadCollectionView.ItemViewStyle&gt; 
    &lt;Style TargetType="telerik:RadCollectionViewItemView"&gt; 
    &lt;Setter Property="BackgroundColor" Value="Transparent" /&gt; 
    &lt;Setter Property="BorderColor" Value="Transparent" /&gt; 
    &lt;/Style&gt; 
    &lt;/telerik:RadCollectionView.ItemViewStyle&gt; 
    &lt;telerik:RadCollectionView.ItemTemplate&gt; 
    &lt;DataTemplate&gt;
    
    &lt;Grid Grid.Row="6" 
    Margin="0,5" 
    ColumnDefinitions="50,*" 
    RowDefinitions="Auto,Auto" 
    ColumnSpacing="14" 
    RowSpacing="4"&gt;
     
    &lt;Border Grid.Column="0" 
    Grid.Row="0" 
    Grid.RowSpan="2" 
    WidthRequest="50" 
    HeightRequest="50" 
    BackgroundColor="{Binding BadgeBackgroundColor}" 
    StrokeThickness="0" 
    StrokeShape="RoundRectangle 12" 
    VerticalOptions="Center"&gt; 
    
    &lt;Label Text="{Binding Number}" 
    FontSize="18" 
    FontAttributes="Bold" 
    TextColor="{Binding BadgeTextColor}" 
    HorizontalOptions="Center" 
    VerticalOptions="Center"/&gt; 
    &lt;/Border&gt;
     
    &lt;Label Grid.Column="1" 
    Grid.Row="0" 
    Text="{Binding Title}" 
    FontSize="16" 
    TextColor="#1F1F1F" 
    FontAttributes="Bold"/&gt;
     
    &lt;Label Grid.Column="1" 
    Grid.Row="1" 
    Text="{Binding Description}" 
    FontSize="14". 
    TextColor="#8A8A8A"/&gt; 
    &lt;/Grid&gt;
     
    &lt;/DataTemplate&gt; 
&lt;/telerik:RadCollectionView.ItemTemplate&gt; 
&lt;/telerik:RadCollectionView&gt;
</code></pre><p>And you&rsquo;ll get a result like this:</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/05_animal_key_facts_block.png?sfvrsn=6e8aa7e0_2" width="400" alt="Animal Key Facts block" /></p><p>And that&rsquo;s it, we&rsquo;re all done!  Below, you can see the final result of both screens.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/06_animal_complete_screen.png?sfvrsn=177a4ab5_2" width="400" alt="Animal Complete screen" /></p><h2 id="conclusion">Conclusion</h2><p>And that&rsquo;s all! I hope this article helps you recreate beautiful UIs in .NET MAUI! </p><p>In this article, we built an animal UI while exploring layouts with Grid, rounded elements with Telerik&rsquo;s RadBorder, and dynamic lists with Telerik UI for .NET MAUI CollectionView.</p><p>These are simple but powerful techniques that you can easily reuse in your own projects to create modern and engaging user experiences. </p><p>See you in the next article! &zwj;♀️</p><hr /><h3>Try Telerik UI for .NET MAUI</h3><p>Remember, <a href="https://www.telerik.com/maui-ui" target="_blank">Telerik UI for .NET MAUI</a> comes with a free 30-day trial. </p><p><a href="https://www.telerik.com/try/ui-for-maui" target="_blank" class="Btn">Try Now</a></p>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:42b745bc-4a0c-4797-903b-e3a5003f3648</id>
    <title type="text">Is Convex Better Than Firebase?</title>
    <summary type="text">Convex comes with setup complexity, especially for non-React developers, but after that offers a great UX with capacity to scale. Firebase is easy to set up and manage, but gets more complex when scaling.</summary>
    <published>2026-11-13T16:07:24Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Jonathan Gamble </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/is-convex-better-than-firebase"/>
    <content type="text"><![CDATA[<p><span class="featured">Convex comes with setup complexity, especially for non-React developers, but after that offers a great UX with capacity to scale. Firebase is easy to set up and manage, but gets more complex when scaling.</span></p><p>I have created a todo app many times. What seems like something very simple can get complicated really quickly when you have to learn a new stack, build your own backend or think differently than you are used to.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/convex-todo.png?sfvrsn=1f9337e0_2" alt="Convex Tasks todo list" /></p><h2 id="tldr">TL;DR</h2><p>Convex is extremely difficult to set up, especially for non-React users. The Authentication package <em>ONLY</em> works for React, and had to be written from scratch, which is a big negative. It is missing basic features and is overly complicated.</p><p>However, once Convex is properly set up for development and production, the actual developer experience is amazing and has a lot of potential for scaling a real noSQL app with fewer hurdles.</p><p>Firebase is easier to set up, manage and deploy, but the learning curve grows when you need to manage security and scaling. Convex is the opposite, due to the TypeScript first ecosystem.</p><h3 id="prerequisite-✅">Prerequisite ✅</h3><p>I&rsquo;m going to assume you have basic knowledge of <a target="_blank" href="https://nuxt.com/">Nuxt 4</a>, <a target="_blank" href="https://tailwindcss.com/docs/installation/framework-guides/nuxt">Tailwind</a> and <a target="_blank" href="https://firebase.google.com/">Firebase</a>. I&rsquo;m going to focus on Convex.</p><h2 id="what-is-convex">What Is Convex?</h2><p>Convex is a noSQL database platform that allows you to consume real-time data on the client in any form that you like. It does NOT allow true relational data, but you can query several documents at once, very close to the data itself, emulating a join. </p><p>Everything is written in TypeScript, so you don&rsquo;t have to worry about complex security rules. Instead of trigger functions, you directly write your complexities inside the mutation itself, which lives on the Convex server. Authentication is sparse, but if you use Google or GitHub with React, you should have no problems.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/convex-database.png?sfvrsn=ee3baabb_2" alt="Convex database" /></p><h2 id="what-is-firebase">What Is Firebase?</h2><p>Firebase is a cloud platform with a noSQL database, authentication, security rules, cloud functions, etc. It is arguably the easiest database to learn, especially if you don&rsquo;t need complex schemas or scaling. It has incredible querying capabilities for noSQL, second only to <a target="_blank" href="https://www.mongodb.com/">MongoDB.</a> </p><p>Once you need tightened security, more complex data modeling or testing, the learning curve increases dramatically. It works out of the box in all frameworks.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/firebasedatabase.png?sfvrsn=8b95c7ef_2" alt="Firebase database" /></p><h2 id="convex-app-setup">Convex App Setup</h2><h3 id="create-a-new-convex-project">Create a New Convex Project</h3><p>Login to <a target="_blank" href="https://www.convex.dev/">Convex</a> and create a new project.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/convex-create-project.png?sfvrsn=4eb751ce_2" alt="Convex create new project" /></p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/convex-new-deployment.png?sfvrsn=3e62002e_2" alt="Convex create new deployment" /></p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/nuxt-convex.png?sfvrsn=28b63b79_2" alt="Nuxt-Convex in project list" /></p><p> Notice you have a <code>production</code> and <code>development</code> database by default.</p><p> You also don&rsquo;t have to worry about your free project auto-pausing, hence I have a demo below that can be free forever.</p><h3 id="create-a-nuxt-app">Create a Nuxt App</h3><pre class=" language-tsx"><code class="prism  language-tsx">npm create nuxt@latest
</code></pre><h3 id="install-tailwind">Install Tailwind</h3><p>Don&rsquo;t use the package. Follow the official <a target="_blank" href="https://tailwindcss.com/docs/installation/framework-guides/nuxt">Tailwind Guide</a>.</p><h3 id="install-convex">Install Convex</h3><p>I&rsquo;m modifying the official <a target="_blank" href="https://docs.convex.dev/quickstart/nuxt">Nuxt Convex Quickstart</a>.</p><ol><li>Install the Convex Library once in your new project.</li></ol><pre class=" language-bash"><code class="prism  language-bash"><span class="token function">npm</span> <span class="token function">install</span> convex <span class="token operator">&amp;&amp;</span> npx nuxi module add convex-nuxt
</code></pre><ol start="2"><li>Add the Convex URL.</li></ol><pre class=" language-tsx"><code class="prism  language-tsx">// nuxt.config.ts

import tailwindcss from "@tailwindcss/vite";

export default defineNuxtConfig({
  compatibilityDate: "2025-07-15",
  devtools: { enabled: true },
  css: ['~/assets/css/main.css'],
  vite: {
    plugins: [
      tailwindcss(),
    ],
  },
  modules: ["convex-nuxt"],
  convex: {
    url: process.env.CONVEX_URL,
  },
});
</code></pre><ol start="3"><li>Set up a Convex dev deployment.</li></ol><pre class=" language-bash"><code class="prism  language-bash">npx convex dev
</code></pre><p> This will be run in the background at all times to keep your app going.</p><p>You should see on <code>.env.local</code> variable:</p><pre class=" language-bash"><code class="prism  language-bash">NUXT_PUBLIC_CONVEX_URL<span class="token operator">=</span>https://your-deployment.convex.cloud
</code></pre><ol start="4"><li>Set up Convex Auth.</li></ol><pre class=" language-bash"><code class="prism  language-bash">npx @convex-dev/auth
</code></pre><p> You may have to manually install <code>@convex-dev/auth</code> or <code>@auth/core</code>.</p><pre class=" language-tsx"><code class="prism  language-tsx">// convex/auth.config.ts

export default {
  providers: [
    {
      domain: process.env.CONVEX_SITE_URL,
      applicationID: "convex",
    },
  ],
};
</code></pre><p>4b. (Optional)</p><p>I had to create this file. It could also be <code>http.js</code> if not there. Again, the auth setup is not intuitive and I ran into several issues.</p><pre class=" language-tsx"><code class="prism  language-tsx">// convex/http.ts

import { httpRouter } from "convex/server";
import { auth } from "./auth";

const http = httpRouter();

auth.addHttpRoutes(http);

export default http;
</code></pre><ol start="5"><li>Set up GitHub</li></ol><p>Log in to your GitHub. Then go to <em>Settings</em> &rarr; <em>Developer Settings</em> &rarr; <em>OAuth Apps</em> and create a new app.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/github-auth.png?sfvrsn=dbfb18ae_2" alt="GitHub app creation with fields for app name, homepage URL, authorization callback URL, etc." /></p><p>Copy your <code>secret key</code> and <code>client key</code>. Remember to save your secret key, as you can never get it back!</p><pre class=" language-bash"><code class="prism  language-bash">npx convex <span class="token function">env</span> <span class="token keyword">set</span> AUTH_GITHUB_ID your-github-client-id
npx convex <span class="token function">env</span> <span class="token keyword">set</span> AUTH_GITHUB_SECRET your-github-client-secret
</code></pre><p> Your environment variables exist on the convex server, so these are NOT your app&rsquo;s env variables!</p><pre class=" language-tsx"><code class="prism  language-tsx">// convex/auth.ts

import GitHub from "@auth/core/providers/github";
import { convexAuth } from "@convex-dev/auth/server";

export const {
  auth,
  signIn,
  signOut,
  store,
  isAuthenticated,
} = convexAuth({
  providers: [
    GitHub({
      clientId: process.env.AUTH_GITHUB_ID,
      clientSecret: process.env.AUTH_GITHUB_SECRET,
    }),
  ],
});
</code></pre><ol start="6"><li>Define your tasks schema.</li></ol><pre class=" language-tsx"><code class="prism  language-tsx">// convex/schema.ts

import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";
import { authTables } from "@convex-dev/auth/server";

export default defineSchema({
  ...authTables,
  tasks: defineTable({
    userId: v.id("users"),
    text: v.string(),
    isCompleted: v.boolean(),
  }).index("by_user", ["userId"]),
});
</code></pre><ol start="7"><li>Expose your database queries.</li></ol><pre class=" language-tsx"><code class="prism  language-tsx">// convex/tasks.ts

import { v } from "convex/values";
import { getAuthUserId } from "@convex-dev/auth/server";
import { mutation, query } from "./_generated/server";

export const get = query({
  args: {},
  handler: async (ctx) =&gt; {
    const userId = await getAuthUserId(ctx);

    if (!userId) {
      return [];
    }

    return await ctx.db
      .query("tasks")
      .withIndex("by_user", (q) =&gt; q.eq("userId", userId))
      .order("desc")
      .collect();
  },
});

export const create = mutation({
  args: {
    text: v.string(),
  },
  handler: async (ctx, args) =&gt; {
    const userId = await getAuthUserId(ctx);

    if (!userId) {
      return null;
    }

    return await ctx.db.insert("tasks", {
      userId,
      text: args.text,
      isCompleted: false,
    });
  },
});

export const toggleCompleted = mutation({
  args: {
    id: v.id("tasks"),
    isCompleted: v.boolean(),
  },
  handler: async (ctx, args) =&gt; {
    const userId = await getAuthUserId(ctx);

    if (!userId) {
      return;
    }

    const task = await ctx.db.get(args.id);

    if (!task || task.userId !== userId) {
      return;
    }

    await ctx.db.patch(args.id, {
      isCompleted: args.isCompleted,
    });
  },
});

export const remove = mutation({
  args: {
    id: v.id("tasks"),
  },
  handler: async (ctx, args) =&gt; {
    const userId = await getAuthUserId(ctx);

    if (!userId) {
      return;
    }

    const task = await ctx.db.get(args.id);

    if (!task || task.userId !== userId) {
      return;
    }

    await ctx.db.delete(args.id);
  },
});
</code></pre><ul><li>The query function returns all tasks by a certain user. We use our <code>by_user</code> index to filter, and order by <code>_creationTime</code> (internal variable) descending.</li><li>We create a new task by the user.</li><li>We update the completed task by a user.</li><li>We remove a task by a user.</li></ul><p> All of these are secure, close to the database and extremely fast. The fact that we have to run multiple database calls is negligible in this case!</p><h2 id="creating-our-app">Creating Our App</h2><p>Even though the <code>convex</code> folder is created on our server, it does not live there. The rest of the code actually lives in our app.</p><h3 id="composables">Composables</h3><p>If you follow any of my articles, you know that I firmly believe your core code should ALWAYS be separate from the component, in a composable, not in the component.</p><pre class=" language-tsx"><code class="prism  language-tsx">// composables/useTask.ts

import { api } from "~~/convex/_generated/api";
import type { Doc, Id } from "~~/convex/_generated/dataModel";

export type TaskItem = Doc&lt;"tasks"&gt;;

const queryArgs = {};

export function useTasks() {
  const { data, isPending, error } = useConvexQuery(api.tasks.get);

  const tasks = computed&lt;TaskItem[]&gt;(() =&gt; data.value ?? []);

  const {
    mutate: createTask,
    isPending: isCreating,
    error: createError,
  } = useConvexMutation(api.tasks.create, {
    optimisticUpdate: (localStore, args) =&gt; {
      const currentTasks = localStore.getQuery(api.tasks.get, queryArgs);

      if (!currentTasks) return;

      const now = Date.now();
      const optimisticTask: Doc&lt;"tasks"&gt; = {
        _id: `pending-${crypto.randomUUID()}` as Id&lt;"tasks"&gt;,
        _creationTime: now,
        userId:
          currentTasks[0]?.userId ??
          (`pending-${crypto.randomUUID()}` as Id&lt;"users"&gt;),
        text: args.text,
        isCompleted: false,
      };

      localStore.setQuery(api.tasks.get, queryArgs, [
        optimisticTask,
        ...currentTasks,
      ]);
    },
  });

  const { mutate: updateTask } = useConvexMutation(
    api.tasks.toggleCompleted,
    {
      optimisticUpdate: (localStore, args) =&gt; {
        const currentTasks = localStore.getQuery(api.tasks.get, queryArgs);

        if (!currentTasks) return;

        localStore.setQuery(
          api.tasks.get,
          queryArgs,
          currentTasks.map((task) =&gt;
            task._id === args.id
              ? { ...task, isCompleted: args.isCompleted }
              : task,
          ),
        );
      },
    },
  );

  const { mutate: deleteTask } = useConvexMutation(api.tasks.remove, {
    optimisticUpdate: (localStore, args) =&gt; {
      const currentTasks = localStore.getQuery(api.tasks.get, queryArgs);

      if (!currentTasks) return;

      localStore.setQuery(
        api.tasks.get,
        queryArgs,
        currentTasks.filter((task) =&gt; task._id !== args.id),
      );
    },
  });

  async function addTask(text: string) {
    return await createTask({ text });
  }

  function toggleTask(task: TaskItem) {
    if (task._id.startsWith("pending-")) return;

    return updateTask({
      id: task._id,
      isCompleted: !task.isCompleted,
    });
  }

  function removeTask(task: TaskItem) {
    if (task._id.startsWith("pending-")) return;

    return deleteTask({ id: task._id });
  }

  return {
    tasks,
    isPending,
    error,
    isCreating,
    createError,
    addTask,
    toggleTask,
    removeTask,
  };
}
</code></pre><ul><li><code>useConvexQuery</code> is simple, has a pending and error state and can be passed directly to our app.</li><li><code>useConvexMutation</code> is more complicated. We want our apps to be immediate, so we must add the optimistic update strategy like Firebase has.</li><li>There is a <code>optimisticUpdate</code> option that gives you access to <code>localStore.getQuery</code> and <code>localStore.setQuery</code>. We can set our items optimistically, and Convex will automatically roll it back if there is an issue.</li></ul><h3 id="app.vue">app.vue</h3><pre class=" language-tsx"><code class="prism  language-tsx">&lt;script setup lang="ts"&gt;
const { error: authError, isAuthenticated, isLoading, signIn, signOut } = useConvexAuth();
&lt;/script&gt;

&lt;template&gt;
  &lt;div class="min-h-screen bg-[radial-gradient(circle_at_top_left,#d8f3dc,transparent_32rem),linear-gradient(135deg,#fffaf0_0%,#f8fafc_48%,#e0f2fe_100%)] px-4 py-10 text-slate-950 sm:px-6 lg:px-8"&gt;
    &lt;main class="mx-auto flex w-full max-w-2xl flex-col gap-6"&gt;
      &lt;header class="space-y-3"&gt;
        &lt;p class="text-sm font-semibold uppercase tracking-[0.18em] text-teal-700"&gt;Convex tasks&lt;/p&gt;
        &lt;div class="flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between"&gt;
          &lt;div&gt;
            &lt;h1 class="font-serif text-5xl font-bold tracking-normal text-slate-950 sm:text-6xl"&gt;Tasks&lt;/h1&gt;
            &lt;p class="mt-2 max-w-xl text-base leading-7 text-slate-600"&gt;Add what needs doing, then check it off when it is done.&lt;/p&gt;
          &lt;/div&gt;
          &lt;button
            v-if="isAuthenticated"
            class="flex min-h-11 min-w-24 items-center justify-center rounded-md border border-slate-200 bg-white px-4 text-sm font-semibold text-slate-700 shadow-sm transition hover:-translate-y-0.5 hover:border-rose-200 hover:bg-rose-50 hover:text-rose-700 focus:outline-none focus:ring-4 focus:ring-rose-100 disabled:translate-y-0 disabled:cursor-not-allowed disabled:text-slate-400"
            type="button"
            :disabled="isLoading"
            :aria-label="isLoading ? 'Signing out' : undefined"
            @click="signOut()"
          &gt;
            &lt;LoadingSpinner v-if="isLoading" class="size-5" /&gt;
            &lt;span v-else&gt;Sign out&lt;/span&gt;
          &lt;/button&gt;
        &lt;/div&gt;
      &lt;/header&gt;

      &lt;section
        v-if="isLoading &amp;&amp; !isAuthenticated"
        class="flex min-h-40 items-center justify-center rounded-lg border border-white/70 bg-white/85 p-8 shadow-xl shadow-slate-200/70 ring-1 ring-slate-900/5 backdrop-blur sm:p-10"
        role="status"
        aria-label="Loading your tasks"
      &gt;
        &lt;LoadingSpinner class="size-8" /&gt;
      &lt;/section&gt;

      &lt;LoginWithGithub
        v-else-if="!isAuthenticated"
        :error="authError"
        @sign-in="signIn('github')"
      /&gt;

      &lt;template v-else&gt;
        &lt;div class="rounded-lg border border-white/70 bg-white/85 p-5 shadow-xl shadow-slate-200/70 ring-1 ring-slate-900/5 backdrop-blur sm:p-6"&gt;
          &lt;AddTask /&gt;
        &lt;/div&gt;

        &lt;TaskList /&gt;
      &lt;/template&gt;
    &lt;/main&gt;
  &lt;/div&gt;
&lt;/template&gt;
</code></pre><p>We show a loading spinner or a Sign In button.</p><h3 id="addtask.vue">AddTask.vue</h3><pre class=" language-tsx"><code class="prism  language-tsx">&lt;script setup lang="ts"&gt;
import { computed, ref } from "vue";

const text = ref("");
const trimmedText = computed(() =&gt; text.value.trim());
const { addTask: createTask, isCreating, createError } = useTasks();

async function addTask() {
  if (!trimmedText.value || isCreating.value) {
    return;
  }

  await createTask(trimmedText.value);
  text.value = "";
}
&lt;/script&gt;

&lt;template&gt;
  &lt;form class="space-y-4" @submit.prevent="addTask"&gt;
    &lt;div class="flex flex-col gap-1"&gt;
      &lt;label class="text-sm font-semibold text-slate-800" for="task-text"&gt;New task&lt;/label&gt;
      &lt;p class="text-sm text-slate-500"&gt;Capture it before it escapes the moment.&lt;/p&gt;
    &lt;/div&gt;

    &lt;div class="flex flex-col gap-3 sm:flex-row"&gt;
      &lt;input
        id="task-text"
        v-model="text"
        class="min-h-12 flex-1 rounded-md border border-slate-200 bg-white px-4 text-base text-slate-950 shadow-sm outline-none transition placeholder:text-slate-400 hover:border-slate-300 focus:border-teal-500 focus:ring-4 focus:ring-teal-100 disabled:cursor-not-allowed disabled:bg-slate-50 disabled:text-slate-400"
        type="text"
        placeholder="Add a task"
        :disabled="isCreating"
      &gt;
      &lt;button
        class="min-h-12 rounded-md bg-slate-950 px-5 text-sm font-semibold text-white shadow-lg shadow-slate-900/15 transition hover:-translate-y-0.5 hover:bg-teal-700 focus:outline-none focus:ring-4 focus:ring-teal-200 disabled:translate-y-0 disabled:cursor-not-allowed disabled:bg-slate-300 disabled:shadow-none sm:w-36"
        type="submit"
        :disabled="!trimmedText || isCreating"
      &gt;
        {{ isCreating ? "Adding..." : "Add task" }}
      &lt;/button&gt;
    &lt;/div&gt;

    &lt;p v-if="createError" class="rounded-md bg-rose-50 px-3 py-2 text-sm font-medium text-rose-700"&gt;
      Unable to add task.
    &lt;/p&gt;
  &lt;/form&gt;
&lt;/template&gt;
</code></pre><p>Again, with our composable all we really need to do is show the input button and error.</p><h3 id="tasklist.vue">TaskList.vue</h3><pre class=" language-tsx"><code class="prism  language-tsx">&lt;script setup lang="ts"&gt;
const { tasks, isPending, error, toggleTask, removeTask } = useTasks();
&lt;/script&gt;

&lt;template&gt;
    &lt;section class="overflow-hidden rounded-lg border border-slate-200/80 bg-white/90 shadow-xl shadow-slate-200/60 ring-1 ring-slate-900/5 backdrop-blur"&gt;
        &lt;div class="border-b border-slate-100 bg-slate-50/80 p-5 sm:p-6"&gt;
            &lt;div class="flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between"&gt;
                &lt;div&gt;
                    &lt;p class="text-xs font-semibold uppercase tracking-[0.18em] text-teal-700"&gt;Today&lt;/p&gt;
                    &lt;h2 class="mt-1 text-2xl font-bold text-slate-950"&gt;Your list&lt;/h2&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class="p-5 sm:p-6"&gt;
            &lt;div
                v-if="isPending"
                class="flex items-center justify-center rounded-md border border-dashed border-slate-300 bg-slate-50 px-4 py-8"
                role="status"
                aria-label="Loading tasks"
            &gt;
                &lt;LoadingSpinner /&gt;
            &lt;/div&gt;
            &lt;p v-else-if="error" class="rounded-md bg-rose-50 px-4 py-3 text-sm font-medium text-rose-700"&gt;
                Unable to load tasks.
            &lt;/p&gt;
            &lt;ul v-else-if="tasks.length" class="space-y-3"&gt;
                &lt;li
                    v-for="task in tasks"
                    :key="task._id"
                    class="group rounded-md border border-slate-200 bg-white px-4 py-3 shadow-sm transition duration-200 hover:-translate-y-0.5 hover:border-teal-200 hover:shadow-md"
                &gt;
                    &lt;div class="flex items-center gap-3"&gt;
                    &lt;label class="flex min-w-0 flex-1 cursor-pointer items-center gap-3"&gt;
                        &lt;input
                            class="size-5 rounded border-slate-300 accent-teal-600 transition group-hover:scale-105"
                            type="checkbox"
                            :checked="task.isCompleted"
                            @change="toggleTask(task)"
                        &gt;
                        &lt;span
                            class="min-w-0 flex-1 wrap-break-word text-base font-medium text-slate-800 transition"
                            :class="task.isCompleted ? 'text-slate-400 line-through decoration-2' : ''"
                        &gt;
                            {{ task.text }}
                        &lt;/span&gt;
                    &lt;/label&gt;
                    &lt;button
                        class="flex size-9 shrink-0 items-center justify-center rounded-md text-slate-400 transition hover:bg-rose-50 hover:text-rose-700 focus:outline-none focus:ring-4 focus:ring-rose-100"
                        type="button"
                        :aria-label="`Delete ${task.text}`"
                        title="Delete task"
                        @click="removeTask(task)"
                    &gt;
                        &lt;span
                            class="size-4 bg-current"
                            aria-hidden="true"
                            style="mask: url('/delete.svg') center / contain no-repeat; -webkit-mask: url('/delete.svg') center / contain no-repeat;"
                        /&gt;
                    &lt;/button&gt;
                    &lt;/div&gt;
                &lt;/li&gt;
            &lt;/ul&gt;
            &lt;div v-else class="rounded-md border border-dashed border-slate-300 bg-slate-50 px-4 py-10 text-center"&gt;
                &lt;p class="text-sm font-semibold text-slate-700"&gt;No tasks yet&lt;/p&gt;
                &lt;p class="mt-1 text-sm text-slate-500"&gt;Add the first one above.&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/section&gt;
&lt;/template&gt;
</code></pre><p>We can easily show our task, handle removing them with a button and toggle completed state.</p><h3 id="loginwithgithub.vue">LoginWithGithub.vue</h3><pre class=" language-tsx"><code class="prism  language-tsx">&lt;script setup lang="ts"&gt;
defineProps&lt;{
  error: string | null;
}&gt;();

defineEmits&lt;{
  signIn: [];
}&gt;();
&lt;/script&gt;

&lt;template&gt;
  &lt;section class="rounded-lg border border-white/70 bg-white/85 p-8 text-center shadow-xl shadow-slate-200/70 ring-1 ring-slate-900/5 backdrop-blur sm:p-10"&gt;
    &lt;h2 class="text-2xl font-bold text-slate-950"&gt;Sign in to see your tasks&lt;/h2&gt;
    &lt;p class="mx-auto mt-2 max-w-md text-sm leading-6 text-slate-500"&gt;Use GitHub to open your private task list.&lt;/p&gt;
    &lt;button
      class="mx-auto mt-6 flex min-h-12 items-center justify-center gap-3 rounded-md bg-slate-950 px-5 text-sm font-semibold text-white shadow-lg shadow-slate-900/15 transition hover:-translate-y-0.5 hover:bg-teal-700 focus:outline-none focus:ring-4 focus:ring-teal-200"
      type="button"
      @click="$emit('signIn')"
    &gt;
      &lt;GithubIcon /&gt;
      Login with GitHub
    &lt;/button&gt;
    &lt;p v-if="error" class="mt-4 rounded-md bg-rose-50 px-3 py-2 text-sm font-medium text-rose-700"&gt;
      {{ error }}
    &lt;/p&gt;
  &lt;/section&gt;
&lt;/template&gt;
</code></pre><p>Of course we have to show our GitHub login.</p><pre class=" language-tsx"><code class="prism  language-tsx">// GithubIcon.vue

&lt;template&gt;
  &lt;svg
    class="size-5"
    viewBox="0 0 24 24"
    fill="currentColor"
    aria-hidden="true"
  &gt;
    &lt;path d="M12 2C6.48 2 2 6.58 2 12.23c0 4.52 2.87 8.35 6.84 9.71.5.09.68-.22.68-.49 0-.24-.01-1.04-.01-1.88-2.78.62-3.37-1.22-3.37-1.22-.45-1.18-1.11-1.49-1.11-1.49-.91-.64.07-.63.07-.63 1 .07 1.53 1.05 1.53 1.05.89 1.56 2.34 1.11 2.91.85.09-.66.35-1.11.63-1.36-2.22-.26-4.55-1.14-4.55-5.06 0-1.12.39-2.03 1.03-2.74-.1-.26-.45-1.3.1-2.71 0 0 .84-.27 2.75 1.05A9.29 9.29 0 0 1 12 6.97c.85 0 1.71.12 2.51.35 1.9-1.32 2.74-1.05 2.74-1.05.55 1.41.2 2.45.1 2.71.64.71 1.03 1.62 1.03 2.74 0 3.93-2.34 4.8-4.57 5.05.36.32.68.94.68 1.9 0 1.37-.01 2.47-.01 2.8 0 .27.18.59.69.49A10.14 10.14 0 0 0 22 12.23C22 6.58 17.52 2 12 2Z" /&gt;
  &lt;/svg&gt;
&lt;/template&gt;
</code></pre><p>And loading spinner.</p><pre class=" language-tsx"><code class="prism  language-tsx">// LoadingSpinner.vue

&lt;template&gt;
  &lt;svg
    class="size-6 animate-spin text-teal-600"
    viewBox="0 0 24 24"
    fill="none"
    aria-hidden="true"
  &gt;
    &lt;circle
      class="opacity-25"
      cx="12"
      cy="12"
      r="10"
      stroke="currentColor"
      stroke-width="4"
    /&gt;
    &lt;path
      class="opacity-75"
      fill="currentColor"
      d="M4 12a8 8 0 0 1 8-8v4a4 4 0 0 0-4 4H4Z"
    /&gt;
  &lt;/svg&gt;
&lt;/template&gt;
</code></pre><h3 id="⚠️-no-convex-composable">⚠️ No Convex Composable</h3><p>Convex is meant for React. They don&rsquo;t have the ability to log in or log out natively outside of React!!! If you dislike React as much as I do, you have to string together working auth client functions from their React codebase. This works, but is just generated slop code. Hopefully they fix this for Nuxt and SvelteKit at the very least.</p><pre class=" language-tsx"><code class="prism  language-tsx">// composables/useConvexAuth.ts

import { ConvexHttpClient } from "convex/browser";
import type { FunctionReference } from "convex/server";
import type { Value } from "convex/values";

type Tokens = {
  token: string;
  refreshToken: string;
};

type SignInResult = {
  redirect?: string;
  verifier?: string;
  tokens?: Tokens | null;
};

const signInAction =
  "auth:signIn" as unknown as FunctionReference&lt;"action"&gt;;

const signOutAction =
  "auth:signOut" as unknown as FunctionReference&lt;"action"&gt;;

export function useConvexAuth() {
  const client = useConvexClient();
  const config = useRuntimeConfig();

  const convexUrl = config.public.convex.url as string;
  const storageSuffix = convexUrl.replace(/[^a-zA-Z0-9]/g, "");

  const verifierKey = `__convexAuthOAuthVerifier_${storageSuffix}`;
  const jwtKey = `__convexAuthJWT_${storageSuffix}`;
  const refreshTokenKey = `__convexAuthRefreshToken_${storageSuffix}`;

  const isAuthenticated = useState(
    "convex-auth-authenticated",
    () =&gt; false,
  );

  const isLoading = useState(
    "convex-auth-loading",
    () =&gt; true,
  );

  const error = useState&lt;string | null&gt;(
    "convex-auth-error",
    () =&gt; null,
  );

  const initialized = useState(
    "convex-auth-initialized",
    () =&gt; false,
  );

  function clearTokens() {
    localStorage.removeItem(jwtKey);
    localStorage.removeItem(refreshTokenKey);
    isAuthenticated.value = false;
  }

  function saveTokens(tokens: Tokens) {
    localStorage.setItem(jwtKey, tokens.token);
    localStorage.setItem(refreshTokenKey, tokens.refreshToken);
  }

  async function exchangeAuthData(
    args:
      | { code: string; verifier?: string }
      | { refreshToken: string },
  ) {
    // Use a separate unauthenticated client so refreshing a token
    // does not recursively trigger the authenticated client.
    const httpClient = new ConvexHttpClient(convexUrl);

    const result = await httpClient.action(
      signInAction,
      "code" in args
        ? {
          params: { code: args.code },
          verifier: args.verifier,
        }
        : args,
    ) as { tokens: Tokens | null };

    if (!result.tokens) {
      clearTokens();
      return null;
    }

    saveTokens(result.tokens);

    return result.tokens.token;
  }

  async function fetchAccessToken({
    forceRefreshToken,
  }: {
    forceRefreshToken: boolean;
  }) {
    if (!forceRefreshToken) {
      return localStorage.getItem(jwtKey);
    }

    const refreshToken = localStorage.getItem(refreshTokenKey);

    if (!refreshToken) {
      clearTokens();
      return null;
    }

    return await exchangeAuthData({ refreshToken });
  }

  function configureClientAuth() {
    client.setAuth(fetchAccessToken, (authenticated) =&gt; {
      isAuthenticated.value = authenticated;

      if (!authenticated) {
        clearTokens();
      }
    });
  }

  async function initialize() {
    if (!import.meta.client || initialized.value) {
      return;
    }

    initialized.value = true;
    isLoading.value = true;

    try {
      const url = new URL(window.location.href);
      const code = url.searchParams.get("code");

      if (code) {
        const verifier =
          localStorage.getItem(verifierKey) ?? undefined;

        localStorage.removeItem(verifierKey);

        url.searchParams.delete("code");

        window.history.replaceState(
          {},
          "",
          `${url.pathname}${url.search}${url.hash}`,
        );

        await exchangeAuthData({ code, verifier });
      }

      if (localStorage.getItem(jwtKey)) {
        configureClientAuth();
      } else {
        isAuthenticated.value = false;
      }
    } catch (cause) {
      clearTokens();

      error.value =
        cause instanceof Error
          ? cause.message
          : "Authentication failed.";
    } finally {
      isLoading.value = false;
    }
  }

  async function signIn(provider = "github") {
    error.value = null;
    isLoading.value = true;

    try {
      const result = await client.action(signInAction, {
        provider,
        params: {
          redirectTo: window.location.pathname,
        },
      } satisfies Record&lt;string, Value&gt;) as SignInResult;

      if (result.redirect) {
        if (result.verifier) {
          localStorage.setItem(verifierKey, result.verifier);
        }

        window.location.assign(result.redirect);
        return;
      }

      if (result.tokens) {
        saveTokens(result.tokens);
        configureClientAuth();
      }
    } catch (cause) {
      error.value =
        cause instanceof Error
          ? cause.message
          : "Unable to sign in.";

      isLoading.value = false;
    }
  }

  async function signOut() {
    error.value = null;
    isLoading.value = true;

    try {
      await client.action(signOutAction, {});
    } finally {
      clearTokens();
      client.setAuth(async () =&gt; null);
      isLoading.value = false;
    }
  }

  onMounted(initialize);

  return {
    error: readonly(error),
    isAuthenticated: readonly(isAuthenticated),
    isLoading: readonly(isLoading),
    signIn,
    signOut,
  };
}
</code></pre><p> These functions just handle signing in and out, loading and authenticated states.</p><p> What bothers me the most about this is that this code doesn&rsquo;t have to be React-specific. It just sets some storage states, etc. It doesn&rsquo;t do anything special, as that is already handled in the core code. This is client-only, not even SSR. What&rsquo;s worse is that this could easily have been built framework-agnostic anyway. Instead, we have another React-only database. ☹️ People hate JSX, it is a thing; they just deal with it.</p><p><img src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-10/convex-todo-action.gif?sfvrsn=c111661f_2" alt="Convex todo app function tests" /></p><h2 id="verdict">Verdict</h2><h3 id="what-convex-says">What Convex Says</h3><p>Let&rsquo;s start with <a target="_blank" href="https://www.convex.dev/compare/firebase">Convex&rsquo;s comparison</a>:</p><table><style>table,
 th,
    td {
      border: 1px;
      border-color: #bdbdba;
      border-style: dotted;
      border-collapse: collapse;
      margin-right: auto;
      padding: 0in 5.4pt 0in 5.4pt;
      text-align: left;
    }
  </style>
 <thead><tr><th data-role="resizable">Feature</th><th>Convex</th><th>Firebase</th></tr></thead><tbody><tr><td>Realtime apps</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>Datastore / Database</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>Cloud functions</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>File storage</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>React support</td><td>✅ Yes</td><td>❌ No</td></tr><tr><td>Relational DB support</td><td>✅ Yes</td><td>❌ No</td></tr><tr><td>Live development environment</td><td>✅ Yes</td><td>❌ No</td></tr><tr><td>Transactions by default</td><td>✅ Yes</td><td>❌ No</td></tr><tr><td>Schema enforcement</td><td>✅ Yes</td><td>❌ No</td></tr></tbody></table><br /><p>However, I find this to be incomplete at best, and incorrect at worst. This is what the table should look like, only keeping those features</p><table><style>table,
 th,
    td {
      border: 1px;
      border-color: #bdbdba;
      border-style: dotted;
      border-collapse: collapse;
      margin-right: auto;
      padding: 0in 5.4pt 0in 5.4pt;
      text-align: left;
    }
  </style>
 <thead><tr><th>Feature</th><th>Convex</th><th>Firebase</th></tr></thead><tbody><tr><td>Realtime apps</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>Datastore / Database</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>Cloud functions</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>File storage</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>React support</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>Relational DB support</td><td>❌ No</td><td>❌ No</td></tr><tr><td>Local Development</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>Transactions Support</td><td>✅ Yes</td><td>✅ Yes</td></tr><tr><td>Schema Optional</td><td>✅ Yes</td><td>✅ Yes</td></tr></tbody></table><br /><p>noSQL is NEVER relational, and you can emulate that with either database in different ways. They both have local development, which works differently.</p><p>Transactions and schemas are available in both. React support is definitely available in both, but Convex does <strong>NOT</strong> have first class support for Nuxt or SvelteKit, which I believe is a must these days, especially if you need authentication.</p><p>I would also argue that due to <a target="_blank" href="https://firebase.google.com/docs/firestore/pipelines/get-started-with-pipelines">pipeline operators</a>, Firebase can now handle relationships way better than Convex ever can.</p><h3 id="where-convex-wins">Where Convex Wins</h3><ol><li>TypeScript and React developers-first</li><li>Just write trigger directly in TypeScript</li><li>Better at handling security directly</li><li>Better foreign key and creation time handling</li></ol><h3 id="where-firebase-wins">Where Firebase Wins</h3><ol><li>Very mature ecosystem for support and features</li><li>Handles all frameworks</li><li>Setup is seamless and very easy to use</li><li>Has many querying capabilities and helpers for scaling</li></ol><p> Convex got some traction after <a target="_blank" href="https://t3.gg/">Theo</a> started using it for his <a target="_blank" href="http://t3.chat">t3.chat</a> app. Theo is heavily into React and TypeScript, so this makes sense.</p><h3 id="final">Final</h3><p>Convex seems to prosper where Firebase is lacking. A lot of people don&rsquo;t use <a target="_blank" href="https://firebase.google.com/docs/rules">Firebase Security Rules</a> correctly, or at all, because they are hard to maintain. You get the same problem with <a target="_blank" href="https://supabase.com/docs/guides/database/postgres/row-level-security">Supabase RLS</a>.</p><p>Convex is just TypeScript. The setup is <em>terrible</em>, but the developer experience after that was <em>very intuitive</em> once you understood it. I could see this really helping you build something that scales quickly.</p><p><strong>Firebase still wins for me</strong>, but mainly due to maturity.</p><p>Here is what I would like to see in Convex for it to be a stronger contender for my needs:</p><ul><li>First-class support for SvelteKit, NextJS and Nuxt. Not everyone uses React.</li><li>First-class support for authentication. The code that is written for React only can <em>easily</em> be modified to support all frameworks. The docs need to show setup once complete. This should also include <em>server</em> authentication with cookies etc.</li><li>Convex is a noSQL database and its documentation shouldn&rsquo;t confuse relations. It is not clear how you data model. It is also a plus for Convex how they explain how running multiple <code>await</code> for database calls can be done close to the database in a transaction to emulating a join&hellip; I just wish they didn&rsquo;t confuse it for a join. It is OK that it is noSQL.</li><li>A simplified <code>.env</code> management, as it gets confusing where it lies, especially when with production and development databases as well as local and production hosting.</li><li>Examples for when you don&rsquo;t need real time and you want to load on server only. This is just as important.</li></ul><p>I think as Convex matures it could really be amazing, but it is not quite there if you want everything as plug-and-play as Firebase.</p><p><strong>Repo:</strong> <a target="_blank" href="https://github.com/jdgamble555/nuxt-convex">GitHub</a><br /><strong>Demo:</strong> <a target="_blank" href="https://nuxt-convex-seven.vercel.app/">Vercel Functions</a></p><aside><hr data-sf-ec-immutable="" /><div class="row"><div class="col-4 u-normal-full u-small-mb0"><h4 class="u-fs20 u-fw5 u-lh125 u-mb0">Best Graph Databases in 2026</h4></div><div class="col-8"><p class="u-fs16 u-mb0">One developer weighs <a target="_blank" href="https://www.telerik.com/blogs/best-graph-databases-2026">pros and cons of graph databases</a> and shares his insights into what works best for various use cases.</p></div></div></aside>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:0d526500-b9fd-4aa7-b572-866cdfe09b29</id>
    <title type="text">How Do Software Development Teams Work?</title>
    <summary type="text">Get a sense for how software development teams work together, what various roles are and how they coordinate workloads.</summary>
    <published>2026-11-12T18:20:23Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Leomaris Reyes </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/how-do-software-development-teams-work"/>
    <content type="text"><![CDATA[<p><span class="featured">Get a sense for how software development teams work together, what various roles are and how they coordinate workloads.</span></p><p>I often talk to people who are curious about how a software development team actually works. Some of them haven&rsquo;t started computer science yet and want to understand what working in the industry is really like. Others are already part of the tech industry but work in companies with very different structures and are interested in learning how other teams operate.</p><p>I&rsquo;ve even had conversations with people outside the technology field who are building digital products and want to better understand how software is developed.</p><p>And honestly, I love that.  Understanding how a software development team works is not only helpful for people who want to become developers. It also makes communication between technical and business teams much easier. When a client has a general understanding of the software development process, it becomes easier to understand technical decisions, development timelines and the challenges that naturally arise along the way.</p><p>That&rsquo;s why I decided to write this article. I want to show you how software development teams work in the real world, based on my professional experience. Of course, every company has its own culture, processes and methodology, so there isn&rsquo;t a single &ldquo;right&rdquo; way of working.</p><p>However, having a general understanding of how these teams operate will give you a solid foundation for understanding how software products are built and how the people behind them collaborate to make them happen.</p><h2 id="lets-get-to-know-the-most-common-roles">Let&rsquo;s Get to Know the Most Common Roles</h2><p>When building an application, different roles work together to make it possible. While the team structure may vary from one company to another (some teams have fewer roles, while others have more), these are some of the most common roles:</p><ul><li><strong>Project Manager:</strong> This person is responsible for planning and coordinating the execution of the project. They oversee the project so that deadlines are met, resources are managed effectively and project requirements are delivered according to the plan.</li><li><strong>UI/UX Designers:</strong> They are responsible for designing the application&rsquo;s user interface and user experience. They define how the screens will look, how users will navigate through the application, the colors, typography, images and all the visual elements needed so that developers can later turn the design into a functional application.</li><li><strong>Developers:</strong> They are responsible for turning requirements and ideas into code. They build the application, whether it&rsquo;s a mobile, web or any other type of application defined by the project, implementing the features established during the design and planning phases.</li><li><strong>Quality Assurance (QA):</strong> This role is responsible for validating the quality of the product. QA verifies that every feature meets the expected requirements, identifies bugs before the application reaches users and works closely with the development team so that those issues are resolved in time.</li></ul><h2 id="how-does-the-development-of-an-application-begin">How Does the Development of an Application Begin?</h2><p>Now that we&rsquo;ve covered the main roles, let&rsquo;s talk about how the development of an application or any software requirement actually begins.</p><p>Everything starts when the client (which can be either an external customer or an internal team within the company) defines what they need to build. And they work on these requirements hand in hand with the <strong>project manager</strong> (sometimes shortened to &ldquo;PM&rdquo;).</p><p>The project manager evaluates the team&rsquo;s workload to determine when and how the work will be assigned. At this stage, Agile frameworks such as Scrum are extremely helpful, as they make it easier to organize the work, plan tasks and track the team&rsquo;s progress.</p><p>Once the work has been planned, the project manager presents the requirements to the UI/UX design team, who are responsible for designing the application&rsquo;s screens and defining the complete user flow. When the design is ready, the developers have everything they need to begin implementing the feature.</p><p>The development time depends on the complexity of the requirement. Some features may take only a few hours to complete, while others may require several days or even weeks of work.</p><p>Once the development team finishes the implementation, the feature is handed over to the <strong>QA (quality assurance)</strong> team for validation.</p><h2 id="environments">Environments</h2><p>Although this process may vary from one company to another, it&rsquo;s common to work with multiple environments. Typically, there is a <strong>Development (DEV)</strong> environment, where developers implement and perform initial testing; a <strong>Staging (STG)</strong> environment, where QA tests and validates that everything works correctly in an environment that closely mirrors production; and finally the <strong>Production (PROD)</strong> environment, where the live application is available to real users.</p><p>If QA finds any issues during testing in the Staging environment, they report them back to the development team so they can be fixed. Once the issues have been resolved and successfully validated, the app/feature is ready to be in the stores.</p><p>Using separate environments is extremely important because it allows both developers and QA engineers to test new features using test data without affecting real users or putting the stability of the production application at risk.</p><h2 id="why-is-it-important-to-understand-how-software-development-teams-work">Why Is It Important to Understand How Software Development Teams Work?</h2><p>Understanding how software development teams work can help you in many ways:</p><ul><li><strong>It helps you better understand development timelines and costs.</strong> Building software involves much more than writing code, and every stage of the process takes time.</li><li><strong>It improves communication between technical and non-technical teams.</strong> Whether you&rsquo;re a client, product manager, designer or developer, understanding the process makes collaboration much easier.</li><li><strong>It helps you set more realistic expectations.</strong> Understanding how software is built makes it easier to see why requirements can change and why features go through multiple stages before reaching production.</li><li><strong>It prepares you for your first job in tech.</strong> If you&rsquo;re planning to become a software developer, understanding how software teams work will help you start your career with a stronger foundation and greater confidence.</li></ul><h2 id="conclusion">Conclusion</h2><p>And that&rsquo;s it! I hope this article gave you a better understanding of how software development teams work and what the software development process looks like behind the scenes.</p><p>Remember, every company has its own way of working, but understanding the fundamentals will help you better collaborate with software teams and prepare you for the industry.</p><p>See you in the next article! &zwj;♀️</p><aside><hr data-sf-ec-immutable="" /><div class="row"><div class="col-4 u-normal-full u-small-mb0"><h4 class="u-fs20 u-fw5 u-lh125 u-mb0">Design for Delegation with Progressive Autonomy</h4></div><div class="col-8"><p class="u-fs16 u-mb0"><a target="_blank" href="https://www.telerik.com/blogs/design-delegation-progressive-autonomy">Progressive autonomy for agents</a> works the same as delegating a presentation to a 20-year-old new hire. But full autonomy on day one is maybe not a great idea.</p></div></div></aside>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:c4a5df39-5494-4923-b6c5-431509d94a96</id>
    <title type="text">A Better v-model with defineModel</title>
    <summary type="text">Rather than three separate pieces for a two-way bound value, defineModel gives this common Vue component pattern a single line of syntax.</summary>
    <published>2026-11-12T17:34:58Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Marina Mosti </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/better-v-model-definemodel"/>
    <content type="text"><![CDATA[<p><span class="featured">Rather than three separate pieces for a two-way bound value, defineModel gives this common Vue component pattern a single line of syntax.</span></p><p>In my previous article on <a target="_blank" href="https://www.telerik.com/blogs/vue-basics-script-setup-sugar">Vue Basics: Script Setup Sugar</a>, we went through the five compiler macros that make <code>&lt;script setup&gt;</code> so pleasant to work with. <code>defineModel</code> got a section there, but it was sharing the page with four other macros. I also said outright that the <code>v-model</code> syntax itself was out of scope for that piece. This post is that missing piece.</p><p>If you&rsquo;ve been writing Vue components for a while, you know the ritual. You want a custom input component that works with <code>v-model</code>, so you declare a <code>modelValue</code> prop, declare an <code>update:modelValue</code> emit, and then write a little computed property or a handler to glue the two together. That&rsquo;s three moving parts for one simple idea. A value flows into your component, and it flows back out.</p><p><code>defineModel</code> collapses all of that into a single line. It landed as a stable feature in Vue 3.4, and today I want to walk through how it works, what it compiles down to, how to handle multiple bindings and modifiers, and the one gotcha that will bite you if nobody warns you about it.</p><h2 id="what-is-definemodel">What Is defineModel?</h2><p><code>defineModel</code> is a compiler macro, the same family as <code>defineProps</code> and <code>defineEmits</code>. You call it inside <code>&lt;script setup&gt;</code>, and it hands you back a ref.</p><p>That ref is special. Reading it gives you the value the parent passed down. Writing to it tells the parent to update. You never touch <code>emit</code> directly.</p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token keyword">const</span> model <span class="token operator">=</span> <span class="token function">defineModel</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
</code></pre><p>Behind the scenes, the compiler turns that one line into a prop named <code>modelValue</code> and an emit named <code>update:modelValue</code>. When you do <code>model.value = 'draft'</code>, the emit fires with that string as the payload. The parent&rsquo;s <code>v-model</code> picks it up and updates its own state, which flows back down as the prop.</p><p>So there&rsquo;s nothing new happening underneath. It&rsquo;s the same prop and event pair Vue has always used for component <code>v-model</code>. The difference is that Vue writes it for you.</p><h2 id="the-way-we-used-to-do-it">The Way We Used to Do It</h2><p>Let&rsquo;s look at a text input wrapper written the pre-3.4 way, because the difference is easier to see side by side.</p><p><code>BaseInput.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
const props = defineProps({
  modelValue: {
    type: String,
  },
})

const emit = defineEmits(['update:modelValue'])

const handleInput = (event) =&gt; {
  emit('update:modelValue', event.target.value)
}
&lt;/script&gt;

&lt;template&gt;
  &lt;input :value="props.modelValue" @input="handleInput" /&gt;
&lt;/template&gt;
</code></pre><p>That works, and plenty of production apps are still full of components shaped exactly like this. There&rsquo;s nothing wrong with it!</p><p>But notice how much of it is simply fluff. The prop name and the emit name have to match a convention you&rsquo;re expected to remember.</p><p>And a big one, you can&rsquo;t use <code>v-model</code> on the inner <code>&lt;input&gt;</code> because you&rsquo;re not allowed to mutate a prop, so you fall back to <code>:value</code> plus <code>@input</code>.</p><p>You&rsquo;ve probably seen the alternative version of this too, the <a target="_blank" href="https://vuejs.org/guide/essentials/computed.html#writable-computed">writable computed</a> that people reach for so they can write to the value again:</p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token keyword">import</span> <span class="token punctuation">{</span> computed <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'vue'</span>

<span class="token keyword">const</span> props <span class="token operator">=</span> <span class="token function">defineProps</span><span class="token punctuation">(</span><span class="token punctuation">{</span> modelValue<span class="token punctuation">:</span> <span class="token punctuation">{</span> type<span class="token punctuation">:</span> String <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
<span class="token keyword">const</span> emit <span class="token operator">=</span> <span class="token function">defineEmits</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token string">'update:modelValue'</span><span class="token punctuation">]</span><span class="token punctuation">)</span>

<span class="token keyword">const</span> localValue <span class="token operator">=</span> <span class="token function">computed</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
  <span class="token keyword">get</span><span class="token punctuation">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> props<span class="token punctuation">.</span>modelValue<span class="token punctuation">,</span>
  <span class="token keyword">set</span><span class="token punctuation">:</span> <span class="token punctuation">(</span>value<span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token function">emit</span><span class="token punctuation">(</span><span class="token string">'update:modelValue'</span><span class="token punctuation">,</span> value<span class="token punctuation">)</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre><p>Clever, but it&rsquo;s still four extra lines and one more thing to decode every time you read the component.</p><h2 id="the-same-component-with-definemodel">The Same Component with defineModel</h2><p>Here&rsquo;s the whole thing again.</p><p><code>BaseInput.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
const model = defineModel({ type: String })
&lt;/script&gt;

&lt;template&gt;
  &lt;input v-model="model" /&gt;
&lt;/template&gt;
</code></pre><p>Let&rsquo;s break it down. <code>defineModel</code> declares the <code>modelValue</code> prop and the <code>update:modelValue</code> emit in one shot. The options object takes the prop options you already know from <code>defineProps</code>. <code>type</code> and <code>required</code> behave exactly the same way, and <code>default</code> has one wrinkle we&rsquo;ll get to shortly. It also takes two extra options, <code>get</code> and <code>set</code>, which we&rsquo;ll cover in the modifiers section.</p><p>The return value is a writable ref, which means we can hand it straight to <code>v-model</code> on the native input. No <code>:value</code>, no <code>@input</code>, no computed with a setter. When the user types, <code>v-model</code> writes to <code>model</code>, writing to <code>model</code> emits the update, and the parent sees the new value.</p><p>A parent that uses this doesn&rsquo;t change at all; it is unaware of the inner workings of the component:</p><p><code>SignupForm.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
import { ref } from 'vue'
import BaseInput from './BaseInput.vue'

const email = ref('')
&lt;/script&gt;

&lt;template&gt;
  &lt;BaseInput v-model="email" /&gt;
  &lt;p&gt;You typed: {{ email }}&lt;/p&gt;
&lt;/template&gt;
</code></pre><p>That&rsquo;s the part I like most about this macro. It only changes how you write the child. Nothing about the parent changes, so every component that already uses yours keeps working, and you can migrate file by file whenever you happen to be in there.</p><h2 id="required-default-and-the-gotcha">Required, Default and the Gotcha</h2><p>You can mark a model as required, which is genuinely useful for components that make no sense without a value:</p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token keyword">const</span> status <span class="token operator">=</span> <span class="token function">defineModel</span><span class="token punctuation">(</span><span class="token punctuation">{</span> required<span class="token punctuation">:</span> <span class="token boolean">true</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre><p>You can also give it a default:</p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token keyword">const</span> status <span class="token operator">=</span> <span class="token function">defineModel</span><span class="token punctuation">(</span><span class="token punctuation">{</span> <span class="token keyword">default</span><span class="token punctuation">:</span> <span class="token string">'draft'</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre><p>⚠️ Keep this in mind!</p><p>Defaults on a model aren&rsquo;t the same as defaults on a normal prop. If the parent binds a ref that happens to be <code>undefined</code>, the child will use its default of <code>'draft'</code>, but the parent&rsquo;s ref stays <code>undefined</code>. The two sides are now showing different values and nothing has told you about it. The child thinks the status is a draft; the parent thinks there&rsquo;s no status at all.</p><p>The <a target="_blank" href="https://vuejs.org/api/sfc-script-setup.html#definemodel">official docs flag this too</a>, and my personal rule is simple. If a component is going to declare a default for its model, I initialize the parent ref with a real value instead of leaving it empty. Let the parent own the starting state, and use the child default only as a safety net.</p><p>For objects and arrays, wrap the default in a function the same way you would for any other prop:</p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token keyword">const</span> tags <span class="token operator">=</span> <span class="token function">defineModel</span><span class="token punctuation">(</span><span class="token punctuation">{</span> <span class="token keyword">default</span><span class="token punctuation">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">[</span><span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre><h2 id="multiple-v-model-bindings">Multiple v-model Bindings</h2><p><code>v-model</code> takes an argument, which means one component can expose more than one two-way binding. Pass the prop name as the first argument to <code>defineModel</code> and you get a separate ref for each one. This has to be a plain string since the macro runs at build time, so a variable would have no value to read yet.</p><p><code>DateRangePicker.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
const startDate = defineModel('startDate', { type: String })
const endDate = defineModel('endDate', { type: String })
&lt;/script&gt;

&lt;template&gt;
  &lt;input type="date" v-model="startDate" /&gt;
  &lt;input type="date" v-model="endDate" /&gt;
&lt;/template&gt;
</code></pre><p>And the parent binds each one by name:</p><p><code>ReportFilters.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
import { ref } from 'vue'
import DateRangePicker from './DateRangePicker.vue'

const from = ref('2026-01-01')
const to = ref('2026-01-31')
&lt;/script&gt;

&lt;template&gt;
  &lt;DateRangePicker v-model:start-date="from" v-model:end-date="to" /&gt;
&lt;/template&gt;
</code></pre><p>Notice the casing. In the template we write <code>v-model:start-date</code> in kebab-case, and in the child we declare <code>defineModel('startDate')</code> in camelCase. Vue handles the conversion for props the same way it always has, so both spellings refer to the same thing.</p><p>Date ranges are the case I hit most often, along with min/max sliders and address blocks. Anything where the component genuinely owns several related values, and where one object prop would be worse. The parent would have to spread the whole object just to change one field.</p><p>To be quite honest with you, I try not to go past two or three models on a single component. If you find yourself with more than two, usually it signals that the component is doing too much and wants to be split, or the data really is one object and should travel as one.</p><h2 id="modifiers-without-the-pain">Modifiers Without the Pain</h2><p>Custom <code>v-model</code> modifiers are one of those Vue features almost nobody used before 3.4, and I&rsquo;m fairly sure the reason was that wiring them up was tedious. You had to declare a second prop with a very specific name, default it to an empty object and check it by hand.</p><p>With <code>defineModel</code>, you destructure the return value into a pair. The first element is the ref. The second is the modifiers object.</p><p><code>SlugInput.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
const [model, modifiers] = defineModel({
  set(value) {
    if (modifiers.slug &amp;&amp; value) {
      // Transform a string like "Hello world" into "hello-world"
      return value.toLowerCase().replace(/\s+/g, '-')
    }
    return value
  },
})
&lt;/script&gt;

&lt;template&gt;
  &lt;input v-model="model" /&gt;
&lt;/template&gt;
</code></pre><p>The parent opts in with a dot:</p><p><code>ArticleForm.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
import { ref } from 'vue'
import SlugInput from './SlugInput.vue'

const slug = ref('')
&lt;/script&gt;

&lt;template&gt;
  &lt;SlugInput v-model.slug="slug" /&gt;
&lt;/template&gt;
</code></pre><p>Let&rsquo;s break down what&rsquo;s happening. The <code>set</code> option is a transformer that runs on the way out, right before the value is emitted to the parent.</p><p>Inside it we check <code>modifiers.slug</code>, which is <code>true</code> only when the parent wrote <code>.slug</code> on the binding. If it&rsquo;s there, we lowercase the text and swap spaces for hyphens. Otherwise, we pass the value through untouched.</p><p>Notice the <code>&amp;&amp; value</code> guard. The <code>set</code> option runs on every write, including writes you make yourself from inside the component. If a reset somewhere does <code>model.value = null</code>, the transformer would try to call <code>toLowerCase</code> on it and throw. It&rsquo;s a tiny guard and it stops that crash.</p><p>Keep in mind that <code>set</code> never runs when you read the model, so it does nothing on first render. If you want the same protection when reading, that&rsquo;s what <code>get</code> is for.</p><p>There&rsquo;s a matching <code>get</code> option that transforms on the way in, when you read the model ref inside the child. It&rsquo;s good for cleaning up a value so your template doesn&rsquo;t have to keep checking it:</p><p><code>SearchInput.vue</code></p><pre class=" language-vue"><code class="prism  language-vue">&lt;script setup&gt;
const query = defineModel({
  type: String,
  get: (value) =&gt; value ?? '',
})
&lt;/script&gt;

&lt;template&gt;
  &lt;input v-model="query" /&gt;
  &lt;p&gt;{{ query.length }} characters&lt;/p&gt;
&lt;/template&gt;
</code></pre><p>The parent is free to hold <code>null</code> or leave the ref empty, and everything inside the child can treat the value as a string. This is a mild version of the mismatch I warned about earlier, since the child shows an empty string while the parent still holds <code>null</code>. It&rsquo;s much tamer than inventing a default value, and the first keystroke puts both sides back in step.</p><p>One important caveat here.</p><p>A <code>get</code> should never change a value the user actually typed. It runs on every read, so anything that reshapes real input will fight the user as they type.</p><p>The example above is safe because <code>?? ''</code> only steps in when there&rsquo;s nothing there. Any string the user types passes through untouched.</p><p>Now, say you write a <code>get</code> that rounds a number to two decimals instead. It looks fine in a demo, but <code>get</code> runs every single time the value is read, so it reformats the number right back into the field. Type <code>12.567</code> and the field rewrites itself under you while you&rsquo;re still typing.</p><p>Filling in a missing value is fine. Reformatting a real one is not.</p><p>For named models, the modifiers come back from that specific model&rsquo;s own destructure:</p><pre class=" language-javascript"><code class="prism  language-javascript"><span class="token keyword">const</span> <span class="token punctuation">[</span>startDate<span class="token punctuation">,</span> startModifiers<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token function">defineModel</span><span class="token punctuation">(</span><span class="token string">'startDate'</span><span class="token punctuation">)</span>
<span class="token keyword">const</span> <span class="token punctuation">[</span>endDate<span class="token punctuation">,</span> endModifiers<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token function">defineModel</span><span class="token punctuation">(</span><span class="token string">'endDate'</span><span class="token punctuation">)</span>
</code></pre><p>Write <code>v-model:start-date.iso</code> on the parent and only <code>startModifiers</code> sees <code>{ iso: true }</code>. The other model&rsquo;s modifiers object stays empty.</p><h2 id="typescript">TypeScript</h2><p>If you&rsquo;re working in TypeScript, <code>defineModel</code> takes a type parameter.</p><pre class=" language-typescript"><code class="prism  language-typescript"><span class="token keyword">const</span> amount <span class="token operator">=</span> defineModel<span class="token operator">&lt;</span><span class="token keyword">number</span><span class="token operator">&gt;</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
</code></pre><p>That gives you <code>Ref&lt;number | undefined&gt;</code>, because nothing guarantees the parent passed anything. Mark it required and the <code>undefined</code> goes away:</p><pre class=" language-typescript"><code class="prism  language-typescript"><span class="token keyword">const</span> amount <span class="token operator">=</span> defineModel<span class="token operator">&lt;</span><span class="token keyword">number</span><span class="token operator">&gt;</span><span class="token punctuation">(</span><span class="token punctuation">{</span> required<span class="token punctuation">:</span> <span class="token keyword">true</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre><p>Modifier names can be typed too, with a second type parameter as a union of the modifier strings you support:</p><pre class=" language-typescript"><code class="prism  language-typescript"><span class="token keyword">const</span> <span class="token punctuation">[</span>amount<span class="token punctuation">,</span> modifiers<span class="token punctuation">]</span> <span class="token operator">=</span> defineModel<span class="token operator">&lt;</span><span class="token keyword">number</span><span class="token punctuation">,</span> <span class="token string">'rounded'</span><span class="token operator">&gt;</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
</code></pre><p>Now <code>modifiers.rounded</code> type checks and a typo like <code>modifiers.rounde</code> does not. This is a small thing, but it&rsquo;s the kind of small thing that saves you a confused 10 minutes.</p><h2 id="when-not-to-reach-for-a-definemodel">When Not to Reach for a defineModel</h2><p><code>defineModel</code> makes two-way binding so cheap to write that it&rsquo;s tempting to put one on everything.</p><p>A model is the right shape when the parent owns a value and the child is a nicer way to edit it. Inputs, selects, toggles, pickers, editors. The child has no opinion about the value beyond how it&rsquo;s displayed and changed.</p><p>It&rsquo;s the wrong shape when the child is really reporting something rather than editing something. If a component is telling the parent &ldquo;the user scrolled past this point&rdquo; or &ldquo;validation failed,&rdquo; that&rsquo;s an event, not a model. Use <code>defineEmits</code> and say what happened. Two-way binding there just gives the parent a piece of state it has no business writing to.</p><h2 id="migrating-an-existing-component">Migrating an Existing Component</h2><p>If you have a codebase full of the old shape, the swap is mechanical. Delete the <code>modelValue</code> entry from <code>defineProps</code>, delete <code>update:modelValue</code> from <code>defineEmits</code>, delete the handler or the computed, and add one <code>defineModel</code> call. Then replace <code>:value</code> plus <code>@input</code> in the template with a plain <code>v-model</code>.</p><p>Two things to watch for while you do it:</p><ul><li><strong>Other props</strong>: If your component had props alongside <code>modelValue</code>, keep the <code>defineProps</code> call for those and just remove the model entry. <code>defineModel</code> and <code>defineProps</code> live happily in the same file, they just can&rsquo;t declare the same prop name twice.</li><li><strong>Other emit sites</strong>: If you were emitting <code>update:modelValue</code> from somewhere other than the input handler, say inside a reset method, that becomes a plain assignment like <code>model.value = ''</code>.</li></ul><p>One last thing before you start. <code>defineModel</code> is 3.4 and up, and the modifier destructuring shape is part of that same release. If you&rsquo;re stuck on an older 3.x for whatever reason, the props-and-emit version is still completely valid Vue and there&rsquo;s no urgency to rewrite anything. This is a quality-of-life feature, not a correctness fix.</p><h2 id="wrapping-up">Wrapping Up</h2><p><code>defineModel</code> takes the most common component pattern in Vue, the two-way bound value, and gives it a single line of syntax instead of three separate pieces. You get a writable ref you can pass straight to <code>v-model</code>, prop options you already know, named models for components with several bindings and modifier support that&rsquo;s finally worth using.</p><p>The <a target="_blank" href="https://vuejs.org/api/sfc-script-setup.html#definemodel">defineModel API reference</a> and the <a target="_blank" href="https://vuejs.org/guide/components/v-model.html">Component v-model guide</a> both have more detail, especially around the transformer options.</p><p>Happy v-modeling!</p><aside><hr data-sf-ec-immutable="" /><div class="row"><div class="col-4 u-normal-full u-small-mb0"><h4 class="u-fs20 u-fw5 u-lh125 u-mb0">Vue Basics: Understanding useId in Vue 3</h4></div><div class="col-8"><p class="u-fs16 u-mb0">Learn how to use <a target="_blank" href="https://www.telerik.com/blogs/vue-basics-understanding-useid-vue-3">useId in Vue 3</a> to generate stable, unique IDs for reusable components, improve accessibility and avoid SSR hydration issues.</p></div></div></aside>]]></content>
  </entry>
  <entry>
    <id>urn:uuid:b513e470-20ed-4b2f-bdde-fdcf03b7d4da</id>
    <title type="text">Building Trustworthy AI Experiences</title>
    <summary type="text">Providing source attribution, explanations and transparency can help bolster user trust in an AI-powered application.</summary>
    <published>2026-11-11T22:37:00Z</published>
    <updated>2026-11-27T18:59:41Z</updated>
    <author>
      <name>Hassan Djirdeh </name>
    </author>
    <link rel="alternate" href="https://www.telerik.com/blogs/building-trustworthy-ai-experiences"/>
    <content type="text"><![CDATA[<p><span class="featured">Providing source attribution, explanations and transparency can help bolster user trust in an AI-powered application.</span></p><p>An AI feature can produce a useful answer and still leave the user unsure whether to trust it.</p><p>A support assistant may recommend a refund without showing the policy behind that recommendation, while a project assistant may summarize a status without making clear which records it relied on. In both cases, the output may be correct, but the user has little basis for judging it.</p><p>Trustworthy AI experiences give users enough information to judge an output before relying on it. They show where important information came from, explain consequential recommendations in useful terms and help make uncertainty visible when it affects the next decision. They also give users a way to inspect, correct or stop the system when something looks wrong.</p><p>In this article, we&rsquo;ll look at how transparency, source attribution, explanations and confidence signals can help users develop an appropriate level of trust in an AI-powered application.</p><h2 id="trust-comes-from-what-the-application-shows">Trust Comes from What the Application Shows</h2><p>We should not treat trust as a message we add beside an AI feature. A label that says &ldquo;AI-generated&rdquo; tells users what produced an output, but it doesn&rsquo;t tell them whether the output is grounded in the right information or whether an action has already taken place.</p><p><strong>Trust comes from behavior users can inspect</strong>. That means giving users the information they need to understand where an output came from, why it appeared and what the system has done with it.</p><p>Different UI patterns answer different questions:</p><table><style>table,
 th,
    td {
      border: 1px;
      border-color: #bdbdba;
      border-style: dotted;
      border-collapse: collapse;
      margin-right: auto;
      padding: 0in 5.4pt 0in 5.4pt;
      text-align: left;
    }
  </style>
 <thead><tr><th>Pattern</th><th>Question it helps answer</th></tr></thead><tbody><tr><td>Source attribution</td><td>Where did this information come from?</td></tr><tr><td>Explanation</td><td>Why is the application recommending this?</td></tr><tr><td>Status and activity</td><td>What has the AI already done?</td></tr><tr><td>Confidence or uncertainty</td><td>How much weight should we place on this result?</td></tr><tr><td>User controls</td><td>What can we inspect, change or stop?</td></tr></tbody></table><br /><p>These patterns become more important as an AI feature gains authority. A generated summary may only need source links and an edit control, while an agent proposing a refund needs stronger evidence because the output could lead to a real change in a customer&rsquo;s account.</p><aside><hr data-sf-ec-immutable="" /><div class="row"><div class="col-4 u-normal-full u-small-mb0"><h4 class="u-fs20 u-fw5 u-lh125 u-mb0">[Webinar] State of AI Engineering 2026</h4></div><div class="col-8"><p class="u-fs16 u-mb0">Join us for a webinar Nov. 19: What 800+ worldwide developers and engineering leaders reveal about the <a target="_blank" href="https://www.telerik.com/webinars/progress-telerik/state-of-ai-engineering-2026-from-experimentation-to-production">state of AI engineering</a>.</p></div></div><hr class="u-mb3" /></aside><h2 id="show-where-information-came-from">Show Where Information Came From</h2><p>Source attribution is one of the clearest ways to make an AI response inspectable. When an application answers from documentation, policy or business data, the interface can show the sources used to support the answer.</p><p>This is especially useful in retrieval-augmented (i.e., RAG) applications. The retrieval step already identifies the passages supplied to the model, so the response can preserve references to those documents and expose them in the UI.</p><p>Suppose an internal support assistant answers:</p><blockquote><p>Enterprise customers can request a refund within 30 days when a duplicate charge is confirmed.</p></blockquote><p>A link to the current refund policy lets the support engineer verify that statement without searching the knowledge base separately. If the policy changed recently, the source also gives the engineer a way to check whether the response reflects the latest version.</p><p>A citation still does not prove that the model interpreted a source correctly. Evaluations and production monitoring remain responsible for measuring answer quality. Source attribution gives the user something different: a direct path to verify the response when verification matters.</p><h2 id="explain-the-output-at-the-point-of-decision">Explain the Output at the Point of Decision</h2><p>Not every AI output needs a detailed explanation. A generated email subject or reformatted paragraph may be easy to inspect directly. Explanations matter more when an output is surprising, difficult to verify or likely to influence an important decision. The explanation should focus on information that helps with that decision.</p><p>If an agent proposes a refund (for example), we don&rsquo;t need to expose every internal step that led to the proposal. We can show the evidence that matters:</p><ul><li>Two charges with the same amount and billing period were found.</li><li>The account has no matching second purchase.</li><li>The current refund policy allows duplicate charges to be refunded.</li><li>The proposed refund is $129.</li></ul><p>This gives the reviewer a useful explanation without turning the interface into a transcript of the model&rsquo;s internal reasoning.</p><h2 id="treat-confidence-scores-carefully">Treat Confidence Scores Carefully</h2><p>Confidence scoring sounds like a direct way to communicate uncertainty. If a system is 92% confident, we might show 92% beside the result and let the user decide how much to trust it. With that said, a confidence score is only helpful when we know what it represents.</p><p>Some predictive models produce probabilities that teams can evaluate and calibrate against real outcomes. In those cases, a confidence value may be useful. A model simply stating that it is &ldquo;95% confident,&rdquo; however, does not make that number a calibrated probability. A precise percentage can make an answer look more certain without giving the user useful evidence.</p><p>For many generative AI features, concrete signals are easier to act on:</p><ul><li>Did retrieval find an authoritative source?</li><li>Is required account data available?</li><li>Did structured validation pass?</li><li>Does the proposed action match application policy?</li></ul><p>We can represent those signals in application state:</p><pre class=" language-ts"><code class="prism  language-ts"><span class="token keyword">type</span> TrustSignals <span class="token operator">=</span> <span class="token punctuation">{</span>
  authoritativeSourceFound<span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>
  requiredDataPresent<span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>
  validationPassed<span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>
  policyMatched<span class="token punctuation">:</span> <span class="token keyword">boolean</span><span class="token punctuation">;</span>
<span class="token punctuation">}</span>
</code></pre><p>The UI doesn&rsquo;t need to expose an object like this directly. If required data is missing, the application can say what it could not verify. If the current policy was retrieved and validation passed, it can show that supporting evidence beside the result.</p><p>In summary, when a confidence score improves a user&rsquo;s decision, we can show it and explain what the value represents. When it doesn&rsquo;t, evidence and clear uncertainty are usually more useful than a percentage.</p><h2 id="make-limits-and-actions-visible">Make Limits and Actions Visible</h2><p>An AI experience also builds trust by being clear when it cannot complete a task reliably. Suppose a support assistant is asked whether a customer qualifies for a refund, but the payment service is unavailable. The application should not fill the gap with a plausible answer. It can explain that it found the relevant policy but could not verify the payment history:</p><blockquote><p>I found the refund policy, but I could not verify the payment history for this account. No refund has been issued.</p></blockquote><p>The last sentence is key. When an AI system can take actions, users need to know whether it only prepared a recommendation or already changed something.</p><p>The same principle applies to agents working across several steps. The interface can show when an agent is working, waiting for approval, completed or stopped because required information is missing. Where possible, the experience should also provide a path forward, such as retrying a failed lookup, supplying missing information or escalating the task.</p><p>Clear limits help users learn where the system can be relied on and where human judgment still belongs.</p><p><img sf-image-responsive="true" src="https://www.telerik.com/sfimages/default-source/blogs/2026/2026-11/trustworthy-agent-workflow.webp?sfvrsn=13e18117_3" height="2880" style="max-width:100%;height:auto;" title="trustworthy-agent-workflow" width="2880" alt="Trustworthy Agent Workflow - Make sgent&#39;s state visible, show evidence behind consequential actions, keep user informed about what has or hasn&#39;t happened" sf-size="331308" /></p><h2 id="one-trustworthy-experience-beginning-to-end">One Trustworthy Experience, Beginning to End</h2><p>A customer writes that they were charged twice for a Pro subscription and asks for a refund. A trustworthy workflow might look like this:</p><ol><li>The backend retrieves the current duplicate-charge policy and preserves its source reference.</li><li>The agent checks the customer&rsquo;s payment history and finds two matching charges.</li><li>The UI shows the proposed $129 refund, the matching payment records and the policy that supports it.</li><li>Because the amount requires approval, the application makes clear that no refund has been issued yet.</li><li>The support engineer reviews the evidence and approves the proposal.</li><li>The backend validates the request again, executes the refund and records the result.</li><li>The UI updates the case to show that the refund completed.</li></ol><p>At each point, the support engineer can tell what information the application used, what the agent concluded, and what state the workflow is in.</p><p>This is the central idea of our topic: Trust is not created by one disclosure or one confidence label. <strong>It&rsquo;s created by maintaining a visible, inspectable chain from evidence to recommendation to action</strong>.</p><p>If payment history could not be loaded, the workflow would stop before proposing the refund. If relevant sources conflicted, the application could surface the conflict and escalate the case rather than hiding the uncertainty behind a confidence score.</p><h2 id="wrap-up">Wrap-up</h2><p>Building a trustworthy AI experience doesn&rsquo;t mean convincing users that the system is always right. It means giving them enough information to understand when they can rely on it and when they should inspect the result more closely.</p><p>Source attribution makes generated answers easier to verify. Explanations connect recommendations to relevant evidence for the current task.</p><p>Confidence signals can communicate uncertainty when they have a clear meaning, though missing data, validation results and policy checks often provide more useful signals in generative applications.</p><p>The same principles apply when an AI system can act. Users should be able to see what an agent is doing, whether an action is still proposed or already complete, and where human approval is required.</p><p>As AI takes on a larger role inside our applications, trust becomes part of the interface and the application architecture around it. We earn it by making behavior inspectable, limits visible and consequential actions clear.</p><p>For more on building AI-powered applications and agents with Progress, check out the following resources:</p><ul><li><a href="https://www.telerik.com/nexus" target="_blank">Progress Agent Engineering observability platform</a></li><li><a target="_blank" href="https://www.progress.com/">Progress Software: AI-Powered Applications</a></li><li><a target="_blank" href="https://www.progress.com/agentic-rag">Progress Agentic RAG Solution</a></li></ul><p>&nbsp;</p>]]></content>
  </entry>
</feed>
