Newest

kj9 avatar
sqliteDrizzleExample
@kj9
Script
An interactive, runnable TypeScript val by kj9
dthyresson avatar
resetFavoriteSongSearches
@dthyresson
Cron
Reset Favorite Song Searches Cron to clear and reset favoritre Spotify song searches hourly.
mwalker avatar
sqlite_explorer
@mwalker
HTTP
An interactive, runnable TypeScript val by mwalker
jxnblk avatar
useLocalStorage
@jxnblk
Script
An interactive, runnable TypeScript val by jxnblk
substrate avatar
brownPony
@substrate
HTTP
Semantically map a JSON object to a target schema using Substrate . 🪩 To fork, sign up for Substrate to get your own API key and $50 free credits.
dthyresson avatar
playMeASong
@dthyresson
HTTP
Play me a song Search and if we find it, it'll open the song in Spotify!
iamseeley avatar
hono_counter
@iamseeley
Script
Hono Counter Component
dthyresson avatar
getSpotifyAccessToken
@dthyresson
Script
getSpotifyAccess Token Request an access token for use with the Spotify Web API. Requires environment variables from your Spotify Developers account. SPOTIFY_CLIENT_ID SPOTIFY_CLIENT_SECRET Uses Blob storage to cache the spotify_accessToken based on when the expires_in value in the Spotify Access Token response. Example import { getSpotifyAccessToken } from "https://esm.town/v/dthyresson/getSpotifyAccessToken"; const accessToken = await getSpotifyAccessToken(); console.debug(accessToken)
dthyresson avatar
getSpotifyTrackUrl
@dthyresson
Script
getSpotifyTrackUrl Get a Spotify Track Url using the Spotify Web API given an artist and a song title. Track info is cached by the query and also the spotify track id, so your popular queries won't have to fetch from Spotify over and over. Examples import { getSpotifyTrackUrl } from "https://esm.town/v/dthyresson/getSpotifyTrackUrl"; const reni = await getSpotifyTrackUrl("Stone Roses", "Fools Gold"); const ian = await getSpotifyTrackUrl("Joy Division", "Love Will Tear Us Apart"); const kim = await getSpotifyTrackUrl("Pixies", "Velouria"); console.log(reni) console.log(ian) console.log(kim) Info Uses getSpotifyAccessToken which requires you to set environment variables from your Spotify Developers account. SPOTIFY_CLIENT_ID SPOTIFY_CLIENT_SECRET Your access token is cached by getSpotifyAccessToken to avoid fetching over and over.
pomdtr avatar
tldraw2
@pomdtr
HTTP
An interactive, runnable TypeScript val by pomdtr