Skip to content

Conversation

@Coobaha
Copy link
Collaborator

@Coobaha Coobaha commented Jan 8, 2026

Add a Notion → Framer sync example

Cloudflare Worker that syncs a Notion database to Framer CMS via automation webhooks.

Demonstrates:

  • framer-api with using keyword for automatic resource cleanup
  • Webhook-based sync (upsert/delete on Notion page changes)
  • Soft-delete pattern via tombstone checkbox property
  • Type-safe field mappings between Notion properties and Framer fields
  • One-time setup script for collection creation

Includes a comparison table of Notion Automations vs REST API approaches.

@Coobaha Coobaha requested a review from elmarburke January 8, 2026 08:51
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment @cursor review or bugbot run to trigger another review on this PR

@Coobaha Coobaha force-pushed the feat/notion-automation branch 2 times, most recently from f218e00 to 1a23691 Compare January 8, 2026 08:58
 Cloudflare Worker that syncs a Notion database to a Framer CMS collection using Notion Automations (webhooks).
@Coobaha Coobaha force-pushed the feat/notion-automation branch from 1a23691 to 17d11f9 Compare January 8, 2026 09:00
@@ -0,0 +1,52 @@
type FieldMapping = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
type FieldMapping = {
export type FieldMapping = {

and remove the export below

case "url":
return prop.url ?? "";
default:
return "";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it could fail if a case isn't handled, allowing for a traceback in the logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants