fubits.dev fubits.dev

SvelteKit Content Collections

Published:
Svelte 5SvelteKitContent CollectionsMarkdown

Context

Just a quick note for easier sharing!

TL;DR for the impatient - all courtesy of Josh Nussbaum:

Content Collections (e.g. for Markdown-based blogs) are a re-occuring topic and sometimes a pain point in my day-to-day work and for other Svelte / SvelteKit devs.

While Astro has a superb native content story (also used for this blog), SvelteKit has been lacking a viable solution so far. The new async + remote functions era will bring new momentum for sure - but that’s yet in the future.

In November 2024 I gave a talk about Svelte in Astro and also compared it against SvelteKit from a solo freelance dev’s point of view:

Ilja

I gave a talk on this topic and now I realise that I should do a simple write-up. To me, the comparison is not so much about Astro vs Svelte. It’s rather about (Astro + Svelte) vs SvelteKit.

Screenshot of a slide comparing Astro to SvelteKit with bullet points.
May 10, 2025 at 10:54 PM UTC

SvelteKit Content Collections: ???

Almost a year in I would evaluate a bunch of my claims differently now.

But more specifically, Svelte Core Maintainer Ben McCann actually pointed me to www.content-collections.dev as early as in May 2025. It’s open source: github.com/sdorra/content-collections. I just hadn’t had the time to test it yet.

Luckily, Josh Nussbaum did test it and released a 7-minute introduction on YouTube and also shared the code on GitHub:

Play

Repo: https://github.com/joshnuss/sveltekit-content-blog

So please,

Josh Nussbaum

📺 New video: How to build a blog with Content Collections and SvelteKit ✨ youtu.be/sfuFAZlEeUs

How to build a blog with Content Collections and SvelteKit

youtu.be

How to build a blog with Content Collections and SvelteKit

YouTube video by Josh Nussbaum

September 25, 2025 at 2:40 PM UTC