1import { runVal } from "https://esm.town/v/std/runVal";
2
3export const apiExample = runVal("patrickjm.gpt3", {
4 prompt: "write me a poem about tralee",
5});
1import { runtime } from "https://esm.town/v/easrng/runtime";
2
3export const API_URL = await runtime() === "v3-staging"
4 ? "https://api.v3.val.town"
5 : "https://api.val.town";
1export function myApi(name) {
2 return "hi " + name;
3}
2
3export const getLinkAggregatorUserCounts = (async () => {
4 const response = await fetch("https://api.fedidb.org/v1/software?limit=40");
5 const json = await response.json();
6 const lemmy = json.data.find((software) =>
2 { identifier, password, text, facets },
3) => {
4 const { default: AtProto } = await import("npm:@atproto/api");
5 const { BskyAgent, RichText } = AtProto;
6 const bskyService = "https://bsky.social";
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 { runVal } from "https://esm.town/v/std/runVal";
3
4// https://api.val.town/v1/express/zzz.rime?text=Hello%20Val%20Town
5// videoId: either videoId or full youtube url (e.g. https://www.youtube.com/watch?v=p2glje8z_tw)
6export async function YoutubeSummary(req, res) {
2
3export const fetchHTML = (async () => {
4 let f = await fetch("https://api.val.town/express/@beneskildsen.serveHTML", {
5 method: "GET",
6 headers: {