Public
Script
iamseeley avatar
val_town_by_example_toc
@iamseeley
Cron
Forked from pomdtr/val_town_by_example_toc
fahmi avatar
btcPriceAlert
@fahmi
Cron
Forked from stevekrouse/btcPriceAlert
pomdtr avatar
valtownByExample
@pomdtr
HTTP (deprecated)
Val town by example Usage Simple Example To add an example, just create a val. The val should start with a JSDoc style multi line comment that describes the example: /** * @title HTTP server: Hello World * @description An example of a HTTP server that serves a "Hello World" message. */ // this comment will be displayed on the left export const server = () => new Response("Hello world!") The title is required. Then, you can write the code. Code can be prefixed with a comment that describes the code. The comment will be rendered next to the code in the example page. Make sure your val is public, then go to https://pomdtr-val_town_by_example.web.val.run/v/<your-username>/<your-val> Using multiple vals You can add another val to your example by adding an @include directive /** * @title HTTP server: Hello World * @description An example of a HTTP server that serves a "Hello World" message. * @include pomdtr/secondary_val */ See @pomdtr/react_example Adding external resources to your example You can attach an external link to your val by using the @resource directive. External resources are specified using a markdown link. /** * @title HTTP server: Hello World * @description An example of a HTTP server that serves a "Hello World" message. * @resource [Val Town Docs](https://docs.val.town) **/ Adding examples to the homepage Just add your val in @pomdtr/val_town_by_example_toc
tempguy avatar
coffeeReptile
@tempguy
Cron
Forked from tempguy/violetFerret
andreterron avatar
updateTidbytWorkout
@andreterron
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.
test_account_001 avatar
blob_admin
@test_account_001
HTTP (deprecated)
Forked from stevekrouse/blob_admin
triptych avatar
hitCounter
@triptych
HTTP (deprecated)
Forked from triptych/hitCounterDenWeaver
jdan avatar
nameOfUnicode
@jdan
Script
Populated with the following: import { blob } from "https://esm.town/v/std/blob?v=12"; fetch("https://unicode.org/Public/UNIDATA/UnicodeData.txt").then(async function(response) { const text = await response.text(); const data = {}; text.split("\n").forEach((line) => { const [code, name] = line.split(";"); data[code] = name; }); await blob.setJSON("unicode_names", data); });
cyrilos avatar
loop
@cyrilos
Script
An interactive, runnable TypeScript val by cyrilos
kora avatar
blobList
@kora
Script
Blob
maxm avatar
userspaceAuth
@maxm
HTTP (deprecated)
@jsxImportSource https://esm.sh/preact
mbo avatar
celinewaitlist
@mbo
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.
vladimyr avatar
keyvhq_blob_example2
@vladimyr
Script
Forked from vladimyr/keyvhq_example2
stevekrouse avatar
rssNotifyExample
@stevekrouse
Cron
An interactive, runnable TypeScript val by stevekrouse
stevekrouse avatar
caniuse_notifier
@stevekrouse
Cron
Forked from gunnnnii/caniuse_notifier
saolsen avatar
connect4_site
@saolsen
HTTP (deprecated)
Play connect4. Write agents that play connect4. Battle your agents against other agents. It's fun.
August 13, 2024