Avatar

tmcw

👷 Building Val Town
Joined August 31, 2022
Public vals
167
copperAsp
tmcw
copperAsp
An interactive, runnable TypeScript val by tmcw
Script
jsonBodyParsing
tmcw
jsonBodyParsing
An interactive, runnable TypeScript val by tmcw
HTTP
httpMockingExample
tmcw
httpMockingExample
HTTP Val Mocking example This is an example of mocking an HTTP val. Let's say that you're developing a val that responds to a POST request. That's tricky to debug and develop in the Browser preview tab, which just shows a GET request. But you can do it, because with web-standard Request & Response objects, requests and responses are values, and we can create those values ourselves.
HTTP
apricotSloth
tmcw
apricotSloth
Usage curl https://karfau.web.val.run
Script
maroonSawfish
tmcw
maroonSawfish
An interactive, runnable TypeScript val by tmcw
Script
emeraldLeopard
tmcw
emeraldLeopard
An interactive, runnable TypeScript val by tmcw
Script
untitled_redEarthworm
tmcw
untitled_redEarthworm
An interactive, runnable TypeScript val by tmcw
HTTP
untitled_indigoWren
tmcw
untitled_indigoWren
An interactive, runnable TypeScript val by tmcw
Script
temporalDuration
tmcw
temporalDuration
An interactive, runnable TypeScript val by tmcw
Script
untitled_beigeCrab
tmcw
untitled_beigeCrab
An interactive, runnable TypeScript val by tmcw
HTTP
randomVal
tmcw
randomVal
An interactive, runnable TypeScript val by tmcw
Script
untitled_bronzeCow
tmcw
untitled_bronzeCow
An interactive, runnable TypeScript val by tmcw
HTTP
untitled_beigeElephant
tmcw
untitled_beigeElephant
const result = await sqlite.execute(` CREATE TABLE plugin_stats ( name TEXT, t TIMESTAMP DEFAULT CURRENT_TIMESTAMP, install_count NUMBER, like_count NUMBER, view_count NUMBER )`);
HTTP
placemarkGlobeMonitor
tmcw
placemarkGlobeMonitor
Figma plugin statistics collector I develop two Figma plugins - one that lets you create vector street maps in Figma and one that lets you generate vector globes . It's fun to watch them get some usage, but the Figma community site is pretty barebones. This uses one of the APIs on the Community page as an unofficial API and collects results in Val Town SQLite . You can see a chart of the resulting data on Observable .
Cron
untitled_yellowBear
tmcw
untitled_yellowBear
An interactive, runnable TypeScript val by tmcw
Script
untitled_emeraldCockroach
tmcw
untitled_emeraldCockroach
An interactive, runnable TypeScript val by tmcw
Script