Search
![iyzg avatar](https://images.clerk.dev/oauth_github/img_2TUGlQIfsjdUbtZEau4UKr846Kz.jpeg)
myApi
@iyzg
An interactive, runnable TypeScript val by iyzg
Script
export function myApi(name) {
return "hi " + name;
![imandel avatar](https://images.clerk.dev/oauth_github/img_2Pbdaiy9nxVeZS6yZdyiKWFI9dr.png)
myApi
@imandel
An interactive, runnable TypeScript val by imandel
Script
export function myApi(name) {
return "hi " + name;
myApi
@ALienbytes
An interactive, runnable TypeScript val by ALienbytes
Script
export function myApi(name) {
return "hi " + name;
![michael_town avatar](https://images.clerk.dev/oauth_github/img_2SZJf7KEF5tyf6PxLFgiDS3wK7v.png)
myApi
@michael_town
An interactive, runnable TypeScript val by michael_town
Script
export function myApi(name) {
return "hi " + name;
EnkakuAuthenticatedAPI
@paul_lecam
An interactive, runnable TypeScript val by paul_lecam
HTTP
await sqlite.execute(`create table if not exists kv(key text unique, value text)`);
async function getValue(key: string): Promise<string | null> {
const res = await sqlite.execute({ sql: `select value from kv where key = :key`, args: { key } });
return res.rows[0]?.[0] ?? null;
async function listEntries(): Promise<Array<[string, string | null]>> {
const res = await sqlite.execute("select key, value from kv");
return res.rows as Array<[string, string | null]>;
async function setValue(key: string, value: string | null): Promise<void> {
await sqlite.execute({ sql: `insert or replace into kv(key, value) values(:key, :value)`, args: { key, value } });
![andytl avatar](https://images.clerk.dev/oauth_github/img_2QxcZto8fhAKz9f7tDz43dzNM1N.jpeg)
myApi
@andytl
An interactive, runnable TypeScript val by andytl
Script
export function myApi(name) {
return "hi " + name;
myApi
@benbenbenbenbenben
An interactive, runnable TypeScript val by benbenbenbenbenben
Script
export function myApi(name) {
return "hi " + name;
web_6WlNAlBG2k
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_6WlNAlBG2k(req) {
return new Response(`<!DOCTYPE html>
<html>
![silversteez avatar](https://images.clerk.dev/oauth_github/img_2SmtF1ESi9mLoKmABPDGwhPo5Zg.png)
myApi
@silversteez
An interactive, runnable TypeScript val by silversteez
Script
export function myApi(name) {
return "hi " + name;
![b0o avatar](https://images.clerk.dev/oauth_github/img_2QtXBf65lMGFpUmmvvoIm2KuRkN.jpeg)
myApi
@b0o
An interactive, runnable TypeScript val by b0o
Script
export function myApi(name) {
return "hi " + name;
![dantaeyoung avatar](https://images.clerk.dev/oauth_github/img_2PhRJV5CizAxF2bsCR64RgR1hVx.jpeg)
myApi
@dantaeyoung
An interactive, runnable TypeScript val by dantaeyoung
Script
export function myApi(name) {
return "hi " + name;
![webup avatar](https://images.clerk.dev/uploaded/img_2S4HPCT6HNZNKzadzuovxeU1BRZ.webp)
chatSampleFunctionTagging
@webup
An interactive, runnable TypeScript val by webup
Script
import { chat } from "https://esm.town/v/webup/chat";
export const chatSampleFunctionTagging = (async () => {
const input =
${input}
const functions = [
name: "information_extraction",
required: ["tone", "language"],
const response = await chat(prompt, { functions });
return JSON.parse(response?.arguments);
test
@janpaul123
An interactive, runnable TypeScript val by janpaul123
Script
export function test(a) {
return a * a;