1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
3import { nanoid } from "https://esm.town/v/stevekrouse/nanoid?v=3";
4
5export async function twitterAuthHandler(
6 req: Request,
7 { client_id, client_secret, redirect_uri, scopes, storage }: {
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export async function githubStars(
4 handle: string,
5 repo: string,
1export function myApi(name) {
2 return "hi " + name;
3}
1import { valTownInspirationEmail } from "https://esm.town/v/rodrigotello/valTownInspirationEmail?v=79";
2
3export async function valTownDailyInspo() {
4 return await valTownInspirationEmail();
5}
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function getFirebaseTweets() {
4 const result = await fetch("https://twitter.com/firebase");
5 console.log(result);
1export function myApi(name) {
2 return "hi " + name;
3}
1export async function getLemmyJwt({ instance, username, password }: {
2 instance: string;
3 username: string;
7 const { LemmyHttp } = await import("npm:lemmy-js-client@0.18.1");
8 let client = new LemmyHttp(`https://${instance}`, {
9 fetchFunction: fetch,
10 });
11 try {
1export function myApi(name) {
2 return "hi " + name;
3}
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": "*",