Avatar

mxdvl

Digital toolmaker Currently client-side @guardian
Joined March 5, 2023
Likes
11
pomdtr avatar
pomdtr
astro
HTTP
Astro served from Val Town (with SSR) ! The ultimate goal would be to serve it if from jsr, but the deno astro adapter still relies on deno.land.
5
pomdtr avatar
pomdtr
val_town_client
Script
An interactive, runnable TypeScript val by pomdtr
1
stevekrouse avatar
stevekrouse
passkeys_demo
HTTP
Passkeys Demo Passkeys are pretty neat! I wanted to get a demo working in Val Town so I ported over https://github.com/maximousblk/passkeys-demo. One challenge was that the original extensively uses DenoKV store with compound keys and values. I created @stevekrouse/DenoSyntheticKV as a replacement for DenoKV. It uses SuperJSON to encode the keys and values. You can find the client-side script for the main page here: @stevekrouse/passkey_script
6
neverstew avatar
neverstew
sleep
Script
An interactive, runnable TypeScript val by neverstew
1
neverstew avatar
neverstew
inTheBackgroundExample
HTTP
inTheBackground With the addition of the "early return" feature of web handlers, you can now process short background tasks in vals. This can be really useful for occasions where an immediate response is required, with a subsequent update a few seconds later e.g. a Discord bot that calls ChatGPT needs to respond within a few seconds, which can be too fast for the AI to generate a response. We can instead reply immediately and then update that message later, inTheBackground Simply wrap something in inTheBackground and it will do just that! In this example, we log something a few seconds later than the web response is sent back.
1
pomdtr avatar
pomdtr
extractValInfo
Script
Extract vals infos (author, name, version) from a val url (either from esm.town or val.town ). Example usage: const {author, name} = extractValInfo(import.meta.url) Also returns a unique slug for the val: <author>/<name>
15
pomdtr avatar
pomdtr
gfm
Script
Markdown to html (with github styling)
9
neverstew avatar
neverstew
generateQR
HTTP
Forked from ramkarthik/GenerateQR
2
Next