ptr avatar
ptr
getHolidays
Script
An interactive, runnable TypeScript val by ptr
0
colinz avatar
colinz
aqi
Cron
An interactive, runnable TypeScript val by colinz
0
std avatar
std
set
Script
@std.set Deprecated: use @std/blob now instead. Set a val on your account to JSON, which you can use as a key-value store.
0
jswank avatar
jswank
githubRepos
Script
An interactive, runnable TypeScript val by jswank
0
cosmo avatar
cosmo
get_weather_message
Script
An interactive, runnable TypeScript val by cosmo
0
pomdtr avatar
pomdtr
raw
HTTP
Fetch the source of a val This val was created before the introduction of https://esm.town Usage curl https://pomdtr-raw.web.val.run/v/<author>/<name>.<extension>[?v=<version>] To see the code of this val, use https://pomdtr-raw.web.val.run/v/pomdtr/raw.ts Examples Fetching the val code $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.tsx You can also use js , jsx and ts extension (only the content-type change, there is no transpilation). Fetching private val Pass an api token as an username $ curl "https://<token>@pomdtr-raw.web.val.run/v/pomdtr/privateVal.ts" Fetching the val README $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.md Getting an image $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.png Fetching a specific version of a val $ curl https://pomdtr-raw.web.val.run/v/pomdtr/raw.ts?v=66 You need to be authenticated to use this method. Fetching the val metadata $ curl https://pomdtr-raw.web.val.run/v/pomdtr/add.json Running vals locally using Deno Create a new val.ts file referencing the @pomdtr.add import { add } from "https://pomdtr-raw.web.val.run/v/pomdtr/add.ts"; console.log(add(1, 2)); then use deno run $ deno run ./val.ts 3 If you val accept a request and return a response, you can pass it to Deno.Serve to run it locally! import {raw} from "https://pomdtr-raw.web.val.run/v/pomdtr/raw.ts"; Deno.serve(raw); If your val is private, you can set the DENO_AUTH_TOKENS env. DENO_AUTH_TOKENS=<val-town-token>@pomdtr-raw.web.val.run deno run val.ts
4
simonwalsh avatar
simonwalsh
whiteCondor
Script
// Activity suggestions for when you're bored
0
janpaul123 avatar
janpaul123
valwriter_output
Script
// This approach fetches weather data for Brooklyn, NY from the Open Meteo API
0
stevekrouse avatar
stevekrouse
valtownAPIExamples
Script
An interactive, runnable TypeScript val by stevekrouse
1
stungeye avatar
stungeye
githubFollowers
Script
An interactive, runnable TypeScript val by stungeye
0
problem avatar
problem
dailyDadJoke
Cron
Forked from stevekrouse/dailyDadJoke
0
bikefixe avatar
bikefixe
cityLookup
Script
// Cities named Brooklyn
0
astrat1 avatar
astrat1
umbrellaReminder
Cron
Forked from ayush37/umbrellaReminder
0
stevekrouse avatar
stevekrouse
untitled_library_unauthenticated_cannot_read_val_stevekrouse_func
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
eval_
Script
An interactive, runnable TypeScript val by stevekrouse
0
neverstew avatar
neverstew
valVersions
Script
An interactive, runnable TypeScript val by neverstew
0
Updated: July 2, 2024