1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function wikitxt(article: string) {
4 try {
5 const wiki = await fetch(
21`;
22 const formClass = "p-2 group min-h-screen animate-all bg-pink-50";
23 function parseCookies(cookie: string) {
24 const out: Record<string, string> = {};
25 const c = cookie.split(";");
31 return out;
32 }
33 function getResults(hasVoted: boolean) {
34 return html`<html>
35 ${head}
1import { twitterAPIDown } from "https://esm.town/v/stevekrouse/twitterAPIDown";
2
3export async function twitterAPIDownAlert() {
4 if (twitterAPIDown.down)
5 console.email(
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export async function runAllTests({
4 names,
5 api,
3import { rssFeeds } from "https://esm.town/v/stevekrouse/rssFeeds";
4
5export async function pollRSSFeeds({ lastRunAt }: Interval) {
6 return Promise.all(
7 Object.entries(rssFeeds).map(async ([name, url]) => {
1export async function time(f: Function): Promise<[
2 any,
3 number,
1export function testSpeedInsights(req: express.Request, res) {
2 if (req.path === "/robots.txt") {
3 return res.send(`User-agent: *
1import process from "node:process";
2
3export function untitled_return_me_secret() {
4 return process.env.test;
5}
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function pingReplit() {
4 fetch("https://bed.paperee.repl.co/");
5 fetch("https://school-work.paperee.repl.co/");
1export function myApi(req, res) {
2 res.set("Content-Type", "application/json");
3 res.send([{ value: "wangtianbao", url: "https://www.967111.net" }]);
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": "*",