madmod avatar
mathFact
@madmod
Script
An interactive, runnable TypeScript val by madmod
stevekrouse avatar
esmTownTranspileDemo
@stevekrouse
Script
Val Town's esm.town Transpiles TypeScript and JSX for browsers When Val Town's code registry (esm.town) gets a request from a browser (which it can detect via the User Agent header), it transpiles that val's code to web-standard JavaScript be able to run in the browser. It doesn't do as much as other transpilers (such as esm.sh, such as rewriting npm: imports, etc). We may add that capability in the future. For now, if you want your npm imports to run in the browser, use https://esm.sh/package instead of npm:package . The below script demonstrates this transiplation behavior by fetching its own source code ( import.meta.url ) with the user agent of a browser. You can uncoment the line setting the browser agent if you want to see the difference in the output. Or you could just load this val's module URL in your browser to see the untranspiled TS. As of July 23, 2024, this is the code that determines when esm.town transpiles or not:
stevekrouse avatar
valTownBlogRSS
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
nbbaier avatar
kysely_valgen_POC
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
andrewn avatar
dailyMathFact
@andrewn
Script
An interactive, runnable TypeScript val by andrewn
stevekrouse avatar
untitled_ivoryFlea
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
stevekrouse avatar
insecureSSLCertExample
@stevekrouse
Script
This is an example call of @stevekrouse/insecureFetch
stevekrouse avatar
fetchHTML
@stevekrouse
Script
// this function doesn't work yet, I'm still iterating on it
lukas avatar
feedGenerator
@lukas
Script
// All of this is heavily based on RobPC's feed generator sample
elsif_maj avatar
nameTopHNThread
@elsif_maj
Script
An interactive, runnable TypeScript val by elsif_maj
yawnxyz avatar
valwriter
@yawnxyz
HTTP (deprecated)
Forked from stevekrouse/valwriter
stevekrouse avatar
zwjEmoji
@stevekrouse
Script
An interactive, runnable TypeScript val by stevekrouse
baj avatar
nyt
@baj
Express
An interactive, runnable TypeScript val by baj
joseph_c100 avatar
smallboatsapi
@joseph_c100
HTTP (deprecated)
An API that fetches the html table of small boat arrivals data from the UK gov website. This data is from the last 7 days and updated daily.
jamiedubs avatar
wikipediaToday
@jamiedubs
HTTP (deprecated)
fetch the contents of the Wikipedia "On this day in history" page. defaults to JSON output, but specify ?format=text or ?format=html for other outputs. e.g. https://jamiedubs-wikipediatoday.web.val.run/?format=json https://jamiedubs-wikipediatoday.web.val.run/?format=text https://jamiedubs-wikipediatoday.web.val.run/?format=html #wikipedia
vyatka avatar
WebSiteReact
@vyatka
HTTP (deprecated)
Forked from jdan/latLngOfCity
November 8, 2023