Blog
Notes on Svelte, AI and building for the web.
Making a SvelteKit Site Findable by AI Agents and Search
One linked JSON-LD graph with svead, llms.txt generated from the same data as the pages, a robots.txt that welcomes AI crawlers, honest sitemap dates and PNG link cards. What I shipped on this site and why.
- sveltekit
- svelte
Privacy-first analytics in SvelteKit with node:sqlite
Page view analytics with no cookies, no third-party script and no dependencies: a SvelteKit handle, an in-memory queue, node:sqlite and a visitor hash that rotates every day.
- sveltekit
- svelte
SvelteKit remote functions in practice: query, prerender and command
Three real remote functions on svelteconsulting.dev: a query for the Ctrl+K search index, a prerender for GitHub data and commands for analytics. Including the four attempts it took to get the query right.
- svelte
- sveltekit
Upgrading a SvelteKit site to Kit 3, Vite+ and node 24: what actually broke
A first-hand account of moving two production SvelteKit sites to SvelteKit 3, Vite+, TypeScript 6 and node 24, and the handful of things that broke along the way.
- svelte
- sveltekit
What Changed in Svelte and SvelteKit in 2026
Async Svelte, remote functions, SvelteKit 3, adapter-node 6, TypeScript 7 and Vite+. What I have running in production, what broke on the way, and what it means if your team is deciding whether to upgrade.
- svelte
- sveltekit
Building a Svelte UI for an AI Agent Product
How I build SvelteKit front ends for AI agent products: keep the model on the server, treat each run as persisted data, stream status with remote functions, check permissions on every action and test the whole thing in a real browser.
- svelte
- sveltekit
Running a Large SvelteKit App in Production: Permissions, Auth, SQL and Zero-Downtime Deploys
What holds a big multi-tenant SvelteKit app together in production: attribute-based permissions that compile to SQL, Better Auth over a pg Pool, raw SQL instead of an ORM, and ECS rollouts that never drop a request.
- svelte
- sveltekit
AI-Assisted SvelteKit Development: What Actually Works
After two years using AI coding assistants daily on production SvelteKit apps, here is what works, what does not, and how to adopt it effectively.
- sveltekit
- claude
Why Your Svelte 5 Tests Should Run in Real Browsers
JSDOM has served us well, but Vitest browser mode with vitest-browser-svelte is the future of Svelte testing. Here is why your team should migrate.
- svelte
- sveltekit
Migrating from @testing-library/svelte to vitest-browser-svelte
A practical guide to migrating your Svelte test suite from @testing-library/svelte to vitest-browser-svelte with real browser testing.
- svelte
- sveltekit
Building a Layered Defense System with SvelteKit and Cloudflare
Learn how to implement an effective defense-in-depth strategy using SvelteKit and Cloudflare to protect your web applications. This practical guide shows how to combine honeypot domains, WAF rules, and Turnstile protection while following OWASP security standards.
- security
- sveltekit
Building SvelteConsulting.dev with Cline: A One-Shot Prompt Success Story
How contextual documentation and a single prompt created a dynamic, SEO-optimized SvelteKit consulting website in just 9 hours
- svelte
- sveltekit
Dynamic SVG Cover Images: Enhancing Your SvelteKit Blog
A practical guide to implementing dynamic, programmatically generated SVG cover images for your SvelteKit blog posts, improving visual consistency, performance, and social media presence without relying on external image creation tools
- sveltekit
- svg
Accelerating Business Growth with SvelteKit: From Onboarding to Production
Discover how SvelteKit's intuitive design accelerates developer onboarding and delivers rapid business value through efficient team adoption and streamlined development processes
- sveltekit
- development