Public
Script
  • iamseeley avatar
    val_town_by_example_toc
    @iamseeley
    Forked from pomdtr/val_town_by_example_toc
    Cron
  • pomdtr avatar
    valtownByExample
    @pomdtr
    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
    HTTP (deprecated)
  • tmcw avatar
    whenfilmed
    @tmcw
    A game where you guess when a movie was released. Man, those Disney movies are ancient !
    HTTP
  • tempguy avatar
    coffeeReptile
    @tempguy
    Forked from tempguy/violetFerret
    Cron
  • andreterron avatar
    updateTidbytWorkout
    @andreterron
    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.
    Script
  • janpaul123 avatar
    valle_tmp_069034869725444597641897580363524
    @janpaul123
    // Define the key for blob storage
    HTTP (deprecated)
  • jdan avatar
    nameOfUnicode
    @jdan
    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); });
    Script
  • bcongdon avatar
    easyAQI
    @bcongdon
    Forked from stevekrouse/easyAQI
    Script
  • janpaul123 avatar
    valle_tmp_115772121902645334646172151872623
    @janpaul123
    * 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.
    HTTP (deprecated)
  • cyrilos avatar
    loop
    @cyrilos
    An interactive, runnable TypeScript val by cyrilos
    Script
  • kora avatar
    blobList
    @kora
    Blob
    Script
  • mbo avatar
    celinewaitlist
    @mbo
    * 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.
    HTTP
  • vladimyr avatar
    keyvhq_blob_example2
    @vladimyr
    Forked from vladimyr/keyvhq_example2
    Script
  • Negash avatar
    blobCounter
    @Negash
    Forked from stevekrouse/blobCounter
    HTTP (deprecated)
  • stevekrouse avatar
    caniuse_notifier
    @stevekrouse
    Forked from gunnnnii/caniuse_notifier
    Cron
  • saolsen avatar
    connect4_site
    @saolsen
    Play connect4. Write agents that play connect4. Battle your agents against other agents. It's fun.
    HTTP (deprecated)
August 13, 2024