• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
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
/
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
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.