Avatar

tmcw

👷 Building Val Town
Joined August 31, 2022
Public vals
166
tmcw avatar
brownPelican
@tmcw
HTTP (preview)
An interactive, runnable TypeScript val by tmcw
tmcw avatar
typeboxExample
@tmcw
Script
This val demonstrates how TypeBox objects are interchangeable with JSON Schema objects - if you run JSON.stringify() on one of them, you immediately get a JSON Schema validator. They do, in memory, have additional methods and information, but their easy conversion to JSON Schema objects is a major win.
tmcw avatar
staticChess
@tmcw
HTTP
Check it out here: https://chess.maxmcd.com Plain, brutalist, no bloat chess. Every page is only html and css. Every chess move is made by clicking a link. Send a link to your friend and they'll send you one back to make your move. No silly animations or slick interactivity to trip up your gameplay. When Google indexes this site will we successfully compute all possible chess moves? Functionality is quite limited, and things might be broken. Please let me know if you find bugs! Inspired by this HN discussion about sites that have all possible game states of tic-tac-toe. I plan on extending this to support real gameplay. I think it could be a nice simple interface for long form games with friends. Might also be fun to add a static AI to play against. Feel free to PR any changes if you'd like to see something added.
tmcw avatar
fuchsiaSnipe
@tmcw
HTTP
An interactive, runnable TypeScript val by tmcw
tmcw avatar
greenAnglerfish
@tmcw
HTTP
An interactive, runnable TypeScript val by tmcw
tmcw avatar
reacttldrawclient
@tmcw
Script
@jsxImportSource https://esm.sh/react@18.2.0
tmcw avatar
wasmBlobHost
@tmcw
HTTP
@jsxImportSource https://esm.sh/react
tmcw avatar
jsrExample
@tmcw
Script
An interactive, runnable TypeScript val by tmcw
tmcw avatar
beigeGoat
@tmcw
Script
title: Beige Goat category: blob This val is a quick demo of setting and getting a blob.
tmcw avatar
jadeOpossum
@tmcw
HTTP
Date Me Directory This is entry-point val for the source code for the Date Me Directory. Contributions welcome! This app uses Hono as the server framework and for JSX . The vals are stored in Val Town SQLite . Contributing Forking this repo should mostly work, except for the sqlite database. You'll need to create the table & populate it with some data. This script should do it, but I think it has a couple bugs. If you're interested in contributing to this project contact me or comment on this val and I'll get it working for ya! Todos [ ] Make the SQLite database forkable and build a widget/workflow for that, ie fix @stevekrouse/dateme_sqlite [ ] Require an email (that isn't shared publicly) [ ] Verify the email address with a "magic link" [ ] Refactor Location to an array of Lat, Lon [ ] Geocode all the existing locations [ ] Add a geocoder map input to the form [ ] Allow selecting multiple location through the form [ ] Profile performance & speed up site, possibly add more caching [ ] Let people edit their forms [ ] Featured profiles
tmcw avatar
dateme
@tmcw
HTTP
Date Me Directory This is entry-point val for the source code for the Date Me Directory. Contributions welcome! This app uses Hono as the server framework and for JSX . The vals are stored in Val Town SQLite . Contributing Forking this repo should mostly work, except for the sqlite database. You'll need to create the table & populate it with some data. This script should do it, but I think it has a couple bugs. If you're interested in contributing to this project contact me or comment on this val and I'll get it working for ya! Todos [ ] Make the SQLite database forkable and build a widget/workflow for that, ie fix @stevekrouse/dateme_sqlite [ ] Require an email (that isn't shared publicly) [ ] Verify the email address with a "magic link" [ ] Refactor Location to an array of Lat, Lon [ ] Geocode all the existing locations [ ] Add a geocoder map input to the form [ ] Allow selecting multiple location through the form [ ] Profile performance & speed up site, possibly add more caching [ ] Let people edit their forms [ ] Featured profiles
tmcw avatar
copperAsp
@tmcw
Script
An interactive, runnable TypeScript val by tmcw
tmcw avatar
jsonBodyParsing
@tmcw
HTTP
An interactive, runnable TypeScript val by tmcw
tmcw avatar
httpMockingExample
@tmcw
HTTP
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.
tmcw avatar
apricotSloth
@tmcw
Script
Usage curl https://karfau.web.val.run
tmcw avatar
maroonSawfish
@tmcw
Script
An interactive, runnable TypeScript val by tmcw