Public
iamseeley avatar
iamseeley
val_town_by_example_toc
Cron
Forked from pomdtr/val_town_by_example_toc
0
tmcw avatar
tmcw
whenfilmed
HTTP
A game where you guess when a movie was released. Man, those Disney movies are ancient !
2
andreterron avatar
andreterron
updateTidbytWorkout
Script
Update Tidbyt workouts Updates a Tidbyt with workout information: For more information, watch the YouTube video or reach out to me on Twitter ! Usage Fork this val. Update the byDay variable to get your workout information for each day of the current and previous week. If you want to use a rule different than "Don't skip twice", you can fork and update the weekWorkoutIcons val.
0
janpaul123 avatar
janpaul123
valle_tmp_069034869725444597641897580363524
HTTP
// Define the key for blob storage
0
resat avatar
resat
scraper_template
Script
Forked from gwoods22/scraper_template
0
bcongdon avatar
bcongdon
easyAQI
Script
Forked from stevekrouse/easyAQI
0
janpaul123 avatar
janpaul123
valle_tmp_115772121902645334646172151872623
HTTP
* This val creates a simple hacker news clone with 30 fake sample stories. * It uses blob storage to store story data, including the ability to submit * new stories and upvote existing stories.
0
ashryanio avatar
ashryanio
getBlobAndRenderAsImage
HTTP
getBlobAndRenderAsImage Shows how to get a Val Town blob and render it as an image in the DOM with React. Setup Make sure you have an image named test.png in your Val Town blob storage (alternatively, you can change the key name in the blob getter in the script). To easily upload an image to your blob storage, fork this val , run it, and enter your API key in the password input. How it works Fetching the blob: The client-side React component makes a fetch request to "/image". This request is handled by our server function. Server-side handling: The server function calls blob.get("test.png") . This blob.get() method makes an HTTP request to the Val Town API. The API returns a Response object containing the image data. Processing the blob on the server: We receive this Response object from blob.get() . We don't need to extract the data on the server side. We can directly return this Response object to the client. Sending the response to the client: We set the appropriate "Content-Type" header (e.g., "image/png"). We return the Response object to the client. Client-side handling: The fetch request in the React component receives the Response. We call response.blob() to get a Blob object from the Response. Creating a data URL: We create a FileReader object. We use FileReader to read the Blob as a data URL. This data URL is a base64-encoded string representing the image. Updating the React state: We set the data URL as the state of our component. Rendering the image: We use the data URL as the src attribute of an <img> tag. The browser decodes the base64 data and renders the image. Further reading on Val Town blobs Blob storage overview in Val Town docs Val Town REST API references for blobs Val Town blob std lib source code
0
adnan avatar
adnan
findPlates
Cron
// URL of your RSS feed
0
mbo avatar
mbo
celinewaitlist
HTTP
* This Val creates a simple API endpoint that saves an email address for notifications * using Val Town's JSON storage. It handles POST requests to save the submitted email * and returns a simple confirmation message.
0
stevekrouse avatar
stevekrouse
passionateScarletPrawn
HTTP
Forked from torlanco/shirtGenScript
1
amoz1 avatar
amoz1
gptMemoryManager
Script
Forked from xkonti/gptMemoryManager
0
msclicks avatar
msclicks
diabetesMealCalculatorApp
HTTP
Diabetics Guide Manageing Diabetes In 2025
1
pinjasaur avatar
pinjasaur
unsplashSourceReimplementation
HTTP
Re-implements Unsplash Source which was a service hosted at source.unsplash.com that served random photos from Unsplash. To use this, you'll want to fork it, provide your own Unsplash API key, and configure the allowed domains. Read more: https://paul.af/reimplementing-unsplash-source
0
Negash avatar
Negash
blobCounter
HTTP
Forked from stevekrouse/blobCounter
0
stevekrouse avatar
stevekrouse
caniuse_notifier
Cron
Forked from gunnnnii/caniuse_notifier
0
Updated: August 13, 2024