Search
myApi
@shaparder
An interactive, runnable TypeScript val by shaparder
Script
export function myApi(name) {
return "hi " + name;
myApi
@impactvelocity
An interactive, runnable TypeScript val by impactvelocity
Script
export function myApi(name) {
return "hi " + name;
val_M2RuLeNjIx
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_M2RuLeNjIx(req) {
try {
// Execute the code directly and capture its result
myApi
@emma
An interactive, runnable TypeScript val by emma
Script
export function myApi(name) {
return "hi " + name;
runner
@ant
An interactive, runnable TypeScript val by ant
Script
export function runner(req, resp) {
console.log(req);
console.log(resp);
hnFollowApp
@bentossell
// Forked from @stevekrouse.hnFollowApp
Cron
import { email } from "https://esm.town/v/std/email?v=9";
import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts?v=18";
export default async function({ lastRunAt }) {
let posts = await hnLatestPosts({
query: "AI, LLM",
val_AEI5YxH6RC
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export default async function handler(req) {
try {
const result = await (async () => {
function fibonacci() {
let a = 0, b = 1;
while (b < 1000) {
![alby avatar](https://images.clerk.dev/oauth_github/img_2ScglFfv6nWJsW2LjZFvIl1gjKd.png)
myApi
@alby
An interactive, runnable TypeScript val by alby
Script
export function myApi(name) {
return "hi " + name;
![bhelx avatar](https://images.clerk.dev/oauth_github/img_2RMOkRRCL3ONLuRuHSt5hOsACBg.jpeg)
myApi
@bhelx
An interactive, runnable TypeScript val by bhelx
Script
export function myApi(name) {
return "hi " + name;
val_IqQ0SMdyJQ
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_IqQ0SMdyJQ(req) {
try {
// Execute the code directly
PhoenixProxy
@cephalization
https://simonwillison.net/2024/Aug/23/anthropic-dangerous-direct-browser-access/ THIS IS NO LONGER NECESSARY This Val will proxy anthropic HTTP requests from some frontend client, like langchain, so that you can utilize anthropic apis from the browser. Convert it to an HTTP val in order to use it (you may want to setup an ENV var / header to protect the endpoint with a secret key)
Script
const HOSTED_PHOENIX_BASE_URL = "https://llamatrace.com";
// const HOSTED_PHOENIX_BASE_URL = "https://app.phoenix.arize.com";
export default async function(req: Request) {
if (req.method === "OPTIONS") {
return new Response(null, {
![impedivity avatar](https://images.clerk.dev/oauth_github/img_2SP5lxtmSeo4Ov6qqipxXTDzu4h.png)
myApi
@impedivity
An interactive, runnable TypeScript val by impedivity
Script
export function myApi(name) {
return "hi " + name;
![sudojimmy avatar](https://images.clerk.dev/oauth_github/img_2SnQnnDBO6KwRREIhUIZXgZ5M0k.png)
myApi
@sudojimmy
An interactive, runnable TypeScript val by sudojimmy
Script
export function myApi(name) {
return "hi " + name;
![stevekrouse avatar](https://images.clerk.dev/uploaded/img_2PqHa2Gsy93xQrjh2w78Xu0cChW.jpeg)
val_town_client
@stevekrouse
* Create a Valtown API client
* @param options - Valtown API client options
* @param options.baseUrl - API base URL
* @param options.token - API token (if null, no token will be used, if undefined, the token from the environment variable "valtown" will be used)
Script
* @param options.baseUrl - API base URL
* @param options.token - API token (if null, no token will be used, if undefined, the token from the environment variable "valtown" will be used)
export default function createClient(options: {
baseUrl?: string;
token?: string | null | undefined;