• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
dthyresson

dthyresson

playRandomSong

Public
Like
playRandomSong
Home
Code
2
README.md
H
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
main.tsx
https://dthyresson--d95ac3dc26cc11f09439569c3dd06744.web.val.run
README.md

Play a Random Song

... from a set of Spotify tracks that have been played by me or others using the playMeASong val.

Queries a random record of a tracks table and redirects to it's Spotify url.

Usage

Create val
// random const track = await getRandomTrack(); // random for artist const track = await getRandomTrack("Pixies");

Migrated from folder: Spotify/playRandomSong

HTTP
  • main.tsx
    dthyresson--d9…44.web.val.run
Code
README.md
H
main.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
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.