RSS aggregator JS Ecosystem News
Live feed0 visits
2 today 12 unread
Lead story dev.to 1 hour ago Fresh today Unread

Why Pure LRU Cache Eviction Fails Under Scan Workloads (And How W-TinyLFU Fixes It)

Standard Least Recently Used (LRU) caches have an Achilles' heel known as cache pollution (or scan resistance failure):
Suppose your in-memory cache holds 10,000 hot keys (e.g., active user sessions and top catalog items) with a 98% hit rate. Suddenly, a background reporting job or web crawler scans 10,000 one-off historical records.
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 0%!
To solve this in KVDock, we built a zero-dependency Window-TinyLFU (MemoryWTinyLFUAdapter) admission policy alongside our classic LRU and byte-sized adapters.
🎮 Launch the Live Browser Cache & Stampede Simulator

👤 Follow @zisam-glitch on GitHub for weekly systems engineering deep dives!

⭐ Star zisam-glitch/kvdock on GitHub

How W-TinyLFU Protects Your Hot Working Set
Instead of blindly admitting every new key into the main cache, W-TinyLFU combines:
A 1% Window LRU: Absorbs short-term burst traffic.
A Compact Count-Min Sketch Frequency Filter: Tracks access frequency using minimal memory (4-bit counters with periodic halving to keep frequency fresh).
A 99% Segmented LRU (Probation + Protected): 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!

import { KVDock } from "kvdock"; import { MemoryWTinyLFUAdapter } from "kvdock/adapters/memory-wtinylfu"; const dock = new KVDock({ adapter: new MemoryWTinyLFUAdapter({ maxEntries: 10_000 }), ttl: 300_000, }); // One-off scan keys are rejected by the TinyLFU admission filter, // preserving your hot working set in the Protected segment! const value = await dock.getOrSet("user:hot:42", () => fetchUser(42));
Explore the Codebase
📦 GitHub Repository: https://github.com/zisam-glitch/kvdock
👤 Author Profile: https://github.com/zisam-glitch

If you enjoy deep-dive systems architecture in TypeScript, Rust, and Go, follow @zisam-glitch on GitHub and drop a ★ Star on kvdock!
Nov 23, 2026, 4:42 PMSignal 5
Open article
dev.to3 hours ago
Unread Today

On the Tailwind CSS checkout I measured, VitestDedup 0.11.0 made 3,721 test registrations available for com...

Open
dev.to22 hours ago
Unread

"We all want progress. But progress means getting nearer to the place where you want to be. And if you have...

Open
dev.toyesterday
Unread

Imagine deploying an event booking Telegram Mini App built with Vue 3. In local testing, everything appears...

Open

Live feed

Latest ranked updates

1 / 8
dev.to 3 days ago Unread
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.
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:
The Roadmap
Lessons 1–25: Foundations & Composition API Getting comfortable with the modern Vue 3 paradigm. This covers everything from project setup with Vite to ref/reactive rules, conditional rendering, and complex side-effect management.
Lessons 26–50: Component Architecture Moving into advanced reusability. You’ll cover lifecycle hooks, custom events, slot patterns, provide/inject for deep dependency injection, and extracting complex logic into custom composables.
Lessons 51–75: The Ecosystem (Pinia, Nuxt, & Testing) Integrating professional tooling. This section dives into Pinia state management, client-side routing, full-stack frameworks like Nuxt, and ensuring quality with Vitest and Playwright.
Lessons 76–101: Internals, Performance, & Vapor Mode The senior-level deep dive. Learn about the compiler, custom renderers, memory leak profiling, SSR/SSG mechanics, and the upcoming Vapor Mode architecture.

Why this matters
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.
Who this is for
Mid-level developers looking to solidify their understanding of the Composition API and Pinia.
Senior engineers transitioning from other frameworks (like React) who need a deep dive into Vue’s internal mechanics without the fluff.

You can check out the full curriculum here:
Vue.js 101-Lesson Series
What is the one Vue topic you feel is missing from most tutorials?
Open 9 pts · Nov 20, 2026, 5:38 PM
dev.to 4 days ago Unread
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.
So I built AllUtility—a Dieter Rams-inspired, 100% browser-local suite of 30 web utilities across 5 locales (en, ko, es, zh, ja), including a Three.js 3D Studio Lighting Diagram Simulator I originally made for teaching photography.
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 295 programmatic routes.
1. The Silent YAML Frontmatter Stripping Bug
I had written 150 localized Markdown guides (5 locales × 30 tools) with rich long-tail titles in YAML frontmatter. Yet Google Search Console showed our pages competing only on impossible head terms like "Compound Interest Calculator".
The culprit was a single regex in our server API route that stripped the frontmatter block before returning the Markdown body, leaving useSeoMeta falling back to short tool names:

// Before: Long-tail SEO metadata was silently discarded const rawMarkdown = await fs.readFile(filePath, 'utf-8') const bodyContent = rawMarkdown.replace(/^---\n[\s\S]*?\n---\n*/, '') // After: Parse frontmatter directly into the SSR payload function parseFrontmatter(raw: string) { const match = raw.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n*/) if (!match) return { meta: {}, body: raw } const meta: Record<string, string> = {} for (const line of match[1].split(/\r?\n/)) { const idx = line.indexOf(':') if (idx > 0) { const key = line.slice(0, idx).trim() const val = line.slice(idx + 1).trim().replace(/^['"]|['"]$/g, '') meta[key] = val } } return { meta, body: raw.slice(match[0].length) } }
Restoring those frontmatter fields immediately expanded targeting across 150 existing routes without writing a single line of new copy.
2. Localizing Search Intent Instead of Literal Translation
Users rarely search for "Unit Converter"—they search for specific scenarios (sq ft to m2, reverse VAT, 30-year mortgage schedule).
To capture this without generating thousands of spammy thin pages, we added 20 curated preset routes per locale (100 URLs) and 5 category hubs per locale (25 URLs). Two rules prevented thin-content flags:
SSR Reference Tables & FAQs: Every /tools/[slug]/[preset] route renders a dedicated <h1>, pre-hydrated calculator state, an SSR HTML reference <table>, and FAQPage + BreadcrumbList JSON-LD with explicit root name and @id.
Jurisdiction-Aware Presets: Literal translation creates dead URLs. For example, Korea's 3.3% freelance withholding tax doesn't exist elsewhere—so the same withholding-tax-reverse preset maps to localized Net-to-Gross (Gross-Up) withholding scenarios in English, Spanish (Retención), Japanese (10.21% 源泉徴収), and Chinese.

3. Shareable Query Strings vs. Canonical Bloat
Calculators grow organically when users paste pre-filled result links into chats or forums (?principal=50000&rate=4.5). However, letting search bots index parameterized URLs splits crawl budget.
We paired a reactive URL-state composable with a strict canonical guard in app.vue so every parameterized link still points back to its clean route:

const route = useRoute() const siteUrl = '[https://allutility.net](https://allutility.net)' const cleanCanonical = computed(() => { const cleanPath = route.path === '/' ? '' : route.path.replace(/\/+$/, '') return `${siteUrl}${cleanPath || '/'}` }) useHead(() => ({ link: [{ rel: 'canonical', href: cleanCanonical.value }] }))
4. The In-App WebView Clipboard Trap
After deploying GA4 interaction events (tool_execute, tool_copy, tool_download), tool_copy stayed suspiciously at zero on mobile—especially from messenger in-app browsers.
Testing under in-app WebView constraints revealed two issues:
Nested workspace padding pushed the primary tool input down past Y = 630px on 375×812 viewports. Compacting mobile chrome brought every editor up to Y = 338–477px (cleanly above the fold) while keeping CLS at 0.001.
Calling navigator.clipboard.writeText() alone threw NotAllowedError in restricted WebViews before the analytics callback fired. Wrapping clipboard writes with a synchronous hidden <textarea> fallback fixed both UX and telemetry.

Wrapping Up
We rounded out the pipeline by serving a structured /llms.txt manifest and triggering automatic IndexNow submissions (continue-on-error: true) at the end of our GitHub Actions Docker deploy.
Live Suite (Zero Signup / Zero Upload): https://allutility.net/en
3D Studio Lighting Simulator: https://allutility.net/en/tools/photo-diagram/rembrandt-portrait
Full Engineering Archive & Architecture Diagrams: inmokang.com/projects/allutility

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!
Open 3 pts · Nov 19, 2026, 11:44 AM
dev.to 5 days ago Unread
Serving real-time sports statistics and match predictions comes with a unique architectural challenge: unpredictable traffic spikes paired with constantly changing data.
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.
While building and scaling Tipsfoot, we solved this by combining Nuxt's Nitro SWR (Stale-While-Revalidate) caching with Cloudflare Workers for automated cache warming. Here is how the architecture works in production.
The Core Problem: Freshness vs. TTFB
For an SEO-driven sports platform, you need two things at the same time:
Instant TTFB (< 100ms) so Googlebot can crawl thousands of fixture URLs efficiently and users don't bounce.
Fresh data (updated xG models, 1X2 probabilities, and pre-match lineups) without hammering your upstream API or Redis/MongoDB instances on every single request.

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.
Step 1: Configuring Nitro SWR in nuxt.config.ts
Nuxt's built-in server engine, Nitro, makes route-level caching remarkably clean via routeRules. Instead of caching everything blindly, we split our routes by how frequently their data changes:
Match & Prediction pages: Cached with swr 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.
League & Static Guides: Longer SWR window (1 to 6 hours).
API endpoints: Short edge caching or bypassed depending on real-time needs.

typescript // nuxt.config.ts export default defineNuxtConfig({ nitro: { routeRules: { // Homepage & daily fixtures: revalidate every 5 minutes '/': { swr: 300 }, // Individual match analysis pages: revalidate every 10 minutes '/pronostic/**': { swr: 600 }, // League tables & historical stats: revalidate every hour '/classement/**': { swr: 3600 }, // Ensure API routes don't get stuck with stale responses '/api/**': { cors: true, headers: { 'cache-control': 'no-cache' } } } } }) With this setup, if 500 users request the same match page within 10 minutes, Nitro only executes the SSR render once. Step 2: Eliminating Cold Starts with Cloudflare Workers SWR 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. To 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. // cloudflare-worker-warmer.js export default { async scheduled(event, env, ctx) { const priorityUrls = [ '[https://tipsfoot.com/](https://tipsfoot.com/)', '[https://tipsfoot.com/loto-foot](https://tipsfoot.com/loto-foot)', // You can also fetch a dynamic JSON list of today's top fixtures ]; const warmCache = async (url) => { try { const response = await fetch(url, { headers: { 'User-Agent': 'Tipsfoot-Cache-Warmer/1.0', }, }); console.log(`Warmed ${url} - Status: ${response.status}`); } catch (err) { console.error(`Failed to warm ${url}:`, err); } }; // Execute requests concurrently ctx.waitUntil(Promise.all(priorityUrls.map(warmCache))); }, }; By scheduling this worker every 10 minutes via wrangler.toml: [triggers] crons = ["*/10 * * * *"] The cache stays permanently warm before kickoff, meaning both users and crawlers consistently hit an already-rendered HTML payload. Step 3: Cache Busting for Dynamic Assets One 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. Appending 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. Key Takeaways Moving from pure SSR to Nitro SWR + Cloudflare Worker warming gave us three immediate wins: CPU usage dropped by over 70% during weekend matchday peaks. Consistent sub-100ms TTFB across thousands of programmatic fixture pages. Zero database bottlenecks, allowing our Node.js workers to focus purely on data ingestion and probability calculations. If 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. We 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!
Open 7 pts · Nov 19, 2026, 5:25 AM
github.blog 6 days ago Unread
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.
The post Maintainers don’t need more AI bug reports. They need fixes.  appeared first on The GitHub Blog.
Open 4 pts · Nov 17, 2026, 6:29 PM
smashingmagazine.com 6 days ago Unread
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)
Open 2 pts · Nov 17, 2026, 12:00 PM
javascriptweekly.com 7 days ago Unread
#​811 — November 17, 2026
Read on the Web
JavaScript Weekly
npkill 1.0: Not Just for node_modules Anymore — npx npkill has long offered a way to find and remove waste from node_modules folders. Its first release in two years now also hunts down caches and build outputs like .next and .turbo, with 'profiles' for 20 ecosystems. If you're new to the tool, its homepage provides a good introduction.
Juan Torres
Agents Didn’t Clear Your Plate. They Dumped Reviews on It — 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 & ElevenLabs have their afternoons back. You can too.
Meticulous sponsor
UI SDK: Headless UI Behaviors for React, Vue, Svelte, & Solid — 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).
Vercel
💡 𝕏 As shadcn says: "You and I don't need the same interfaces. We need the same interface behaviors." The idea is an agent, say, can generate whatever UI suits a task, with reusable focus, keyboard, and accessibility behaviors built in.
IN BRIEF:
Solid 2.0 is now stable, with 2.0.0 now on npm and the docs updated to match. There's no official announcement post (beyond the earlier Solid 2.0 RC posts) so expect more on this soon.

The Chrome team has proposed a Cross-Origin Storage API for sites to share large assets like AI models and WASM modules, so users would only have to download them once.

The cloud-based JavaScript hosting service Val Town is winding down with services ending January 10 and the code being open sourced in February.

The Bun team has published a dense technical tour of how its in-development ahead-of-time compiler works.

RELEASES:
Prettier 3.10 – 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 Yuku's JS/TS parsers for speed.

🎨 p5.js 2.4 – The creative coding library expands its SVG and 3D model support. Here's a starter sketch if you want to play quickly.

🔒 Node.js v26.13.1 (LTS), v24.22.3 and v22.23.5 – The security releases 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.

PixiJS 3D – The popular 2D rendering library's official 3D engine is now in open beta. It's WebGPU-first, with a WebGL 2 fallback.

📖  Articles and Videos
📊 e18e's Ongoing Benchmarks of JavaScript Meta-Frameworks — The e18e 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. This dashboard is the place to dive in.
e18e
🤖 The Top 10 Things AI Gets Wrong in Web Development — The Chrome team examines where coding agents fall back on dated techniques, like hand-rolled focus traps instead of inert and JS overlays instead of popover, alongside gaps in passkey implementations and XSS defenses. A handy checklist for humans too.
Philip Walton (Google)
AI Security for Modern JavaScript & TypeScript — Traditional tools miss logic gaps. SonarQube Hunter Agent catches broken access control in your JS/TS CI/CD pipeline.
SonarSource sponsor
How a Third-Party Script Turned Malicious on Major Sites — An attacker exploited a flaw in Optimizely's A/B testing platform to inject a (now removed) 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.
Scott Helme (Report URI)
💡 Third-party scripts are an increasingly common attack vector, as Polymarket's users recently found. If you load any, brush up on CSP and Subresource Integrity, and if you provide them, see how Fathom secures theirs.
How Promises Really Resolve, Explained via a WebKit Bug — A contrived promise that should have thrown instead caused Bun and Safari (both of which use JavaScriptCore) to hang. Alistair fixed the bug and uses it to explain what resolve() actually does and why resolved isn't 'a real promise state'.
Alistair Smith
The Web Is More Than Enough — 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.
Paul Ford
Your JS Error Is Lying to You — Why can JSON.stringify(err) unexpectedly leave you with {}? Gabor presents a tour of what an Error holds, and how much of that makes it through stack traces, cause chains, worker boundaries, and loggers like Pino and Winston.
Gabor Koos
📄 How 13,000 Local Variables in a Function Overflowed V8's Stack – And why would that ever happen? It was the output of an OCaml to JS transpiler… :-) Jérôme Vouillon
📄 A Universal XSS in uBlock Origin via Its Element Picker – Leans on an interesting (and now fixed) postMessage and iframe exploit chain. Smitty van Bodegom
📄 Migrating 10,144 Tests from Jest to Vitest in Three Weeks Daniele Rossino
🛠 Code & Tools
BrowserPod 4.0: A Linux-Like MicroVM for the Browser — 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).
Leaning Technologies
💡 Going somewhat deeper, Nitro creator Pooya Parsa has compiled the actual Linux kernel to WebAssembly (repo). It boots to a shell in under a second in modern browsers, or via npx unkernel (tip: use halt to exit!).
Debug Errors and Agents Faster: Sentry Changelog Live — A walkthrough of what’s new in debugging, from fixing prod bugs with Seer to tracing your agents. Register today.
Sentry sponsor
Kitesurf: Cloudflare's Browser Engine Now Open Source — An experimental browser for agents we featured in August. Mostly written in TypeScript and runs JavaScript in V8 isolates on Workers, with Rust compiled to WASM for layout and painting. There's no Chromium, and Puppeteer can drive it.
Cloudflare
File Viewer: A Multi-Format File Viewer for Internal Apps — Read-only views for Office, PDF/OFD, CAD, archives, email and other complex formats, with integrations for React, Vue, and Svelte. The docs site has demos showing off the formats covered.
Flyfish Dev
Flashwright: A Faster, API-Compatible Playwright Fork — 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 this post explains how it works.
Codebeast
React Flow 13: The Node-Based UI Library Gets Faster — The first major release in two years cuts re-renders in large flows, with new useNode and useEdge hooks. Vue Flow has joined the xyflow family too.
xyflow
SlickGrid 6.0 (above) – Long-standing data grid component. Now with zero dependencies, plus pinning on all four sides and sticky rows and columns. Examples and introductions on the project homepage.

XState v6 Beta – First beta of the state machine/actor library's next major version. The core API is considered stable and you can try it with xstate@beta.

🕹️ Excalibur 1.0 – After 13 years, the 2D TypeScript game engine reaches v1 with 2D lighting, a plugin API, and a rebuilt Web Audio mixer. Sample games here.

🕹️ JSNES 3.0 – JavaScript NES emulator. Now has a cycle-accurate core that passes all 134 'AccuracyCoin' tests. There are playable demos here.

type-fest 6.0 – Popular collection of essential TypeScript types (listed here). v6.0 adds 120 new types and requires TypeScript 6.

Fontkit 3.0 – Advanced font engine for Node and the browser. Now ESM-only, with a new core export so you can ship only the formats needed.

dts-bundle-generator 10.0 – A tool to tree-shake and bundle a project's TypeScript declarations into one file.

📰 Classifieds
📄 Parsing PDFs for a RAG or invoice pipeline? Foxit compares 10 document parsing APIs on output format, billing units and accuracy claims.
🌙 Agents can test mobile code at 3am. Expo Simulators gives them cloud simulators, so the loop runs while you sleep.
Stop being the middle manager for your coding agents. CodeAF runs the org, and only what no manager can settle reaches you. #1 on DeepSWE.
📢  Elsewhere in the ecosystem
You Don't Need jQuery, the long-standing guide to replacing jQuery methods with plain JavaScript, has had a big v3.0 update. Internet Explorer fallbacks are out in favor of modern one-liners like el.replaceChildren(), structuredClone(), and Promise.withResolvers().

Adam Argyle shares PropFLIP, a take on FLIP (First, Last, Invert, Play) animations where four @property custom properties do the inverting and a CSS transition does the playing.

AWS has released AWS Emulator, an official local emulator you can point your AWS SDK or CLI at, covering hundreds of its service interfaces. It's largely aimed at agents, and was built with them too.

🎂 Happy birthday to Svelte! Svelte turned ten years old on Monday (Rich Harris made its first commit on November 16, 2016).

Open 2 pts · Nov 17, 2026, 12:00 AM

Scroll down to load more stories.