> Canonical URL: https://codingcat.dev/podcast/sveltekit-with-notion-cms

# SvelteKit with Notion CMS

🎧 Podcast EpisodeAugust 18, 2022[![](/logos/tags/svelte-symbol-light.svg)![](/logos/tags/svelte-symbol-dark.svg)Svelte](/topic/svelte)[![](/logos/tags/notion-symbol-light.svg)![](/logos/tags/notion-symbol-dark.svg)Notion](/topic/notion)[![](/logos/tags/sveltekit-symbol-light.svg)![](/logos/tags/sveltekit-symbol-dark.svg)SvelteKit](/topic/sveltekit)[![](/logos/tags/cloudinary-symbol-light.svg)![](/logos/tags/cloudinary-symbol-dark.svg)Cloudinary](/topic/cloudinary)[![](/logos/tags/html-symbol-light.svg)![](/logos/tags/html-symbol-dark.svg)HTML](/topic/html)

# SvelteKit with Notion CMS

![](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/bbd1c0f99c5b67352dee6cb036aa3297d41fc846-1920x1080.png?w=1920&h=1080&q=82&fit=max&auto=format)[@CodingCatDev62.5K / 100K Subscribers Goal](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Subscribe on YouTube→](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Watch on YouTube App ↗](https://www.youtube.com/watch?v=OiapPdbBrpY&list=UUnKZ8gEb78zXKMi1ns-IQ2g)[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[![Brittney Postma](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/f25e504779cb6ebb7c0dd7df367f2c7490e17784-735x735.png?w=96&h=96&q=82&fit=max&auto=format)Brittney Postma](/author/brittney-postma)[![Brittney Postma (Guest)](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/e2b1a2cb43955aff95f9cd030bd91a1d46bda126-1000x1000.jpg?w=96&h=96&q=82&fit=max&auto=format)Brittney Postma (Guest)](/guest/brittney-postma-guest)🎧 Listen & Subscribe[Spotify](https://open.spotify.com/episode/6UVyViotbxroUXGj2bWRjD)[Apple](https://podcasts.apple.com/us/podcast/code-with-codingcat-dev-sveltekit-with-notion-cms/id1491655542?i=1000660663806)[YouTube](https://www.youtube.com/watch?v=OiapPdbBrpY&list=PLUKgAjyG9B0ZhUEXp9eVa7h4L__FDW3uV)[Subscribe on YouTube (62.5K / 100K) →](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Pocket Casts](https://pca.st/episode/5a9386b4-9f84-4d24-a494-8e90266963a1)[Castbox](https://castbox.fm/episode/id2508485-id715146518)[Castro](https://castro.fm/episode/fGYJXq)[Overcast](https://overcast.fm/itunes1491655542)[RSS](https://anchor.fm/s/115b203c/podcast/rss)

## Introduction and Technical Setup

- **New Streaming Setup**: The live coding session is conducted through Streamyard with hosts adjusting to a new streaming setup. Brittany is teaching Alex about SvelteKit.
- **Initial Project Setup**: Steps through initializing a new SvelteKit project using `npm init svelte@next` and discusses the choices such as TypeScript, ESLint, Prettier, and Playwright.

## SvelteKit Overview

- **Project Structure**: Overview of SvelteKit's project structure, including the significance of folders like `source` and `routes`, and comparison to similar directories in other frameworks like Next.js.
- **Basic Routing**: Introduction to routing in SvelteKit, demonstrating how to create routes and nested layouts by setting up a basic skeleton project and the initial routes.

## Fetching Data with Notion API

- **API Setup**: Illustration of integrating SvelteKit with Notion's API, including the installation and configuration of required packages.
- **Server-side Fetching**: Walkthrough of creating an endpoint in SvelteKit to fetch data from the Notion API server-side and passing this data as props to Svelte components.

## Handling Environment Variables

- **Setup and Pitfalls**: Discussion on setting up environment variables to securely handle API keys using `dotenv`. Explanation of how it integrates within the server-side code.
- **Do's and Don'ts**: Highlight the common mistakes and troubleshooting steps for environments in SvelteKit, such as correctly naming the `.env` file.

## Rendering and Styling Content

- **Data Display**: Techniques to display fetched data on the frontend, including setting up the initial layout and styling within the Svelte components.
- **Conditional Rendering and Loops**: Demonstration of using Svelte's `{#each}` directive for loops and handling conditional rendering based on fetched data.

## Markdown and Rich Media Content

- **Markdown Rendering**: Steps to convert Notion pages to Markdown using specific packages and discussing the possibility of rendering Markdown in Svelte.
- **Inline HTML Integration**: Handling HTML content rendered from Notion data and incorporating it into Svelte components to preserve rich media formats like embedded YouTube videos.

## Final Integration and Summary

- **Dynamic Routing**: Setting up dynamic routes in SvelteKit to handle nested routes and fetching individual items based on slugs.
- **Live Debugging and Adjustments**: Addressing real-time bugs and adjusting code, with community input and troubleshooting on concepts like nested routes and API fetching.

## Video Chapters & Timestamps

Jump directly to any segment of [**SvelteKit with Notion CMS**](https://www.youtube.com/watch?v=OiapPdbBrpY) on YouTube using the timestamped chapters below:

- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): Introduction
- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): First Live Coding
- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): First Things First
- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): Project Setup
- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): SvelteKit Explain
- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): Dynamic Routing
- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): Fetching Data
- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): Environment Variables
- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): Listing Page
- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): Page Content
- [**00:00**](https://www.youtube.com/watch?v=OiapPdbBrpY&t=0s): Conclusion

## Resources, Links & Official Documentation

- **Watch on YouTube: ** [SvelteKit with Notion CMS Full Video](https://www.youtube.com/watch?v=OiapPdbBrpY) (plus [Subscribe to CodingCat.dev](https://www.youtube.com/@CodingCatDev?sub_confirmation=1))
- [**Brittney Postma (Guest) Guest Profile & Episodes on CodingCat.dev**](/guest/brittney-postma-guest)
- [**Brittney Postma (Guest) on GitHub**](https://github.com/brittneypostma)
- [**Svelte & SvelteKit Documentation:**](https://svelte.dev/docs) Runes, compiler internals, and full-stack SvelteKit routing

## Related CodingCat.dev Tutorials & Podcast Episodes

- [**SvelteKit with Notion CMS and Cloudinary**](/podcast/sveltekit-with-notion-cms-and-cloudinary): Tamas joins us to add Daisy UI and Cloudinary to our simple SvelteKit site.
- [**Simplyfing SvelteKit View Transitions with Paolo Ricciuti**](/podcast/cwcc-1-3-svelte-view-transitions): sveltekit-view-transitions offers a straightforward approach for implementing these transitions without complexity, aiming to enhance the user interface with sm...
- [**Slicing Up SvelteKit with Prismic’s New Slice Machine**](/podcast/3-21-slicing-up-sveltekit-with-prismic-slice-machine): Sam joins the podcast to talk about his journey to Prismic and to give an in depth look at Slice Machine.

## Frequently Asked Questions (FAQ)

### What are the main takeaways from SvelteKit with Notion CMS?

We start to build CodingCat.dev by using Notion as our CMS. SvelteKit from Notion: Discover how to set up SvelteKit with a Notion backend in this engaging live coding session. We cover initial setup, dynamic routing, and fetching data. Join us! https://codingcat.dev/podcast/sveltekit-with-notion-cms 00:00 Introduction
00:28 First Live Coding
01:39 First Things First
02:48 Projec Throughout this podcast, Brittney Postma (Guest) breaks down real-world implementation details for Svelte so developers can apply these patterns directly in production.

### How do you implement Svelte best practices in production?

When adopting Svelte in a production stack, start by validating your configuration against the [**Svelte & SvelteKit Documentation**](https://svelte.dev/docs) (Runes, compiler internals, and full-stack SvelteKit routing). Focus on incremental adoption, automated testing, and observability so your team can measure performance and developer velocity improvements at each stage.

### Where can I watch the full SvelteKit with Notion CMS walkthrough and find related code resources?

You can watch the complete video session for [**SvelteKit with Notion CMS**](https://www.youtube.com/watch?v=OiapPdbBrpY) on the [**CodingCat.dev YouTube channel**](https://www.youtube.com/@CodingCatDev?sub_confirmation=1). For a deeper dive into Svelte, check out our related guide: [**SvelteKit with Notion CMS and Cloudinary**](/podcast/sveltekit-with-notion-cms-and-cloudinary).

## ✏️ Episode Summary

SvelteKit from Notion: Discover how to set up SvelteKit with a Notion backend in this engaging live coding session. We cover initial setup, dynamic routing, and fetching data. Join us!

https://codingcat.dev/podcast/sveltekit-with-notion-cms

00:00 Introduction
00:28 First Live Coding
01:39 First Things First
02:48 Projec

✏️ Visual Architecture Diagram

## how this episode connects together.

Follow AJ from first principles to production-ready architecture.

Let’s build it!✏️ Visual Diagram: SvelteKit with Notion CMS✓ Good PatternVISUAL DIAGRAM[Diagram Walkthrough]Step-by-step diagram breakdown for SvelteKit with Notion CMS: start with Brittney Postma (Guest), implement Architecture & Patterns, and ship to production.AAA Contrast Verified

## related episodes.

[All Episodes&rarr;](/podcasts)[![The Odin Project 5: Advanced HTML, CSS View Transitions & WCAG Accessibility](https://cdn.sanity.io/images/hfh83o0w/production/93736ccee5b8c088a202f319ce1223899a41f6bf-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/odin-advanced-html-css-and-a11y)November 4, 2026[![](/logos/tags/css-symbol-light.svg)![](/logos/tags/css-symbol-dark.svg)CSS](/topic/css)[#Accessibility](/topic/a11y)[![](/logos/tags/html-symbol-light.svg)![](/logos/tags/html-symbol-dark.svg)HTML](/topic/html)[+1](/course/odin-advanced-html-css-and-a11y)

### [The Odin Project 5: Advanced HTML, CSS View Transitions & WCAG Accessibility](/course/odin-advanced-html-css-and-a11y)

Build 60fps GPU-accelerated animations, multi-page Astro View Transitions, WCAG AAA focus rings, and accessible native <dialog> and Popover components.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[![The Odin Project 3: Intermediate HTML, Modern Forms & CSS Grid Architecture](https://cdn.sanity.io/images/hfh83o0w/production/e81cb7bdd395cf1351722a2e6357da97cc3c1ed6-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/odin-intermediate-html-and-css-grid)November 4, 2026[![](/logos/tags/css-symbol-light.svg)![](/logos/tags/css-symbol-dark.svg)CSS](/topic/css)[![](/logos/tags/html-symbol-light.svg)![](/logos/tags/html-symbol-dark.svg)HTML](/topic/html)[#Design](/topic/design)[+1](/course/odin-intermediate-html-and-css-grid)

### [The Odin Project 3: Intermediate HTML, Modern Forms & CSS Grid Architecture](/course/odin-intermediate-html-and-css-grid)

Master 2D CSS Grid layouts, Subgrid, CSS Custom Properties, fluid clamp() typography, container queries, and zero-JS form validation with :user-valid.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)