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/$%7Bart_info.art.src%7D?q=function&page=1697&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 18182 results for "function"(4327ms)

sendLarkMessagemain.tsx1 match

@tzq•Updated 1 year ago
2import process from "node:process";
3
4export async function sendLarkMessage(message) {
5 return fetch(process.env.larkRobotUrl, {
6 method: "POST",

myApimain.tsx1 match

@justy•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@joewalker•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

RateLimitDemomain.tsx1 match

@zzz•Updated 1 year ago
2
3// https://api.val.town/v1/express/zzz.RateLimitDemo
4export async function RateLimitDemo(req, res) {
5 const ip = req.get("true-client-ip") ??
6 req.get("x-forwarded-for")?.split(",")[0];

myApimain.tsx1 match

@rmkubik•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

chatmain.tsx1 match

@webup•Updated 1 year ago
23 });
24 const message = data.choices[0].message;
25 return message.function_call ? message.function_call : message.content;
26};

myApimain.tsx1 match

@chuyeow•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@deadlystudio•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

assertmain.tsx1 match

@jsejcksn•Updated 1 year ago
1import { AssertionError } from "https://esm.town/v/jsejcksn/AssertionError";
2
3export function assert(expr: unknown, msg?: string): asserts expr {
4 if (!expr) throw new AssertionError(msg);
5}

adcFeedmain.tsx1 match

@wilt•Updated 1 year ago
9the mp3 file.
10*/
11export async function adcFeed(req, res) {
12 const feedUrl = "http://adc.equalarea.com/feed/";
13 const feedXml = await fetchText(feedUrl);

getFileEmail4 file matches

@shouser•Updated 1 week ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 2 weeks ago
Simple functional CSS library for Val Town
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.