Avatar

nbbaier

Valin' up a storm
Joined January 12, 2023
Public vals
142
nbbaier avatar
removeTrackingParams2
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
nbbaier avatar
VALLE
@nbbaier
HTTP
Fork it and authenticate with your Val Town API token as the password. Needs an OPENAI_API_KEY env var to be set, and change the variables under "Set these to your own". https://x.com/JanPaul123/status/1812957150559211918
nbbaier avatar
URLSearchParamsPuzzle
@nbbaier
Script
// Create a test URLSearchParams object
nbbaier avatar
maroonTiger
@nbbaier
Script
Kysely on val.town Uses @easrng/kyselyVtDialect as a Kysely Dialect and @easrng/kyselyVtTypes for type autogeneration.
nbbaier avatar
removeTrackingParams
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
nbbaier avatar
trackingParams
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
nbbaier avatar
status
@nbbaier
HTTP
Uptime Status Page This is the status page for the data generated by this uptime cron: @stevekrouse/uptime
nbbaier avatar
uptime
@nbbaier
Cron
Uptime Checker & Status Page This is a free, hackable uptime/downtime monitor that sends you an email when the site doesn't return a 200. It also stores historical uptime and latency data in your Val Town SQLite, which is used to power a status page. It supports multiple URLs in the same database and status page. Installation Fork this val Edit the list of URLs to what you want to check For the status page, fork this val: @stevekrouse/status
nbbaier avatar
cronLogger
@nbbaier
Script
Log your cron evaluations to sqlite import { cronEvalLogger as logger } from "https://esm.town/v/nbbaier/cronLogger"; const run = async (interval: Interval) => { console.log("your code goes here"); }; export default logger(run);
nbbaier avatar
checkValName
@nbbaier
Script
This val provides a utility function that tests whether a given string is a valid val unique name (like the ones automatically generated when creating a new val). It's based on info provided by @maxm in the discord.
nbbaier avatar
PGlite
@nbbaier
HTTP
PGlite on Val Town - A whole Postgres in your val All you need to do is first import the Deno xmlhttprequest polyfill and then PGlite: import "https://deno.land/x/xhr@0.1.0/mod.ts"; import { PGlite } from "https://cdn.jsdelivr.net/npm/@electric-sql/pglite/dist/index.js"; Importing using esm.sh doesn't seem to work, see https://github.com/electric-sql/pglite/issues/110
nbbaier avatar
archiveVal
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
nbbaier avatar
perplextiyAPI
@nbbaier
Script
An interactive, runnable TypeScript val by nbbaier
nbbaier avatar
libsql_client_hooks_test
@nbbaier
Script
// const client = createClient({
nbbaier avatar
emailEcho
@nbbaier
Email
Email Echo Bot Send an email to stevekrouse.emailEcho@valtown.email and it will send it back to you!
nbbaier avatar
aquaDamselfly
@nbbaier
HTTP
@jsxImportSource https://esm.sh/hono@latest/jsx