14 var parser = new DOMParser();
15 let title = "Linus's stream";
16 let link = "https://api3.val.town/express/@coofdy.streamThesaphistRSS";
17 let base = "https://stream.thesephist.com";
18 var rss = [
3export let fetchABird = async () => {
4 const MAX_ID = 777905;
5 const baseUrl = "https://xeno-canto.org/api/2/recordings";
6 const minAnimalId = Math.floor(Math.random() * (MAX_ID + 10));
7 const query = `?query=nr:${minAnimalId}-${minAnimalId + 10}`;
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
5 const { LangChainTracer } = await import("npm:langchain/callbacks");
6 const client = new Client({
7 apiUrl: "https://api.smith.langchain.com",
8 apiKey: process.env.LANGSMITH,
9 ...options,
10 });
1export function myApi(name) {
2 return "hi " + name;
3}
3// GitHub repos
4export let githubRepos = fetchJSON(
5 "https://api.github.com/users/stevekrouse/repos"
6);
14 const { default: genCode } = await pugCodegen;
15 const pugFnStr = genCode(parser.parse(), { inlineRuntimeFunctions: true });
16 const evalResp = await fetch("https://api.val.town/v1/eval", {
17 method: "POST",
18 body: JSON.stringify({
1export function myApi(name) {
2 return "hi " + name;
3}
6 const { micromark } = await import("npm:micromark");
7 const rows = await fetch(
8 "https://data.ny.gov/api/views/7rrd-248n/rows.csv?accessType=DOWNLOAD&sorting=true",
9 )
10 .then((r) => r.text())