Notion2Rss converts your Notion database into a subscribable RSS feed using Cloudflare Workers.
- A Cloudflare account
- A GitHub account
- Connect Cloudflare to your GitHub account
-
Go to the Cloudflare Workers dashboard and click "Import from GitHub"
-
Choose "Clone a Git repository via URL"
-
Enter the repository URL:
https://github.com/MoYuM/notion2rss
-
Customize your Worker and KV namespace name (optional), or simply proceed to the next step
-
Wait for the Worker to build and deploy successfully
-
Go to the settings page of the newly created Worker, and add an environment variable: Name:
N2R_NOTION_TOKEN
, Type: Secret -
Click Deploy to apply the environment variable
- Visit your Worker URL to access the RSS feed in XML format. Note: The first load may be slow, but subsequent requests will be faster.
You can customize your RSS feed (e.g., title, icon, author) using environment variables.
To configure them, go to your Worker's settings page and edit the variables section:
Example configuration:
- Create a
.dev.vars
file in the root directory with your Notion token:
N2R_NOTION_TOKEN="your notion token"
- Install dependencies and start the dev server:
npm install
npm run dev
Feel free to open issues or submit pull requests to improve this project! 🎉