Notion is a service that I’m currently using to build a blog and this page shows my progress on using the Notion JavaScript library to connect to the Notion API to retrieve and update my Notion account data.

I will be using Bun to create a hello world example for using the Notion library. To start off I will create a new Typescript project.
npm initNext is to install the notion JavaScript library.
npm install @notionhq/clientCreate an .env file and add the following NOTION_TOKEN key, the value will be added in the next step.