Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run//%22$%7BviewSourceLink%7D/%22?q=function&page=1&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=function

Returns an array of strings in format "username" or "username/projectName"

Found 40465 results for "function"(763ms)

ratelimit4 file matches

@unkey•Updated 1 month ago
Rate limit your serverless functions

discordWebhook2 file matches

@stevekrouse•Updated 2 months ago
Helper function to send Discord messages
tuna

tuna9 file matches

@jxnblk•Updated 3 months ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouser•Updated 4 months ago
A helper function to build a file's email

AutomationFunction1 file match

@saradp•Updated 5 months ago

TwilioHelperFunctions

@vawogbemi•Updated 7 months ago

trmnl_plugins2 file matches

@camflan•Updated 7 months ago
Backend functions for TRMNL plugins

exampleTestFunctions1 file match

@willthereader•Updated 7 months ago

generateFunction1 file match

@wolf•Updated 8 months ago

functionExercise2 file matches

@willthereader•Updated 9 months ago

untitled-2952main.ts1 match

@xxxjjj•Updated 1 hour ago
1// Learn more: https://docs.val.town/vals/http/
2export default async function (req: Request): Promise<Response> {
3 const searchParams = new URL(req.url).searchParams;
4
11- **Schedule**: Every minute
12- **Threshold**: Sessions older than 60 seconds without heartbeat updates
13- **Function**: Marks stale sessions as not viewing and syncs to Notion
14
15**How Viewing Sessions Work**:
39- **Purpose**: Cleans up orphaned agent blobs
40- **Schedule**: Every minute
41- **Function**: Deletes agent blobs where the agent ID doesn't match the demo's
42 "Glimpse agents" relation in Notion
43- **Read-Only Notion**: Only reads Notion data, never modifies it
lost1991
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": "*",
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.