1import { myTestForm } from "https://esm.town/v/octref/myTestForm";
2
3export function handleForm(params) {
4 myTestForm.push(params);
5 return `Thanks for your submission ${params.name}`;
1// load 'src' from CDN if it isn't already
2// callback is a string that defines a function you'd like to run after your script loads
3export function addScript(src: string, callback?: Function): string {
4 return `
5 <script type="text/javascript">
3import { addReactFromCDN } from "https://esm.town/v/liamdanielduffy/addReactFromCDN";
4
5export function myReactApp() {
6 const loadReact = addReactFromCDN();
7 const myReactComponent = myReactComponent2();
1export function githubPayloadStringToNormalizedJSON(payload: string) {
2 const payloadObject = JSON.parse(payload);
3 // GitHub sends its JSON with an indentation of 2 spaces and a line break at the end
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}
1export function myApi(name) {
2 return "hi " + name;
3}
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export function valVersions({ token, id, offset, limit }: {
5 token?: string;
6 id: string;
2import { secretToTelegramChat } from "https://esm.town/v/pomdtr/secretToTelegramChat";
3
4export async function telegramWelcome(req: express.Request, res: express.Response) {
5 const { message } = req.body;
6 let secret: string;
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.