1// Response with "Hello World" in crazy CSS and silly gradients
2export default async function(req: Request): Promise<Response> {
3 const htmlResponse = `
4 <!DOCTYPE html>
1// Response with "Hello World" in fancy HTML with silly gradients on every HTTP request
2export default async function(req: Request): Promise<Response> {
3 const html = `
4 <!DOCTYPE html>
1// Response with a silly HTML page with crazy CSS and gradients
2export default async function(req: Request): Promise<Response> {
3 const html = `
4 <html>
1// Respond with fun HTML content and silly gradients on every HTTP request
2export default async function(req: Request): Promise<Response> {
3 const htmlContent = `
4 <html>
1// Respond with a HTML page with silly gradients and crazy CSS
2export default async function (req: Request): Promise<Response> {
3 const htmlContent = `
4 <!DOCTYPE html>
1// Response with "Hello World" on every HTTP request
2export default async function(req: Request): Promise<Response> {
3 return new Response("Hello World", { headers: { "Content-Type": "text/plain" } });
4}
1// This val responds to HTTP requests with "Hello, World!"
2export default async function main(req: Request): Promise<Response> {
3 return new Response("Hello, World!");
4}
1// This val responds with "Hello, World!" to all incoming HTTP requests
2
3export default async function main(req: Request): Promise<Response> {
4 return new Response("Hello, World!", { headers: { "Content-Type": "text/plain" } });
5}
1// This val responds with a funky "Hello, world!" HTML page with gradient background
2export default async function main(req: Request): Promise<Response> {
3 const html = `
4 <html>
1// This val responds with an HTML page styled with funky CSS gradients
2export default async function main(req: Request): Promise<Response> {
3 const htmlContent = `
4 <html>
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.