1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function json(url: string): Promise<any> {
4 return await (await fetch(url)).json();
5}
1import { jsJamMessages } from "https://esm.town/v/stevekrouse/jsJamMessages";
2
3export function jsJamHTML(req, res) {
4 res.send(`<h1>${JSON.stringify(jsJamMessages)}</h1>`);
5}
1// https://stevekrouse-serverlessMatrixEchoBot.express.val.run/_matrix/push/v1/notify
2export async function serverlessMatrixEchoBot(req, res) {
3 res.send(req.path);
4}
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export function visitMetabase() {
4 const url = "https://metabase.jlast.repl.co/";
5 return fetch(url).then((res) => {
2import { redditNotifierState } from "https://esm.town/v/bnorick/redditNotifierState";
3
4export async function redditAlertBackup({ lastRunAt }) {
5 let subreddit_matches = {};
6
1export function myApi(name) {
2 return "hi " + name;
3}
1export async function ghOrgRepos(
2 owner: string,
3 token: string,
1import { miraclechildcounter } from "https://esm.town/v/politelyinvinciblepointer/miraclechildcounter";
2
3export function getmiraclechildcounter() {
4 return miraclechildcounter;
5}
1export function myApi(name) {
2 return "hi " + name;
3}
2import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=3";
3
4export async function aqiNotifier(location) {
5 // The realtime Air Quality Index (AQI) for any location
6 const myAQI = await easyAQI({
A helper function to build a file's email
Simple functional CSS library for Val Town
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.