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/$%7Bsuccess?q=function&page=2133&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 22582 results for "function"(1675ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

testmain.tsx1 match

@venjiang•Updated 1 year ago
1export function test() {
2 return new Date();
3}

stopDeparturesmain.tsx1 match

@kognise•Updated 1 year ago
5import { stopDeparturesCache } from "https://esm.town/v/kognise/stopDeparturesCache";
6
7export async function stopDepartures(globalStopId: string) {
8 const cached = stopDeparturesCache[globalStopId];
9 if (cached && Date.now() - cached.time < transitCacheExpiry) {

myApiAddmain.tsx1 match

@acmu•Updated 1 year ago
2let { nameList } = await import("https://esm.town/v/acmu/nameList");
3
4export async function myApiAdd(name) {
5 if (Array.isArray(nameList)) {
6 nameList.push(name);

myApimain.tsx1 match

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

myApimain.tsx1 match

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

fetchWikipediaContentmain.tsx1 match

@fab1an•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function fetchWikipediaContent(url) {
4 try {
5 const title = url.split("/wiki/")[1];

multiplyBy5main.tsx1 match

@flbrack•Updated 1 year ago
1export function multiplyBy5(value) {
2 return value * 5;
3}

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 1 month 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.