FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
mux
muxvideoStorage
Public
Like
videoStorage
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
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
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

Code
README.mdmain.tsx
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.