1// View at https://stevekrouse-expressHTMLExample.express.val.run?name=Steve
2export async function exampleData(req: express.Request, res: express.Response) {
3 return res.send(JSON.stringify({ data: [0, 1, 2, 3, 4, 5, 6] }));
4}
1import { check_reddit } from "https://esm.town/v/bnorick/check_reddit";
2
3export async function reddit_alert_example({ lastRunAt }) {
4 console.log(`last run at ${lastRunAt.getTime() / 1000}`);
5 return await check_reddit({
1import { calc_qq_string } from "https://esm.town/v/envl/calc_qq_string";
2
3export async function upgradeQQ(initial = 1688027887700) {
4 const unit = 1000 * 3600 * 12; // 这里取12小时做一个单位
5 // const initial = 1688027887700;
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function keriatShemaReminser() {
4 const today = new Date().toISOString().split("T")[0];
5 const city = "IL-Jerusalem";
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1import { newRssItems } from "https://esm.town/v/stevekrouse/newRssItems";
2
3export async function pollRssFeed2({ lastRunAt }) {
4 return ["https://inkandswitch.com/index.xml”].map(async (url) => {
5 let items = await newRssItems({ url, lastRunAt });
1export function myApi(name) {
2 return "hi " + name;
3}
1import { fetchHtmlDom } from "https://esm.town/v/aeaton/fetchHtmlDom";
2
3export async function kpunkShows() {
4 const url = "https://kpunk.libsyn.com/";
5 const dom = await fetchHtmlDom(url);
A helper function to build a file's email
Simple functional CSS library for Val Town
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",