Provide real-time updates for Notion databases via webhooks with Supabase
Purpose This enables webhooks for nearly realtime updates (every 5 seconds) from Notion Databases. Problem Notion does not offer webhooks. Even worse, the “Last edited time” property, we could use for polling, only up...
Template notes
Purpose
This enables webhooks for nearly realtime updates (every 5 seconds) from Notion Databases.
Problem
Notion does not offer webhooks. Even worse, the “Last edited time” property, we could use for polling, only updates every minute. This gives us a polling interval only as low as 2 minutes and we still need to implement a comparing mechanism to detect changes.
Solution
This workflow caches states in between while doing efficient polling & comparing. It brings down the update latency from 2 minutes to 5 seconds and also provides the output of the changes only.
Demo
[](https://youtu.be/BROsXafy9Uw)