Public
Script
pauliusef avatar
renderFormAndSaveData
@pauliusef
HTTP (deprecated)
Forked from maxm/saveFormDataExample
maxm avatar
tanPeacock
@maxm
HTTP (deprecated)
Forked from stevekrouse/blob_admin
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)
pomdtr avatar
view_blob
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
nerdymomocat avatar
add_to_habitify_from_todoist_w_ai
@nerdymomocat
Cron
// if you added new items to habitify after running this script
postpostscript avatar
provideBlob
@postpostscript
HTTP (deprecated)
provideBlob: Return Response Quickly and Poll for the Expensive Parts Example: See @postpostscript/provideBlobExample for full example. You will need to fork this val to use provideBlob on your projects as it uses @std/blob for storage import { Image } from "https://deno.land/x/imagescript@1.2.17/mod.ts"; import { htmlResponse } from "https://esm.town/v/postpostscript/html"; import { provideBlob } from "https://esm.town/v/postpostscript/provideBlob"; export default async function(req: Request) { const image = provideBlob(async () => { const png = new Image(100, 100); png.drawCircle(50, 50, 50, 100); return png.encode(); }).jsPromise(); return htmlResponse` <div id="image"></div> <script> ${image}.then(blob => { const $img = document.createElement("img") $img.src = URL.createObjectURL(blob) document.getElementById("image").appendChild($img) }) </script> `; }
xkonti avatar
gameIdeaApi
@xkonti
HTTP (deprecated)
This Val is a part of Creating GPT Actions with ValTown tutorial: Video on YouTube Article on xkonti.tech The GPT using it: Game Idea Exchange GPT
stevekrouse avatar
discordWelcomeBotCron
@stevekrouse
Cron
// Welcome new members to the Val Town Discord
gwoods22 avatar
scraper_template
@gwoods22
Script
Website Scraper Template A basic website scraper template that can be ran on an interval to check for changes. It uses blob storage to save whatever data you'd like to compare the website to. Uses my sendNotification val to alert yourself of the change. Steps to use Add the scrapeURL you would like to scrape and pick a name for your blob storage blobKey . Change the "selector" value to fit your needs. cheerio is used to find the part of the page you'd like to check. Adjust the if statement to detect changes and update your blob Craft a message to be sent with sendNotification() function
janpaul123 avatar
valle_tmp_14787389514247828561625352472568
@janpaul123
HTTP (deprecated)
An interactive, runnable TypeScript val by janpaul123
stevekrouse avatar
sparklineEx
@stevekrouse
HTTP
Forked from nbbaier/reactExample
tempdev avatar
rabbitstream
@tempdev
HTTP
// Full .ts implimentation of rabbitstream.net
janpaul123 avatar
valle_tmp_26078469653238519037257020956977
@janpaul123
HTTP (deprecated)
An interactive, runnable TypeScript val by janpaul123
keenanzucker avatar
blobCommentsReact
@keenanzucker
HTTP (deprecated)
Forked from stevekrouse/blobCommentsReact
rishabhparikh avatar
easyAQI
@rishabhparikh
Script
Forked from stevekrouse/easyAQI
stevekrouse avatar
newValTownOpenAPI
@stevekrouse
Cron
An interactive, runnable TypeScript val by stevekrouse
ā€¦
6
ā€¦
August 13, 2024