Overview
The Notion client module exports a pre-configured singleton instance of the official Notion SDK client. This client is authenticated using theNOTION_TOKEN environment variable and is used by all other Notion integration modules.
Module Export
notion
The default export is a configured Client instance from @notionhq/client.
Implementation
Configuration
Notion API integration token. Set this environment variable before using the client.Get your token from: https://www.notion.so/my-integrations
Usage
All Notion API operations in this codebase use this shared client instance:Related Modules
- Notion CMS - Database and block querying functions
- Notion Parse - Notion to Markdown conversion
- Notion Download - Pre-build content sync
Source Reference
File:src/lib/notion-client.ts
Dependencies:
@notionhq/client- Official Notion JavaScript SDKdotenv/config- Environment variable loading