Public
Script
  • stevekrouse avatar
    untitled_pinkRoundworm
    @stevekrouse
    Forked from vez/comments
    HTTP (deprecated)
  • janpaul123 avatar
    valle_tmp_701816702132716405607952805626981
    @janpaul123
    // Initialize sample stories and store them in blob storage
    HTTP (deprecated)
  • all avatar
    excalidrawPass
    @all
    Forked from all/excalidrawLock
    HTTP (deprecated)
  • dantaeyoung avatar
    btcPriceAlert
    @dantaeyoung
    Forked from stevekrouse/btcPriceAlert
    Cron
  • janpaul123 avatar
    valle_tmp_1383961774625823777944450091493644
    @janpaul123
    // This code will create a simple Hacker News clone with 30 fake sample stories,
    HTTP (deprecated)
  • taras avatar
    free_open_router
    @taras
    curl 'https://taras-free_open_router.web.val.run/api/v1/chat/completions' \ -H 'accept: application/json' \ -H 'authorization: Bearer THIS_IS_OVERRIDEN_ON_SERVER' \ -H 'content-type: application/json' \ --data-raw '{ "model": "auto", "temperature": 0, "messages": [ { "role": "system", "content": "stuff" }, { "role": "user", "content": "hello" } ], "stream": true }'
    HTTP (deprecated)
  • postpostscript avatar
    sqliteBlob
    @postpostscript
    sqliteBlob: make sqlite queries against your blobs!* does not include blob values
    Script
  • janpaul123 avatar
    valle_tmp_90775096713594030038814365860220246
    @janpaul123
    // Define interface for Story object
    HTTP (deprecated)
  • browserbase avatar
    hasWebsiteChanged
    @browserbase
    Browserbase Browserbase offers a reliable, high performance serverless developer platform to run, manage, and monitor headless browsers at scale. Leverage our infrastructure to power your web automation and AI agents. Get started with Browserbase for free here . If you have any questions, reach out to developer@browserbase.com.
    Script
  • jamisonl avatar
    aloneBronzeCattle
    @jamisonl
    Forked from camajudson/handleDiscordInteraction
    HTTP (deprecated)
  • burningion avatar
    updateTidbytWorkout
    @burningion
    Forked from andreterron/updateTidbytWorkout
    Script
  • janpaul123 avatar
    valle_tmp_87778475813607539720320402884255
    @janpaul123
    // Unique key for blob storage
    HTTP (deprecated)
  • ttodosi avatar
    detectNewWebsiteContents
    @ttodosi
    Forked from vipshek/detectNewWebsiteContents
    Cron
  • samk avatar
    btcPriceAlert
    @samk
    Forked from stevekrouse/btcPriceAlert
    Cron
  • postpostscript avatar
    reactiveStateBlob
    @postpostscript
    reactiveStateBlob: wrap blob state in a proxy to autosave it on changes Examples (full example at @postpostscript/reactiveStateBlobExample ) import { reactiveStateBlob } from "https://esm.town/v/postpostscript/reactiveStateBlob" using state = await reactiveStateBlob({ viewCount: 0, rows: [] as { x: number; y: number; }[], }); state.viewCount += 1; state.rows.push({ x: Math.random(), y: Math.random(), }); This infers the key from the name of the val that uses it. To specify it, pass the key option: using state = await reactiveStateBlob({ viewCount: 0, rows: [] as { x: number; y: number; }[], }, { key: 'reactiveStateBlobExample.state', }); Updating Schema If you want to update the schema, or always verify the state that is pulled from the job, pass a function as the first argument: using state = await reactiveStateBlob((existingState) => { return { viewCount: (existingState.viewCount ?? 0) as number, rows: (existingState.rows ?? []) as { x: number; y: number; }[], someNewField: (existingState.someNewField ?? "") as string, } }) Options using state = await reactiveStateBlob<{ value: number; }>({ value: 0, }, { log: true, // log when saving key: "blobKey", // blob key to fetch/save to timeout: 100, // ms, defaults to 10 lock: true, // or LockOptions (see https://www.val.town/v/postpostscript/lock#options) }) See Also @postpostscript/counter (example at @postpostscript/counterExample )
    Script
  • tobeofuse avatar
    blob_admin
    @tobeofuse
    Forked from stevekrouse/blob_admin
    HTTP (deprecated)
August 13, 2024