Search
myApi
@factori
An interactive, runnable TypeScript val by factori
Script
export function myApi(name) {
return "hi " + name;
myApi
@jinxingit
An interactive, runnable TypeScript val by jinxingit
Script
export function myApi(name) {
return "hi " + name;
myApi
@spurushottam13
An interactive, runnable TypeScript val by spurushottam13
Script
export function myApi(name) {
return "hi " + name;
exampleTextClassification
@iamseeley
An interactive, runnable TypeScript val by iamseeley
HTTP
import Pipeline from "https://esm.town/v/iamseeley/pipeline";
export default async function handler(req) {
if (req.method === "GET") {
return new Response(`
val_OPFDaimIjZ
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_OPFDaimIjZ(req) {
try {
// Execute the code directly and capture its result
myApi
@galligan
An interactive, runnable TypeScript val by galligan
Script
export function myApi(name) {
return "hi " + name;
myApi
@lionello
An interactive, runnable TypeScript val by lionello
Script
export function myApi(name) {
return "hi " + name;
myApi
@spdegabrielle
An interactive, runnable TypeScript val by spdegabrielle
Cron
export function myApi(name) {
return "hi " + name;
myApi
@marc
An interactive, runnable TypeScript val by marc
Script
export function myApi(name) {
return "hi " + name;
myApi
@brians
An interactive, runnable TypeScript val by brians
Script
export function myApi(name) {
return "hi " + name;
myApi
@AlexSwensen
An interactive, runnable TypeScript val by AlexSwensen
Script
export function myApi(name) {
return "hi " + name;
myApi
@smfoote
An interactive, runnable TypeScript val by smfoote
Script
export function myApi(name) {
return "hi " + name;
airquality
@rodrigotello
// Forked from @stevekrouse.aqi
Script
import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=3";
export async function airquality(interval: Interval) {
const location = "brooklyn navy yard"; // <-- change to place, city, or zip code
const data = await easyAQI({ location });
FindFraudTrendsUsingGPT
@mjweaver01
FraudTrendsGPT Generate real-time Fraud Trend Reports using GPT-4o Goal This agent is designed to find trends in merchant transaction reports, and produce a real time report. Reports are complete with relevant data tables and Mermaid charts. Semi-Data-Agnostic This agent is semi-agnostic to the data provided. Meaning, it will provide a report so long as the provided data is shaped similarly, or the prompt is updated to support the new data shape. Agent Reusability Moreover, this agent can be rewritten for any number of use cases. With some variable renaming, and rewriting of the prompt, this should produce very accurate data analytic reports for any data provided.
HTTP
import { Hono } from "npm:hono";
import { OpenAI } from "npm:openai";
const trendGPT = async (data, onData) => {
const openai = new OpenAI();
const chatStream = await openai.chat.completions.create({
messages: [
autoScroll = scrolledToBottom;
function updateContent(newContent) {
fullContent += newContent;
window.scrollTo(0, document.body.scrollHeight);
function processMermaidCharts(newContent) {
if (typeof mermaid === 'undefined') {
r2Proxy
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { email } from "https://esm.town/v/std/email?v=9";
import { verifyAPIAuth } from "https://esm.town/v/stevekrouse/verifyAPIAuth";
export async function r2Proxy(key, value, auth) {
let { handle } = await verifyAPIAuth(auth);
if (!handle)