Blog
-
Web Components vs Next.js and Nuxt: A Real-App Benchmark
We built the same Hacker News clone five times — Lit, FAST Element, Elena, Next.js 14, and Nuxt 3 — fed them through the same benchmark pipeline, and published the results. What we learned about web components, hydration-data cost, and the tradeoffs nobody advertises.
-
Litro Goes Framework-Agnostic
Litro now supports three web component frameworks — Lit, FAST Element, and Elena — through a pluggable adapter system. Here's why we built it, how it works, and what it means for your projects.
-
LitroRouter — A URLPattern Router for Web Components
LitroRouter is a zero-dependency client-side router for Lit components built on the URLPattern API. This post covers the design decisions, the API, shadow DOM scroll-to-hash, and how to use it standalone without the full Litro framework.
-
How Nitro's Deployment Adapters Work — and Why Litro Gets Them for Free
Nitro powers both Nuxt.js and Litro. That means every Nitro deployment preset — Vercel, Cloudflare Workers, AWS Lambda, Deno Deploy — works in Litro without a single line of custom adapter code.
-
File-Based Routing with Lit — A Next.js Developer's Guide
Everything you know about file-based routing from Next.js applies to Litro. Here's how the page conventions map, how data fetching works, and how to navigate between routes in a Lit-based app.
-
Building a Blog with Litro's Content Layer
A step-by-step tutorial for building a Markdown blog with Litro's content layer — getPosts(), frontmatter, tag pages, static generation, and deploying to GitHub Pages.
-
Streaming SSR with Declarative Shadow DOM — How It Works
How Litro streams server-rendered Lit components to the browser using Declarative Shadow DOM, @lit-labs/ssr, and Nitro's sendStream(). What the wire format looks like, why it matters for Core Web Vitals, and how hydration works.
-
Shadow DOM and SEO — The Problem and Litro's Solution
Web components have an SEO problem — content inside Shadow DOM is invisible to crawlers. Here's why that happens, why it matters less than you think, and how Litro eliminates the issue entirely with server-side Declarative Shadow DOM.
-
Why We Built Litro — The Case for Standards-Based Development
React and Vue solved real problems in 2013. But the web platform has caught up. Here's why we think web components, URLPattern, and Declarative Shadow DOM are the right foundation for a modern fullstack framework.
-
Welcome to Litro
Introducing Litro — a fullstack web framework built on Lit, Nitro, and Vite.
Litro