SvelteKit Content Collections
Ilja
September 26, 2025
Context
Just a quick note for easier sharing!
TL;DR for the impatient - all courtesy of Josh Nussbaum:
intro: https://youtu.be/sfuFAZlEeUs
code: https://github.com/joshnuss/sveltekit-content-blog
docs: https://www.content-collections.dev/
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:
Bluesky post
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:
YouTube video
Repo: https://github.com/joshnuss/sveltekit-content-blog
So please,
watch and upvote Josh's video
star Josh's repo
star sdorra/content-collections
and spread the word!
Bluesky post
Discussion in the ATmosphere