FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
lightweight
lightweightGlimpse
Remix of glance/Glimpse
Unlisted
Like
Glimpse
Home
Code
9
.vscode
1
backend
4
frontend
5
shared
1
.cursorrules
.vtignore
INSTRUCTIONS.md
README.md
deno.json
Branches
5
Pull requests
Remixes
2
History
Environment variables
5
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
/
backend
/
crons
/
README.md
Code
/
backend
/
crons
/
README.md
Search
5/31/2025
Viewing readonly version of main branch: v17
View latest version
README.md

This directory has crons that extract data from Notion and save that data to blob storage in val.town. Blob storage functions like a cache.

Caching keeps customer-facing /demos snappy

Every /demo has an interval script that runs every second to poll the /cobrowse endpoint to see whether or not cobrowsing has been enabled for that demo. If it's enabled, the cobrowse button is live and blue. If cobrowsing is disabled, the user sees a call-to-action to contact Glance.

Hitting Notion every second would put excessive load on Notion and sometimes Notion is under load from other users at peak times. With this caching strategy, we don't have to hit Notion to check the status of cobrowing, because we hit the cache instead.

The cache is updated every minute by the cron in this directory.

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.