Public
Script
Forked from stevekrouse/fetchJSON
v49
January 8, 2024
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
readmeManager
@postpostscript
HTTP
@postpostscript/readmeManager: Edit Val Readmes With Persistent Drafts edit this readme Todo: [ ] Upload images [ ] Autosave/save without reloading page [ ] Ctrl+S [ ] Multiple draft versions [ ] Switch to dark codemirror theme which has markdown styling [ ] Allow for checking checkboxes in preview [ ] View with just the preview [ ] Ability to favorite vals on the Home page
emptyValUtils
@nbbaier
Script
Empty Val Utils Handy utility functions to see if you have vals with no code lying around your account and to delete them (is you want to). Usage listEmptyVals import {listEmptyVals } from "https://esm.town/v/nbbaier/deleteEmptyVals";
console.log(await listEmptyVals(<user_id>)) deleteEmptyVals import {listEmptyVals } from "https://esm.town/v/nbbaier/deleteEmptyVals";
await deleteEmptyVals(<user_id>)
filterVals
@nbbaier
Script
filterVals This val exports a utility function that returns a list of all a user's val, filtered by a callback function. Example Get the names of all your private vals: import { filterVals } from "https://esm.town/v/nbbaier/filterVals";
const id = <user_id>
const vals = await filterVals(id, (v) => v.privacy === "private")
const privateValNames = vals.map(v => v.name);
v49
January 8, 2024