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?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 40461 results for "function"(758ms)

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

eventsCalendartmp.ts1 match

@roop•Updated 1 hour ago
3import { marked } from "npm:marked";
4
5export default async function (req: Request) {
6 const vt = new ValTown();
7 const val_id = "4cbcd1ae-8b94-11f0-b01a-0224a6c84d84";

eventsCalendarserver.ts4 matches

@roop•Updated 1 hour ago
2Use with bookmarklet:
3
4javascript: (function () {
5 var HOST = "https://extract-event-data.val.run";
6 var TOKEN = "<REPLACE>";
209});
210
211function update(stream: SSEStreamingApi, payload: any) {
212 return stream.writeSSE({
213 event: "update",
219}
220
221function complete(
222 stream: SSEStreamingApi,
223 state: "success" | "error",
232}
233
234function fail(
235 stream: SSEStreamingApi,
236 message?: string,
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.