1import { postTweet } from "https://esm.town/v/andreterron/postTweet";
2
3export async function correctPostAboutTwitter({ id, accessToken }: {
4 id: string;
5 accessToken: string;
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export function tidbytDeviceInfo({ deviceId, apiKey }: {
4 deviceId: string;
5 apiKey: string;
1export function myApi(name) {
2 return "hi " + name;
3}
2import { sendMsgToDiscord } from "https://esm.town/v/kos0616/sendMsgToDiscord";
3
4export async function callMe(msg: string) {
5 try {
6 await sendMsgToDiscord(msg);
1export function myApi(name) {
2 return "hi " + name;
3}
3import { mermaidStateDiagramOfMarkov } from "https://esm.town/v/jdan/mermaidStateDiagramOfMarkov";
4
5export async function mermaidHtml() {
6 const numElements = 30;
7 const ngram = 2;
29}
30type Games = Record<GameType, Entry>;
31export async function lichessTVGames(): Promise<Games> {
32 const channels = await fetch("https://lichess.org/api/tv/channels");
33 return await channels.json();
1export function hello() {
2 return "hello";
3}
1export function moveHead(head, dir) {
2 if (["RIGHT", "LEFT"].includes(dir)) {
3 return {
1import { Diamond_Produce } from "https://esm.town/v/ralfw/Diamond_Produce";
2
3export async function Diamond_Render(req: express.Request, resp: express.Response) {
4 const size = parseInt(req.query.size);
5 const diamond = Diamond_Produce(size);
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": "*",