FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
project logo

bradnoble

ValTownForNotion

Augmenting Notion with webhooks and val.town.
Public
Like
7
ValTownForNotion
Home
Code
6
routes
9
utils
2
README.md
embeds
C
valtownfornotion.val.run
H
webhookAPI
Branches
5
Pull requests
Remixes
6
History
Environment variables
3
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
4/16/2025
Viewing readonly version of embeds branch: v30
View latest version
README.md

ValTownForNotion

This val.town project catches webhooks from Notion, makes changes to the data payload, and sends those changes back to Notion as page updates.

Read up on it and try the examples:

https://bradnoble.notion.site/val-town-for-Notion-1cbc200736c2807bb445eccf64d0afe9?pvs=4

image.png

Handling Notion Webhooks

This is done in the webhookAPI file.

Resetting state

Every minute, this project has a cron that resets all the state, so that the next visitor to the Notion page has a clean experience. The name of that cron is the same as the short subomain URL of the webhook URL so they can more easily coordianate and be kept in sync. That subdomain is also the prefix for all the blob storage.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.