Google Sheets API examples & templates
Use these vals as a playground to view and fork Google Sheets API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
yawnxyz
htmlkit
Script
This module provides functions to convert HTML to various formats such as Markdown, Pug, and Turndown.
It also includes utilities to fetch HTML from a URL, extract metadata, and clean HTML by removing unwanted selectors.
Dependencies include Cheerio for HTML parsing, JSDOM for DOM manipulation, and Turndown for converting HTML to Markdown.
0
andreterron
violetPerch
Cron
Website Downtime Alert This val checks the availability of a specified website. If it's down or not returning a 200 OK status, it triggers an email alert. The email includes the date, time (in UTC), and the reason for the downtime, providing a way to monitor website availability. Fork this val and edit the URL variable to set up downtime notifications for your website.
0
fal
creative_upscaler
Script
Creative Upscaler link to val - https://www.val.town/v/fal/creative_upscaler Usage const upscaledImage = @fal.creative_upscaler("an owl", "https://storage.googleapis.com/falserverless/model_tests/upscale/owl.png") Usage import fal from "npm:@fal-ai/serverless-client";
const result = await fal.subscribe("fal-ai/creative-upscaler", {
input: {
prompt: "an owl",
image_url: "https://storage.googleapis.com/falserverless/model_tests/upscale/owl.png",
},
logs: true,
onQueueUpdate: (update) => {
if (update.status === "IN_PROGRESS") {
update.logs.map((log) => log.message).forEach(console.log);
}
},
}); https://www.fal.ai/models/creative-upscaler
0
stevekrouse
company
Email
Val Town Company *@val.town Email Routing This val forwards emails to addresses that don't exist to all of us at Val Town. For example, this forwards feedback@val.town to all of us. We achieve this by forwarding emails to this email handler, and this email handler forwards them along. To accomplish this without Val Town would require setting up a Google Group. I prefer doing it in code. Over time we will have more complex routing here.
1
tmcw
litExample
Script
lit Lit is kind of like Google's answer to React: it's a little more reliant on browser APIs like custom elements and the shadow DOM, a little less 'magic', like using JSX. This is an example of using Lit and rendering it straight to a string, which is something that's recently popular. It works pretty well, right off the bat: Lit provides nice ESM modules and a pretty smooth workflow!
0