Back to APIs list

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 avatar
htmlkit
@yawnxyz
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.
yawnxyz avatar
lastlogin
@yawnxyz
Script
Forked from pomdtr/lastlogin
yawnxyz avatar
urlMetadata
@yawnxyz
Script
// console.log(await getUrlMetadata('https://arstechnica.com/space/2024/06/nasa-indefinitely-delays-return-of-starliner-to-review-propulsion-data/'))
andreterron avatar
violetPerch
@andreterron
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.
fal avatar
creative_upscaler
@fal
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
stevekrouse avatar
button
@stevekrouse
HTTP
Forked from easrng/button
triptych avatar
litExample
@triptych
Script
Forked from tmcw/litExample
tmcw avatar
litExample
@tmcw
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!
iamseeley avatar
RootLayout
@iamseeley
Script
@jsxImportSource https://esm.sh/hono@latest/jsx
yawnxyz avatar
hnCloneOAuth
@yawnxyz
Script
An interactive, runnable TypeScript val by yawnxyz
stevekrouse avatar
company
@stevekrouse
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.
fal avatar
svd
@fal
Script
Stable Video Diffusion link to val - https://www.val.town/v/fal/svd import * as fal from "@fal-ai/serverless-client"; const result = await fal.subscribe("fal-ai/fast-svd", { input: { image_url: "https://storage.googleapis.com/falserverless/model_tests/svd/rocket.png" }, logs: true, onQueueUpdate: (update) => { if (update.status === "IN_PROGRESS") { update.logs.map((log) => log.message).forEach(console.log); } }, }); https://www.fal.ai/models/svd/playground
tmcw avatar
recipes
@tmcw
Script
An interactive, runnable TypeScript val by tmcw
skyehersh avatar
date_me_docs_table
@skyehersh
Script
Forked from stevekrouse/date_me_docs_table
stevekrouse avatar
date_me_docs_table
@stevekrouse
Script
@jsxImportSource https://esm.sh/preact
skyehersh avatar
dataTableScript
@skyehersh
Script
Forked from stevekrouse/dataTableScript