Avatar

tr3ntg

Joined June 9, 2023
Likes
8
stevekrouse avatar
stevekrouse
openaistreaminghtml
HTTP
Forked from stevekrouse/openaiStreamingDemo
1
pomdtr avatar
pomdtr
testBasicAuth
HTTP
An interactive, runnable TypeScript val by pomdtr
2
stevekrouse avatar
stevekrouse
remarkDemoJSX
HTTP
Forked from stevekrouse/remarkDemo
2
andreterron avatar
andreterron
form_handler
HTTP
Receive form responses Live demo: https://andreterron-form_demo.web.val.run/ Create a form that posts to your val: <form action="https://andreterron-form_handler.web.val.run" method="post"> <label for="username">Val Town username:</label> <input name="username" type="text"> <button type="submit">Submit</button> </form> And get your results stored as an array: // set by andreterron.form_handler at 2023-08-10T21:04:43.364Z let formResponses = [{ "username": "andreterron", }, { "username": "stevekrouse", }]; Usage Fork this val and click the ๐Ÿ”’ to set it as "Unlisted" Open the val menu โ†’ Endpoints โ†’ "Copy web endpoint" Use that url as the action attribute of your form Check out the example val: https://www.val.town/v/andreterron.form_demo Storage of form submissions This val saves to another val ( @me.formResponse ), which has a 100kb limitation (250kb for pro users), if you want to store them in a more scalable solution, check out our guides
1
easrng avatar
easrng
uploadTo0x0
Script
upload to 0x0.st usage: import { uploadTo0x0 } from "https://esm.town/v/easrng/uploadTo0x0" console.log(await uploadTo0x0("test data", "filename")) data can be a string, a TypedArray, an ArrayBuffer, or a Blob returns a url (ie https://0x0.st/X-wB.txt ) to a file that expires after an hour
4
Next