Avatar

neverstew

Twice called wise. 🧐 Building a better world at https://equalcare.coop.
Joined January 12, 2023
Public vals
121
neverstew avatar
libsqlstudio
@neverstew
HTTP
LibSQLStudio To authenticate, use an API Token .
neverstew avatar
cronEvalLogger
@neverstew
Script
Log your cron evaluations to sqlite import { cronEvalLogger } from "https://esm.town/v/neverstew/cronEvalLogger"; const yourCron = async (interval: Interval) => { console.log("your code goes here"); }; export default cronEvalLogger(yourCron);
neverstew avatar
ivoryPorpoise
@neverstew
HTTP
@jsxImportSource https://esm.sh/preact
neverstew avatar
cors_example
@neverstew
HTTP
CORS issues are the bane of frontend engineers. In Val Town, if you don't customize any CORS headers, we add these defaults: Access-Control-Allow-Origin: "*" Access-Control-Allow-Methods: "GET,HEAD,PUT,PATCH,POST,DELETE" You can override them if you wish to disallow CORS. Check out @neverstew/setCorsHeaders for the easiest way to do this in your code. This val is a client-side-rendered React app that makes requests to @stevekrouse/cors_example_backend. The backend is in a different val because CORS applies to requests on different domains. The backend has examples of the default permissive CORS behavior and disabled CORS.
neverstew avatar
setCorsHeaders
@neverstew
Script
An interactive, runnable TypeScript val by neverstew
neverstew avatar
connect4Agent
@neverstew
HTTP
neverstew avatar
blobDirList
@neverstew
Script
List things in a blob directory Blobs can be organised using "directories" e.g. /animals all-animals.txt /dogs sausage.txt /cats tom.txt is really only three files: /animals/all-animals.txt , /animals/dogs/sausage.txt and /animals/cats/tom.txt because directories don't really exist, we're just making longer filenames. When you want to list things only "in a directory" and none of the child "directories", you can use this val. import { blobDirList } from "https://esm.town/v/neverstew/blobDirList"; console.log(await blobDirList("/animals")); // returns only "/animals/all-animals.txt"
neverstew avatar
discordEventReceiver
@neverstew
HTTP
An interactive, runnable TypeScript val by neverstew
neverstew avatar
vtApiExample
@neverstew
Script
An interactive, runnable TypeScript val by neverstew
neverstew avatar
vtApiTypes
@neverstew
Script
* This file was auto-generated by openapi-typescript. * Do not make direct changes to the file.
neverstew avatar
updateVtApiTypes
@neverstew
Cron
An interactive, runnable TypeScript val by neverstew
neverstew avatar
preactTest
@neverstew
HTTP
An interactive, runnable TypeScript val by neverstew
neverstew avatar
viewSource
@neverstew
HTTP
View source code Just like a right click + inspect on desktop, except available on mobile too! Just write the website after the / e.g. https://neverstew-viewSource.web.val.run/bbc.co.uk
neverstew avatar
prettifyHtml
@neverstew
Script
An interactive, runnable TypeScript val by neverstew
neverstew avatar
duckdbExample
@neverstew
Script
An interactive, runnable TypeScript val by neverstew
neverstew avatar
sqliteBuilder_plus_easy_table
@neverstew
Script
An interactive, runnable TypeScript val by neverstew