1export function myApi(name) {
2 return "hiyyyy " + name;
3}
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export function getCoolPosts() {
4 return fetch("https://hn.algolia.com/api/v1/search_by_date?tags=author_pg")
5 .then((res) => res.json())
1// View at https://stevekrouse-expressHTMLExample.express.val.run?name=Steve
2export async function expressHTMLExample(
3 req: express.Request,
4 res: express.Response,
1export function hello(app) {
2 return "Apple Sauce";
3}
3import process from "node:process";
4
5export async function chorus_get_all_data(auth, cached) {
6 // check auth
7 if (auth != process.env.chorus_access) {
1export async function fetcher() {}
43${
44 raw(`
45 function fetchTest() {
46 console.log("hi");
47
1export function SignatureCheck(
2 onInvalid: (reason: string) => void = console.error,
3) {
1export const test = function () {
2 console.info("Hello world");
3};
1export function myApi(name) {
2 return "hi " + name;
3}
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": "*",