Transform Notion Pages into Component Props

Опубликовано: 12 Август 2026
на канале: Sean C Davis
1,192
39

I take a JSON file that exported content from a Notion database, and build an opinionated mapping system, so that we're left with a JSON object that can be used as page and component properties in any site framework.

This unlocks Notion's potential to serve as a CMS for more complex websites.

Code Example: https://github.com/seancdavis/notion-...

00:00 Introduction
01:16 Setting up the Script
01:42 Check for Export File
02:00 Parse JSON Export
02:16 Set Up Transformation
04:46 Paragraph Block Map
06:24 Base Callout Block Mapping
08:30 Tabs Resolver
10:53 Code Block Resolver
13:14 Closing

Notion Video Series:
1. Using Notion as a CMS for Complex Websites:
   • Using Notion as a CMS for Complex Websites  
2. Get Notion Databse ID Using Developer API:    • Get Notion Database ID Using Developer API  
3. Export Notion Database Page Content:    • Export Notion Database Page Content  
4. Transform Notion Pages into Component Props:    • Transform Notion Pages into Component Props  

#notion #components #cms #webdevelopment