{"page":1,"limit":20,"total":95,"totalPages":5,"todayTotal":2,"data":[{"source":"https://dev.to/feed/tag/typescript","sourceHost":"dev.to","title":"Why Pure LRU Cache Eviction Fails Under Scan Workloads (And How W-TinyLFU Fixes It)","link":"https://dev.to/zisamglitch/why-pure-lru-cache-eviction-fails-under-scan-workloads-and-how-w-tinylfu-fixes-it-4fj3","pubDate":"Mon, 23 Nov 2026 16:42:07 +0000","description":"<p>Standard <strong>Least Recently Used (LRU)</strong> caches have an Achilles' heel known as <strong>cache pollution (or scan resistance failure)</strong>:</p>\n\n<p>Suppose your in-memory cache holds <strong>10,000 hot keys</strong> (e.g., active user sessions and top catalog items) with a 98% hit rate. Suddenly, a background reporting job or web crawler scans <strong>10,000 one-off historical records</strong>.</p>\n\n<p>In a naive LRU cache, those 10,000 one-off records completely evict your 10,000 hot keys—dropping your production cache hit rate to <strong>0%</strong>!</p>\n\n<p>To solve this in <a href=\"https://github.com/zisam-glitch/kvdock\" rel=\"noopener noreferrer\"><strong>KVDock</strong></a>, we built a zero-dependency <strong>Window-TinyLFU (<code>MemoryWTinyLFUAdapter</code>)</strong> admission policy alongside our classic LRU and byte-sized adapters.</p>\n\n<blockquote>\n<p>🎮 <strong><a href=\"https://zisam-glitch.github.io/kvdock/playground/index.html\" rel=\"noopener noreferrer\">Launch the Live Browser Cache &amp; Stampede Simulator</a></strong><br><br>\n👤 <strong><a href=\"https://github.com/zisam-glitch\" rel=\"noopener noreferrer\">Follow @zisam-glitch on GitHub</a></strong> for weekly systems engineering deep dives!<br><br>\n⭐ <strong><a href=\"https://github.com/zisam-glitch/kvdock\" rel=\"noopener noreferrer\">Star zisam-glitch/kvdock on GitHub</a></strong></p>\n</blockquote>\n\n\n\n\n<h2>\n  \n  \n  How W-TinyLFU Protects Your Hot Working Set\n</h2>\n\n<p>Instead of blindly admitting every new key into the main cache, <strong>W-TinyLFU</strong> combines:</p>\n\n<ol>\n<li>\n<strong>A 1% Window LRU</strong>: Absorbs short-term burst traffic.</li>\n<li>\n<strong>A Compact Count-Min Sketch Frequency Filter</strong>: Tracks access frequency using minimal memory (4-bit counters with periodic halving to keep frequency fresh).</li>\n<li>\n<strong>A 99% Segmented LRU (Probation + Protected)</strong>: When the Window evicts a candidate, the TinyLFU admission filter compares the candidate's historical frequency against the victim in the Probation segment—only admitting the candidate if its frequency is higher!\n</li>\n</ol>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"nc\">KVDock</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s2\">\"kvdock\"</span><span class=\"p\">;</span>\n<span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"nc\">MemoryWTinyLFUAdapter</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s2\">\"kvdock/adapters/memory-wtinylfu\"</span><span class=\"p\">;</span>\n\n<span class=\"kd\">const</span> <span class=\"n\">dock</span> <span class=\"o\">=</span> <span class=\"k\">new</span> <span class=\"nc\">KVDock</span><span class=\"p\">(</span><span class=\"p\">{</span>\n  <span class=\"n\">adapter</span><span class=\"p\">:</span> <span class=\"k\">new</span> <span class=\"nc\">MemoryWTinyLFUAdapter</span><span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"n\">maxEntries</span><span class=\"p\">:</span> <span class=\"mi\">10_000</span> <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">,</span>\n  <span class=\"n\">ttl</span><span class=\"p\">:</span> <span class=\"mi\">300_000</span><span class=\"p\">,</span>\n<span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n<span class=\"c1\">// One-off scan keys are rejected by the TinyLFU admission filter,</span>\n<span class=\"c1\">// preserving your hot working set in the Protected segment!</span>\n<span class=\"kd\">const</span> <span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"k\">await</span> <span class=\"n\">dock</span><span class=\"p\">.</span><span class=\"nf\">getOrSet</span><span class=\"p\">(</span><span class=\"s2\">\"user:hot:42\"</span><span class=\"p\">,</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"nf\">fetchUser</span><span class=\"p\">(</span><span class=\"mi\">42</span><span class=\"p\">)</span><span class=\"p\">)</span><span class=\"p\">;</span>\n</code></pre>\n\n</div>\n\n\n\n\n\n\n<h2>\n  \n  \n  Explore the Codebase\n</h2>\n\n<ul>\n<li>📦 <strong>GitHub Repository</strong>: <a href=\"https://github.com/zisam-glitch/kvdock\" rel=\"noopener noreferrer\">https://github.com/zisam-glitch/kvdock</a>\n</li>\n<li>👤 <strong>Author Profile</strong>: <a href=\"https://github.com/zisam-glitch\" rel=\"noopener noreferrer\">https://github.com/zisam-glitch</a>\n</li>\n</ul>\n\n<p>If you enjoy deep-dive systems architecture in TypeScript, Rust, and Go, <strong><a href=\"https://github.com/zisam-glitch\" rel=\"noopener noreferrer\">follow @zisam-glitch on GitHub</a></strong> and <strong><a href=\"https://github.com/zisam-glitch/kvdock\" rel=\"noopener noreferrer\">drop a ★ Star on kvdock</a></strong>!</p>","score":5},{"source":"https://dev.to/feed/tag/typescript","sourceHost":"dev.to","title":"Finding Duplicate Vitest Tests Without Running Them: What's New in VitestDedup","link":"https://dev.to/figueiredoluiz/finding-duplicate-vitest-tests-without-running-them-whats-new-in-vitestdedup-78l","pubDate":"Mon, 23 Nov 2026 15:10:54 +0000","description":"<p>On the <a href=\"https://github.com/tailwindlabs/tailwindcss\" rel=\"noopener noreferrer\">Tailwind CSS</a> checkout I measured, VitestDedup 0.11.0 made 3,721 test registrations available for comparison, up from 2,169 in 0.10.0. That's a <strong>71.6% increase</strong>, with the new analysis taking 1.74 seconds.</p>\n\n<p>I maintain <a href=\"https://vitestdedup.dev\" rel=\"noopener noreferrer\">VitestDedup</a>, a static analyzer that finds duplicate Vitest tests and opportunities to replace repeated test code with parameterized cases. Its main use case is an existing suite that has accumulated years of helpers, copied regressions, and different testing conventions.</p>\n\n<p>The goal is to process large amounts of test code quickly. VitestDedup reads source and configuration without executing them, so an initial maintenance review can start from a source checkout. Version 0.11.0 expands the test patterns it understands and improves how it handles comparison context, repeated analysis, and memory.</p>\n\n<h2>\n  \n  \n  Results from real repositories\n</h2>\n\n<p>The Tailwind CSS result comes from revision <code>73e85b23</code>. On <a href=\"https://github.com/vitejs/vite\" rel=\"noopener noreferrer\">Vite</a>, at <code>bc598a6a</code>, comparable registrations grew from 626 to 789, a <strong>26.0% increase</strong>. <a href=\"https://github.com/lobehub/lobehub\" rel=\"noopener noreferrer\">LobeHub</a> gained 1,907 comparable registrations, reaching 68,145.</p>\n\n<p>Here, <em>comparable registrations</em> means extracted registrations minus those reported as unresolved. A registration is a test case recovered from source, including cases expanded from tables and helpers.</p>\n\n<div class=\"table-wrapper-paragraph\"><table>\n<thead>\n<tr>\n<th>Repository</th>\n<th>Revision</th>\n<th>Extracted registrations</th>\n<th>Comparable registrations</th>\n<th>Analysis time</th>\n<th>Peak RSS</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://github.com/tailwindlabs/tailwindcss\" rel=\"noopener noreferrer\">Tailwind CSS</a></td>\n<td><code>73e85b23</code></td>\n<td>4,031</td>\n<td>3,721</td>\n<td>1.74 s</td>\n<td>73.12 MiB</td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/lobehub/lobehub\" rel=\"noopener noreferrer\">LobeHub</a></td>\n<td><code>5bd25892</code></td>\n<td>70,525</td>\n<td>68,145</td>\n<td>88.88 s</td>\n<td>234.53 MiB</td>\n</tr>\n<tr>\n<td><a href=\"https://github.com/QwenLM/qwen-code\" rel=\"noopener noreferrer\">Qwen Code</a></td>\n<td><code>4bcaf569</code></td>\n<td>104,133</td>\n<td>98,096</td>\n<td>57.66 s</td>\n<td>328.14 MiB</td>\n</tr>\n</tbody>\n</table></div>\n\n<p>The Qwen Code run processed more than <strong>104,000 test registrations in under a minute</strong>. These are end-to-end analysis times for different source trees. Registration count captures part of the workload: the LobeHub run analyzed 6,363 files, while Qwen Code's analyzed 3,994.</p>\n\n<p>Across 228 checkout targets, 0.11.0 extracted 1.12 million test registrations from 116,836 files, with a combined analysis time of 24.8 minutes. Some projects appear in more than one target.</p>\n\n<p>These measurements come from a November 23, 2026 release sweep on an Apple M2 with 24 GiB of memory, using the official Darwin ARM64 binaries. Each version ran once on the same recorded checkout, with the order alternated and other work running on the machine. The command was <code>vitest-dedup . --reporters jsonl</code>; project dependencies were not installed. The figures describe source analysis under those conditions, including unresolved registrations.</p>\n\n<h2>\n  \n  \n  From a finding to test.each\n</h2>\n\n<p>The examples below were tested with Node.js 24, Vitest 5.1.0, and VitestDedup 0.11.0. In an existing Vitest project, add this function and its tests. The function applies a bulk discount at ten items.</p>\n\n<p><code>src/discount.ts</code>:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"kd\">type</span> <span class=\"nc\">DiscountInput</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n  <span class=\"n\">items</span><span class=\"p\">:</span> <span class=\"kt\">number</span><span class=\"p\">;</span>\n  <span class=\"n\">total</span><span class=\"p\">:</span> <span class=\"kt\">number</span><span class=\"p\">;</span>\n<span class=\"p\">}</span><span class=\"p\">;</span>\n\n<span class=\"k\">export</span> <span class=\"kd\">const</span> <span class=\"n\">discount</span> <span class=\"o\">=</span> <span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"n\">items</span><span class=\"p\">,</span> <span class=\"n\">total</span> <span class=\"p\">}</span><span class=\"p\">:</span> <span class=\"nc\">DiscountInput</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">(</span><span class=\"p\">{</span>\n  <span class=\"n\">total</span><span class=\"p\">:</span> <span class=\"n\">items</span> <span class=\"o\">&gt;=</span> <span class=\"mi\">10</span> <span class=\"o\">?</span> <span class=\"n\">total</span> <span class=\"o\">*</span> <span class=\"mf\">0.9</span> <span class=\"p\">:</span> <span class=\"n\">total</span><span class=\"p\">,</span>\n<span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n</code></pre>\n\n</div>\n\n\n\n<p><code>tests/discount.test.ts</code>:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"n\">expect</span><span class=\"p\">,</span> <span class=\"n\">test</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s1\">'vitest'</span><span class=\"p\">;</span>\n<span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"n\">discount</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s1\">'../src/discount'</span><span class=\"p\">;</span>\n\n<span class=\"nf\">test</span><span class=\"p\">(</span><span class=\"s1\">'applies no discount at zero items'</span><span class=\"p\">,</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"kd\">const</span> <span class=\"n\">result</span> <span class=\"o\">=</span> <span class=\"nf\">discount</span><span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"n\">items</span><span class=\"p\">:</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"n\">total</span><span class=\"p\">:</span> <span class=\"mi\">100</span> <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"nf\">expect</span><span class=\"p\">(</span><span class=\"n\">result</span><span class=\"p\">.</span><span class=\"n\">total</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">toBe</span><span class=\"p\">(</span><span class=\"mi\">100</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n<span class=\"nf\">test</span><span class=\"p\">(</span><span class=\"s1\">'applies no discount at one item'</span><span class=\"p\">,</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"kd\">const</span> <span class=\"n\">result</span> <span class=\"o\">=</span> <span class=\"nf\">discount</span><span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"n\">items</span><span class=\"p\">:</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"n\">total</span><span class=\"p\">:</span> <span class=\"mi\">100</span> <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"nf\">expect</span><span class=\"p\">(</span><span class=\"n\">result</span><span class=\"p\">.</span><span class=\"n\">total</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">toBe</span><span class=\"p\">(</span><span class=\"mi\">100</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n<span class=\"nf\">test</span><span class=\"p\">(</span><span class=\"s1\">'applies the bulk discount at ten items'</span><span class=\"p\">,</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"kd\">const</span> <span class=\"n\">result</span> <span class=\"o\">=</span> <span class=\"nf\">discount</span><span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"n\">items</span><span class=\"p\">:</span> <span class=\"mi\">10</span><span class=\"p\">,</span> <span class=\"n\">total</span><span class=\"p\">:</span> <span class=\"mi\">100</span> <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"nf\">expect</span><span class=\"p\">(</span><span class=\"n\">result</span><span class=\"p\">.</span><span class=\"n\">total</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">toBe</span><span class=\"p\">(</span><span class=\"mi\">90</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n</code></pre>\n\n</div>\n\n\n\n<p>From the project root, run:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight shell\"><code>npx vitest-dedup@0.11.0 . --reporters terminal,json,html\n</code></pre>\n\n</div>\n\n\n\n<p>Open <code>reports/vitest-dedup.html</code>. The <a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/docs/reports.md\" rel=\"noopener noreferrer\">reporters</a> also write <code>reports/vitest-dedup.json</code> and print terminal output.</p>\n\n<p>In this isolated example, the report contains two <code>parameterization-candidate</code> warnings. One finding includes these fields:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight json\"><code><span class=\"p\">{</span>\n  <span class=\"nl\">\"rule\"</span><span class=\"p\">:</span> <span class=\"s2\">\"parameterization-candidate\"</span><span class=\"p\">,</span>\n  <span class=\"nl\">\"severity\"</span><span class=\"p\">:</span> <span class=\"s2\">\"warning\"</span><span class=\"p\">,</span>\n  <span class=\"nl\">\"verdict\"</span><span class=\"p\">:</span> <span class=\"s2\">\"consolidatable\"</span><span class=\"p\">,</span>\n  <span class=\"nl\">\"titles\"</span><span class=\"p\">:</span> <span class=\"p\">[</span>\n    <span class=\"s2\">\"applies no discount at zero items\"</span><span class=\"p\">,</span>\n    <span class=\"s2\">\"applies no discount at one item\"</span>\n  <span class=\"p\">]</span>\n<span class=\"p\">}</span>\n</code></pre>\n\n</div>\n\n\n\n<p>The inputs still represent separate cases. A <code>test.each</code> table preserves them while putting the shared setup and assertion in one place. Replace the three declarations with:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"n\">test</span><span class=\"p\">.</span><span class=\"nf\">each</span><span class=\"p\">(</span><span class=\"p\">[</span>\n  <span class=\"p\">{</span> <span class=\"n\">title</span><span class=\"p\">:</span> <span class=\"s1\">'zero items'</span><span class=\"p\">,</span> <span class=\"n\">items</span><span class=\"p\">:</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"n\">total</span><span class=\"p\">:</span> <span class=\"mi\">100</span><span class=\"p\">,</span> <span class=\"n\">expected</span><span class=\"p\">:</span> <span class=\"mi\">100</span> <span class=\"p\">}</span><span class=\"p\">,</span>\n  <span class=\"p\">{</span> <span class=\"n\">title</span><span class=\"p\">:</span> <span class=\"s1\">'one item'</span><span class=\"p\">,</span> <span class=\"n\">items</span><span class=\"p\">:</span> <span class=\"mi\">1</span><span class=\"p\">,</span> <span class=\"n\">total</span><span class=\"p\">:</span> <span class=\"mi\">100</span><span class=\"p\">,</span> <span class=\"n\">expected</span><span class=\"p\">:</span> <span class=\"mi\">100</span> <span class=\"p\">}</span><span class=\"p\">,</span>\n  <span class=\"p\">{</span> <span class=\"n\">title</span><span class=\"p\">:</span> <span class=\"s1\">'ten items'</span><span class=\"p\">,</span> <span class=\"n\">items</span><span class=\"p\">:</span> <span class=\"mi\">10</span><span class=\"p\">,</span> <span class=\"n\">total</span><span class=\"p\">:</span> <span class=\"mi\">100</span><span class=\"p\">,</span> <span class=\"n\">expected</span><span class=\"p\">:</span> <span class=\"mi\">90</span> <span class=\"p\">}</span><span class=\"p\">,</span>\n<span class=\"p\">]</span><span class=\"p\">)</span><span class=\"p\">(</span><span class=\"s1\">'calculates the total for $title'</span><span class=\"p\">,</span> <span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"n\">items</span><span class=\"p\">,</span> <span class=\"n\">total</span><span class=\"p\">,</span> <span class=\"n\">expected</span> <span class=\"p\">}</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"kd\">const</span> <span class=\"n\">result</span> <span class=\"o\">=</span> <span class=\"nf\">discount</span><span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"n\">items</span><span class=\"p\">,</span> <span class=\"n\">total</span> <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"nf\">expect</span><span class=\"p\">(</span><span class=\"n\">result</span><span class=\"p\">.</span><span class=\"n\">total</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">toBe</span><span class=\"p\">(</span><span class=\"n\">expected</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n</code></pre>\n\n</div>\n\n\n\n<p>Run the project's tests, then rerun the analyzer:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight shell\"><code>npx vitest run tests/discount.test.ts\nnpx vitest-dedup@0.11.0 . --reporters terminal,json,html\n</code></pre>\n\n</div>\n\n\n\n<p>The refactoring keeps all three tests passing and reduces the parameterization findings from two to zero.</p>\n\n<p>Warnings alone pass the default quality gate. With the default threshold, an unbaselined error-severity finding makes the command exit with code 1. Teams can configure thresholds and baseline policies to choose their gate. The <a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/README.md\" rel=\"noopener noreferrer\">exit-code documentation</a> distinguishes a failed quality gate from an operational error.</p>\n\n<h2>\n  \n  \n  Following tests through factories\n</h2>\n\n<p>In a mature suite, a written <code>test(...)</code> declaration can register more than one case. Consider a factory that returns a method:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"n\">expect</span><span class=\"p\">,</span> <span class=\"n\">test</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s1\">'vitest'</span><span class=\"p\">;</span>\n\n<span class=\"kd\">const</span> <span class=\"n\">make</span> <span class=\"o\">=</span> <span class=\"p\">(</span><span class=\"n\">value</span><span class=\"p\">:</span> <span class=\"kt\">number</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"k\">return</span> <span class=\"p\">{</span>\n    <span class=\"n\">read</span><span class=\"p\">:</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"nf\">test</span><span class=\"p\">(</span><span class=\"s1\">'case'</span><span class=\"p\">,</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"nf\">expect</span><span class=\"p\">(</span><span class=\"n\">value</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">toBeGreaterThan</span><span class=\"p\">(</span><span class=\"mi\">0</span><span class=\"p\">)</span><span class=\"p\">)</span><span class=\"p\">,</span>\n  <span class=\"p\">}</span><span class=\"p\">;</span>\n<span class=\"p\">}</span><span class=\"p\">;</span>\n\n<span class=\"kd\">const</span> <span class=\"n\">first</span> <span class=\"o\">=</span> <span class=\"nf\">make</span><span class=\"p\">(</span><span class=\"mi\">1</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"n\">first</span><span class=\"p\">.</span><span class=\"nf\">read</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n<span class=\"kd\">const</span> <span class=\"n\">second</span> <span class=\"o\">=</span> <span class=\"nf\">make</span><span class=\"p\">(</span><span class=\"mi\">1</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"n\">second</span><span class=\"p\">.</span><span class=\"nf\">read</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n<span class=\"kd\">const</span> <span class=\"n\">third</span> <span class=\"o\">=</span> <span class=\"nf\">make</span><span class=\"p\">(</span><span class=\"mi\">2</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"n\">third</span><span class=\"p\">.</span><span class=\"nf\">read</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n</code></pre>\n\n</div>\n\n\n\n<p>That single declaration registers three tests, and all three pass. VitestDedup produces one <code>duplicate-test</code> error for the two invocations that capture <code>1</code>. The invocation capturing <code>2</code> remains distinct and yields one <code>parameterization-candidate</code> warning. The shared <code>case</code> title adds two <code>duplicate-test-name</code> warnings. The analyzer exits with code 1 because of the duplicate-test error.</p>\n\n<p>These findings point to the shared <code>test(...)</code> declaration. <a href=\"https://github.com/figueiredoluiz/vitest-dedup/pull/323\" rel=\"noopener noreferrer\">Returned-factory support</a> preserves the arguments and suite context of each invocation. It supports methods returned by local or imported factories.</p>\n\n<p>VitestDedup already used an abstract syntax tree, or AST. This release shares more of its results across discovery, comparison, and reporting. These include <a href=\"https://github.com/figueiredoluiz/vitest-dedup/pull/354\" rel=\"noopener noreferrer\">which function a call reaches</a>, <a href=\"https://github.com/figueiredoluiz/vitest-dedup/pull/357\" rel=\"noopener noreferrer\">what it returns</a>, and <a href=\"https://github.com/figueiredoluiz/vitest-dedup/pull/353\" rel=\"noopener noreferrer\">how calls are structured</a>. Sharing those answers keeps the stages consistent as support for JavaScript and TypeScript patterns grows.</p>\n\n<h2>\n  \n  \n  Preserving the context that makes tests different\n</h2>\n\n<p>Identical callback bodies can serve different purposes. Version 0.11.0 improves three comparison guards:</p>\n\n<ul>\n<li><p><strong>Repeat schedules.</strong> A test with <code>repeats: 2</code> has two extra invocations to preserve. <a href=\"https://github.com/figueiredoluiz/vitest-dedup/pull/301\" rel=\"noopener noreferrer\">This change</a> removes a misleading duplicate comparison in Vitest's own browser-trace fixture. The number of comparable registrations for that checkout stayed the same.</p></li>\n<li><p><strong>Hook writes.</strong> State written by a sibling suite's <code>beforeEach</code> can remain visible to later tests. The <a href=\"https://github.com/figueiredoluiz/vitest-dedup/pull/299\" rel=\"noopener noreferrer\">hook comparison guard</a> accounts for whether the relevant state is restored around each test.</p></li>\n<li><p><strong>Activation.</strong> The opt-in <code>subsumed-test</code> rule now <a href=\"https://github.com/figueiredoluiz/vitest-dedup/pull/331\" rel=\"noopener noreferrer\">checks whether the larger test may run</a> before treating its assertions as covering a smaller test.</p></li>\n</ul>\n\n<p>These changes address concrete sources of false positives. The release comparison also preserved all 577 previously satisfied expectations in the project's 442-case labeled corpus, with no regressions. Those counts describe internal regression fixtures. <a href=\"https://github.com/figueiredoluiz/vitest-dedup/releases/tag/v0.11.0\" rel=\"noopener noreferrer\">They do not measure precision on real-world code</a>.</p>\n\n<h2>\n  \n  \n  Reusing analysis and sharing memory\n</h2>\n\n<p>Large suites repeat imports and helper calls, and expand tables into test registrations. Reusing structural information reduces the work per registration.</p>\n\n<p><a href=\"https://github.com/figueiredoluiz/vitest-dedup/pull/363\" rel=\"noopener noreferrer\">Repeated imports now reuse parsed syntax</a> when both the resolved path and source bytes match. Export analysis still runs in the current import context. On two pinned files in that PR's reproduction, parser calls fell from 66 to 44 and from 68 to 39, with identical reports across paired runs.</p>\n\n<p>Configuration text now shares an allocation across the files it governs. In a <a href=\"https://github.com/figueiredoluiz/vitest-dedup/pull/317\" rel=\"noopener noreferrer\">512-file reproduction</a>, sharing one 256 KiB configuration cut peak RSS from about 145 MiB to 16 MiB. Under the reproduction's 64 MiB budget, the analyzer now processes all 1,024 tests. The earlier version stopped after two.</p>\n\n<p>The <a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/docs/incomplete-runs.md#memory-budget\" rel=\"noopener noreferrer\"><code>--max-memory</code> option</a> defaults to 2,048 MiB. It budgets retained analysis data, with a separate RSS check as a backstop. Reports identify incomplete runs when analysis reaches a limit.</p>\n\n<p><a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/docs/reports/safety.md\" rel=\"noopener noreferrer\">Reports escape HTML and strip terminal control sequences</a>. <a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/README.md\" rel=\"noopener noreferrer\">Release archives</a> carry SHA-256 checksums, keyless Sigstore signature bundles, and build provenance. npm installs a prebuilt platform package, and its launcher runs that binary. In 0.11.0, the GitHub Action adds <a href=\"https://github.com/figueiredoluiz/vitest-dedup/pull/302\" rel=\"noopener noreferrer\">release-download recovery through GitHub's assets API</a> while preserving verification.</p>\n\n<h2>\n  \n  \n  Bring the review into regular maintenance\n</h2>\n\n<p>For an existing suite, review the initial report and save accepted findings in a baseline. Baseline creation requires a complete analysis, with the project's dependencies and required generated configuration available:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight shell\"><code>npx vitest-dedup@0.11.0 . \\\n  --baseline dedup-baseline.json \\\n  --update-baseline\n</code></pre>\n\n</div>\n\n\n\n<p>Commit the reviewed baseline, then gate new findings:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight shell\"><code>npx vitest-dedup@0.11.0 . \\\n  --baseline dedup-baseline.json \\\n  --fail-on-new 0\n</code></pre>\n\n</div>\n\n\n\n<p>This policy rejects any new finding, including warnings. Existing findings remain visible as <code>baselined</code>.</p>\n\n<p>For this full-suite check, add <code>--fail-on-incomplete</code> to require complete analysis. An incomplete run then exits with code 2. To apply that policy only to resource-limit causes, use <code>--fail-on-incomplete=limits</code>.</p>\n\n<p>For a report focused on a branch's changes, use:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight shell\"><code>npx vitest-dedup@0.11.0 . \\\n  --baseline dedup-baseline.json \\\n  --changed-since origin/main \\\n  --reporters html\n</code></pre>\n\n</div>\n\n\n\n<p><a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/docs/baselines.md#changed-file-scoping\" rel=\"noopener noreferrer\"><code>--changed-since</code></a> selects findings involving changed files while retaining the surrounding analysis context. When this filter withholds findings, it marks the report incomplete. Keep <code>--fail-on-incomplete</code> on the full-suite check.</p>\n\n<p>The same policies can run in CI; the <a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/docs/github-action.md\" rel=\"noopener noreferrer\">GitHub Action guide</a> covers integration. A new project can adopt a gate from the start, while a legacy suite can use a baseline to make cleanup incremental.</p>\n\n<p>If you maintain a Vitest suite, start with one report and one finding you can turn into a clearer test. <a href=\"https://github.com/figueiredoluiz/vitest-dedup/releases/tag/v0.11.0\" rel=\"noopener noreferrer\">VitestDedup 0.11.0 and its release notes are available on GitHub</a>.</p>\n\n<h2>\n  \n  \n  References\n</h2>\n\n<ul>\n<li><p><a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/README.md\" rel=\"noopener noreferrer\">VitestDedup documentation and installation</a></p></li>\n<li><p><a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/docs/rules.md\" rel=\"noopener noreferrer\">Rules, default severities, and verdicts</a></p></li>\n<li><p><a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/docs/baselines.md\" rel=\"noopener noreferrer\">Baselines and changed-file reporting</a></p></li>\n<li><p><a href=\"https://github.com/figueiredoluiz/vitest-dedup/blob/v0.11.0/docs/incomplete-runs.md\" rel=\"noopener noreferrer\">Resource budgets and incomplete runs</a></p></li>\n</ul>","score":3},{"source":"https://dev.to/feed/tag/vue","sourceHost":"dev.to","title":"Vue.js 2.8: the framework Vue 3 could have been","link":"https://dev.to/fyodorio/vuejs-28-the-framework-vue-3-could-have-been-1b1d","pubDate":"Sun, 22 Nov 2026 20:16:31 +0000","description":"<blockquote>\n<p>\"We all want progress. But progress means getting nearer to the place where you want to be. And if you have taken a wrong turning, then to go forward does not get you any nearer. If you are on the wrong road, progress means doing an about-turn and walking back to the right road; and in that case the man who turns back soonest is the most progressive.\"</p>\n\n<p>C. S. Lewis</p>\n</blockquote>\n\n<p>I recently rewatched the Vue documentary from CultRepo, which is very nostalgic and inspiring. It brings back the memories of the <a href=\"https://v2.vuejs.org\" rel=\"noopener noreferrer\">Vue.js 2</a> times when this framework was a symbol of openness and creativity in JavaScript web development, with its emphasis on developer experience, simplicity, and comprehensive documentation. Interestingly, the documentary refers to <a href=\"https://www.youtube.com/watch?v=OrxmtDw4pVI&amp;t=1139s\" rel=\"noopener noreferrer\">the notorious AngularJS to Angular 2 migration</a> nightmare in a derogatory way but at the same time Evan You had created a nightmare of his own with the Vue.js-2-to-Vue-3 transition (<em>notice, even the gradual name transformation from Vue.js to Vue is kinda symbolic here</em>) — practically following the template of the Angular team's disaster. During the latter, as some grannies can recall, developers who loved the intuitive ease-of-use and simplicity of Angular 1 felt completely abandoned by Angular 2. Vue came around at the perfect time to capture those migratory developers by offering the strength of React combined with the low barrier to entry of early Angular. And yet again — the framework had stepped on the same rake, leaving developers who probably just started to reсover from the trauma to <a href=\"https://www.youtube.com/watch?v=F2koGTRw5yk&amp;t=363s\" rel=\"noopener noreferrer\">suffer the same betrayal again</a>.</p>\n\n<p>Vue.js 2 officially <a href=\"https://blog.vuejs.org/posts/vue-2-eol\" rel=\"noopener noreferrer\">reached its End of Life</a> on December 31, 2023 which is quite a while ago. There are practically no traces of that in modern world of grown and fantastic Vue 3. For what it's worth, it was an opinionated and contradictory evolution. Composition API solved real problems, for sure, but it also solved problems Vue.js 2 developers didn't have, at the cost of a model they really liked. What if the next Vue had been an honest continuation instead of the Hulk-like instant mutation? What if Vue.js 2 had simply gone on — 2.8, 2.9 — with the tools we have now, the same simple DSL, and a little more room to breathe?</p>\n\n<p>This post is a modest nostalgic (<em>and, I accept, slightly melancholic</em>) attempt to look at this probabilistic scenario in a <a href=\"https://en.wikipedia.org/wiki/The_Butterfly_Effect\" rel=\"noopener noreferrer\">butterfly-effect-like way</a>, without any didactic plea for revival. There's no specific reference to the <a href=\"https://gridmix.github.io\" rel=\"noopener noreferrer\">Gridmix project</a> here (<em>that still sits on Vue.js 2 as a small monument to the warm past, but may well move to Vue 3 someday soon</em>) but it's needless to say Gridmix loves Vue and not indifferent to that topic, especially in the context of lazily-ongoing update of dependencies and infrastructure.</p>\n\n<h2>\n  \n  \n  Hey, Number Three, what have you done?\n</h2>\n\n<p>The main goals of Vue 3 changes were to open the door to better framework performance and to balance readability against scalability. Vue.js 2's components were basically slightly creased paper pages you could easily read. Vue 3 asked you to redesign the page and wrap it in solid transparent plastic in order to meet (<em>and withstand</em>) the scale demands.</p>\n\n<p>The grand rewrite (<em>which it was</em>) was sore: <code>Object.defineProperty</code> is out, Proxies are in, a new renderer, a new way to start an app, a <a href=\"https://v3-migration.vuejs.org/breaking-changes/\" rel=\"noopener noreferrer\">big list of breaking changes</a> for a framework people chose because it was small. Even <a href=\"https://v3-migration.vuejs.org/migration-build\" rel=\"noopener noreferrer\">the compatibility build</a> shrugged at the libraries that had grown into Vue.js 2's habitual cozy hand-made furniture. For Vuetify, Nuxt, and Vuex, the migration became a challenge for years (<em>sometimes</em>), not a chilly summer sprint. Vue 3 shipped in September 2020, <a href=\"https://blog.vuejs.org/posts/vue-3-as-the-new-default\" rel=\"noopener noreferrer\">became the default</a> only in February 2022, and Nuxt 3 and Vuetify 3 <a href=\"https://blog.vuejs.org/posts/2022-year-in-review\" rel=\"noopener noreferrer\">called themselves stable</a> in November 2022.</p>\n\n<p>Developers often felt some form of doubt, calling the new major version <a href=\"https://medium.com/js-dojo/vue-3-was-a-mistake-that-we-should-not-repeat-81cc65484954\" rel=\"noopener noreferrer\">a mistake not to repeat</a>, <a href=\"https://dev.to/martinsotirov/vue-3-composition-api-the-wrong-solution-to-the-right-problem-1j6h\">the wrong solution to a real problem</a>, and rolling their eyes at AngularJS EOL-LTS vultures rubbing their hands over another <a href=\"https://www.herodevs.com/blog-posts/what-it-really-takes-to-migrate-from-vue-2-to-vue-3\" rel=\"noopener noreferrer\">quick win</a>. The framework creator himself <a href=\"https://www.youtube.com/watch?v=Vp5ANvd88x0&amp;t=1448s\" rel=\"noopener noreferrer\">walked through the break</a> in a positive way while being more candid at (<em>rarely cited</em>) Vue Fes Japan 2023: too many breaking changes in one release, underestimated ecosystem impact, too much shipped at once, and so on. The migration he had watched Angular inflict, he later described in his own project — isn't it a kind of a daydream irony?!</p>\n\n<h2>\n  \n  \n  What Vue.js 2 got right\n</h2>\n\n<p>Vue.js 2's charm was never that it was the fastest thing in the room (<em>though it was kinda OK anyway, that's for sure</em>). It was that a component felt like a small, easily-readable, honest contract with the author — and no small-font paragraphs at the end. <code>this</code> was a comprehensive skeleton, options were a concise schema, a component was easily \"greppable\" even with a tired mind — like a hand-drawn pirate map from your childhood, with <code>data</code>, <code>computed</code>, <code>methods</code>, <code>watch</code>, <code>mounted</code> as familiar islands you always knew how to navigate through. You did not invent a private topology of nested functions and hope the next reader would reverse-engineer your taste — you just put state where state lived, derived values where derived values lived, and side effects where side effects were allowed to stand.</p>\n\n<p>As for the template, it was warm DX, if the phrase still means anything, where a new person opening a <code>.vue</code> file knows exactly where to look without a guided tour of <code>setup()</code> folklore (<em>Gridmix still feels like that for me and I cry when I think of the somewhat inevitable future migration</em>). Take a static site, or a modest admin screen, or a marketing page with a few interactive \"islands\" — none of that should require a composition seminar before the first button works. Mixins were imperfect and still, in their way, brilliant: list a behavior, and its pieces appeared on <code>this</code> as if they had always lived around. Vuex was stern and somewhat ceremonial, but it was <em>one</em> story about shared state, not a bazaar of patterns that each team re-derived from blog posts or whatnot. In conjunction with documentation with a low barrier to entry, that all was quite controllable and very humane.</p>\n\n<p>Of course, all of that was not without some significant tradeoffs, with implicit mixins intermixing, getter/setter reactivity holes bigger than the ones in our feet after using them, huge options objects when a screen grew with adult responsibilities, alluring but poorly reachable TypeScript, performance \"inefficiencies\"... We all have sins, haven't we? But those sins didn't necessarily ask for a new religion. Better tools at most, at least for most of us — especially as the tools were already on their way, like new bundlers, the proliferation of language servers, compilers all around, and so many more. So let's attempt to imagine: what if history gave us this gift of better tools?</p>\n\n<h2>\n  \n  \n  Under the hood of the fantasy\n</h2>\n\n<p>What I imagine Vue.js of versions 2.8+ would become is something that preserves the same developer habits but is faster underneath and a little more flexible in day-to-day life — nothing too fancy, significantly different, or breaking the habitual development paradigms. Instead, the Vue.js of my dream would have:</p>\n\n<ul>\n<li>\n<strong>Signals under the hood, <code>this</code> on the surface.</strong> You'd still write <code>this.count++</code> as usual but, similar to <a href=\"https://docs.solidjs.com/concepts/reactivity#signals\" rel=\"noopener noreferrer\">Solid</a> (<em>or <a href=\"https://preactjs.com/guide/v11/signals/\" rel=\"noopener noreferrer\">Preact</a></em>) and <a href=\"https://vuejs.org/guide/extras/reactivity-in-depth.html#connection-to-signals\" rel=\"noopener noreferrer\">Vue 3's own experiments</a>, re-rendering would be managed in a more efficient reactive way — as an implementation detail though, not a new API to learn.</li>\n<li>\n<strong>A Vapor-style compiler to help.</strong> The script-tag runtime would stay for simplicity but you'd get a Svelte-like compiler to choose to compile your way out of the excessive Virtual DOM diffing, implicitly changing how a Vue.js 2.8 template renders under the hood.</li>\n<li>\n<strong>Filters back.</strong> <code>{{ price | currency }}</code> was (<em>arguably</em>) a small and neat AngularJS-inspired joy, <a href=\"https://v3-migration.vuejs.org/breaking-changes/filters\" rel=\"noopener noreferrer\">thrown away</a> in favor of calling a method. Vue.js 2.8 would keep the pipe/filter approach, giving filters imports and types, and letting the compiler fold them in. Presentation stays in the template, where it is much more readable.</li>\n<li>\n<strong>Mixins (<em>with optional composables</em>).</strong> A mixin is implicit on purpose: you list it, and its <code>data</code>, <code>computed</code>, <code>methods</code>, and hooks show up on <code>this</code> as if they had always lived there. That was a hell of a habit. You wrote <code>this.formatDate</code> and you are done. The trouble was never the implicitness per se, but rather a potential collision you could not see. Something like an improved \"behavior\" primitive with better collision detection (<em>through better dev tools too</em>) could resolve that. Composables would also remain, as a useful addition.</li>\n<li>\n<strong><code>asyncData</code> (<em>instead of Suspense</em>).</strong> Nuxt 2 already <a href=\"https://nuxt.com/docs/2.x/getting-started/data-fetching\" rel=\"noopener noreferrer\">had the popular humane version</a>: a place on the page that says what data it needs, then merges it into the component you already understand. Vue 3 reached for <code>&lt;Suspense&gt;</code> and <a href=\"https://vuejs.org/guide/built-ins/suspense.html\" rel=\"noopener noreferrer\">left it experimental</a>, though it probably would have been better off going with the thing people already liked.</li>\n<li>\n<strong>Strict templates (<em>proven possible by neighbors</em>).</strong> Angular <a href=\"https://angular.dev/tools/cli/template-typecheck\" rel=\"noopener noreferrer\">type-checks its own DSL</a> without turning it into TypeScript. <code>strictTemplates</code> looks at <code>{{ }}</code>, inputs, <code>$event</code>, <code>@for</code> locals, and pipes, and the compiler does the translation behind the curtain so TypeScript can complain in the template. Vue 2.8 could have the same kindness: a misspelled <code>this.count</code>, a prop of the wrong shape, a <code>v-for</code> item treated as a string when it is a post. The editor/IDE underlines the template in a habitual way with a friendly inline error message — no need for TSX, or <code>setup()</code>, or fancy new grammar.</li>\n<li>\n<strong>More nice extras from the ecosystem experience.</strong> Fragments, and teleports — like, for instance, backported style blocks that can <a href=\"https://blog.vuejs.org/posts/vue-2-7-naruto\" rel=\"noopener noreferrer\">see component state</a> — and lots of other delights that can easily fit the old good ways too.</li>\n<li>\n<strong>Faster tools without paradigm shifts.</strong> The 2020s handed everyone a faster dev server. Vite, yes, but also Rspack, Parcel, Turbopack, esbuild, SWC — a whole generation of bundlers, many of them Rust, some Go, all of them mighty enough that \"the build is slow\" stopped being a reason (<em>or one of them</em>) to rewrite a framework. A language server in your editor could learn to love a plain <code>.vue</code> file too, without requiring <code>setup()</code>.</li>\n</ul>\n\n<p>All in all, a Vue.js 2 that stayed could have taken the new tools and thoughtful, reasonable (<em>and suitable</em>) approaches and remained itself at the same time. What a cake would that be!</p>\n\n<h2>\n  \n  \n  Performance implications\n</h2>\n\n<p>Let's be honest, nobody here is chasing a perfect score, really (<em>otherwise everyone would use <a href=\"https://krausest.github.io/js-framework-benchmark/current.html\" rel=\"noopener noreferrer\">something esoteric like doo.HTML or whatnot</a></em>). \"Bearable\" would have been enough for most of the practitioners (<em>including the enterprise</em>) if the DX remained on par. The described Vue.js 2 of one's dream would (<em>maybe</em>) even catch up with Vue 3, who knows — a smarter compiler, signals, and that new generation of tools could have gone a long way without asking us developers to change how a component looks and feels. In fact, as many would agree, I believe, the migration loss that stings isn't a benchmark, it's rather that \"faster\" became a reason to stop being the framework people loved, and to grow a fancy (<em>and, again, ironically Angular-like</em>) performance machine instead (<em>without any actually impressive performance records too</em>).</p>\n\n<h2>\n  \n  \n  In the end\n</h2>\n\n<p>As a veteran of several migrations in the JavaScript world, I still truly believe the question \"what if we'd fixed it instead of replacing it\" is worth asking, even for a framework you love — was worth it always, and is even more worthy today, in the age of multiple easy-win temptations fed by impressive and somewhat magical technologies of our days.</p>\n\n<p>What this frivolous exercise has helped me verify for myself again is that the Composition API (<em>along with other awesome Vue 3 stuff</em>) <em>made Vue.js more powerful and less itself</em>, which could most probably have been avoided. We might have had the good old framework now but quicker, kinder, and still itself — the framework developers actually love. But history does not tolerate the subjunctive mood. So let's proceed with building the new history with precious instructive knowledge gained with our gray hair.</p>\n\n<p><em>The cover photo by <a href=\"https://unsplash.com/@caipod\" rel=\"noopener noreferrer\">Cai Fang</a> from Unsplash</em></p>","score":3},{"source":"https://dev.to/feed/tag/vue","sourceHost":"dev.to","title":"Prevent Session Spoofing and Viewport Collapses in Vue 3 Telegram Mini Apps","link":"https://dev.to/serhii_a9c08345ac360cf5c8/prevent-session-spoofing-and-viewport-collapses-in-vue-3-telegram-mini-apps-4l7i","pubDate":"Sun, 22 Nov 2026 18:05:01 +0000","description":"<p>Imagine deploying an event booking Telegram Mini App built with Vue 3. In local testing, everything appears smooth: users select tickets, hit the action button, and transmit their order. Once deployed to production on mobile devices, two failure modes immediately crash your user experience and security model.</p>\n\n<p>First, users on mobile screens experience broken layouts. The embedded webview renders in a half-expanded state, scrolling triggers full-page webview dismissal mid-touch, and dark mode users are blinded by default white background flashes. Second, developers who read user details directly from <code>window.Telegram.WebApp.initDataUnsafe</code> inadvertently open their backend to trivial identity spoofing. Because <code>initDataUnsafe</code> is unverified client side state, any user can open browser Developer Tools, alter <code>user.id</code> or <code>user.is_premium</code>, and submit unauthorized requests or hijack another account's data.</p>\n\n<p>This guide demonstrates how to build a production-grade Vue 3 Telegram Mini App context. We will configure Telegram SDK binding, bind native theme updates to reactive CSS variables, synchronize viewport stability, send data reliably, and strictly validate raw <code>initData</code> on an Express backend using HMAC-SHA256 cryptography.</p>\n\n<h2>\n  \n  \n  Synchronizing Viewport and Theme Engine in Vue 3\n</h2>\n\n<p>The Telegram WebApp script (<code>https://telegram.org/js/telegram-web-app.js</code>) injects a global <code>window.Telegram.WebApp</code> object into the DOM. Relying directly on global variables inside Vue components creates SSR hydration bugs, missing reactivity, and broken type definitions. Instead, we encapsulate WebApp initialization in a Vue 3 composable that exports reactive state and handles lifecycle events.</p>\n\n<p>When Telegram opens a webview on iOS or Android, the initial layout height is partial. If a user swipes vertically, Telegram attempts to pull the webview down unless <code>expand()</code> is called. Furthermore, screen height fluctuates when virtual keyboards toggle. We must calculate <code>--tg-viewport-height</code> dynamically whenever the <code>viewportChanged</code> event fires, preventing the input fields from hiding underneath native chrome.</p>\n\n<p>Create <code>src/composables/useTelegram.ts</code> to expose reactive theme parameters and initialize viewports properly:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"n\">ref</span><span class=\"p\">,</span> <span class=\"n\">onMounted</span><span class=\"p\">,</span> <span class=\"n\">onUnmounted</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s1\">'vue'</span><span class=\"p\">;</span>\n\n<span class=\"kd\">interface</span> <span class=\"nc\">TelegramUser</span> <span class=\"p\">{</span>\n  <span class=\"n\">id</span><span class=\"p\">:</span> <span class=\"kt\">number</span><span class=\"p\">;</span>\n  <span class=\"n\">first_name</span><span class=\"p\">:</span> <span class=\"kt\">string</span><span class=\"p\">;</span>\n  <span class=\"n\">last_name</span><span class=\"o\">?:</span> <span class=\"kt\">string</span><span class=\"p\">;</span>\n  <span class=\"n\">username</span><span class=\"o\">?:</span> <span class=\"kt\">string</span><span class=\"p\">;</span>\n  <span class=\"n\">language_code</span><span class=\"o\">?:</span> <span class=\"kt\">string</span><span class=\"p\">;</span>\n  <span class=\"n\">is_premium</span><span class=\"o\">?:</span> <span class=\"kt\">boolean</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n\n<span class=\"k\">export</span> <span class=\"kd\">function</span> <span class=\"nf\">useTelegram</span><span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n  <span class=\"kd\">const</span> <span class=\"n\">tg</span> <span class=\"o\">=</span> <span class=\"n\">ref</span><span class=\"o\">&lt;</span><span class=\"kt\">any</span><span class=\"o\">&gt;</span><span class=\"p\">(</span><span class=\"kc\">null</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"kd\">const</span> <span class=\"n\">user</span> <span class=\"o\">=</span> <span class=\"n\">ref</span><span class=\"o\">&lt;</span><span class=\"nc\">TelegramUser</span> <span class=\"o\">|</span> <span class=\"kc\">null</span><span class=\"o\">&gt;</span><span class=\"p\">(</span><span class=\"kc\">null</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"kd\">const</span> <span class=\"n\">colorScheme</span> <span class=\"o\">=</span> <span class=\"n\">ref</span><span class=\"o\">&lt;</span><span class=\"s1\">'light'</span> <span class=\"o\">|</span> <span class=\"s1\">'dark'</span><span class=\"o\">&gt;</span><span class=\"p\">(</span><span class=\"s1\">'light'</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"kd\">const</span> <span class=\"n\">viewportHeight</span> <span class=\"o\">=</span> <span class=\"n\">ref</span><span class=\"o\">&lt;</span><span class=\"kt\">number</span><span class=\"o\">&gt;</span><span class=\"p\">(</span><span class=\"nb\">window</span><span class=\"p\">.</span><span class=\"n\">innerHeight</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"kd\">const</span> <span class=\"n\">isExpanded</span> <span class=\"o\">=</span> <span class=\"n\">ref</span><span class=\"o\">&lt;</span><span class=\"kt\">boolean</span><span class=\"o\">&gt;</span><span class=\"p\">(</span><span class=\"kc\">false</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">applyThemeVariables</span> <span class=\"o\">=</span> <span class=\"p\">(</span><span class=\"n\">themeParams</span><span class=\"p\">:</span> <span class=\"nc\">Record</span><span class=\"o\">&lt;</span><span class=\"kt\">string</span><span class=\"p\">,</span> <span class=\"kt\">string</span><span class=\"o\">&gt;</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n    <span class=\"kd\">const</span> <span class=\"n\">root</span> <span class=\"o\">=</span> <span class=\"nb\">document</span><span class=\"p\">.</span><span class=\"n\">documentElement</span><span class=\"p\">;</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">bg_color</span><span class=\"p\">)</span> <span class=\"n\">root</span><span class=\"p\">.</span><span class=\"n\">style</span><span class=\"p\">.</span><span class=\"nf\">setProperty</span><span class=\"p\">(</span><span class=\"s1\">'--tg-theme-bg-color'</span><span class=\"p\">,</span> <span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">bg_color</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">text_color</span><span class=\"p\">)</span> <span class=\"n\">root</span><span class=\"p\">.</span><span class=\"n\">style</span><span class=\"p\">.</span><span class=\"nf\">setProperty</span><span class=\"p\">(</span><span class=\"s1\">'--tg-theme-text-color'</span><span class=\"p\">,</span> <span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">text_color</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">hint_color</span><span class=\"p\">)</span> <span class=\"n\">root</span><span class=\"p\">.</span><span class=\"n\">style</span><span class=\"p\">.</span><span class=\"nf\">setProperty</span><span class=\"p\">(</span><span class=\"s1\">'--tg-theme-hint-color'</span><span class=\"p\">,</span> <span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">hint_color</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">link_color</span><span class=\"p\">)</span> <span class=\"n\">root</span><span class=\"p\">.</span><span class=\"n\">style</span><span class=\"p\">.</span><span class=\"nf\">setProperty</span><span class=\"p\">(</span><span class=\"s1\">'--tg-theme-link-color'</span><span class=\"p\">,</span> <span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">link_color</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">button_color</span><span class=\"p\">)</span> <span class=\"n\">root</span><span class=\"p\">.</span><span class=\"n\">style</span><span class=\"p\">.</span><span class=\"nf\">setProperty</span><span class=\"p\">(</span><span class=\"s1\">'--tg-theme-button-color'</span><span class=\"p\">,</span> <span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">button_color</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">button_text_color</span><span class=\"p\">)</span> <span class=\"n\">root</span><span class=\"p\">.</span><span class=\"n\">style</span><span class=\"p\">.</span><span class=\"nf\">setProperty</span><span class=\"p\">(</span><span class=\"s1\">'--tg-theme-button-text-color'</span><span class=\"p\">,</span> <span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">button_text_color</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">secondary_bg_color</span><span class=\"p\">)</span> <span class=\"n\">root</span><span class=\"p\">.</span><span class=\"n\">style</span><span class=\"p\">.</span><span class=\"nf\">setProperty</span><span class=\"p\">(</span><span class=\"s1\">'--tg-theme-secondary-bg-color'</span><span class=\"p\">,</span> <span class=\"n\">themeParams</span><span class=\"p\">.</span><span class=\"n\">secondary_bg_color</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span><span class=\"p\">;</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">handleViewportChange</span> <span class=\"o\">=</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"o\">!</span><span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">)</span> <span class=\"k\">return</span><span class=\"p\">;</span>\n    <span class=\"n\">viewportHeight</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"n\">viewportHeight</span><span class=\"p\">;</span>\n    <span class=\"n\">isExpanded</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"n\">isExpanded</span><span class=\"p\">;</span>\n    <span class=\"nb\">document</span><span class=\"p\">.</span><span class=\"n\">documentElement</span><span class=\"p\">.</span><span class=\"n\">style</span><span class=\"p\">.</span><span class=\"nf\">setProperty</span><span class=\"p\">(</span><span class=\"s1\">'--tg-viewport-height'</span><span class=\"p\">,</span> <span class=\"sb\">`${tg.value.viewportHeight}px`</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span><span class=\"p\">;</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">handleThemeChange</span> <span class=\"o\">=</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"o\">!</span><span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">)</span> <span class=\"k\">return</span><span class=\"p\">;</span>\n    <span class=\"n\">colorScheme</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"n\">colorScheme</span><span class=\"p\">;</span>\n    <span class=\"nf\">applyThemeVariables</span><span class=\"p\">(</span><span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"n\">themeParams</span> <span class=\"o\">||</span> <span class=\"p\">{</span><span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span><span class=\"p\">;</span>\n\n  <span class=\"nf\">onMounted</span><span class=\"p\">(</span><span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"nb\">window</span><span class=\"p\">.</span><span class=\"nc\">Telegram</span><span class=\"o\">?</span><span class=\"p\">.</span><span class=\"nc\">WebApp</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n      <span class=\"kd\">const</span> <span class=\"n\">app</span> <span class=\"o\">=</span> <span class=\"nb\">window</span><span class=\"p\">.</span><span class=\"nc\">Telegram</span><span class=\"p\">.</span><span class=\"nc\">WebApp</span><span class=\"p\">;</span>\n      <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">app</span><span class=\"p\">;</span>\n\n      <span class=\"c1\">// Signal to Telegram that the Mini App is fully rendered</span>\n      <span class=\"n\">app</span><span class=\"p\">.</span><span class=\"nf\">ready</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n      <span class=\"c1\">// Force webview to fill native container height</span>\n      <span class=\"n\">app</span><span class=\"p\">.</span><span class=\"nf\">expand</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n      <span class=\"n\">colorScheme</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">app</span><span class=\"p\">.</span><span class=\"n\">colorScheme</span><span class=\"p\">;</span>\n      <span class=\"n\">user</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">app</span><span class=\"p\">.</span><span class=\"n\">initDataUnsafe</span><span class=\"o\">?</span><span class=\"p\">.</span><span class=\"n\">user</span> <span class=\"o\">||</span> <span class=\"kc\">null</span><span class=\"p\">;</span>\n\n      <span class=\"nf\">applyThemeVariables</span><span class=\"p\">(</span><span class=\"n\">app</span><span class=\"p\">.</span><span class=\"n\">themeParams</span> <span class=\"o\">||</span> <span class=\"p\">{</span><span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n      <span class=\"nf\">handleViewportChange</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n      <span class=\"n\">app</span><span class=\"p\">.</span><span class=\"nf\">onEvent</span><span class=\"p\">(</span><span class=\"s1\">'viewportChanged'</span><span class=\"p\">,</span> <span class=\"n\">handleViewportChange</span><span class=\"p\">)</span><span class=\"p\">;</span>\n      <span class=\"n\">app</span><span class=\"p\">.</span><span class=\"nf\">onEvent</span><span class=\"p\">(</span><span class=\"s1\">'themeChanged'</span><span class=\"p\">,</span> <span class=\"n\">handleThemeChange</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"p\">}</span>\n  <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"nf\">onUnmounted</span><span class=\"p\">(</span><span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n      <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"nf\">offEvent</span><span class=\"p\">(</span><span class=\"s1\">'viewportChanged'</span><span class=\"p\">,</span> <span class=\"n\">handleViewportChange</span><span class=\"p\">)</span><span class=\"p\">;</span>\n      <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"nf\">offEvent</span><span class=\"p\">(</span><span class=\"s1\">'themeChanged'</span><span class=\"p\">,</span> <span class=\"n\">handleThemeChange</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"p\">}</span>\n  <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"k\">return</span> <span class=\"p\">{</span>\n    <span class=\"n\">tg</span><span class=\"p\">,</span>\n    <span class=\"n\">user</span><span class=\"p\">,</span>\n    <span class=\"n\">colorScheme</span><span class=\"p\">,</span>\n    <span class=\"n\">viewportHeight</span><span class=\"p\">,</span>\n    <span class=\"n\">isExpanded</span>\n  <span class=\"p\">}</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n</code></pre>\n\n</div>\n\n\n\n<p>By dynamically updating <code>--tg-viewport-height</code> and CSS root variables, your App markup remains responsive across iOS modal adjustments, Android soft-keyboard popups, and native dark mode switching.</p>\n\n<h2>\n  \n  \n  Transmitting Form Data via sendData and Direct API Requests\n</h2>\n\n<p>Telegram provides two main methods to send actions back to your system: <code>Telegram.WebApp.sendData()</code> and traditional HTTP requests (<code>fetch</code> or <code>axios</code>). Understanding when to use each is essential.</p>\n\n<p><code>Telegram.WebApp.sendData(data)</code> accepts a UTF-8 string up to 4096 bytes. It closes the Mini App immediately and fires a <code>web_app_data</code> service message back to the Telegram bot context. Crucially, <code>sendData</code> <strong>only works</strong> if the Mini App was opened via a keyboard button (<code>KeyboardButton</code> with <code>web_app</code>). If the Mini App was launched from an inline button (<code>InlineKeyboardButton</code>), an attachment menu, or a direct link (<code>t.me/bot/app</code>), calling <code>sendData</code> will fail silently or throw a runtime error.</p>\n\n<p>To build a robust user flow, check if <code>sendData</code> is usable for simple form triggers. For complex operations or Mini Apps launched via inline keyboards, transmit the raw <code>Telegram.WebApp.initData</code> payload directly to your backend REST API over HTTPS.</p>\n\n<p>Here is a Vue 3 registration component using Telegram's native <code>MainButton</code> component to trigger transmission:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight vue\"><code><span class=\"nt\">&lt;template&gt;</span>\n  <span class=\"nt\">&lt;div</span> <span class=\"na\">class</span><span class=\"o\">=</span><span class=\"s\">\"booking-container\"</span><span class=\"nt\">&gt;</span>\n    <span class=\"nt\">&lt;h2&gt;</span>Select Tickets<span class=\"nt\">&lt;/h2&gt;</span>\n    <span class=\"nt\">&lt;div</span> <span class=\"na\">class</span><span class=\"o\">=</span><span class=\"s\">\"ticket-picker\"</span><span class=\"nt\">&gt;</span>\n      <span class=\"nt\">&lt;button</span> <span class=\"na\">@click</span><span class=\"o\">=</span><span class=\"s\">\"decrement\"</span> <span class=\"na\">:disabled</span><span class=\"o\">=</span><span class=\"s\">\"count &lt;= 1\"</span><span class=\"nt\">&gt;</span>-<span class=\"nt\">&lt;/button&gt;</span>\n      <span class=\"nt\">&lt;span&gt;</span><span class=\"cp\">{{</span> <span class=\"n\">count</span> <span class=\"cp\">}}</span><span class=\"nt\">&lt;/span&gt;</span>\n      <span class=\"nt\">&lt;button</span> <span class=\"na\">@click</span><span class=\"o\">=</span><span class=\"s\">\"increment\"</span><span class=\"nt\">&gt;</span>+<span class=\"nt\">&lt;/button&gt;</span>\n    <span class=\"nt\">&lt;/div&gt;</span>\n\n    <span class=\"nt\">&lt;p</span> <span class=\"na\">v-if</span><span class=\"o\">=</span><span class=\"s\">\"errorMessage\"</span> <span class=\"na\">class</span><span class=\"o\">=</span><span class=\"s\">\"error\"</span><span class=\"nt\">&gt;</span><span class=\"cp\">{{</span> <span class=\"n\">errorMessage</span> <span class=\"cp\">}}</span><span class=\"nt\">&lt;/p&gt;</span>\n  <span class=\"nt\">&lt;/div&gt;</span>\n<span class=\"nt\">&lt;/template&gt;</span>\n\n<span class=\"nt\">&lt;script</span> <span class=\"na\">setup</span> <span class=\"na\">lang</span><span class=\"o\">=</span><span class=\"s\">\"ts\"</span><span class=\"nt\">&gt;</span>\n<span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"n\">ref</span><span class=\"p\">,</span> <span class=\"n\">onMounted</span><span class=\"p\">,</span> <span class=\"n\">onUnmounted</span><span class=\"p\">,</span> <span class=\"n\">watch</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s1\">'vue'</span><span class=\"p\">;</span>\n<span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"n\">useTelegram</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s1\">'../composables/useTelegram'</span><span class=\"p\">;</span>\n\n<span class=\"kd\">const</span> <span class=\"p\">{</span> <span class=\"n\">tg</span> <span class=\"p\">}</span> <span class=\"o\">=</span> <span class=\"nf\">useTelegram</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"kd\">const</span> <span class=\"n\">count</span> <span class=\"o\">=</span> <span class=\"nf\">ref</span><span class=\"p\">(</span><span class=\"mi\">1</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"kd\">const</span> <span class=\"n\">errorMessage</span> <span class=\"o\">=</span> <span class=\"nf\">ref</span><span class=\"p\">(</span><span class=\"s1\">''</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n<span class=\"kd\">const</span> <span class=\"n\">increment</span> <span class=\"o\">=</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"n\">count</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"o\">++</span><span class=\"p\">;</span>\n<span class=\"kd\">const</span> <span class=\"n\">decrement</span> <span class=\"o\">=</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">count</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">&gt;</span> <span class=\"mi\">1</span><span class=\"p\">)</span> <span class=\"n\">count</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"o\">--</span><span class=\"p\">;</span>\n<span class=\"p\">}</span><span class=\"p\">;</span>\n\n<span class=\"kd\">const</span> <span class=\"n\">handleMainButtonClick</span> <span class=\"o\">=</span> <span class=\"k\">async</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"o\">!</span><span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">)</span> <span class=\"k\">return</span><span class=\"p\">;</span>\n\n  <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"nc\">MainButton</span><span class=\"p\">.</span><span class=\"nf\">showProgress</span><span class=\"p\">(</span><span class=\"kc\">false</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"n\">errorMessage</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"s1\">''</span><span class=\"p\">;</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">payload</span> <span class=\"o\">=</span> <span class=\"nb\">JSON</span><span class=\"p\">.</span><span class=\"nf\">stringify</span><span class=\"p\">(</span><span class=\"p\">{</span>\n    <span class=\"n\">ticket_count</span><span class=\"p\">:</span> <span class=\"n\">count</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">,</span>\n    <span class=\"n\">timestamp</span><span class=\"p\">:</span> <span class=\"nb\">Date</span><span class=\"p\">.</span><span class=\"nf\">now</span><span class=\"p\">(</span><span class=\"p\">)</span>\n  <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"c1\">// Check if sendData can be used (only in keyboard button context)</span>\n  <span class=\"c1\">// Otherwise perform an authenticated API fetch using initData</span>\n  <span class=\"k\">try</span> <span class=\"p\">{</span>\n    <span class=\"kd\">const</span> <span class=\"n\">response</span> <span class=\"o\">=</span> <span class=\"k\">await</span> <span class=\"nb\">fetch</span><span class=\"p\">(</span><span class=\"s1\">'/api/checkout'</span><span class=\"p\">,</span> <span class=\"p\">{</span>\n      <span class=\"n\">method</span><span class=\"p\">:</span> <span class=\"s1\">'POST'</span><span class=\"p\">,</span>\n      <span class=\"n\">headers</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s1\">'Content-Type'</span><span class=\"p\">:</span> <span class=\"s1\">'application/json'</span><span class=\"p\">,</span>\n        <span class=\"s1\">'Authorization'</span><span class=\"p\">:</span> <span class=\"sb\">`Bearer ${tg.value.initData}`</span>\n      <span class=\"p\">}</span><span class=\"p\">,</span>\n      <span class=\"n\">body</span><span class=\"p\">:</span> <span class=\"n\">payload</span>\n    <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"o\">!</span><span class=\"n\">response</span><span class=\"p\">.</span><span class=\"n\">ok</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n      <span class=\"k\">throw</span> <span class=\"k\">new</span> <span class=\"nb\">Error</span><span class=\"p\">(</span><span class=\"sb\">`Server returned HTTP ${response.status}`</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"p\">}</span>\n\n    <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"nf\">close</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span> <span class=\"k\">catch</span> <span class=\"p\">(</span><span class=\"n\">err</span><span class=\"p\">:</span> <span class=\"kt\">any</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n    <span class=\"n\">errorMessage</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"o\">=</span> <span class=\"n\">err</span><span class=\"p\">.</span><span class=\"n\">message</span> <span class=\"o\">||</span> <span class=\"s1\">'Checkout failed. Please try again.'</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span> <span class=\"k\">finally</span> <span class=\"p\">{</span>\n    <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"nc\">MainButton</span><span class=\"p\">.</span><span class=\"nf\">hideProgress</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span>\n<span class=\"p\">}</span><span class=\"p\">;</span>\n\n<span class=\"nf\">onMounted</span><span class=\"p\">(</span><span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"o\">?</span><span class=\"p\">.</span><span class=\"nc\">MainButton</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n    <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"nc\">MainButton</span><span class=\"p\">.</span><span class=\"nf\">setText</span><span class=\"p\">(</span><span class=\"s1\">'CONFIRM BOOKING'</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"nc\">MainButton</span><span class=\"p\">.</span><span class=\"nf\">show</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"nc\">MainButton</span><span class=\"p\">.</span><span class=\"nf\">onClick</span><span class=\"p\">(</span><span class=\"n\">handleMainButtonClick</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span>\n<span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n<span class=\"nf\">onUnmounted</span><span class=\"p\">(</span><span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"o\">?</span><span class=\"p\">.</span><span class=\"nc\">MainButton</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n    <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"nc\">MainButton</span><span class=\"p\">.</span><span class=\"nf\">hide</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"n\">tg</span><span class=\"p\">.</span><span class=\"n\">value</span><span class=\"p\">.</span><span class=\"nc\">MainButton</span><span class=\"p\">.</span><span class=\"nf\">offClick</span><span class=\"p\">(</span><span class=\"n\">handleMainButtonClick</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span>\n<span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"nt\">&lt;/script&gt;</span>\n\n<span class=\"nt\">&lt;style</span> <span class=\"na\">scoped</span><span class=\"nt\">&gt;</span>\n<span class=\"nc\">.booking-container</span> <span class=\"p\">{</span>\n  <span class=\"nl\">padding</span><span class=\"p\">:</span> <span class=\"mi\">16px</span><span class=\"p\">;</span>\n  <span class=\"nl\">background-color</span><span class=\"p\">:</span> <span class=\"nf\">var</span><span class=\"p\">(</span><span class=\"nv\">--tg-theme-bg-color</span><span class=\"p\">,</span> <span class=\"mh\">#ffffff</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"nl\">color</span><span class=\"p\">:</span> <span class=\"nf\">var</span><span class=\"p\">(</span><span class=\"nv\">--tg-theme-text-color</span><span class=\"p\">,</span> <span class=\"mh\">#000000</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"nl\">min-height</span><span class=\"p\">:</span> <span class=\"nf\">var</span><span class=\"p\">(</span><span class=\"nv\">--tg-viewport-height</span><span class=\"p\">,</span> <span class=\"mi\">100vh</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n\n<span class=\"nc\">.ticket-picker</span> <span class=\"p\">{</span>\n  <span class=\"nl\">display</span><span class=\"p\">:</span> <span class=\"n\">flex</span><span class=\"p\">;</span>\n  <span class=\"nl\">align-items</span><span class=\"p\">:</span> <span class=\"n\">center</span><span class=\"p\">;</span>\n  <span class=\"nl\">gap</span><span class=\"p\">:</span> <span class=\"mi\">12px</span><span class=\"p\">;</span>\n  <span class=\"nl\">margin-top</span><span class=\"p\">:</span> <span class=\"mi\">16px</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n\n<span class=\"nc\">.error</span> <span class=\"p\">{</span>\n  <span class=\"nl\">color</span><span class=\"p\">:</span> <span class=\"mh\">#ff3b30</span><span class=\"p\">;</span>\n  <span class=\"nl\">margin-top</span><span class=\"p\">:</span> <span class=\"mi\">12px</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n<span class=\"nt\">&lt;/style&gt;</span>\n</code></pre>\n\n</div>\n\n\n\n<p>This pattern prevents blank screens by leveraging Telegram's native loader within <code>MainButton</code> while fallback handling guarantees network errors display inside the webview instead of freezing the interface.</p>\n\n<h2>\n  \n  \n  Verifying HMAC Signatures and Preventing Session Spoofing on Node.js\n</h2>\n\n<p>Client applications should never be trusted. The <code>window.Telegram.WebApp.initDataUnsafe</code> object contains parsed user IDs, names, and auth timestamps, but any malicious user can alter this object in memory using devtools or custom scripts. </p>\n\n<p>To establish authentic identities, your Vue frontend must pass the raw <code>Telegram.WebApp.initData</code> query string to your server inside the HTTP headers. The backend must recalculate the signature and compare it against the <code>hash</code> parameter provided in <code>initData</code>.</p>\n\n<p>The algorithm operates as follows:</p>\n\n<ol>\n<li>Parse <code>initData</code> into key-value pairs.</li>\n<li>Extract the <code>hash</code> key and remove it from the payload set.</li>\n<li>Sort the remaining keys alphabetically in ascending order.</li>\n<li>Format sorted pairs as <code>key=value</code>, separated by newlines (<code>\n</code>). This string is the <code>data_check_string</code>.</li>\n<li>Compute a secret key by running HMAC-SHA256 over your Telegram Bot Token using the constant string seed <code>\"WebAppData\"</code> as the key.</li>\n<li>Compute the HMAC-SHA256 signature of <code>data_check_string</code> using the derived secret key.</li>\n<li>Perform a constant-time comparison against the extracted <code>hash</code> string.</li>\n<li>Verify that <code>auth_date</code> is fresh to block replay attacks.</li>\n</ol>\n\n<p>Here is an Express controller in Node.js demonstrating strict cryptographic verification:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"nc\">Request</span><span class=\"p\">,</span> <span class=\"nc\">Response</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s1\">'express'</span><span class=\"p\">;</span>\n<span class=\"k\">import</span> <span class=\"n\">crypto</span> <span class=\"k\">from</span> <span class=\"s1\">'crypto'</span><span class=\"p\">;</span>\n\n<span class=\"kd\">const</span> <span class=\"no\">BOT_TOKEN</span> <span class=\"o\">=</span> <span class=\"nb\">process</span><span class=\"p\">.</span><span class=\"n\">env</span><span class=\"p\">.</span><span class=\"no\">BOT_TOKEN</span><span class=\"p\">;</span>\n<span class=\"kd\">const</span> <span class=\"no\">MAX_SESSION_AGE_SECONDS</span> <span class=\"o\">=</span> <span class=\"mi\">86400</span><span class=\"p\">;</span> <span class=\"c1\">// 24 hours</span>\n\n<span class=\"kd\">interface</span> <span class=\"nc\">VerifiedInitData</span> <span class=\"p\">{</span>\n  <span class=\"n\">user</span><span class=\"o\">?:</span> <span class=\"p\">{</span>\n    <span class=\"n\">id</span><span class=\"p\">:</span> <span class=\"kt\">number</span><span class=\"p\">;</span>\n    <span class=\"n\">first_name</span><span class=\"p\">:</span> <span class=\"kt\">string</span><span class=\"p\">;</span>\n    <span class=\"n\">username</span><span class=\"o\">?:</span> <span class=\"kt\">string</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span><span class=\"p\">;</span>\n  <span class=\"n\">auth_date</span><span class=\"p\">:</span> <span class=\"kt\">number</span><span class=\"p\">;</span>\n  <span class=\"n\">query_id</span><span class=\"o\">?:</span> <span class=\"kt\">string</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n\n<span class=\"k\">export</span> <span class=\"kd\">function</span> <span class=\"nf\">verifyTelegramInitData</span><span class=\"p\">(</span><span class=\"n\">rawInitData</span><span class=\"p\">:</span> <span class=\"kt\">string</span><span class=\"p\">)</span><span class=\"p\">:</span> <span class=\"nc\">VerifiedInitData</span> <span class=\"o\">|</span> <span class=\"kc\">null</span> <span class=\"p\">{</span>\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"o\">!</span><span class=\"no\">BOT_TOKEN</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n    <span class=\"k\">throw</span> <span class=\"k\">new</span> <span class=\"nb\">Error</span><span class=\"p\">(</span><span class=\"s1\">'BOT_TOKEN environment variable is not defined.'</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">urlParams</span> <span class=\"o\">=</span> <span class=\"k\">new</span> <span class=\"nc\">URLSearchParams</span><span class=\"p\">(</span><span class=\"n\">rawInitData</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"kd\">const</span> <span class=\"n\">hash</span> <span class=\"o\">=</span> <span class=\"n\">urlParams</span><span class=\"p\">.</span><span class=\"nf\">get</span><span class=\"p\">(</span><span class=\"s1\">'hash'</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"o\">!</span><span class=\"n\">hash</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n    <span class=\"k\">return</span> <span class=\"kc\">null</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span>\n\n  <span class=\"n\">urlParams</span><span class=\"p\">.</span><span class=\"k\">delete</span><span class=\"p\">(</span><span class=\"s1\">'hash'</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"c1\">// Sort remaining parameters alphabetically by key</span>\n  <span class=\"kd\">const</span> <span class=\"n\">sortedPairs</span><span class=\"p\">:</span> <span class=\"kt\">string</span><span class=\"p\">[</span><span class=\"p\">]</span> <span class=\"o\">=</span> <span class=\"p\">[</span><span class=\"p\">]</span><span class=\"p\">;</span>\n  <span class=\"nb\">Array</span><span class=\"p\">.</span><span class=\"k\">from</span><span class=\"p\">(</span><span class=\"n\">urlParams</span><span class=\"p\">.</span><span class=\"nf\">entries</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">)</span>\n    <span class=\"p\">.</span><span class=\"nf\">sort</span><span class=\"p\">(</span><span class=\"p\">(</span><span class=\"p\">[</span><span class=\"n\">a</span><span class=\"p\">]</span><span class=\"p\">,</span> <span class=\"p\">[</span><span class=\"n\">b</span><span class=\"p\">]</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"n\">a</span><span class=\"p\">.</span><span class=\"nf\">localeCompare</span><span class=\"p\">(</span><span class=\"n\">b</span><span class=\"p\">)</span><span class=\"p\">)</span>\n    <span class=\"p\">.</span><span class=\"nf\">forEach</span><span class=\"p\">(</span><span class=\"p\">(</span><span class=\"p\">[</span><span class=\"n\">key</span><span class=\"p\">,</span> <span class=\"n\">value</span><span class=\"p\">]</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n      <span class=\"n\">sortedPairs</span><span class=\"p\">.</span><span class=\"nf\">push</span><span class=\"p\">(</span><span class=\"sb\">`${key}=${value}`</span><span class=\"p\">)</span><span class=\"p\">;</span>\n    <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">dataCheckString</span> <span class=\"o\">=</span> <span class=\"n\">sortedPairs</span><span class=\"p\">.</span><span class=\"nf\">join</span><span class=\"p\">(</span><span class=\"s1\">'\n'</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"c1\">// Derive secret key: HMAC-SHA256(botToken, \"WebAppData\")</span>\n  <span class=\"kd\">const</span> <span class=\"n\">secretKey</span> <span class=\"o\">=</span> <span class=\"n\">crypto</span>\n    <span class=\"p\">.</span><span class=\"nf\">createHmac</span><span class=\"p\">(</span><span class=\"s1\">'sha256'</span><span class=\"p\">,</span> <span class=\"s1\">'WebAppData'</span><span class=\"p\">)</span>\n    <span class=\"p\">.</span><span class=\"nf\">update</span><span class=\"p\">(</span><span class=\"no\">BOT_TOKEN</span><span class=\"p\">)</span>\n    <span class=\"p\">.</span><span class=\"nf\">digest</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"c1\">// Calculate signature: HMAC-SHA256(dataCheckString, secretKey)</span>\n  <span class=\"kd\">const</span> <span class=\"n\">calculatedHash</span> <span class=\"o\">=</span> <span class=\"n\">crypto</span>\n    <span class=\"p\">.</span><span class=\"nf\">createHmac</span><span class=\"p\">(</span><span class=\"s1\">'sha256'</span><span class=\"p\">,</span> <span class=\"n\">secretKey</span><span class=\"p\">)</span>\n    <span class=\"p\">.</span><span class=\"nf\">update</span><span class=\"p\">(</span><span class=\"n\">dataCheckString</span><span class=\"p\">)</span>\n    <span class=\"p\">.</span><span class=\"nf\">digest</span><span class=\"p\">(</span><span class=\"s1\">'hex'</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"c1\">// Constant-time check to prevent timing attacks</span>\n  <span class=\"kd\">const</span> <span class=\"n\">hashBuffer</span> <span class=\"o\">=</span> <span class=\"nc\">Buffer</span><span class=\"p\">.</span><span class=\"k\">from</span><span class=\"p\">(</span><span class=\"n\">hash</span><span class=\"p\">,</span> <span class=\"s1\">'hex'</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"kd\">const</span> <span class=\"n\">calculatedBuffer</span> <span class=\"o\">=</span> <span class=\"nc\">Buffer</span><span class=\"p\">.</span><span class=\"k\">from</span><span class=\"p\">(</span><span class=\"n\">calculatedHash</span><span class=\"p\">,</span> <span class=\"s1\">'hex'</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">hashBuffer</span><span class=\"p\">.</span><span class=\"n\">length</span> <span class=\"o\">!==</span> <span class=\"n\">calculatedBuffer</span><span class=\"p\">.</span><span class=\"n\">length</span> <span class=\"o\">||</span> <span class=\"o\">!</span><span class=\"n\">crypto</span><span class=\"p\">.</span><span class=\"nf\">timingSafeEqual</span><span class=\"p\">(</span><span class=\"n\">hashBuffer</span><span class=\"p\">,</span> <span class=\"n\">calculatedBuffer</span><span class=\"p\">)</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n    <span class=\"k\">return</span> <span class=\"kc\">null</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">authDate</span> <span class=\"o\">=</span> <span class=\"nb\">parseInt</span><span class=\"p\">(</span><span class=\"n\">urlParams</span><span class=\"p\">.</span><span class=\"nf\">get</span><span class=\"p\">(</span><span class=\"s1\">'auth_date'</span><span class=\"p\">)</span> <span class=\"o\">||</span> <span class=\"s1\">'0'</span><span class=\"p\">,</span> <span class=\"mi\">10</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"kd\">const</span> <span class=\"n\">currentTime</span> <span class=\"o\">=</span> <span class=\"nb\">Math</span><span class=\"p\">.</span><span class=\"nf\">floor</span><span class=\"p\">(</span><span class=\"nb\">Date</span><span class=\"p\">.</span><span class=\"nf\">now</span><span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">/</span> <span class=\"mi\">1000</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"c1\">// Reject payloads older than expiration threshold</span>\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">currentTime</span> <span class=\"o\">-</span> <span class=\"n\">authDate</span> <span class=\"o\">&gt;</span> <span class=\"no\">MAX_SESSION_AGE_SECONDS</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n    <span class=\"k\">return</span> <span class=\"kc\">null</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">userString</span> <span class=\"o\">=</span> <span class=\"n\">urlParams</span><span class=\"p\">.</span><span class=\"nf\">get</span><span class=\"p\">(</span><span class=\"s1\">'user'</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"kd\">const</span> <span class=\"n\">user</span> <span class=\"o\">=</span> <span class=\"n\">userString</span> <span class=\"o\">?</span> <span class=\"nb\">JSON</span><span class=\"p\">.</span><span class=\"nf\">parse</span><span class=\"p\">(</span><span class=\"n\">userString</span><span class=\"p\">)</span> <span class=\"p\">:</span> <span class=\"kc\">undefined</span><span class=\"p\">;</span>\n\n  <span class=\"k\">return</span> <span class=\"p\">{</span>\n    <span class=\"n\">user</span><span class=\"p\">,</span>\n    <span class=\"n\">auth_date</span><span class=\"p\">:</span> <span class=\"n\">authDate</span><span class=\"p\">,</span>\n    <span class=\"n\">query_id</span><span class=\"p\">:</span> <span class=\"n\">urlParams</span><span class=\"p\">.</span><span class=\"nf\">get</span><span class=\"p\">(</span><span class=\"s1\">'query_id'</span><span class=\"p\">)</span> <span class=\"o\">||</span> <span class=\"kc\">undefined</span>\n  <span class=\"p\">}</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n\n<span class=\"k\">export</span> <span class=\"k\">async</span> <span class=\"kd\">function</span> <span class=\"nf\">handleCheckout</span><span class=\"p\">(</span><span class=\"n\">req</span><span class=\"p\">:</span> <span class=\"nc\">Request</span><span class=\"p\">,</span> <span class=\"n\">res</span><span class=\"p\">:</span> <span class=\"nc\">Response</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n  <span class=\"kd\">const</span> <span class=\"n\">authHeader</span> <span class=\"o\">=</span> <span class=\"n\">req</span><span class=\"p\">.</span><span class=\"n\">headers</span><span class=\"p\">.</span><span class=\"n\">authorization</span><span class=\"p\">;</span>\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"o\">!</span><span class=\"n\">authHeader</span> <span class=\"o\">||</span> <span class=\"o\">!</span><span class=\"n\">authHeader</span><span class=\"p\">.</span><span class=\"nf\">startsWith</span><span class=\"p\">(</span><span class=\"s1\">'Bearer '</span><span class=\"p\">)</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n    <span class=\"k\">return</span> <span class=\"n\">res</span><span class=\"p\">.</span><span class=\"nf\">status</span><span class=\"p\">(</span><span class=\"mi\">401</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">json</span><span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"n\">error</span><span class=\"p\">:</span> <span class=\"s1\">'Missing or malformed authorization header'</span> <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">rawInitData</span> <span class=\"o\">=</span> <span class=\"n\">authHeader</span><span class=\"p\">.</span><span class=\"nf\">substring</span><span class=\"p\">(</span><span class=\"mi\">7</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"kd\">const</span> <span class=\"n\">session</span> <span class=\"o\">=</span> <span class=\"nf\">verifyTelegramInitData</span><span class=\"p\">(</span><span class=\"n\">rawInitData</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"o\">!</span><span class=\"n\">session</span> <span class=\"o\">||</span> <span class=\"o\">!</span><span class=\"n\">session</span><span class=\"p\">.</span><span class=\"n\">user</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n    <span class=\"k\">return</span> <span class=\"n\">res</span><span class=\"p\">.</span><span class=\"nf\">status</span><span class=\"p\">(</span><span class=\"mi\">403</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">json</span><span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"n\">error</span><span class=\"p\">:</span> <span class=\"s1\">'Invalid or expired initData signature'</span> <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n  <span class=\"p\">}</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">userId</span> <span class=\"o\">=</span> <span class=\"n\">session</span><span class=\"p\">.</span><span class=\"n\">user</span><span class=\"p\">.</span><span class=\"n\">id</span><span class=\"p\">;</span>\n  <span class=\"kd\">const</span> <span class=\"p\">{</span> <span class=\"n\">ticket_count</span> <span class=\"p\">}</span> <span class=\"o\">=</span> <span class=\"n\">req</span><span class=\"p\">.</span><span class=\"n\">body</span><span class=\"p\">;</span>\n\n  <span class=\"c1\">// Perform database updates securely using validated userId</span>\n  <span class=\"nb\">console</span><span class=\"p\">.</span><span class=\"nf\">log</span><span class=\"p\">(</span><span class=\"sb\">`Processing order for verified Telegram User ID ${userId}: ${ticket_count} tickets`</span><span class=\"p\">)</span><span class=\"p\">;</span>\n\n  <span class=\"k\">return</span> <span class=\"n\">res</span><span class=\"p\">.</span><span class=\"nf\">status</span><span class=\"p\">(</span><span class=\"mi\">200</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">json</span><span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"n\">success</span><span class=\"p\">:</span> <span class=\"kc\">true</span><span class=\"p\">,</span> <span class=\"n\">orderId</span><span class=\"p\">:</span> <span class=\"n\">crypto</span><span class=\"p\">.</span><span class=\"nf\">randomUUID</span><span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">;</span>\n<span class=\"p\">}</span>\n</code></pre>\n\n</div>\n\n\n\n<p>If an attacker manipulates the JSON string containing user details, the recalculation of <code>calculatedHash</code> will generate a hash collision failure, yielding HTTP 403 and dropping spoofed requests immediately.</p>\n\n<h2>\n  \n  \n  Production Notes: Expiry, Keyboard Contexts, and Viewport Jitter\n</h2>\n\n<ol>\n<li><p><strong>Replay Attack Mitigation</strong>: Always validate the <code>auth_date</code> parameter on your server. An attacker could capture a valid, signed <code>initData</code> payload from network traffic and re-transmit it days later to make duplicate requests. Discard signatures older than 24 hours (or shorter window based on business requirements).</p></li>\n<li><p><strong>Button Hydration Sequence</strong>: Never call <code>MainButton.show()</code> before <code>Telegram.WebApp.ready()</code>. On slower Android devices, invoking UI mutations prior to SDK handshakes can result in unrendered native buttons or frozen click listeners.</p></li>\n<li><p><strong>Viewport Resizing vs CSS Units</strong>: Do not rely on standard <code>100vh</code> in mobile WebApp stylesheets. On mobile webviews, <code>100vh</code> includes background areas beneath soft keyboards. Use <code>--tg-viewport-height</code> bound via JavaScript to ensure components shrink correctly when inputs gain focus.</p></li>\n<li><p><strong>Context Constraints of sendData</strong>: If your app is accessed via channel posts, inline buttons, or direct URLs, <code>sendData</code> cannot communicate back to the chat. Design your Vue architecture around HTTPS endpoints that validate <code>initData</code> rather than relying exclusively on bot service messages.</p></li>\n</ol>\n\n<p>If you need specialized engineering assistance or custom infrastructure for high-scale Telegram deployments, work with <a href=\"https://botservice.biz\" rel=\"noopener noreferrer\">BotCreator</a> — studio that ships Telegram bots / Mini Apps. For low-level details on Telegram Bot API endpoints, review</p>","score":3},{"source":"https://dev.to/feed/tag/vue","sourceHost":"dev.to","title":"Mastering Vue.js: A Comprehensive 101-Lesson Roadmap","link":"https://dev.to/kandz/mastering-vuejs-a-comprehensive-101-lesson-roadmap-30ma","pubDate":"Fri, 20 Nov 2026 17:38:40 +0000","description":"<p>Most Vue tutorials stop at basic form binding. To build scalable, enterprise-grade applications, you need to understand the reactivity engine, compiler internals, and advanced architectural patterns.</p>\n\n<p>I've been reviewing a 101-lesson curriculum that finally bridges the gap between \"Hello World\" and Senior Frontend Engineer status. Here is how the lessons are structured:</p>\n\n<h3>\n  \n  \n  The Roadmap\n</h3>\n\n<ul>\n<li>  <strong>Lessons 1–25: Foundations &amp; Composition API</strong>\nGetting comfortable with the modern Vue 3 paradigm. This covers everything from project setup with Vite to <code>ref</code>/<code>reactive</code> rules, conditional rendering, and complex side-effect management.</li>\n<li>  <strong>Lessons 26–50: Component Architecture</strong>\nMoving into advanced reusability. You’ll cover lifecycle hooks, custom events, slot patterns, <code>provide</code>/<code>inject</code> for deep dependency injection, and extracting complex logic into custom composables.</li>\n<li>  <strong>Lessons 51–75: The Ecosystem (Pinia, Nuxt, &amp; Testing)</strong>\nIntegrating professional tooling. This section dives into Pinia state management, client-side routing, full-stack frameworks like Nuxt, and ensuring quality with Vitest and Playwright.</li>\n<li>  <strong>Lessons 76–101: Internals, Performance, &amp; Vapor Mode</strong>\nThe senior-level deep dive. Learn about the compiler, custom renderers, memory leak profiling, SSR/SSG mechanics, and the upcoming Vapor Mode architecture.</li>\n</ul>\n\n<h3>\n  \n  \n  Why this matters\n</h3>\n\n<p>You can write code that \"just works\" without knowing how the VDOM patches, but you cannot optimize large-scale applications without it. This series moves past the syntax and gets into the engine room, teaching you how to debug hydration mismatches, handle memory leaks, and architect libraries.</p>\n\n<h3>\n  \n  \n  Who this is for\n</h3>\n\n<ul>\n<li>\n<strong>Mid-level developers</strong> looking to solidify their understanding of the Composition API and Pinia.</li>\n<li>\n<strong>Senior engineers</strong> transitioning from other frameworks (like React) who need a deep dive into Vue’s internal mechanics without the fluff.</li>\n</ul>\n\n<p>You can check out the full curriculum here:<br>\n<a href=\"https://tuts.kandz.me/category/programming/frontend-fed/vue-ecosystem/vue/\" rel=\"noopener noreferrer\"><strong>Vue.js 101-Lesson Series</strong></a></p>\n\n<p><em>What is the one Vue topic you feel is missing from most tutorials?</em></p>","score":9},{"source":"https://github.blog/feed","sourceHost":"github.blog","title":"The best things in open source are built together","link":"https://github.blog/open-source/maintainers/the-best-things-in-open-source-are-built-together/","pubDate":"Thu, 19 Nov 2026 16:00:00 +0000","description":"<p>Introducing Replica and the Open Source Accessibility Framework, new open source projects for collaboration and inclusion.</p>\n<p>The post <a href=\"https://github.blog/open-source/maintainers/the-best-things-in-open-source-are-built-together/\">The best things in open source are built together</a> appeared first on <a href=\"https://github.blog\">The GitHub Blog</a>.</p>","score":4},{"source":"https://dev.to/feed/tag/nuxt","sourceHost":"dev.to","title":"Scaling a 5-Locale Nuxt App to 295 Programmatic SEO Routes (Plus WebView & Proxy Traps)","link":"https://dev.to/inmo_kang_6bb05d1fae696d6/scaling-a-5-locale-nuxt-app-to-295-programmatic-seo-routes-plus-webview-proxy-traps-f1p","pubDate":"Thu, 19 Nov 2026 11:44:00 +0000","description":"<p>Whenever I needed a quick JSON formatter, UTF-8 Base64 decoder, EXIF stripper, or net-to-gross reverse tax calculator, top search results were either covered in pop-up ads or uploading files to a backend server.</p>\n\n<p>So I built <strong><a href=\"https://allutility.net/en\" rel=\"noopener noreferrer\">AllUtility</a></strong>—a Dieter Rams-inspired, 100% browser-local suite of 30 web utilities across 5 locales (<code>en</code>, <code>ko</code>, <code>es</code>, <code>zh</code>, <code>ja</code>), including a Three.js <strong><a href=\"https://allutility.net/en/tools/photo-diagram/rembrandt-portrait\" rel=\"noopener noreferrer\">3D Studio Lighting Diagram Simulator</a></strong> I originally made for teaching photography.</p>\n\n<p>Shipping the tools was the easy part. Getting a brand-new domain indexed—and debugging why mobile telemetry silently dropped—took a lot more digging. Here are 4 concrete lessons from scaling the Nuxt SSR architecture to <strong>295 programmatic routes</strong>.</p>\n\n\n\n\n<h2>\n  \n  \n  1. The Silent YAML Frontmatter Stripping Bug\n</h2>\n\n<p>I had written 150 localized Markdown guides (<code>5 locales × 30 tools</code>) with rich long-tail titles in YAML frontmatter. Yet Google Search Console showed our pages competing only on impossible head terms like <code>\"Compound Interest Calculator\"</code>.</p>\n\n<p>The culprit was a single regex in our server API route that stripped the frontmatter block before returning the Markdown body, leaving <code>useSeoMeta</code> falling back to short tool names:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"c1\">// Before: Long-tail SEO metadata was silently discarded</span>\n<span class=\"kd\">const</span> <span class=\"n\">rawMarkdown</span> <span class=\"o\">=</span> <span class=\"k\">await</span> <span class=\"n\">fs</span><span class=\"p\">.</span><span class=\"nf\">readFile</span><span class=\"p\">(</span><span class=\"n\">filePath</span><span class=\"p\">,</span> <span class=\"s1\">'utf-8'</span><span class=\"p\">)</span>\n<span class=\"kd\">const</span> <span class=\"n\">bodyContent</span> <span class=\"o\">=</span> <span class=\"n\">rawMarkdown</span><span class=\"p\">.</span><span class=\"nf\">replace</span><span class=\"p\">(</span><span class=\"o\">/^---</span>\\<span class=\"n\">n</span><span class=\"p\">[</span>\\<span class=\"n\">s</span>\\<span class=\"no\">S</span><span class=\"p\">]</span><span class=\"o\">*?</span>\\<span class=\"n\">n</span><span class=\"o\">---</span>\\<span class=\"n\">n</span><span class=\"o\">*/</span><span class=\"p\">,</span> <span class=\"s1\">''</span><span class=\"p\">)</span>\n\n<span class=\"c1\">// After: Parse frontmatter directly into the SSR payload</span>\n<span class=\"kd\">function</span> <span class=\"nf\">parseFrontmatter</span><span class=\"p\">(</span><span class=\"n\">raw</span><span class=\"p\">:</span> <span class=\"kt\">string</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n  <span class=\"kd\">const</span> <span class=\"n\">match</span> <span class=\"o\">=</span> <span class=\"n\">raw</span><span class=\"p\">.</span><span class=\"nf\">match</span><span class=\"p\">(</span><span class=\"o\">/^---</span>\\<span class=\"n\">r</span><span class=\"o\">?</span>\\<span class=\"nf\">n</span><span class=\"p\">(</span><span class=\"p\">[</span>\\<span class=\"n\">s</span>\\<span class=\"no\">S</span><span class=\"p\">]</span><span class=\"o\">*?</span><span class=\"p\">)</span>\\<span class=\"n\">r</span><span class=\"o\">?</span>\\<span class=\"n\">n</span><span class=\"o\">---</span>\\<span class=\"n\">r</span><span class=\"o\">?</span>\\<span class=\"n\">n</span><span class=\"o\">*/</span><span class=\"p\">)</span>\n  <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"o\">!</span><span class=\"n\">match</span><span class=\"p\">)</span> <span class=\"k\">return</span> <span class=\"p\">{</span> <span class=\"n\">meta</span><span class=\"p\">:</span> <span class=\"p\">{</span><span class=\"p\">}</span><span class=\"p\">,</span> <span class=\"n\">body</span><span class=\"p\">:</span> <span class=\"n\">raw</span> <span class=\"p\">}</span>\n\n  <span class=\"kd\">const</span> <span class=\"n\">meta</span><span class=\"p\">:</span> <span class=\"nc\">Record</span><span class=\"o\">&lt;</span><span class=\"kt\">string</span><span class=\"p\">,</span> <span class=\"kt\">string</span><span class=\"o\">&gt;</span> <span class=\"o\">=</span> <span class=\"p\">{</span><span class=\"p\">}</span>\n  <span class=\"k\">for</span> <span class=\"p\">(</span><span class=\"kd\">const</span> <span class=\"n\">line</span> <span class=\"k\">of</span> <span class=\"n\">match</span><span class=\"p\">[</span><span class=\"mi\">1</span><span class=\"p\">]</span><span class=\"p\">.</span><span class=\"nf\">split</span><span class=\"p\">(</span><span class=\"o\">/</span>\\<span class=\"n\">r</span><span class=\"o\">?</span>\\<span class=\"n\">n</span><span class=\"o\">/</span><span class=\"p\">)</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n    <span class=\"kd\">const</span> <span class=\"n\">idx</span> <span class=\"o\">=</span> <span class=\"n\">line</span><span class=\"p\">.</span><span class=\"nf\">indexOf</span><span class=\"p\">(</span><span class=\"s1\">':'</span><span class=\"p\">)</span>\n    <span class=\"k\">if</span> <span class=\"p\">(</span><span class=\"n\">idx</span> <span class=\"o\">&gt;</span> <span class=\"mi\">0</span><span class=\"p\">)</span> <span class=\"p\">{</span>\n      <span class=\"kd\">const</span> <span class=\"n\">key</span> <span class=\"o\">=</span> <span class=\"n\">line</span><span class=\"p\">.</span><span class=\"nf\">slice</span><span class=\"p\">(</span><span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"n\">idx</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">trim</span><span class=\"p\">(</span><span class=\"p\">)</span>\n      <span class=\"kd\">const</span> <span class=\"n\">val</span> <span class=\"o\">=</span> <span class=\"n\">line</span><span class=\"p\">.</span><span class=\"nf\">slice</span><span class=\"p\">(</span><span class=\"n\">idx</span> <span class=\"o\">+</span> <span class=\"mi\">1</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">trim</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">.</span><span class=\"nf\">replace</span><span class=\"p\">(</span><span class=\"o\">/^</span><span class=\"p\">[</span><span class=\"s1\">'\"]|['</span><span class=\"s2\">\"]$/g, '')\n      meta[key] = val\n    }\n  }\n  return { meta, body: raw.slice(match[0].length) }\n}\n</span></code></pre>\n\n</div>\n\n\n\n<p>Restoring those frontmatter fields immediately expanded targeting across 150 existing routes without writing a single line of new copy.</p>\n\n\n\n\n<h2>\n  \n  \n  2. Localizing Search Intent Instead of Literal Translation\n</h2>\n\n<p>Users rarely search for <code>\"Unit Converter\"</code>—they search for specific scenarios (<code>sq ft to m2</code>, <code>reverse VAT</code>, <code>30-year mortgage schedule</code>).</p>\n\n<p>To capture this without generating thousands of spammy thin pages, we added <strong>20 curated preset routes per locale (100 URLs)</strong> and <strong>5 category hubs per locale (25 URLs)</strong>. Two rules prevented thin-content flags:</p>\n\n<ol>\n<li>\n<strong>SSR Reference Tables &amp; FAQs:</strong> Every <code>/tools/[slug]/[preset]</code> route renders a dedicated <code>&lt;h1&gt;</code>, pre-hydrated calculator state, an SSR HTML reference <code>&lt;table&gt;</code>, and <code>FAQPage</code> + <code>BreadcrumbList</code> JSON-LD with explicit root <code>name</code> and <code>@id</code>.</li>\n<li>\n<strong>Jurisdiction-Aware Presets:</strong> Literal translation creates dead URLs. For example, Korea's <code>3.3% freelance withholding tax</code> doesn't exist elsewhere—so the same <code>withholding-tax-reverse</code> preset maps to localized Net-to-Gross (<code>Gross-Up</code>) withholding scenarios in English, Spanish (<code>Retención</code>), Japanese (<code>10.21% 源泉徴収</code>), and Chinese.</li>\n</ol>\n\n\n\n\n<h2>\n  \n  \n  3. Shareable Query Strings vs. Canonical Bloat\n</h2>\n\n<p>Calculators grow organically when users paste pre-filled result links into chats or forums (<code>?principal=50000&amp;rate=4.5</code>). However, letting search bots index parameterized URLs splits crawl budget.</p>\n\n<p>We paired a reactive URL-state composable with a strict canonical guard in <code>app.vue</code> so every parameterized link still points back to its clean route:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"kd\">const</span> <span class=\"n\">route</span> <span class=\"o\">=</span> <span class=\"nf\">useRoute</span><span class=\"p\">(</span><span class=\"p\">)</span>\n<span class=\"kd\">const</span> <span class=\"n\">siteUrl</span> <span class=\"o\">=</span> <span class=\"s1\">'[https://allutility.net](https://allutility.net)'</span>\n\n<span class=\"kd\">const</span> <span class=\"n\">cleanCanonical</span> <span class=\"o\">=</span> <span class=\"nf\">computed</span><span class=\"p\">(</span><span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"kd\">const</span> <span class=\"n\">cleanPath</span> <span class=\"o\">=</span> <span class=\"n\">route</span><span class=\"p\">.</span><span class=\"n\">path</span> <span class=\"o\">===</span> <span class=\"s1\">'/'</span> <span class=\"o\">?</span> <span class=\"s1\">''</span> <span class=\"p\">:</span> <span class=\"n\">route</span><span class=\"p\">.</span><span class=\"n\">path</span><span class=\"p\">.</span><span class=\"nf\">replace</span><span class=\"p\">(</span><span class=\"o\">/</span>\\<span class=\"o\">/+</span>$<span class=\"o\">/</span><span class=\"p\">,</span> <span class=\"s1\">''</span><span class=\"p\">)</span>\n  <span class=\"k\">return</span> <span class=\"sb\">`${siteUrl}${cleanPath || '/'}`</span>\n<span class=\"p\">}</span><span class=\"p\">)</span>\n\n<span class=\"nf\">useHead</span><span class=\"p\">(</span><span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">(</span><span class=\"p\">{</span>\n  <span class=\"n\">link</span><span class=\"p\">:</span> <span class=\"p\">[</span><span class=\"p\">{</span> <span class=\"n\">rel</span><span class=\"p\">:</span> <span class=\"s1\">'canonical'</span><span class=\"p\">,</span> <span class=\"n\">href</span><span class=\"p\">:</span> <span class=\"n\">cleanCanonical</span><span class=\"p\">.</span><span class=\"n\">value</span> <span class=\"p\">}</span><span class=\"p\">]</span>\n<span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">)</span>\n</code></pre>\n\n</div>\n\n\n\n\n\n\n<h2>\n  \n  \n  4. The In-App WebView Clipboard Trap\n</h2>\n\n<p>After deploying GA4 interaction events (<code>tool_execute</code>, <code>tool_copy</code>, <code>tool_download</code>), <code>tool_copy</code> stayed suspiciously at zero on mobile—especially from messenger in-app browsers.</p>\n\n<p>Testing under in-app WebView constraints revealed two issues:</p>\n\n<ul>\n<li>Nested workspace padding pushed the primary tool input down past <code>Y = 630px</code> on <code>375×812</code> viewports. Compacting mobile chrome brought every editor up to <code>Y = 338–477px</code> (cleanly above the fold) while keeping <code>CLS</code> at <code>0.001</code>.</li>\n<li>Calling <code>navigator.clipboard.writeText()</code> alone threw <code>NotAllowedError</code> in restricted WebViews <em>before</em> the analytics callback fired. Wrapping clipboard writes with a synchronous hidden <code>&lt;textarea&gt;</code> fallback fixed both UX and telemetry.</li>\n</ul>\n\n\n\n\n<h2>\n  \n  \n  Wrapping Up\n</h2>\n\n<p>We rounded out the pipeline by serving a structured <a href=\"https://allutility.net/llms.txt\" rel=\"noopener noreferrer\"><code>/llms.txt</code></a> manifest and triggering automatic <code>IndexNow</code> submissions (<code>continue-on-error: true</code>) at the end of our GitHub Actions Docker deploy.</p>\n\n<ul>\n<li>\n<strong>Live Suite (Zero Signup / Zero Upload):</strong> <a href=\"https://allutility.net/en\" rel=\"noopener noreferrer\">https://allutility.net/en</a>\n</li>\n<li>\n<strong>3D Studio Lighting Simulator:</strong> <a href=\"https://allutility.net/en/tools/photo-diagram/rembrandt-portrait\" rel=\"noopener noreferrer\">https://allutility.net/en/tools/photo-diagram/rembrandt-portrait</a>\n</li>\n<li>\n<strong>Full Engineering Archive &amp; Architecture Diagrams:</strong> <a href=\"https://inmokang.com/projects/allutility\" rel=\"noopener noreferrer\">inmokang.com/projects/allutility</a>\n</li>\n</ul>\n\n<p>If you spot any UX rough edges or have a utility you wish existed in a fast, ad-free local version, let me know in the comments!</p>","score":3},{"source":"https://dev.to/feed/tag/nuxt","sourceHost":"dev.to","title":"How We Use Nuxt Nitro SWR Caching and Cloudflare Workers to Serve Real-Time Sports Data at Scale","link":"https://dev.to/tipsfoot/how-we-use-nuxt-nitro-swr-caching-and-cloudflare-workers-to-serve-real-time-sports-data-at-scale-7h2","pubDate":"Thu, 19 Nov 2026 05:25:44 +0000","description":"<p>Serving real-time sports statistics and match predictions comes with a unique architectural challenge: <strong>unpredictable traffic spikes paired with constantly changing data</strong>. </p>\n\n<p>When major European football leagues kick off on weekends, thousands of users and search engine bots hit the same match pages simultaneously. Pure Server-Side Rendering (SSR) will quickly melt your Node.js server and database, while static site generation (SSG) falls apart because lineups, odds, and probabilities change minutes before kickoff.</p>\n\n<p>While building and scaling <a href=\"https://tipsfoot.com\" rel=\"noopener noreferrer\">Tipsfoot</a>, we solved this by combining <strong>Nuxt's Nitro SWR (Stale-While-Revalidate) caching</strong> with <strong>Cloudflare Workers</strong> for automated cache warming. Here is how the architecture works in production.</p>\n\n\n\n\n<h2>\n  \n  \n  The Core Problem: Freshness vs. TTFB\n</h2>\n\n<p>For an SEO-driven sports platform, you need two things at the same time:</p>\n\n<ol>\n<li>\n<strong>Instant TTFB (&lt; 100ms)</strong> so Googlebot can crawl thousands of fixture URLs efficiently and users don't bounce.</li>\n<li>\n<strong>Fresh data</strong> (updated xG models, 1X2 probabilities, and pre-match lineups) without hammering your upstream API or Redis/MongoDB instances on every single request.</li>\n</ol>\n\n<p>Standard SSR renders the Vue tree on every request. Even with Redis backing your API, rendering complex match matrices under heavy load burns CPU fast.</p>\n\n\n\n\n<h2>\n  \n  \n  Step 1: Configuring Nitro SWR in <code>nuxt.config.ts</code>\n</h2>\n\n<p>Nuxt's built-in server engine, <strong>Nitro</strong>, makes route-level caching remarkably clean via <code>routeRules</code>. Instead of caching everything blindly, we split our routes by how frequently their data changes:</p>\n\n<ul>\n<li>\n<strong>Match &amp; Prediction pages:</strong> Cached with <code>swr</code> for 5 to 15 minutes. Users always get an instant cached HTML response, while Nitro silently regenerates the page in the background once the TTL expires.</li>\n<li>\n<strong>League &amp; Static Guides:</strong> Longer SWR window (1 to 6 hours).</li>\n<li>\n<strong>API endpoints:</strong> Short edge caching or bypassed depending on real-time needs.</li>\n</ul>\n\n\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>\ntypescript\n// nuxt.config.ts\nexport default defineNuxtConfig({\n  nitro: {\n    routeRules: {\n      // Homepage &amp; daily fixtures: revalidate every 5 minutes\n      '/': { swr: 300 },\n\n      // Individual match analysis pages: revalidate every 10 minutes\n      '/pronostic/**': { swr: 600 },\n\n      // League tables &amp; historical stats: revalidate every hour\n      '/classement/**': { swr: 3600 },\n\n      // Ensure API routes don't get stuck with stale responses\n      '/api/**': { cors: true, headers: { 'cache-control': 'no-cache' } }\n    }\n  }\n})\n\nWith this setup, if 500 users request the same match page within 10 minutes, Nitro only executes the SSR render once.\nStep 2: Eliminating Cold Starts with Cloudflare Workers\n\nSWR has one well-known drawback: the first visitor after a cache expires still gets the stale version, and if a brand-new fixture page has never been visited yet, the first user (or Googlebot) pays the full SSR latency cost.\n\nTo eliminate cold starts on high-traffic matchdays, we use a lightweight Cloudflare Worker running on a Cron Trigger to warm up our priority routes right after our Node.js background workers finish ingesting new match data.\n\n// cloudflare-worker-warmer.js\nexport default {\n  async scheduled(event, env, ctx) {\n    const priorityUrls = [\n      '[https://tipsfoot.com/](https://tipsfoot.com/)',\n      '[https://tipsfoot.com/loto-foot](https://tipsfoot.com/loto-foot)',\n      // You can also fetch a dynamic JSON list of today's top fixtures\n    ];\n\n    const warmCache = async (url) =&gt; {\n      try {\n        const response = await fetch(url, {\n          headers: {\n            'User-Agent': 'Tipsfoot-Cache-Warmer/1.0',\n          },\n        });\n        console.log(`Warmed ${url} - Status: ${response.status}`);\n      } catch (err) {\n        console.error(`Failed to warm ${url}:`, err);\n      }\n    };\n\n    // Execute requests concurrently\n    ctx.waitUntil(Promise.all(priorityUrls.map(warmCache)));\n  },\n};\n\nBy scheduling this worker every 10 minutes via wrangler.toml:\n\n[triggers]\ncrons = [\"*/10 * * * *\"]\n\nThe cache stays permanently warm before kickoff, meaning both users and crawlers consistently hit an already-rendered HTML payload.\nStep 3: Cache Busting for Dynamic Assets\n\nOne subtle gotcha when pairing Nuxt with Cloudflare Edge Caching is stale media assets (team logos, player avatars, or generated graphics). If a team updates its crest or an image fails to process initially, Cloudflare might cache the broken or outdated version.\n\nAppending a lightweight version query string (?v=2) or handling image transformations cleanly at the origin ensures you never serve broken visuals while keeping aggressive Cache-Control: public, max-age=31536000 headers for static assets.\nKey Takeaways\n\nMoving from pure SSR to Nitro SWR + Cloudflare Worker warming gave us three immediate wins:\n\n    CPU usage dropped by over 70% during weekend matchday peaks.\n\n    Consistent sub-100ms TTFB across thousands of programmatic fixture pages.\n\n    Zero database bottlenecks, allowing our Node.js workers to focus purely on data ingestion and probability calculations.\n\nIf you are building content-heavy or data-driven apps with Nuxt, routeRules with SWR is easily one of the highest-ROI optimizations you can ship in under 20 lines of code.\n\nWe share more technical notes and football data updates over on Bluesky. How are you handling SSR caching for high-frequency data in your Nuxt apps? Let me know in the comments!\n</code></pre>\n\n</div>","score":7},{"source":"https://github.blog/feed","sourceHost":"github.blog","title":"Maintainers don&#8217;t need more AI bug reports. They need fixes.","link":"https://github.blog/open-source/maintainers/maintainers-dont-need-more-ai-bug-reports-they-need-fixes/","pubDate":"Tue, 17 Nov 2026 18:29:29 +0000","description":"<p>In the Codename MDASH pilot, GitHub and Microsoft turned thousands of raw AI findings into 99 checked, private reports with suggested fixes for six widely used open source projects. Maintainers have already fixed more than half.</p>\n<p>The post <a href=\"https://github.blog/open-source/maintainers/maintainers-dont-need-more-ai-bug-reports-they-need-fixes/\">Maintainers don&#8217;t need more AI bug reports. They need fixes. </a> appeared first on <a href=\"https://github.blog\">The GitHub Blog</a>.</p>","score":4},{"source":"https://github.blog/feed","sourceHost":"github.blog","title":"Building the Agent Host Protocol for sessions that continue across devices","link":"https://github.blog/engineering/engineering-principles/building-the-agent-host-protocol-for-sessions-that-continue-across-devices/","pubDate":"Tue, 17 Nov 2026 18:20:40 +0000","description":"<p>Discover how we built the open Agent Host Protocol to keep your agent sessions accessible across editors, apps, phones, and the cloud.</p>\n<p>The post <a href=\"https://github.blog/engineering/engineering-principles/building-the-agent-host-protocol-for-sessions-that-continue-across-devices/\">Building the Agent Host Protocol for sessions that continue across devices</a> appeared first on <a href=\"https://github.blog\">The GitHub Blog</a>.</p>","score":4},{"source":"https://www.smashingmagazine.com/feed","sourceHost":"smashingmagazine.com","title":"Meet AI 2027 Conference (Dec 1)","link":"https://smashingmagazine.com/2026/11/online-smashingconf-ai-2027/","pubDate":"Tue, 17 Nov 2026 12:00:00 GMT","description":"Roll up your sleeves! Meet shiny new [AI 2027 Conference](https://smashingconf.com/ai-2027-conference), a friendly online conference on AI-ready design systems, AI + Figma and AI design patterns. What to expect in 2027 and where teams are getting AI right. [Jump to tickets.](https://smashingconf.com/ai-2027-conference/registration)","score":2},{"source":"https://javascriptweekly.com/rss","sourceHost":"javascriptweekly.com","title":"The top 10 things AI gets wrong in web development","link":"https://javascriptweekly.com/issues/811","pubDate":"Tue, 17 Nov 2026 00:00:00 +0000","description":"<table border=0 cellpadding=0 cellspacing=0 align=\"center\" border=\"0\">\n  <tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <div>    \n    <table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr>\n<td align=\"left\" style=\"padding-left: 4px; font-size: 15px; line-height: 1.48em;\"><p>#​811 — November 17, 2026</p></td>\n<td align=\"right\" style=\"padding-right: 4px; font-size: 15px; line-height: 1.48em;\"><p><a href=\"https://javascriptweekly.com/link/193000/rss\" style=\" color: #3366aa;\">Read on the Web</a></p></td>\n</tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\" font-size: 15px; line-height: 1.48em;\"></td></tr></table>\n    \n    <table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0 12px;\"><p>JavaScript Weekly</p></td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <a href=\"https://javascriptweekly.com/link/192932/rss\" style=\" color: #3366aa;\"><img src=\"https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/rmedfrw5ofajinij51fv.jpg\" width=\"640\" style=\"    line-height: 100%;    \"></a>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192932/rss\" title=\"zaldih.com\" style=\" color: #3366aa;    font-size: 1.1em; line-height: 1.4em;\">npkill 1.0: Not Just for <code>node_modules</code> Anymore</a></span> — <code>npx npkill</code> has long offered a way to find and remove waste from <code>node_modules</code> folders. Its first release in two years now also hunts down caches and build outputs like <code>.next</code> and <code>.turbo</code>, with 'profiles' for 20 ecosystems. If you're new to the tool, <a href=\"https://javascriptweekly.com/link/192933/rss\" style=\" color: #3366aa;   \">its homepage</a> provides a good introduction.</p>\n  <p>Juan Torres </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  <a href=\"https://javascriptweekly.com/link/192931/rss\" style=\" color: #3366aa;   \"><img src=\"https://res.cloudinary.com/cpress/image/upload/c_limit,w_480,h_480,q_auto/copm/e001ca9e.png\" width=\"130\" height=\"130\" style=\"padding-top: 12px; padding-left: 12px;     line-height: 100%; \"></a>\n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192931/rss\" title=\"www.meticulous.ai\" style=\" color: #3366aa;    font-size: 1.05em;\">Agents Didn’t Clear Your Plate. They Dumped Reviews on It</a></span> — Your agents write PRs in minutes, then eat your afternoon in review. When did ‘saving time’ start to mean babysitting agents’ work? Meticulous shows the exhaustive impact of every PR, with no developer effort. Devs at Dropbox &amp; ElevenLabs have their afternoons back. You can too.</p>\n  <p>Meticulous <span style=\"text-transform: uppercase; margin-left: 4px; font-size: 0.9em;   color: #993 !important; padding: 1px 4px; \">sponsor</span></p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192934/rss\" title=\"ui-sdk.dev\" style=\" color: #3366aa;    font-size: 1.05em;\">UI SDK: Headless UI Behaviors for React, Vue, Svelte, &amp; Solid</a></span> — A new library from shadcn and Vercel that provides 50+ accessible, low-level behaviors, like roving focus, typeahead, popups, and drag and drop, that you compose into components (for several frameworks, plus Web Components).</p>\n  <p>Vercel </p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\"><p>💡 <a href=\"https://javascriptweekly.com/link/192935/rss\" style=\" color: #3366aa; font-weight: 500;\">𝕏 As shadcn says</a>: <em>\"You and I don't need the same interfaces. We need the same interface behaviors.\"</em> The idea is an agent, say, can generate whatever UI suits a task, with reusable focus, keyboard, and accessibility behaviors built in.</p></td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<p><strong>IN BRIEF:</strong></p>\n<ul>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/193001/rss\" style=\" color: #3366aa; font-weight: 500;   \">Solid 2.0</a> is now stable, with <code>2.0.0</code> <a href=\"https://javascriptweekly.com/link/193002/rss\" style=\" color: #3366aa; font-weight: 500;   \">now on npm</a> and <a href=\"https://javascriptweekly.com/link/193003/rss\" style=\" color: #3366aa; font-weight: 500;   \">the docs</a> updated to match. There's no official announcement post (beyond the earlier <a href=\"https://javascriptweekly.com/link/193004/rss\" style=\" color: #3366aa; font-weight: 500;   \">Solid 2.0 RC posts</a>) so expect more on this soon.</p>\n</li>\n<li>\n<p>The Chrome team has <a href=\"https://javascriptweekly.com/link/192936/rss\" style=\" color: #3366aa; font-weight: 500;   \">proposed a Cross-Origin Storage API</a> for sites to share large assets like AI models and WASM modules, so users would only have to download them once.</p>\n</li>\n<li>\n<p>The cloud-based JavaScript hosting service <a href=\"https://javascriptweekly.com/link/192938/rss\" style=\" color: #3366aa; font-weight: 500;   \"><em>Val Town</em> is winding down</a> with services ending January 10 and the code being open sourced in February.</p>\n</li>\n<li>\n<p>The Bun team has published <a href=\"https://javascriptweekly.com/link/192937/rss\" style=\" color: #3366aa; font-weight: 500;   \">a dense technical tour of how its in-development ahead-of-time compiler works</a>.</p>\n</li>\n</ul>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<p><strong>RELEASES:</strong></p>\n<ul>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192939/rss\" style=\" color: #3366aa; font-weight: 500;   \">Prettier 3.10</a> – The code formatter now supports the latest JavaScript proposals and new Flow syntax, and adds an opt-in plugin that swaps in the Zig-based <a href=\"https://javascriptweekly.com/link/192940/rss\" style=\" color: #3366aa; font-weight: 500;   \">Yuku</a>'s JS/TS parsers for speed.</p>\n</li>\n<li>\n<p>🎨 <a href=\"https://javascriptweekly.com/link/192941/rss\" style=\" color: #3366aa; font-weight: 500;   \">p5.js 2.4</a> – The creative coding library expands its SVG and 3D model support. Here's <a href=\"https://javascriptweekly.com/link/192942/rss\" style=\" color: #3366aa; font-weight: 500;   \">a starter sketch</a> if you want to play quickly.</p>\n</li>\n<li>\n<p>🔒 <a href=\"https://javascriptweekly.com/link/192943/rss\" style=\" color: #3366aa; font-weight: 500;   \">Node.js v26.13.1 (LTS)</a>, <a href=\"https://javascriptweekly.com/link/192944/rss\" style=\" color: #3366aa; font-weight: 500;   \">v24.22.3</a> and <a href=\"https://javascriptweekly.com/link/192945/rss\" style=\" color: #3366aa; font-weight: 500;   \">v22.23.5</a> – The <a href=\"https://javascriptweekly.com/link/192946/rss\" style=\" color: #3366aa; font-weight: 500;   \">security releases</a> we mentioned last week fix an HTTP/2 flaw that lets clients crash a server and an HTTPS bug that can leak other connections' memory.</p>\n</li>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192947/rss\" style=\" color: #3366aa; font-weight: 500;   \">PixiJS 3D</a> – The popular 2D rendering library's official 3D engine is now in open beta. It's WebGPU-first, with a WebGL 2 fallback.</p>\n</li>\n</ul>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0;\"><p>📖  Articles and Videos</p></td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <a href=\"https://javascriptweekly.com/link/192948/rss\" style=\" color: #3366aa;\"><img src=\"https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/amlrfsxirjmhqkgohrz0.jpg\" width=\"640\" style=\"    line-height: 100%;      \"></a>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><span>📊</span> <a href=\"https://javascriptweekly.com/link/192948/rss\" title=\"e18e.dev\" style=\" color: #3366aa;    font-size: 1.05em;\">e18e's Ongoing Benchmarks of JavaScript Meta-Frameworks</a></span> — The <a href=\"https://javascriptweekly.com/link/192949/rss\" style=\" color: #3366aa;   \">e18e</a> performance initiative tracks releases of frameworks across the ecosystem (e.g. Nuxt, Astro, SvelteKit, SolidStart, and more), measuring everything from install size and build times to rendering speed. <a href=\"https://javascriptweekly.com/link/192950/rss\" style=\" color: #3366aa;   \">This dashboard</a> is the place to dive in.</p>\n  <p>e18e </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><span>🤖</span> <a href=\"https://javascriptweekly.com/link/192951/rss\" title=\"developer.chrome.com\" style=\" color: #3366aa;    font-size: 1.05em;\">The Top 10 Things AI Gets Wrong in Web Development</a></span> — The Chrome team examines where coding agents fall back on dated techniques, like hand-rolled focus traps instead of <code>inert</code> and JS overlays instead of <code>popover</code>, alongside gaps in passkey implementations and XSS defenses. A handy checklist for humans too.</p>\n  <p>Philip Walton (Google) </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192952/rss\" title=\"fandf.co\" style=\" color: #3366aa;    font-size: 1.05em;\">AI Security for Modern JavaScript &amp; TypeScript</a></span> — Traditional tools miss logic gaps. SonarQube Hunter Agent catches broken access control in your JS/TS CI/CD pipeline.</p>\n  <p>SonarSource <span style=\"text-transform: uppercase; margin-left: 4px; font-size: 0.9em;   color: #993 !important; padding: 1px 4px; \">sponsor</span></p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192953/rss\" title=\"blog.report-uri.com\" style=\" color: #3366aa;    font-size: 1.05em;\">How a Third-Party Script Turned Malicious on Major Sites</a></span> — An attacker exploited a flaw in Optimizely's A/B testing platform to inject a (<a href=\"https://javascriptweekly.com/link/192954/rss\" style=\" color: #3366aa;   \">now removed</a>) malicious script into pages served to end users. Scott's analysis found it on sites including Zoom, the BBC, and GitLab, and shows how CSP can, and did, help.</p>\n  <p>Scott Helme (Report URI) </p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\"><p>💡 Third-party scripts are an increasingly common attack vector, as <a href=\"https://javascriptweekly.com/link/192955/rss\" style=\" color: #3366aa; font-weight: 500;\">Polymarket's users recently found</a>. If you load any, brush up on <a href=\"https://javascriptweekly.com/link/192956/rss\" style=\" color: #3366aa; font-weight: 500;\">CSP</a> and <a href=\"https://javascriptweekly.com/link/192957/rss\" style=\" color: #3366aa; font-weight: 500;\">Subresource Integrity</a>, and if you <em>provide</em> them, see <a href=\"https://javascriptweekly.com/link/192958/rss\" style=\" color: #3366aa; font-weight: 500;\">how Fathom secures theirs</a>.</p></td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192959/rss\" title=\"alistair.sh\" style=\" color: #3366aa;    font-size: 1.05em;\">How Promises Really Resolve, Explained via a WebKit Bug</a></span> — A contrived promise that should have thrown instead caused Bun and Safari (both of which use <a href=\"https://javascriptweekly.com/link/192960/rss\" style=\" color: #3366aa;   \">JavaScriptCore</a>) to hang. Alistair fixed the bug and uses it to explain what <code>resolve()</code> actually does and why <code>resolved</code> isn't <em>'a real promise state'</em>.</p>\n  <p>Alistair Smith </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192961/rss\" title=\"ftrain.com\" style=\" color: #3366aa;    font-size: 1.05em;\">The Web Is More Than Enough</a></span> — A reminder of how the vast array of powerful web platform APIs enables the development of complex apps in the browser, particularly as AI reduces the headaches involved in tying them together.</p>\n  <p>Paul Ford </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192962/rss\" title=\"blog.gaborkoos.com\" style=\" color: #3366aa;    font-size: 1.05em;\">Your JS Error Is Lying to You</a></span> — Why can <code>JSON.stringify(err)</code> unexpectedly leave you with <code>{}</code>? Gabor presents a tour of what an <code>Error</code> holds, and how much of that makes it through stack traces, <code>cause</code> chains, worker boundaries, and loggers like Pino and Winston.</p>\n  <p>Gabor Koos </p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<p>📄 <a href=\"https://javascriptweekly.com/link/192963/rss\" style=\" color: #3366aa; font-weight: 500;   \">How 13,000 Local Variables in a Function Overflowed V8's Stack</a> – And why would that ever happen? It was the output of an OCaml to JS transpiler… :-) <cite>Jérôme Vouillon</cite></p>\n<p>📄 <a href=\"https://javascriptweekly.com/link/192964/rss\" style=\" color: #3366aa; font-weight: 500;   \">A Universal XSS in uBlock Origin via Its Element Picker</a> – Leans on an interesting (and now fixed) <code>postMessage</code> and iframe exploit chain. <cite>Smitty van Bodegom</cite></p>\n<p>📄 <a href=\"https://javascriptweekly.com/link/192965/rss\" style=\" color: #3366aa; font-weight: 500;   \">Migrating 10,144 Tests from Jest to Vitest in Three Weeks</a> <cite>Daniele Rossino</cite></p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0;\"><p>🛠 Code &amp; Tools</p></td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <a href=\"https://javascriptweekly.com/link/192966/rss\" style=\" color: #3366aa;\"><img src=\"https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/pskrn2fbmsv0dydrn175.jpg\" width=\"640\" style=\"    line-height: 100%;      \"></a>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192966/rss\" title=\"browserpod.io\" style=\" color: #3366aa;    font-size: 1.05em;\">BrowserPod 4.0: A Linux-Like MicroVM for the Browser</a></span> — A WASM-powered sandbox that runs Node, npm, git, and bash in the browser. Previously a metered service, v4.0 is free for any use, though it's not open source, and you must load it via their CDN (but no account or API key is needed).</p>\n  <p>Leaning Technologies </p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\"><p>💡 Going somewhat deeper, Nitro creator Pooya Parsa has compiled <a href=\"https://javascriptweekly.com/link/192967/rss\" style=\" color: #3366aa; font-weight: 500;\">the actual Linux kernel to WebAssembly</a> (<a href=\"https://javascriptweekly.com/link/192968/rss\" style=\" color: #3366aa; font-weight: 500;\">repo</a>). It boots to a shell in under a second in modern browsers, or via <code>npx unkernel</code> <em>(tip: use <code>halt</code> to exit!)</em>.</p></td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192969/rss\" title=\"sentry.io\" style=\" color: #3366aa;    font-size: 1.05em;\">Debug Errors and Agents Faster: Sentry Changelog Live</a></span> — A walkthrough of what’s new in debugging, from fixing prod bugs with Seer to tracing your agents. <a href=\"https://javascriptweekly.com/link/192969/rss\" style=\" color: #3366aa;   \">Register today</a>.</p>\n  <p>Sentry <span style=\"text-transform: uppercase; margin-left: 4px; font-size: 0.9em;   color: #993 !important; padding: 1px 4px; \">sponsor</span></p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192970/rss\" title=\"blog.cloudflare.com\" style=\" color: #3366aa;    font-size: 1.05em;\">Kitesurf: Cloudflare's Browser Engine Now Open Source</a></span> — An experimental browser for agents we featured in August. Mostly written in TypeScript and runs JavaScript in V8 isolates on <em>Workers</em>, with Rust compiled to WASM for layout and painting. There's no Chromium, and Puppeteer can drive it.</p>\n  <p>Cloudflare </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192971/rss\" title=\"github.com\" style=\" color: #3366aa;    font-size: 1.05em;\">File Viewer: A Multi-Format File Viewer for Internal Apps</a></span> — Read-only views for Office, PDF/OFD, CAD, archives, email and other complex formats, with integrations for React, Vue, and Svelte. The <a href=\"https://javascriptweekly.com/link/192972/rss\" style=\" color: #3366aa;   \">docs site</a> has demos showing off the formats covered.</p>\n  <p>Flyfish Dev </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192973/rss\" title=\"flashwright.dev\" style=\" color: #3366aa;    font-size: 1.05em;\">Flashwright: A Faster, API-Compatible Playwright Fork</a></span> — Keeps Playwright's API and test runner, but reuses a browser context per worker and doesn't wait for animations to settle, plus similar tricks. Benchmarks show a ~2-4x speedup, while <a href=\"https://javascriptweekly.com/link/192974/rss\" style=\" color: #3366aa;   \">this post explains how it works</a>.</p>\n  <p>Codebeast </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192975/rss\" title=\"xyflow.com\" style=\" color: #3366aa;    font-size: 1.05em;\">React Flow 13: The Node-Based UI Library Gets Faster</a></span> — The first major release in two years cuts re-renders in large flows, with new <code>useNode</code> and <code>useEdge</code> hooks. <a href=\"https://javascriptweekly.com/link/192976/rss\" style=\" color: #3366aa;   \">Vue Flow has joined the xyflow family</a> too.</p>\n  <p>xyflow </p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\" font-size: 15px; line-height: 1.48em;\"></td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <a href=\"https://javascriptweekly.com/link/192977/rss\" style=\" color: #3366aa;\"><img src=\"https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/kg7bhtjdxtgjgocpxf3z.jpg\" width=\"640\" style=\"    line-height: 100%;      \"></a>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<ul>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192977/rss\" style=\" color: #3366aa; font-weight: 500;   \">SlickGrid 6.0</a> <em>(above)</em> – Long-standing data grid component. Now with zero dependencies, plus <a href=\"https://javascriptweekly.com/link/192978/rss\" style=\" color: #3366aa; font-weight: 500;   \">pinning on all four sides</a> and sticky rows and columns. Examples and introductions <a href=\"https://javascriptweekly.com/link/192979/rss\" style=\" color: #3366aa; font-weight: 500;   \">on the project homepage</a>.</p>\n</li>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192980/rss\" style=\" color: #3366aa; font-weight: 500;   \">XState v6 Beta</a> – First beta of the state machine/actor library's next major version. The core API is considered stable and you can try it with <code>xstate@beta</code>.</p>\n</li>\n<li>\n<p>🕹️ <a href=\"https://javascriptweekly.com/link/192981/rss\" style=\" color: #3366aa; font-weight: 500;   \">Excalibur 1.0</a> – After 13 years, the 2D TypeScript game engine reaches v1 with 2D lighting, a plugin API, and a rebuilt Web Audio mixer. <a href=\"https://javascriptweekly.com/link/192982/rss\" style=\" color: #3366aa; font-weight: 500;   \">Sample games here</a>.</p>\n</li>\n<li>\n<p>🕹️ <a href=\"https://javascriptweekly.com/link/192983/rss\" style=\" color: #3366aa; font-weight: 500;   \">JSNES 3.0</a> – JavaScript NES emulator. Now has a cycle-accurate core that passes all 134 'AccuracyCoin' tests. There are <a href=\"https://javascriptweekly.com/link/192984/rss\" style=\" color: #3366aa; font-weight: 500;   \">playable demos here</a>.</p>\n</li>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192985/rss\" style=\" color: #3366aa; font-weight: 500;   \">type-fest 6.0</a> – Popular collection of essential TypeScript types (<a href=\"https://javascriptweekly.com/link/192986/rss\" style=\" color: #3366aa; font-weight: 500;   \">listed here</a>). v6.0 adds 120 new types and requires TypeScript 6.</p>\n</li>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192987/rss\" style=\" color: #3366aa; font-weight: 500;   \">Fontkit 3.0</a> – Advanced font engine for Node and the browser. Now ESM-only, with a new <code>core</code> export so you can ship only the formats needed.</p>\n</li>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192988/rss\" style=\" color: #3366aa; font-weight: 500;   \">dts-bundle-generator 10.0</a> – A tool to tree-shake and bundle a project's TypeScript declarations into one file.</p>\n</li>\n</ul>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px;\">\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\" font-size: 15px; line-height: 1.48em;\"></td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n\t<p>📰 Classifieds</p>\n  </td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<p>📄 Parsing PDFs for a RAG or invoice pipeline? <a href=\"https://javascriptweekly.com/link/192989/rss\" style=\" color: #3366aa; font-weight: 500;   \">Foxit compares 10 document parsing APIs</a> on output format, billing units and accuracy claims.</p>\n \n<p>🌙 Agents can test mobile code at 3am. <a href=\"https://javascriptweekly.com/link/192990/rss\" style=\" color: #3366aa; font-weight: 500;   \">Expo Simulators</a> gives them cloud simulators, so the loop runs while you sleep.</p>\n \n<p>Stop being the middle manager for your coding agents. <a href=\"https://javascriptweekly.com/link/192991/rss\" style=\" color: #3366aa; font-weight: 500;   \">CodeAF</a> runs the org, and only what no manager can settle reaches you. #1 on DeepSWE.</p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\" font-size: 15px; line-height: 1.48em;\"></td></tr></table>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0;\"><p>📢  Elsewhere in the ecosystem</p></td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <a href=\"https://javascriptweekly.com/link/192992/rss\" style=\" color: #3366aa;\"><img src=\"https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/ldgdhmhflcadzj94nlv6.jpg\" width=\"640\" style=\"    line-height: 100%;      \"></a>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<ul>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192992/rss\" style=\" color: #3366aa; font-weight: 500;   \">You Don't Need jQuery</a>, the long-standing guide to replacing jQuery methods with plain JavaScript, has had a big <a href=\"https://javascriptweekly.com/link/193005/rss\" style=\" color: #3366aa; font-weight: 500;   \">v3.0 update</a>. <em>Internet Explorer</em> fallbacks are out in favor of modern one-liners like <code>el.replaceChildren()</code>, <code>structuredClone()</code>, and <code>Promise.withResolvers()</code>.</p>\n</li>\n<li>\n<p>Adam Argyle shares <a href=\"https://javascriptweekly.com/link/192993/rss\" style=\" color: #3366aa; font-weight: 500;   \">PropFLIP</a>, a take on <a href=\"https://javascriptweekly.com/link/192994/rss\" style=\" color: #3366aa; font-weight: 500;   \">FLIP (First, Last, Invert, Play) animations</a> where four <code>@property</code> custom properties do the inverting and a CSS transition does the playing.</p>\n</li>\n<li>\n<p>AWS has released <a href=\"https://javascriptweekly.com/link/192995/rss\" style=\" color: #3366aa; font-weight: 500;   \">AWS Emulator</a>, an <em>official</em> local emulator you can point your AWS SDK or CLI at, covering hundreds of its service interfaces. It's largely aimed at agents, and <a href=\"https://javascriptweekly.com/link/192996/rss\" style=\" color: #3366aa; font-weight: 500;   \">was built with them too</a>.</p>\n</li>\n<li>\n<p>🎂 Happy birthday to <a href=\"https://javascriptweekly.com/link/192997/rss\" style=\" color: #3366aa; font-weight: 500;   \">Svelte</a>! Svelte turned ten years old on Monday (Rich Harris made <a href=\"https://javascriptweekly.com/link/192998/rss\" style=\" color: #3366aa; font-weight: 500;   \">its first commit</a> on November 16, 2016).</p>\n</li>\n</ul>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\" font-size: 15px; line-height: 1.48em;\"></td></tr></table>\n</div>\n  </td></tr>\n</table>\n\n\n\n\n<img src=\"https://javascriptweekly.com/open/811/rss\" width=\"1\" height=\"1\" />","score":2},{"source":"https://github.blog/feed","sourceHost":"github.blog","title":"GitHub availability report: October 2026","link":"https://github.blog/news-insights/company-news/github-availability-report-october-2026/","pubDate":"Fri, 13 Nov 2026 00:20:16 +0000","description":"<p>In October, we experienced eight incidents that resulted in degraded performance across GitHub services.</p>\n<p>The post <a href=\"https://github.blog/news-insights/company-news/github-availability-report-october-2026/\">GitHub availability report: October 2026</a> appeared first on <a href=\"https://github.blog\">The GitHub Blog</a>.</p>","score":6},{"source":"https://github.blog/feed","sourceHost":"github.blog","title":"Build once, run on any agent: A practical guide to agent skills","link":"https://github.blog/ai-and-ml/github-copilot/build-once-run-on-any-agent-a-practical-guide-to-agent-skills/","pubDate":"Thu, 12 Nov 2026 22:54:52 +0000","description":"<p>Agent skills capture repeatable engineering work in files teams can review and reuse, while tools, project context, and permissions remain specific to the host that runs them.</p>\n<p>The post <a href=\"https://github.blog/ai-and-ml/github-copilot/build-once-run-on-any-agent-a-practical-guide-to-agent-skills/\">Build once, run on any agent: A practical guide to agent skills</a> appeared first on <a href=\"https://github.blog\">The GitHub Blog</a>.</p>","score":4},{"source":"https://css-tricks.com/feed","sourceHost":"css-tricks.com","title":"Beyond 12 Columns: Designing Layouts With Personality","link":"https://css-tricks.com/beyond-12-columns/","pubDate":"Thu, 12 Nov 2026 16:06:55 +0000","description":"<p>Too many websites look alike. They use familiar layouts, repeat the same patterns, and often leave little impression once you’ve moved on. Andy Clarke explores how understanding a company’s story can lead to more distinctive designs, using modular and compound grids to create layouts with character.</p>\n<hr />\n<p><small><a rel=\"nofollow\" href=\"https://css-tricks.com/beyond-12-columns/\">Beyond 12 Columns: Designing Layouts With Personality</a> originally handwritten and published with love on <a rel=\"nofollow\" href=\"https://css-tricks.com\">CSS-Tricks</a>. You should really <a href=\"https://css-tricks.com/newsletters/\">get the newsletter</a> as well.</p>","score":2},{"source":"https://dev.to/feed/tag/nuxt","sourceHost":"dev.to","title":"Nuxt 3 Is End of Life: Migrate to Nuxt 4 Now or Wait for Nuxt 5?","link":"https://dev.to/dipeshba/nuxt-3-is-end-of-life-migrate-to-nuxt-4-now-or-wait-for-nuxt-5-358m","pubDate":"Wed, 11 Nov 2026 12:55:31 +0000","description":"<p><a href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fauvq4ngxyj4v6o3p3612.png\" class=\"article-body-image-wrapper\"><img src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fauvq4ngxyj4v6o3p3612.png\" alt=\"Flat illustration of an ageing Nuxt 3 browser window with a warning sign, packages moving along an arrow to a new Nuxt 4 window with a security shield, and Nuxt 5 waiting in a cloud\" width=\"800\" height=\"533\"></a></p>\n\n<p><strong>TL;DR:</strong> Nuxt 3 reached end of life on 31 July 2026, so it no longer receives security or bug fixes. Nuxt 5 is still unreleased as of mid-November 2026. For most production apps the answer is to migrate to Nuxt 4 now: it is the only supported version, it is a small step from Nuxt 3, and Nuxt's policy keeps it supported for at least six months after Nuxt 5 ships. Waiting only makes sense if a critical module blocks you, a change freeze is in force or the app is about to be retired, and then only with paid extended support and a dated plan.</p>\n\n<p>If you pay for a Nuxt application rather than write it, the Nuxt 3 end of life can look like a developer's problem. It becomes yours the first time a security questionnaire asks which framework versions you run. This guide is for founders, product owners, agency owners and engineering managers. It covers what the Nuxt 3 EOL changes in practice, whether waiting for Nuxt 5 is a sensible bet, what makes a migration large or small, and how to keep your search rankings through the move.</p>\n\n<h2>\n  \n  \n  What Nuxt 3 end of life means for an app in production\n</h2>\n\n<p>Your app does not stop working. Nuxt 3 stays on npm and your site keeps serving pages. What changes is what happens when something goes wrong.</p>\n\n<p><a href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8em4iwxfbpirnfayngkg.png\" class=\"article-body-image-wrapper\"><img src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8em4iwxfbpirnfayngkg.png\" alt=\"Timeline of Nuxt major versions showing Nuxt 2 supported from September 2018 to June 2024, Nuxt 3 from November 2022 to July 2026, Nuxt 4 from July 2025 and still supported, and Nuxt 5 estimated for the fourth quarter of 2026\" width=\"800\" height=\"533\"></a></p>\n\n<h3>\n  \n  \n  No more security patches\n</h3>\n\n<p>The <a href=\"https://nuxt.com/docs/4.x/community/roadmap\" rel=\"noopener noreferrer\">Nuxt roadmap</a> lists 3.x as unsupported, with an end-of-life date of 31 July 2026. The <a href=\"https://nuxt.com/blog/v4\" rel=\"noopener noreferrer\">Nuxt 4 announcement</a> originally promised maintenance only until the end of January 2026, which is why some articles still quote that date. It was later moved to 31 July, and that date has now passed. The independent tracker <a href=\"https://endoflife.date/nuxt\" rel=\"noopener noreferrer\">endoflife.date</a> shows the same dates.</p>\n\n<p>The effect is already visible. On 2 November 2026 the Nuxt team shipped version 4.6.4, described in the <a href=\"https://github.com/nuxt/nuxt/releases/tag/v4.6.4\" rel=\"noopener noreferrer\">release notes</a> as a security release fixing eight advisories in Nuxt and three more in Nitro, its server engine. There was no matching 3.x release. Whether or not those issues affect Nuxt 3, nobody upstream is checking or patching that line any more.</p>\n\n<h3>\n  \n  \n  Compliance and customer questionnaires\n</h3>\n\n<p>Running unsupported software is a recognised risk category. OWASP's Top 10 entry on <a href=\"https://top10.owasp.org/2021/A06_2021-Vulnerable_and_Outdated_Components\" rel=\"noopener noreferrer\">Vulnerable and Outdated Components</a> says you are likely vulnerable \"if the software is vulnerable, unsupported, or out of date\". If you sell to enterprises or hold SOC 2, ISO 27001 or PCI obligations, an end-of-life framework is a finding you will have to explain, with either a migration date or a compensating control.</p>\n\n<h3>\n  \n  \n  Module support dries up\n</h3>\n\n<p>Module authors build and test against the current major version. Over time, new releases of official and community modules tend to stop supporting the old one, so a Nuxt 3 app ends up pinned to older versions of its dependencies as well. It is the pattern we describe in our post on <a href=\"https://netling.digital/blog/legacy-system-modernization-mistakes-ai-workflows\" rel=\"noopener noreferrer\">legacy system modernisation mistakes</a>: the upgrade never gets cheaper by waiting.</p>\n\n<h2>\n  \n  \n  What changed in Nuxt 4, in plain language\n</h2>\n\n<p>Nuxt 4 went stable on 16 July 2025 after a year of public testing. The team called it a stability-focused release, and that is fair: there is no new rendering model and no rewrite of how pages are built. The main changes are:</p>\n\n<ul>\n<li>\n<strong>A tidier project layout.</strong> Application code moves into an <code>app/</code> folder. Nuxt still detects the old layout, so the move is recommended, not forced.</li>\n<li>\n<strong>More consistent data fetching.</strong> The functions that load page data share results more predictably and have slightly different defaults. Most of the real code review goes here.</li>\n<li>\n<strong>Stricter TypeScript.</strong> App code and server code are type-checked separately, which often surfaces bugs that were already there.</li>\n<li>\n<strong>Updated metadata handling.</strong> The library that manages titles and meta tags moved to a new major version, which matters for SEO.</li>\n</ul>\n\n<p>The Nuxt team wrote that they hoped \"most Nuxt 3 projects can upgrade with a minimum of effort\". The <a href=\"https://nuxt.com/docs/4.x/getting-started/upgrade\" rel=\"noopener noreferrer\">official upgrade guide</a> rates each change by impact, and most are marked minimal. It also ships a codemod that applies the mechanical changes automatically:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight shell\"><code>npx codemod@0.18.7 nuxt/4/migration-recipe\n</code></pre>\n\n</div>\n\n\n\n<p>The guide pins a specific codemod version, so check it for the current one. The codemod handles the repetitive edits. It does not test your app, check your modules or confirm your pages still render the same HTML. That is the part you pay people for.</p>\n\n<h2>\n  \n  \n  Migrate to Nuxt 4 now or wait for Nuxt 5?\n</h2>\n\n<p>There is a serious argument for waiting. TuxCare, which sells extended support for Nuxt 3, <a href=\"https://tuxcare.com/blog/nuxt-3-eol/\" rel=\"noopener noreferrer\">sets it out clearly</a>: \"If you migrate 3 to 4 now, you're committing to another migration cycle once Nuxt 5 ships.\" Their alternative is to stay on Nuxt 3 with paid security cover, skip Nuxt 4 and jump straight to Nuxt 5 once it stabilises. To be fair to them, the same article says that \"for most Nuxt 3 apps, upgrading to Nuxt 4 is the right move.\"</p>\n\n<p>We agree with that last sentence. We have a commercial interest too, since we do migrations, so here is the reasoning for you to judge.</p>\n\n<h3>\n  \n  \n  Where Nuxt 5 actually stands\n</h3>\n\n<p>The roadmap lists Nuxt 5 as \"Q4 2026 (estimated)\". As of 11 November 2026 there is no stable, beta or release-candidate version of Nuxt 5 on the <a href=\"https://github.com/nuxt/nuxt/releases\" rel=\"noopener noreferrer\">releases page</a>, and the <a href=\"https://nuxt.com/docs/5.x/getting-started/upgrade\" rel=\"noopener noreferrer\">Nuxt 5 upgrade guide</a> says it \"is still in development\". Its biggest change is Nitro v3, which the guide calls \"a major rewrite of the server engine\". Nitro v3 itself only reached release-candidate stage at the end of October 2026, according to its <a href=\"https://github.com/nitrojs/nitro/releases\" rel=\"noopener noreferrer\">release history</a>.</p>\n\n<p>An estimate is not a date. Even once Nuxt 5 ships, community modules need time to catch up with a rewritten server engine before a production app can safely move.</p>\n\n<h3>\n  \n  \n  Why Nuxt 4 is not a wasted step\n</h3>\n\n<p>Three facts weaken the \"two migrations\" objection:</p>\n\n<ol>\n<li>\n<strong>The support window is defined.</strong> Nuxt commits \"to support each major version of Nuxt for a minimum of six months after the release of the next major version\". Since Nuxt 5 has not shipped, Nuxt 4 is covered until at least May 2027, and later for every week Nuxt 5 slips.</li>\n<li>\n<strong>Nuxt 4 is the on-ramp to Nuxt 5.</strong> The <a href=\"https://nuxt.com/blog/v4-6\" rel=\"noopener noreferrer\">Nuxt 4.6 release post</a> says \"most of what's new in Nuxt 5 is already in 4.6, either on by default or behind a flag\". One setting, <code>future.compatibilityVersion: 5</code>, switches on the Nuxt 5 defaults inside Nuxt 4 so a team can fix what breaks at its own pace.</li>\n<li>\n<strong>Skipping a major doubles the jump.</strong> Going from 3 to 5 means absorbing the Nuxt 4 changes and the Nitro rewrite in one release, on an app that has had no security fixes in the meantime. Two small, tested steps carry less risk than one large one.</li>\n</ol>\n\n<h3>\n  \n  \n  A decision by app type\n</h3>\n\n<p><a href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fanjbd3x7m0g3zhjag2n7.png\" class=\"article-body-image-wrapper\"><img src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fanjbd3x7m0g3zhjag2n7.png\" alt=\"Decision matrix showing whether to migrate to Nuxt 4 now or wait, for seven situations: public marketing and content sites, SaaS dashboards, apps under compliance audits, apps on Nuxt 2, apps blocked by a module, apps in a change freeze, and apps being retired\" width=\"800\" height=\"533\"></a></p>\n\n<ul>\n<li>\n<strong>Public marketing or content site:</strong> migrate now. It is public, the job is small and search traffic depends on it.</li>\n<li>\n<strong>SaaS dashboard holding customer data:</strong> migrate now. An unpatched server layer in front of user accounts is a poor place to economise.</li>\n<li>\n<strong>App under SOC 2, ISO 27001 or PCI audit:</strong> migrate now, or buy extended support to cover the gap until you can.</li>\n<li>\n<strong>Still on Nuxt 2:</strong> start now and go straight to Nuxt 4.</li>\n<li>\n<strong>Blocked by a module with no Nuxt 4 version:</strong> replace the module if you can. If you truly cannot, wait with extended support and review the position each quarter.</li>\n<li>\n<strong>In a change freeze or regulated release window:</strong> wait with extended support, and use the time to prepare in place.</li>\n<li>\n<strong>Being retired within months:</strong> do not migrate. Limit its exposure and switch it off on schedule.</li>\n</ul>\n\n<h3>\n  \n  \n  If you do wait, wait with cover\n</h3>\n\n<p>Commercial extended support exists for this case. <a href=\"https://www.herodevs.com/support/nuxt-nes\" rel=\"noopener noreferrer\">HeroDevs</a> offers Never-Ending Support covering Nuxt 2.x and 3.x, and TuxCare sells a similar service. Both provide patched builds of the framework. They are a reasonable bridge and a poor destination: you pay a subscription to stand still while your modules keep ageing. Put an end date on it.</p>\n\n<h2>\n  \n  \n  What drives Nuxt migration cost and effort\n</h2>\n\n<p>We are not going to print a price here. Nuxt migration cost depends on the codebase, and any number given without seeing yours would be a guess. What we can tell you is what moves the estimate.</p>\n\n<p><a href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F05i0yv0f3hjq99ro5rky.png\" class=\"article-body-image-wrapper\"><img src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F05i0yv0f3hjq99ro5rky.png\" alt=\"Chart of five Nuxt migration effort drivers (number of modules, custom modules and plugins, data fetching complexity, testing needed and SEO verification) rated low, medium or high for a small site, a content platform and a SaaS dashboard\" width=\"800\" height=\"533\"></a></p>\n\n<ul>\n<li>\n<strong>Module count.</strong> Every module is a compatibility check. Ten well-maintained official modules are easy. Three abandoned community ones are not.</li>\n<li>\n<strong>Custom modules and plugins.</strong> Code that hooks into Nuxt's internals is the code most likely to break, and no codemod understands it.</li>\n<li>\n<strong>Data fetching complexity.</strong> The more pages load data in unusual ways, the more of the Nuxt 4 changes need human review.</li>\n<li>\n<strong>Test coverage.</strong> With good automated tests, most of the checking is automatic. Without them, every page is checked by hand or tests are written first. See our post on <a href=\"https://netling.digital/blog/non-functional-testing-software-scaling\" rel=\"noopener noreferrer\">non-functional testing</a>.</li>\n<li>\n<strong>Starting point.</strong> Nuxt 3 to 4 is an upgrade. Nuxt 2 to 4 is a migration to a different version of Vue, and a different size of budget.</li>\n</ul>\n\n<h3>\n  \n  \n  How that plays out for three typical apps\n</h3>\n\n<p><strong>A small marketing site</strong> has few pages, a handful of official modules and little custom code. The work is mostly mechanical, and more of the effort goes into verifying SEO parity than changing code.</p>\n\n<p><strong>A content platform</strong> (a blog, documentation site or headless storefront) has many templates, a CMS integration and heavy prerendering. Effort concentrates in data fetching and page-by-page verification, because organic traffic is the business. If your content lives in a headless CMS, give the integration its own line in the plan (our <a href=\"https://netling.digital/hire/strapi-developers\" rel=\"noopener noreferrer\">Strapi developers</a> cover that side).</p>\n\n<p><strong>A SaaS dashboard</strong> has authentication, complex state, custom plugins and server routes. SEO matters less behind a login, but custom code and stricter TypeScript checks take longer, and test coverage decides how calm the release is.</p>\n\n<p>A proper estimate starts with an audit: every module, plugin, store and build customisation, marked as compatible, replaceable or removable. That is the first step of the staged playbook we use when clients <a href=\"https://netling.digital/hire/nuxt-developers\" rel=\"noopener noreferrer\">hire Nuxt developers</a> from us: audit what you have, prepare in place, migrate in slices, verify page by page, then cut over and clean up. For wider budgeting context, see our guide to <a href=\"https://netling.digital/blog/custom-web-application-development-cost-2026\" rel=\"noopener noreferrer\">custom web application development cost</a>.</p>\n\n<h2>\n  \n  \n  Keeping your search rankings through the move\n</h2>\n\n<p>A framework upgrade should be invisible to Google: same URLs, same content, same or better speed. Rankings are lost when something small changes unnoticed across hundreds of pages, so we compare old and new, page by page, on five points.</p>\n\n<p><a href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn7vn54nd24amy8kzzdn6.png\" class=\"article-body-image-wrapper\"><img src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn7vn54nd24amy8kzzdn6.png\" alt=\"Flat illustration of a Nuxt migration SEO checklist with five checks: rendered HTML, redirects, metadata, structured data and Core Web Vitals\" width=\"800\" height=\"533\"></a></p>\n\n<ul>\n<li>\n<strong>Rendered HTML parity.</strong> The HTML the server sends must contain the same headings, copy and links as before. Google's <a href=\"https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics\" rel=\"noopener noreferrer\">JavaScript SEO guidance</a> notes that server-side or pre-rendering \"is still a great idea because it makes your website faster for users and crawlers\".</li>\n<li>\n<strong>Redirects.</strong> Ideally no URL changes at all. If any do, Google's <a href=\"https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes\" rel=\"noopener noreferrer\">site move documentation</a> recommends mapping every old URL to its new one with permanent server-side redirects, and keeping them \"for as long as possible, generally at least 1 year\".</li>\n<li>\n<strong>Metadata.</strong> Titles, descriptions, canonical tags and hreflang come from the library that changed in Nuxt 4. Compare them across every route.</li>\n<li>\n<strong>Structured data.</strong> JSON-LD for articles, products, FAQs and breadcrumbs is easy to drop silently. Validate it before and after.</li>\n<li>\n<strong>Core Web Vitals.</strong> Per <a href=\"https://web.dev/articles/vitals\" rel=\"noopener noreferrer\">web.dev</a>, a good page has a Largest Contentful Paint within 2.5 seconds, Interaction to Next Paint of 200 milliseconds or less and Cumulative Layout Shift of 0.1 or less, measured at the 75th percentile of page loads. Record your numbers before the migration so you can prove they held.</li>\n</ul>\n\n<p>After launch, watch Search Console and your server error rates for a few weeks. This verification stage is where a specialist <a href=\"https://netling.digital/hire/nuxt-developers\" rel=\"noopener noreferrer\">Nuxt development agency</a> earns its fee. The upgrade commands are public. The discipline of checking every template is not.</p>\n\n<h2>\n  \n  \n  Still on Nuxt 2? The longer path\n</h2>\n\n<p>Nuxt 2 <a href=\"https://nuxt.com/blog/nuxt2-eol\" rel=\"noopener noreferrer\">reached end of life on 30 June 2024</a>, so these apps have now been without upstream security fixes for more than two years. The path is longer because Nuxt 2 runs on Vue 2, and Nuxt 3 and 4 run on Vue 3. Three pieces of work dominate:</p>\n\n<ul>\n<li>\n<strong>Vuex to Pinia.</strong> State management moves to Pinia, the store Vue now recommends.</li>\n<li>\n<strong>Options API to Composition API.</strong> Not every component has to be rewritten, but mixins and anything built on Nuxt 2-only features do.</li>\n<li>\n<strong>Modules and build setup.</strong> Nuxt 2 modules have to be replaced with versions built for Nuxt 3 and later, some have no direct successor, and the default build tool changes from webpack to Vite.</li>\n</ul>\n\n<p>Nuxt Bridge, which the Nuxt docs describe as \"a compatibility layer that allows you to use Nuxt 3+ features in Nuxt 2 with an opt-in mechanism\", can shorten the path for large apps. For small ones it is often quicker to skip it.</p>\n\n<p>Do not migrate to Nuxt 3 on the way. It is end of life too. Go straight to Nuxt 4, in slices, with old and new running side by side behind a proxy so releases continue. If your app is plain Vue 2 with Vuex rather than Nuxt, the same staged approach applies, and our <a href=\"https://netling.digital/hire/vue-developers\" rel=\"noopener noreferrer\">Vue.js developers</a> handle those upgrades. Agencies with client sites on old versions can run this under their own brand through our <a href=\"https://netling.digital/services/white-label-web-development\" rel=\"noopener noreferrer\">white-label web development</a> service.</p>\n\n<h2>\n  \n  \n  Frequently asked questions\n</h2>\n\n<h3>\n  \n  \n  Is Nuxt 3 still supported?\n</h3>\n\n<p>No. Nuxt 3 reached end of life on 31 July 2026 and no longer receives security or bug fixes from the Nuxt team. Nuxt 4 is the only supported major version.</p>\n\n<h3>\n  \n  \n  When will Nuxt 5 be released?\n</h3>\n\n<p>The official roadmap lists Nuxt 5 as \"Q4 2026 (estimated)\". As of 11 November 2026 it has not been released, and its upgrade guide describes it as still in development.</p>\n\n<h3>\n  \n  \n  Should I skip Nuxt 4 and go straight to Nuxt 5?\n</h3>\n\n<p>For most apps, no. Nuxt 4 is supported for at least six months after Nuxt 5 ships, and it lets you switch on Nuxt 5 behaviour early with a compatibility flag. Skipping it means running unpatched software until Nuxt 5 and its modules are stable.</p>\n\n<h3>\n  \n  \n  How hard is it to upgrade Nuxt 3 to Nuxt 4?\n</h3>\n\n<p>For most apps it is a modest upgrade. The official codemod handles the mechanical changes. Module count, custom code and test coverage decide the rest.</p>\n\n<h3>\n  \n  \n  Can I migrate from Nuxt 2 directly to Nuxt 4?\n</h3>\n\n<p>Yes, and you should, since Nuxt 3 is also end of life. It is a larger project because it includes the move from Vue 2 to Vue 3, Vuex to Pinia and a new build setup, so it is best done in stages.</p>\n\n<h2>\n  \n  \n  Final thoughts\n</h2>\n\n<p>The Nuxt 3 end of life is not an emergency, but it should not be ignored. For most teams the sensible move is to upgrade to Nuxt 4 now while the step is small, switch on the Nuxt 5 compatibility flag when you are ready, and take Nuxt 5 as a routine upgrade once it and your modules have settled. If you have to wait, do it with extended support and a date in the calendar.</p>\n\n<p>Our own website runs on Nuxt 4, and migrations are the most common reason teams <a href=\"https://netling.digital/hire/nuxt-developers\" rel=\"noopener noreferrer\">hire Nuxt developers</a> from us. If you want a written audit and a staged plan before you commit a budget, <a href=\"https://netling.digital/contact\" rel=\"noopener noreferrer\">tell us about your app</a> or <a href=\"https://netling.digital/briefings/new\" rel=\"noopener noreferrer\">send us a project brief</a>. To hand over upgrades for good, our <a href=\"https://netling.digital/services/support\" rel=\"noopener noreferrer\">Support service</a> covers dependency updates, monitoring and fixes for live apps.</p>\n\n<p><em>Originally published at <a href=\"https://netling.digital/blog/nuxt-3-end-of-life-migrate-to-nuxt-4\" rel=\"noopener noreferrer\">netling.digital</a>.</em></p>","score":3},{"source":"https://github.blog/feed","sourceHost":"github.blog","title":"Git security vulnerabilities announced","link":"https://github.blog/open-source/git/git-security-vulnerabilities-announced-7/","pubDate":"Tue, 10 Nov 2026 18:00:00 +0000","description":"<p>Git is releasing updates addressing six security vulnerabilities affecting clones, reference handling, merges, binary patches, and imports. Here is what users need to know.</p>\n<p>The post <a href=\"https://github.blog/open-source/git/git-security-vulnerabilities-announced-7/\">Git security vulnerabilities announced</a> appeared first on <a href=\"https://github.blog\">The GitHub Blog</a>.</p>","score":4},{"source":"https://dev.to/feed/tag/nuxt","sourceHost":"dev.to","title":"Best Headless CMS for Nuxt in 2026: 7 Options Compared","link":"https://dev.to/tonyspiro/best-headless-cms-for-nuxt-in-2026-7-options-compared-gj0","pubDate":"Tue, 10 Nov 2026 17:19:58 +0000","description":"<p>Nuxt gives you server routes, <code>useAsyncData</code>, Nitro caching, and hybrid rendering out of the box. The CMS you put behind it decides three things: how fast your editors can publish without filing a ticket, how much infrastructure your team ends up owning, and what the bill looks like when the second and third site show up.</p>\n\n<p>This is a comparison of seven options that work well with Nuxt 3 and Nuxt 4. I fetched every vendor's pricing page on <strong>November 10, 2026</strong> and linked each figure to the page it came from, with the date. Pricing moves. When you read this, check the links.</p>\n\n<p>A note on what is here: a vendor only made the list if its current pricing page could be fetched and cited. No remembered numbers, no \"approximately,\" no vendor quoted from an older version of this article.</p>\n\n<h2>\n  \n  \n  Quick comparison\n</h2>\n\n<div class=\"table-wrapper-paragraph\"><table>\n<thead>\n<tr>\n<th>CMS</th>\n<th>Hosting model</th>\n<th>Content lives in</th>\n<th>Best fit</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Cosmic</td>\n<td>Managed SaaS</td>\n<td>Hosted API</td>\n<td>Teams running several sites or brands who want editors publishing without engineering</td>\n</tr>\n<tr>\n<td>Nuxt Content</td>\n<td>Self-hosted, in your repo</td>\n<td>Markdown/YAML/JSON files in git</td>\n<td>Docs, blogs, and marketing sites where the authors are developers</td>\n</tr>\n<tr>\n<td>Storyblok</td>\n<td>Managed SaaS</td>\n<td>Hosted API</td>\n<td>Marketing teams who want visual, block-level page editing</td>\n</tr>\n<tr>\n<td>Sanity</td>\n<td>Managed SaaS</td>\n<td>Hosted API</td>\n<td>Teams who want a fully customizable editing environment and will build it</td>\n</tr>\n<tr>\n<td>Strapi</td>\n<td>Self-hosted or Strapi Cloud</td>\n<td>Your own database</td>\n<td>Teams who need the content layer inside their own infrastructure</td>\n</tr>\n<tr>\n<td>Prismic</td>\n<td>Managed SaaS</td>\n<td>Hosted API</td>\n<td>Small sites and single-repository projects with a tight budget</td>\n</tr>\n<tr>\n<td>Directus</td>\n<td>Self-hosted or Directus Cloud</td>\n<td>Your own SQL database</td>\n<td>Teams wrapping an existing database with an admin and API layer</td>\n</tr>\n</tbody>\n</table></div>\n\n<h2>\n  \n  \n  1. Cosmic\n</h2>\n\n<p>Cosmic is a managed headless CMS. You model content in a dashboard, editors publish there, and Nuxt reads it over a REST API or the TypeScript SDK. There is nothing to deploy, patch, or scale on your side. Cosmic is a Y Combinator W19 company.</p>\n\n<p>For Nuxt specifically, the fit is straightforward. Content comes back as plain JSON from an edge-cached API, so it drops into a Nitro server route or <code>useAsyncData</code> with no adapter layer in between. Image optimization and video delivery are handled on the CDN, so you are not wiring up a separate transform service for your <code>&lt;NuxtImg&gt;</code> sources.</p>\n\n<p>Where Cosmic separates from the rest of this list is the multi-property case. If you run five brand sites, or a franchise network, or a set of client sites, you can keep a Bucket per brand while sharing content models and billing across them, instead of standing up a separate install or a separate space per site.</p>\n\n<p><strong>Pricing</strong> (<a href=\"https://www.cosmicjs.com/pricing\" rel=\"noopener noreferrer\">cosmicjs.com/pricing</a>, read November 10, 2026): Free at <strong>$0/month</strong> with 1 Bucket, 2 team members, and 1,000 Objects. <strong>Builder $99/month</strong>, <strong>Team $299/month</strong>, <strong>Business $499/month</strong>, and Enterprise at custom pricing. Additional users beyond a plan's included team members are <strong>$29/user/month</strong>. Per-project feature add-ons (Webhooks, Localization, Revision History, Automatic Backups) are $99/month each or $199/month for all four.</p>\n\n<p>Cosmic charges per seat once you pass your plan's included team members, so price it on the real size of your editorial team rather than the base plan alone.</p>\n\n<p>The editorial argument, from a real customer:</p>\n\n<blockquote>\n<p>\"Cosmic is: us never having to ask a developer to change anything on the backend of our website.\"<br>\n— Maximilian Wuhr, Co-Founder at FINN</p>\n</blockquote>\n\n<p><strong>Strengths:</strong> No infrastructure to run. Editors ship independently. Clean multi-site and multi-locale story. REST API, TypeScript SDK, and a CLI.</p>\n\n<p><strong>Trade-offs:</strong> It is a hosted service, so self-hosting is not an option. The free tier's 1,000 Objects is fine for a marketing site and tight for a large content archive.</p>\n\n<h3>\n  \n  \n  Reading Cosmic content in Nuxt\n</h3>\n\n<p>Install the official SDK, <code>@cosmicjs/sdk</code>, then create a server route so your read key never reaches the browser:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"c1\">// server/api/posts.get.ts</span>\n<span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"n\">createBucketClient</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s1\">'@cosmicjs/sdk'</span>\n\n<span class=\"kd\">const</span> <span class=\"n\">cosmic</span> <span class=\"o\">=</span> <span class=\"nf\">createBucketClient</span><span class=\"p\">(</span><span class=\"p\">{</span>\n  <span class=\"n\">bucketSlug</span><span class=\"p\">:</span> <span class=\"nb\">process</span><span class=\"p\">.</span><span class=\"n\">env</span><span class=\"p\">.</span><span class=\"no\">COSMIC_BUCKET_SLUG</span><span class=\"o\">!</span><span class=\"p\">,</span>\n  <span class=\"n\">readKey</span><span class=\"p\">:</span> <span class=\"nb\">process</span><span class=\"p\">.</span><span class=\"n\">env</span><span class=\"p\">.</span><span class=\"no\">COSMIC_READ_KEY</span><span class=\"o\">!</span><span class=\"p\">,</span>\n<span class=\"p\">}</span><span class=\"p\">)</span>\n\n<span class=\"k\">export</span> <span class=\"k\">default</span> <span class=\"nf\">defineEventHandler</span><span class=\"p\">(</span><span class=\"k\">async</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"p\">{</span>\n  <span class=\"kd\">const</span> <span class=\"p\">{</span> <span class=\"n\">objects</span> <span class=\"p\">}</span> <span class=\"o\">=</span> <span class=\"k\">await</span> <span class=\"n\">cosmic</span><span class=\"p\">.</span><span class=\"n\">objects</span>\n    <span class=\"p\">.</span><span class=\"nf\">find</span><span class=\"p\">(</span><span class=\"p\">{</span> <span class=\"kd\">type</span><span class=\"p\">:</span> <span class=\"s1\">'posts'</span> <span class=\"p\">}</span><span class=\"p\">)</span>\n    <span class=\"p\">.</span><span class=\"nf\">props</span><span class=\"p\">(</span><span class=\"p\">[</span><span class=\"s1\">'id'</span><span class=\"p\">,</span> <span class=\"s1\">'title'</span><span class=\"p\">,</span> <span class=\"s1\">'slug'</span><span class=\"p\">,</span> <span class=\"s1\">'metadata'</span><span class=\"p\">]</span><span class=\"p\">)</span>\n    <span class=\"p\">.</span><span class=\"nf\">depth</span><span class=\"p\">(</span><span class=\"mi\">1</span><span class=\"p\">)</span>\n\n  <span class=\"k\">return</span> <span class=\"n\">objects</span>\n<span class=\"p\">}</span><span class=\"p\">)</span>\n</code></pre>\n\n</div>\n\n\n\n<p>Then consume it in a page with Nuxt's own data layer:<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight vue\"><code><span class=\"c\">&lt;!-- pages/blog/index.vue --&gt;</span>\n<span class=\"nt\">&lt;script</span> <span class=\"na\">setup</span> <span class=\"na\">lang</span><span class=\"o\">=</span><span class=\"s\">\"ts\"</span><span class=\"nt\">&gt;</span>\n<span class=\"kd\">const</span> <span class=\"p\">{</span> <span class=\"n\">data</span><span class=\"p\">:</span> <span class=\"n\">posts</span> <span class=\"p\">}</span> <span class=\"o\">=</span> <span class=\"k\">await</span> <span class=\"nf\">useAsyncData</span><span class=\"p\">(</span><span class=\"s1\">'posts'</span><span class=\"p\">,</span> <span class=\"p\">(</span><span class=\"p\">)</span> <span class=\"o\">=&gt;</span> <span class=\"nv\">$fetch</span><span class=\"p\">(</span><span class=\"s1\">'/api/posts'</span><span class=\"p\">)</span><span class=\"p\">)</span>\n<span class=\"nt\">&lt;/script&gt;</span>\n\n<span class=\"nt\">&lt;template&gt;</span>\n  <span class=\"nt\">&lt;ul&gt;</span>\n    <span class=\"nt\">&lt;li</span> <span class=\"na\">v-for</span><span class=\"o\">=</span><span class=\"s\">\"post in posts\"</span> <span class=\"na\">:key</span><span class=\"o\">=</span><span class=\"s\">\"post.id\"</span><span class=\"nt\">&gt;</span>\n      <span class=\"nt\">&lt;NuxtLink</span> <span class=\"na\">:to</span><span class=\"o\">=</span><span class=\"s\">\"`/blog/${post.slug}`\"</span><span class=\"nt\">&gt;</span><span class=\"cp\">{{</span> <span class=\"n\">post</span><span class=\"p\">.</span><span class=\"n\">title</span> <span class=\"cp\">}}</span><span class=\"nt\">&lt;/NuxtLink&gt;</span>\n    <span class=\"nt\">&lt;/li&gt;</span>\n  <span class=\"nt\">&lt;/ul&gt;</span>\n<span class=\"nt\">&lt;/template&gt;</span>\n</code></pre>\n\n</div>\n\n\n\n<p>That is the whole integration. No adapter package, no build step, no schema generation. Full method reference is in the <a href=\"https://www.cosmicjs.com/docs?utm_source=devto&amp;utm_medium=syndication&amp;utm_campaign=best-headless-cms-for-nuxt\" rel=\"noopener noreferrer\">Cosmic docs</a>.</p>\n\n\n\n\n<p><strong>Running more than one Nuxt site?</strong> That is where a managed CMS stops being a convenience and starts being the thing that keeps your team off the critical path. <a href=\"https://www.cosmicjs.com/?utm_source=devto&amp;utm_medium=syndication&amp;utm_campaign=best-headless-cms-for-nuxt\" rel=\"noopener noreferrer\">Start free on Cosmic</a> and model your first content type in a few minutes.</p>\n\n\n\n\n<h2>\n  \n  \n  2. Nuxt Content\n</h2>\n\n<p>Nuxt Content is the first-party option, and for a certain kind of project it is the correct answer before you evaluate anything else. Content lives as Markdown, YAML, CSV, or JSON files inside your repository, and you query it with a MongoDB-like query builder backed by SQLite (<a href=\"https://content.nuxt.com/\" rel=\"noopener noreferrer\">content.nuxt.com</a>, read November 10, 2026).</p>\n\n<p>The feature that makes it distinctly Nuxt is MDC syntax: you use Vue components, with props and slots, directly inside Markdown files. Your content authors get a hero block or a callout component without you building a block renderer.<br>\n</p>\n\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight typescript\"><code><span class=\"c1\">// content.config.ts</span>\n<span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"n\">defineContentConfig</span><span class=\"p\">,</span> <span class=\"n\">defineCollection</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s1\">'@nuxt/content'</span>\n<span class=\"k\">import</span> <span class=\"p\">{</span> <span class=\"n\">z</span> <span class=\"p\">}</span> <span class=\"k\">from</span> <span class=\"s1\">'zod'</span>\n\n<span class=\"k\">export</span> <span class=\"k\">default</span> <span class=\"nf\">defineContentConfig</span><span class=\"p\">(</span><span class=\"p\">{</span>\n  <span class=\"n\">collections</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n    <span class=\"n\">blog</span><span class=\"p\">:</span> <span class=\"nf\">defineCollection</span><span class=\"p\">(</span><span class=\"p\">{</span>\n      <span class=\"n\">source</span><span class=\"p\">:</span> <span class=\"s1\">'blog/*.md'</span><span class=\"p\">,</span>\n      <span class=\"kd\">type</span><span class=\"p\">:</span> <span class=\"s1\">'page'</span><span class=\"p\">,</span>\n      <span class=\"n\">schema</span><span class=\"p\">:</span> <span class=\"n\">z</span><span class=\"p\">.</span><span class=\"kt\">object</span><span class=\"p\">(</span><span class=\"p\">{</span>\n        <span class=\"n\">tags</span><span class=\"p\">:</span> <span class=\"n\">z</span><span class=\"p\">.</span><span class=\"nf\">array</span><span class=\"p\">(</span><span class=\"n\">z</span><span class=\"p\">.</span><span class=\"kt\">string</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">)</span><span class=\"p\">,</span>\n        <span class=\"n\">image</span><span class=\"p\">:</span> <span class=\"n\">z</span><span class=\"p\">.</span><span class=\"kt\">string</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">,</span>\n        <span class=\"n\">date</span><span class=\"p\">:</span> <span class=\"n\">z</span><span class=\"p\">.</span><span class=\"nb\">Date</span><span class=\"p\">(</span><span class=\"p\">)</span><span class=\"p\">,</span>\n      <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">,</span>\n    <span class=\"p\">}</span><span class=\"p\">)</span><span class=\"p\">,</span>\n  <span class=\"p\">}</span><span class=\"p\">,</span>\n<span class=\"p\">}</span><span class=\"p\">)</span>\n</code></pre>\n\n</div>\n\n\n\n<p>Collections give you schema validation and type-safety on frontmatter, with autocompletion in your Vue files. Querying is <code>queryCollection('blog').all()</code>.</p>\n\n<p>For non-developer editing, Nuxt Studio is the visual layer. Per content.nuxt.com (read November 10, 2026), Studio is described as a free and open-source visual interface for editing content in production, with live preview on the production site, visual editing of Markdown, YML, and JSON files, and publishing changes directly to your git provider.</p>\n\n<p><strong>Pricing:</strong> Nuxt Content is an open-source Nuxt module. Your cost is your hosting.</p>\n\n<p><strong>Strengths:</strong> Zero external service. Content versioned in git alongside code. Vue components inside Markdown. Type-safe queries.</p>\n\n<p><strong>Trade-offs:</strong> Content is coupled to deploys and to your repository. Editors need git as the system of record, which suits documentation sites and suits a 12-person marketing team considerably less. There is no hosted media pipeline, roles and permissions layer, or multi-brand content model to inherit.</p>\n\n<h2>\n  \n  \n  3. Storyblok\n</h2>\n\n<p>Storyblok is a managed CMS built around a visual editor, where editors compose pages from reusable blocks and see the result rendered live. Its Vue and Nuxt support has been a focus for years, which is why it shows up in nearly every Nuxt CMS shortlist.</p>\n\n<p>If your buyers are marketers who want to build landing pages without a developer, the block-based visual editing model is the main reason to pick it.</p>\n\n<p><strong>Pricing</strong> (<a href=\"https://www.storyblok.com/pricing\" rel=\"noopener noreferrer\">storyblok.com/pricing</a>, read November 10, 2026): a free <strong>Starter</strong> tier, <strong>Growth at $99/month</strong> (lower on annual billing), <strong>Growth Plus at $349/month</strong>, and Enterprise at custom pricing. Seats are limited per tier, with additional seats billed per seat on top of the plan price, so check the current seat count on the plan card against your editorial headcount.</p>\n\n<p><strong>Strengths:</strong> Strong visual page building. Long-standing Vue and Nuxt focus. Component-shaped content models that map cleanly to Vue components.</p>\n\n<p><strong>Trade-offs:</strong> The block model is opinionated. Content that is not page-shaped, like a product catalog or a structured data set, fits it less naturally.</p>\n\n<h2>\n  \n  \n  4. Sanity\n</h2>\n\n<p>Sanity pairs a hosted content backend with Studio, an editing environment you configure in code and deploy yourself. If you want the authoring experience to be a first-class part of your codebase, that is the draw. It also means the editor UI is a project you own and maintain.</p>\n\n<p><strong>Pricing</strong> (<a href=\"https://www.sanity.io/pricing\" rel=\"noopener noreferrer\">sanity.io/pricing</a>, read November 10, 2026): a <strong>Free</strong> tier at $0 with generous seat allowance and capped documents, datasets, and API requests. <strong>Growth is billed per seat at $15/seat/month</strong>, with document and dataset caps and paid add-ons for additional quota and support. Enterprise is custom.</p>\n\n<p>Watch the add-on line items rather than the headline seat price. On the plan page read November 10, 2026, extra datasets and increased quota are separately priced and can dominate the bill well before seat count does.</p>\n\n<p><strong>Strengths:</strong> Highly customizable editing environment. Real-time collaboration. Strong structured content modeling.</p>\n\n<p><strong>Trade-offs:</strong> You are building and maintaining the Studio. Usage-based caps on documents, datasets, and API requests mean cost scales with what your site actually does, which takes modeling before you commit.</p>\n\n<h2>\n  \n  \n  5. Strapi\n</h2>\n\n<p>Strapi is the default answer when the requirement is \"the content layer runs in our infrastructure.\" It is a Node.js CMS with an admin panel, running against your own database. For a Nuxt team already deploying Node services, there is nothing unfamiliar about it.</p>\n\n<p><strong>Pricing, self-hosted</strong> (<a href=\"https://strapi.io/pricing-cms\" rel=\"noopener noreferrer\">strapi.io/pricing-cms</a>, read November 10, 2026): a free <strong>Community</strong> edition under the MIT license. <strong>Growth at $45/month</strong> including 3 users, with additional users at $15/user/month, an SSO add-on priced separately, and Enterprise at custom pricing.</p>\n\n<p><strong>Pricing, Strapi Cloud</strong> (<a href=\"https://strapi.io/pricing-cloud\" rel=\"noopener noreferrer\">strapi.io/pricing-cloud</a>, read November 10, 2026): <strong>Starter at $35/project/month</strong>, <strong>Pro at $90/project/month</strong>, and <strong>Business at $450/project/month</strong>.</p>\n\n<p>The per-project structure on Cloud is the number to model carefully if you run several sites. Five properties on Pro is five times $90/month, before seats.</p>\n\n<p><strong>Strengths:</strong> Open source and self-hostable. Your data in your database. Extensible via plugins.</p>\n\n<p><strong>Trade-offs:</strong> Self-hosting means you own upgrades, scaling, backups, and uptime. Cloud pricing is per project, which gets expensive across a portfolio of sites.</p>\n\n<h2>\n  \n  \n  6. Prismic\n</h2>\n\n<p>Prismic is a managed CMS organized around a repository per project, with a page-builder style authoring experience. Its appeal is the price of entry for small projects.</p>\n\n<p><strong>Pricing</strong> (<a href=\"https://prismic.io/pricing\" rel=\"noopener noreferrer\">prismic.io/pricing</a>, read November 10, 2026): <strong>Free at $0</strong> with a single user, then <strong>Starter at $10/month</strong>, <strong>Small at $25/month</strong>, <strong>Medium at $150/month</strong>, and <strong>Platinum at $675/month</strong>, with Enterprise custom. Plans are priced per repository, and user counts and locale counts step up with each tier.</p>\n\n<p>The per-repository structure is the thing to check. One site on Small is inexpensive. Eight sites on Small is eight subscriptions.</p>\n\n<p><strong>Strengths:</strong> Low entry price. Page-builder authoring that non-developers pick up quickly. Solid Nuxt community support.</p>\n\n<p><strong>Trade-offs:</strong> Per-repository pricing scales poorly across a portfolio. Locale allowances are tier-gated, which matters if you are international early.</p>\n\n<h2>\n  \n  \n  7. Directus\n</h2>\n\n<p>Directus wraps an existing SQL database with an admin interface and an API, which makes it a strong pick when the data already exists and you want a content layer over it rather than a new content store.</p>\n\n<p><strong>Pricing</strong> (<a href=\"https://directus.com/pricing\" rel=\"noopener noreferrer\">directus.com/pricing</a>, read November 10, 2026): <strong>Core at $89/month billed yearly, or $99 monthly</strong>, including 3 user seats, 25 collections, and 5 flows. Additional seats are listed at $50/seat/month and additional collections at $100 per 25-pack. There is also an <strong>Open Innovation Grant</strong>: the page states that organizations under $5M in annual revenue with fewer than 50 employees qualify for fully permissive access at no software cost when self-hosted, with cloud hosting at $99/month.</p>\n\n<p>One caveat worth flagging, because it affects budgeting. On the page as read on November 10, 2026, the Team tier is stated two different ways on the same page: the plan card shows <strong>$588/month billed yearly, or $698 monthly</strong>, while the FAQ further down states <strong>$499/month on an annual commitment ($5,988/year), or $599/month monthly</strong>. Both were live when I read it. Confirm the current figure with Directus before you plan around it.</p>\n\n<p><strong>Strengths:</strong> Works against your existing database schema. Self-hostable. Flows for automation. Granular access control on paid tiers.</p>\n\n<p><strong>Trade-offs:</strong> It is a data platform first and a publishing tool second, so the editorial experience needs more shaping for a marketing team. Seat and collection limits on Core are tight, and the next tier is a significant step up.</p>\n\n<h2>\n  \n  \n  How to choose\n</h2>\n\n<p><strong>Your authors are developers and the site is a blog or docs.</strong> Use Nuxt Content. It is first-party, free, and MDC is genuinely better than a block renderer you would build yourself.</p>\n\n<p><strong>You have non-technical editors and one site.</strong> Storyblok or Prismic. Both give editors a visual surface, and Prismic's entry tiers are cheap for a single repository.</p>\n\n<p><strong>You want the editing environment to be code you own.</strong> Sanity, with the understanding that Studio becomes a project on your roadmap.</p>\n\n<p><strong>Regulatory or infrastructure requirements say the content layer stays in-house.</strong> Strapi self-hosted, or Directus if you are putting a content layer over a database that already exists.</p>\n\n<p><strong>You run several sites, brands, or client properties and editors keep waiting on engineering.</strong> Cosmic. The per-property math is where this gets decided: per-project and per-repository pricing models compound fast across a portfolio, and running your own installs multiplies the upgrade and uptime work by the number of sites.</p>\n\n<h2>\n  \n  \n  Frequently asked questions\n</h2>\n\n<p><strong>Does Cosmic work with Nuxt 3 and Nuxt 4?</strong><br>\nYes. Cosmic is framework-agnostic. You call the REST API or the TypeScript SDK from a Nitro server route or inside <code>useAsyncData</code>, exactly as in the example above.</p>\n\n<p><strong>Does Cosmic offer GraphQL?</strong><br>\nNo. Cosmic provides a REST API, the TypeScript SDK (<code>@cosmicjs/sdk</code>), and a CLI. If a GraphQL layer is a hard requirement for your stack, that is a real consideration to weigh.</p>\n\n<p><strong>Can I preview drafts in Nuxt?</strong><br>\nYes. Fetch with a preview-enabled client in a server route guarded by a preview cookie or token, then render the draft on the real site.</p>\n\n<p><strong>How much does Cosmic cost for a small team?</strong><br>\nFree at $0/month covers 1 Bucket, 2 team members, and 1,000 Objects. Builder is $99/month, Team is $299/month, Business is $499/month, and additional users beyond your plan's included team members are $29/user/month (<a href=\"https://www.cosmicjs.com/pricing\" rel=\"noopener noreferrer\">cosmicjs.com/pricing</a>, read November 10, 2026).</p>\n\n<h2>\n  \n  \n  Start building\n</h2>\n\n<p>Pick the one that matches who edits your content and how many properties you run. Those two questions decide this more reliably than a feature matrix does.</p>\n\n<p>If you are running Nuxt and you want editors publishing on their own schedule across every site you own, <a href=\"https://www.cosmicjs.com/pricing?utm_source=devto&amp;utm_medium=syndication&amp;utm_campaign=best-headless-cms-for-nuxt\" rel=\"noopener noreferrer\">see Cosmic plans and start free</a>. Free tier, no credit card.</p>","score":3},{"source":"https://css-tricks.com/feed","sourceHost":"css-tricks.com","title":"CSS Optimization: Is Using Declarations Just Once (UDJO) Still Effective Today?","link":"https://css-tricks.com/css-using-declarations-just-once/","pubDate":"Tue, 10 Nov 2026 16:42:18 +0000","description":"<p>Is the technique inspired by the DRY principle by identifying and reducing (if not eliminating) CSS declaration repetition still a relevant optimization strategy?</p>\n<hr />\n<p><small><a rel=\"nofollow\" href=\"https://css-tricks.com/css-using-declarations-just-once/\">CSS Optimization: Is Using Declarations Just Once (UDJO) Still Effective Today?</a> originally handwritten and published with love on <a rel=\"nofollow\" href=\"https://css-tricks.com\">CSS-Tricks</a>. You should really <a href=\"https://css-tricks.com/newsletters/\">get the newsletter</a> as well.</p>","score":2},{"source":"https://javascriptweekly.com/rss","sourceHost":"javascriptweekly.com","title":"How X (Twitter) is rebuilding its web app","link":"https://javascriptweekly.com/issues/810","pubDate":"Tue, 10 Nov 2026 00:00:00 +0000","description":"<table border=0 cellpadding=0 cellspacing=0 align=\"center\" border=\"0\">\n  <tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <div>    \n    <table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr>\n<td align=\"left\" style=\"padding-left: 4px; font-size: 15px; line-height: 1.48em;\"><p>#​810 — November 10, 2026</p></td>\n<td align=\"right\" style=\"padding-right: 4px; font-size: 15px; line-height: 1.48em;\"><p><a href=\"https://javascriptweekly.com/link/192692/rss\" style=\" color: #3366aa;\">Read on the Web</a></p></td>\n</tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\" font-size: 15px; line-height: 1.48em;\"></td></tr></table>\n    \n    <table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0 12px;\"><p>JavaScript Weekly</p></td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <a href=\"https://javascriptweekly.com/link/192646/rss\" style=\" color: #3366aa;\"><img src=\"https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/oxtotle26xtvjolphndc.jpg\" width=\"640\" style=\"    line-height: 100%;    \"></a>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192646/rss\" title=\"blog.x.com\" style=\" color: #3366aa;    font-size: 1.1em; line-height: 1.4em;\">How X (Twitter) is Rebuilding Its Web App</a></span> — X is replacing 3 servers with one app built on React, Vite and Fastify. Yagiz, famed for his performance work on Node, explains the streaming architecture behind it, along with some bottlenecks they had to fix, like how hundreds of tiny JavaScript files slowed startup.</p>\n  <p>Yagiz Nizipli (X Engineering Blog) </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  <a href=\"https://javascriptweekly.com/link/192645/rss\" style=\" color: #3366aa;   \"><img src=\"https://res.cloudinary.com/cpress/image/upload/c_limit,w_480,h_480,q_auto/copm/966f3f3a.png\" width=\"145\" height=\"145\" style=\"padding-top: 12px; padding-left: 12px;     line-height: 100%; \"></a>\n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192645/rss\" title=\"link.svix.com\" style=\" color: #3366aa;    font-size: 1.05em;\">Why Standard Webhooks Hit 118m npm Downloads a Month</a></span> — OpenAI, Anthropic, and Gemini all sign webhooks with Standard Webhooks, the open spec Svix started. That's one finding in the State of Webhooks 2027, where we scored 489 API companies on retries and signatures. <a href=\"https://javascriptweekly.com/link/192645/rss\" style=\" color: #3366aa;   \">Immediate download, no email required</a>.</p>\n  <p>Svix <span style=\"text-transform: uppercase; margin-left: 4px; font-size: 0.9em;   color: #993 !important; padding: 1px 4px; \">sponsor</span></p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192647/rss\" title=\"v3.parceljs.org\" style=\" color: #3366aa;    font-size: 1.05em;\">Parcel 3 Alpha: The Bundler Rewritten in Rust</a></span> — A ground-up Rust rewrite of the popular bundler that the team reports is up to 100x faster than Parcel 2 at cold builds of React Spectrum. It runs as a standalone binary without Node, with support for native plugins written in Rust, Go or Swift, while JavaScript plugins run on an embedded QuickJS runtime.</p>\n  <p>The Parcel Team </p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<p><strong>IN BRIEF:</strong></p>\n<ul>\n<li>\n<p>📊 The <a href=\"https://javascriptweekly.com/link/192648/rss\" style=\" color: #3366aa; font-weight: 500;   \">State of JavaScript 2026 survey is now open</a>. Share the features, libraries and tools you use and like, and discover a few new ones along the way. We'll share the results once they're out.</p>\n</li>\n<li>\n<p>TypeScript 7's Go-powered compiler now has <a href=\"https://javascriptweekly.com/link/192649/rss\" style=\" color: #3366aa; font-weight: 500;   \">an experimental WebAssembly build</a> which already powers an early <a href=\"https://javascriptweekly.com/link/192650/rss\" style=\" color: #3366aa; font-weight: 500;   \">TypeScript Playground v2</a>.</p>\n</li>\n<li>\n<p>ESLint <a href=\"https://javascriptweekly.com/link/192651/rss\" style=\" color: #3366aa; font-weight: 500;   \">now officially lints shell scripts</a> with the <code>@eslint/shell</code> plugin adding ShellCheck-like rules for Bash, sh and mksh.</p>\n</li>\n</ul>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<p><strong>RELEASES:</strong></p>\n<ul>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192652/rss\" style=\" color: #3366aa; font-weight: 500;   \">Playwright 1.65</a> – The browser testing tool's test runner can now run under Bun, plus there's a new failures reporter.</p>\n</li>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192653/rss\" style=\" color: #3366aa; font-weight: 500;   \">Storybook 11 Beta</a> – The UI component workshop gets more agent-ready, with official skills, Claude/Codex plugins, headless CLI tools, and more.</p>\n</li>\n<li>\n<p>🔒 Vite has disclosed <a href=\"https://javascriptweekly.com/link/192654/rss\" style=\" color: #3366aa; font-weight: 500;   \">a critical remote code execution flaw</a> affecting <em>dev</em> servers exposed to the network via <code>--host</code> or <code>server.host</code>. Upgrade to 8.3.7, 8.2.5, 8.1.7, 7.3.8 or 6.4.6.</p>\n</li>\n<li>\n<p>🔒 Next.js <a href=\"https://javascriptweekly.com/link/192655/rss\" style=\" color: #3366aa; font-weight: 500;   \">16.4.5 and 15.5.29 fix seven security issues</a>, including a high-severity cross-tenant cache disclosure.</p>\n</li>\n<li>\n<p>🔒 Node.js <a href=\"https://javascriptweekly.com/link/192656/rss\" style=\" color: #3366aa; font-weight: 500;   \">security releases are due tomorrow</a> (or shortly after) for the 26.x, 24.x and 22.x lines.</p>\n</li>\n</ul>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0;\"><p>📖  Articles and Videos</p></td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <a href=\"https://javascriptweekly.com/link/192657/rss\" style=\" color: #3366aa;\"><img src=\"https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/yjfttwj00vb3oqvzibqd.jpg\" width=\"640\" style=\"    line-height: 100%;      \"></a>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192657/rss\" title=\"blog.arv.tools\" style=\" color: #3366aa;    font-size: 1.05em;\">Experiments with Multithreaded JavaScript</a></span> — What would JavaScript look like if threads could share objects directly? Former TC39 delegate Erik Arvidsson explores three approaches: in a <a href=\"https://javascriptweekly.com/link/192658/rss\" style=\" color: #3366aa;   \">Porffor</a> fork, as a TypeScript library with an ownership checker, and as an implementation of the <a href=\"https://javascriptweekly.com/link/192659/rss\" style=\" color: #3366aa;   \">TC39 structs proposal</a>. Each has a playground to try.</p>\n  <p>Erik Arvidsson </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192660/rss\" title=\"nodejs.org\" style=\" color: #3366aa;    font-size: 1.05em;\">The New JavaScript Features Between V8 14.6 and 15.6</a></span> — Node 27, released in alpha recently, is built on V8 15.6, and Joyee tours what that brings to developers, including <code>Math.sumPrecise</code>, new iterator methods, and some behavior changes in sorting, dates and promises, all with sample code.</p>\n  <p>Joyee Cheung </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192661/rss\" title=\"sentry.io\" style=\" color: #3366aa;    font-size: 1.05em;\">How to Build Your Own Automated Debugging Workflow</a></span> — Connect your coding agent to Sentry and turn errors into fix PRs. See the guides and recipes in the resource hub.</p>\n  <p>Sentry <span style=\"text-transform: uppercase; margin-left: 4px; font-size: 0.9em;   color: #993 !important; padding: 1px 4px; \">sponsor</span></p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192662/rss\" title=\"mofu-dev.com\" style=\" color: #3366aa;    font-size: 1.05em;\">Spreading Liquid with <code>three.js</code></a></span> — A technical explanation of a 'liquid-spreading' effect originally built for a cosmetics site. The in-page demo is fun to play with and this could be handy if you want to create paint-like effects.</p>\n  <p>Misaki Nakano </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192663/rss\" title=\"jamesbox.exe.xyz\" style=\" color: #3366aa;    font-size: 1.05em;\">Reviving Facebook's Abandoned JavaScript Optimizer</a></span> — Prettier creator James Long put agents to work resurrecting <a href=\"https://javascriptweekly.com/link/192664/rss\" style=\" color: #3366aa;   \">Prepack</a>, Facebook's attempt to make JavaScript faster by running it ahead of time. There's <a href=\"https://javascriptweekly.com/link/192665/rss\" style=\" color: #3366aa;   \">an experimental demo</a> that shows off the gains on a sample React app.</p>\n  <p>James Long </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192666/rss\" title=\"yavashark.dev\" style=\" color: #3366aa;    font-size: 1.05em;\">Yavashark: Building a JavaScript Engine for 950 Days Straight</a></span> — A solo developer's progress report on a Rust-based engine they're building that passes around 82% of test262 and can server-render a React app. There's <a href=\"https://javascriptweekly.com/link/192667/rss\" style=\" color: #3366aa;   \">a playground</a> to try it for yourself.</p>\n  <p>Sharktheone </p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<p>📄 <a href=\"https://javascriptweekly.com/link/192668/rss\" style=\" color: #3366aa; font-weight: 500;   \">A Fifth Object Shape Made the Same Loop Twice as Slow</a> – V8's hidden classes and inline caches in action. <cite>Mohsen Fallahnejad</cite></p>\n<p>📺 <a href=\"https://javascriptweekly.com/link/192669/rss\" style=\" color: #3366aa; font-weight: 500;   \">ReactiveScript: Early Findings</a> – A lengthy stream by Solid's creator on <a href=\"https://javascriptweekly.com/link/192670/rss\" style=\" color: #3366aa; font-weight: 500;   \">ReactiveScript</a>, his experimental reactive UI language he <a href=\"https://javascriptweekly.com/link/192671/rss\" style=\" color: #3366aa; font-weight: 500;   \">first shared in 2021</a>. <cite>Ryan Carniato</cite></p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0;\"><p>🛠 Code &amp; Tools</p></td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <a href=\"https://javascriptweekly.com/link/192672/rss\" style=\" color: #3366aa;\"><img src=\"https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/mhgipfuzi5v4n6zlnbaj.jpg\" width=\"640\" style=\"    line-height: 100%;      \"></a>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192672/rss\" title=\"www.embedpdf.com\" style=\" color: #3366aa;    font-size: 1.05em;\">EmbedPDF 3.0: A PDF Viewer for Any JavaScript App</a></span> — An open-source PDF viewer for vanilla JavaScript, React, Vue, Svelte and Angular. The <a href=\"https://javascriptweekly.com/link/192673/rss\" style=\" color: #3366aa;   \">v3 rebuild</a> offers a ready-made viewer, headless components for custom UIs, and a standalone PDF engine. <a href=\"https://javascriptweekly.com/link/192674/rss\" style=\" color: #3366aa;   \">Try the demo.</a></p>\n  <p>EmbedPDF </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192675/rss\" title=\"playground.developers.thinkfree.com\" style=\" color: #3366aa;    font-size: 1.05em;\">Embed an Office Editor Your App's AI Agent Can Use</a></span> — DOCX/XLSX/PPTX editing in your app with your model and workflow. Agents make targeted edits, and users refine the file.</p>\n  <p>Thinkfree <span style=\"text-transform: uppercase; margin-left: 4px; font-size: 0.9em;   color: #993 !important; padding: 1px 4px; \">sponsor</span></p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192676/rss\" title=\"github.com\" style=\" color: #3366aa;    font-size: 1.05em;\">chrome-capture: Record a Chrome Tab at 60-120fps to an MP4 File</a></span> — It's been <em>three</em> years since we've linked to Paul Irish (once a frequent fixture in JavaScript Weekly!) but he's back with a neat, compact tool you can run with <code>npx</code> to record a Chrome tab at high quality <em>including audio</em> to an <code>MP4</code> video.</p>\n  <p>Paul Irish </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192677/rss\" title=\"textjs.org\" style=\" color: #3366aa;    font-size: 1.05em;\">Text.js: React Apps That Render in the Browser Console</a></span> — Really! A React 19 framework whose 'screen' is the DevTools console, with routing, keyboard input, layout primitives and ASCII fonts. Open the console on the homepage to try it, then <code>bunx create-text-app</code> if you're tempted. <a href=\"https://javascriptweekly.com/link/192678/rss\" style=\" color: #3366aa;   \">GitHub repo.</a></p>\n  <p>Anomaly </p>\n</td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n  \n  <p><span style=\"font-weight: 600; font-size: 1.1em; color: #000;\"><a href=\"https://javascriptweekly.com/link/192679/rss\" title=\"www.jeasx.dev\" style=\" color: #3366aa;    font-size: 1.05em;\">Jeasx 3.0: Server-Rendered JSX, Now Streaming</a></span> — A minimal framework that uses JSX purely as a server-side templating language (with no React and no hydration) on top of Fastify and esbuild. v3 streams pages while async components are still loading and renders ~2x faster. <a href=\"https://javascriptweekly.com/link/192680/rss\" style=\" color: #3366aa;   \">Live examples.</a></p>\n  <p>Jeasx </p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<ul>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192681/rss\" style=\" color: #3366aa; font-weight: 500;   \">Rolldown 1.3</a> – The Rust-powered bundler adds experimental support for import attributes, but there are breaking changes to be aware of.</p>\n</li>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192682/rss\" style=\" color: #3366aa; font-weight: 500;   \">jsdom 31.0</a> – The pure JS implementation of DOM/HTML standards adds a new CSS engine and switches to a Skia-backed canvas backend.</p>\n</li>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192683/rss\" style=\" color: #3366aa; font-weight: 500;   \">Remix 3.2</a> – The full-stack framework adds nonce-based Content Security Policy middleware.</p>\n</li>\n<li>\n<p><a href=\"https://javascriptweekly.com/link/192684/rss\" style=\" color: #3366aa; font-weight: 500;   \">Wiki.js 3.3</a> – Open source JavaScript and Node.js-powered wiki app.</p>\n</li>\n</ul>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px;\">\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\" font-size: 15px; line-height: 1.48em;\"></td></tr></table>\n\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n\t<p>📰 Classifieds</p>\n  </td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<p>📺 <a href=\"https://javascriptweekly.com/link/192685/rss\" style=\" color: #3366aa; font-weight: 500;   \">JetBrains AI.js Day 2026</a>: Frontend's scariest AI questions answered live on channel 13, Nov 13. <a href=\"https://javascriptweekly.com/link/192685/rss\" style=\" color: #3366aa; font-weight: 500;   \">Register now!</a></p>\n \n<p>🔑 One subscription, a dozen people. <a href=\"https://javascriptweekly.com/link/192686/rss\" style=\" color: #3366aa; font-weight: 500;   \">Fingerprint</a> shows how many devices are really behind each account. <a href=\"https://javascriptweekly.com/link/192686/rss\" style=\" color: #3366aa; font-weight: 500;   \">Try it free</a>.</p>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\" font-size: 15px; line-height: 1.48em;\"></td></tr></table>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0;\"><p>📢  Elsewhere in the ecosystem</p></td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em;\">\n  <a href=\"https://javascriptweekly.com/link/192687/rss\" style=\" color: #3366aa;\"><img src=\"https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/lpocbjy3uza3w1yogw1i.jpg\" width=\"640\" style=\"    line-height: 100%;      \"></a>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\"font-size: 15px; line-height: 1.48em; padding: 0px 15px;\">\n<ul>\n<li>\n<p>📺 I've been enjoying Arjay McCandless's YouTube channel lately as he's been focusing on maxing out VPSes with different stacks (and often being surprised by the results). This time, he <a href=\"https://javascriptweekly.com/link/192687/rss\" style=\" color: #3366aa; font-weight: 500;   \">compares 22 combinations of JavaScript runtimes and frameworks</a> to see how many users they can handle!</p>\n</li>\n<li>\n<p>🌙 Safari 27.3 beta introduces <a href=\"https://javascriptweekly.com/link/192688/rss\" style=\" color: #3366aa; font-weight: 500;   \">Adaptive Dark Mode</a>, an opt-in feature that automatically darkens light websites that don't provide their own dark theme.</p>\n</li>\n<li>\n<p>🎨 Three.js creator mrdoob is posting <a href=\"https://javascriptweekly.com/link/192689/rss\" style=\" color: #3366aa; font-weight: 500;   \">daily visual experiments for Codevember</a>, complete with live demos and source.</p>\n</li>\n<li>\n<p>💰 Cloudflare has <a href=\"https://javascriptweekly.com/link/192690/rss\" style=\" color: #3366aa; font-weight: 500;   \">handed out the first $301,300</a> of the $1M <em>Vite Ecosystem Fund</em> it pledged when VoidZero joined, spread across 44 projects and maintainers, including e18e.</p>\n</li>\n</ul>\n</td></tr></table>\n<table border=0 cellpadding=0 cellspacing=0 border=0 cellpadding=0 cellspacing=0><tr><td style=\" font-size: 15px; line-height: 1.48em;\"></td></tr></table>\n</div>\n  </td></tr>\n</table>\n\n\n\n\n<img src=\"https://javascriptweekly.com/open/810/rss\" width=\"1\" height=\"1\" />","score":4}]}