FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
project logo
bradnobleValTownForNotion
Augmenting Notion with webhooks and val.town.
Public
Like
6
ValTownForNotion
Home
Code
5
routes
11
utils
2
README.md
C
resets
H
webhookAPI
Branches
5
Pull requests
Remixes
5
History
Environment variables
3
Settings
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
webhookAPI
https://bradnoble--6b696612f13d46cca0c0612473883f2c.web.val.run
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.

Here's one of the examples, which uses val.town to update database pages with favicons from the web:

valtown-for-notion-example.gif

Read up on it and try the examples: https://www.notion.so/bradnoble/val-town-for-Notion-1cbc200736c2807bb445eccf64d0afe9?pvs=4

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. That cron uses the subdomain as the prefix for all the blob storage.

image.png

HTTP
  • webhookAPI
    bradnoble--6b696612f13d46cca0c0612473883f2c.web.val.run
Cron
  • resets
Code
routesutilsREADME.md
C
resets
H
webhookAPI
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.