2// but you want to be able to import that entire val into another val as a component
3// this is probably not what the creators intended. Welcome back, File System.
4export function getValAsString(valName: string) {
5 // TODO:
6 // 1. authorId
11 const msg = document.querySelector('#valtown-message');
12 const submitBtn = document.querySelector('#valtown-submit');
13 async function getMessages() {
14 const r = await fetch('https://${valUser}-${valName}.express.val.run');
15 msgList.innerHTML = '<ul>';
19 msgList.innerHTML += '</ul>';
20 }
21 async function sendMessage() {
22 submitBtn.disabled = true
23 const r = await fetch('https://${valUser}-${valName}.express.val.run', {
1export function myApi(name) {
2 return "hi " + name;
3}
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function weatherTest(lat, long) {
4 return "hi";
5 const URL = `https://api.weather.gov/points/${lat},${long}`;
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export function deleteVal({ token, id }: {
4 token: string;
5 id: string;
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1import { runVal } from "https://esm.town/v/std/runVal";
2
3export async function gpt3(msg) {
4 return await runVal("patrickjm.gpt3", {
5 prompt: JSON.stringify(msg),
1export function test() {
2 return "AAAA";
3}
3import { getEmails } from "https://esm.town/v/eric/getEmails";
4
5untitled0045282 = export async function asyncSubscribe() {
6 const s = await getEmails()
7 console.log(s)
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.