FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
mux

mux

videoStorage

Public
Like
videoStorage
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
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
3/10/2024
Viewing readonly version of main branch: v24
View latest version
README.md

Video Storage

Intended to be imported into other Vals and used with Mux Webhooks (like our webhookHandler. Stores videos off into Sqlite.

Webhook handlers

At least these are how we use them in the webhookHandler

FunctionMux EventNote
createVideo()video.upload.createdTriggered when a direct upload is initially created
updateVideoCreated()video.upload.asset_createdTriggered when an asset is created
updateVideoReady()video.asset.readyAn asset is ready for playback

Others

  • getAllVideos Lists all the videos in the database
  • backfillVideo Takes a video object and puts it in the DB. Useful if you're iterating over to...you guessed it, backfill content.

Migrated from folder: streamdotnew/videoStorage

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.