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=2153&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 22493 results for "function"(2474ms)

isValTownTeammain.tsx1 match

@stevekrouse•Updated 1 year ago
1import { valTownTeam } from "https://esm.town/v/stevekrouse/valTownTeam";
2
3export function isValTownTeam(handle) {
4 return valTownTeam.includes(handle.replace("@", ""));
5}

valTownBlogJSONmain.tsx1 match

@stevekrouse•Updated 1 year ago
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText";
2
3export async function valTownBlogJSON(): Promise<Blog[]> {
4 let { parse } = await import("npm:node-html-parser");
5 const text = await fetchText("https://blog.val.town");

myApimain.tsx1 match

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

myNamemain.tsx1 match

@jakesing•Updated 1 year ago
1export function myName() {
2 return "Jake Singer";
3}

incrementmain.tsx1 match

@devdoshi•Updated 1 year ago
1let { count } = await import("https://esm.town/v/devdoshi/count");
2
3export function increment() {
4 count += 1;
5 return count;

myApimain.tsx1 match

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

rulemain.tsx1 match

@cescyang•Updated 1 year ago
1export function rule(response) {
2 const requiredApps = [
3 "55a54008ad1ba589aa210d2629c1df41",

checkPollingStatusmain.tsx1 match

@cescyang•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function checkPollingStatus() {
4 const { default: axios } = await import("npm:axios");
5 const tasUrl =

testFetchmain.tsx1 match

@ImGqb•Updated 1 year ago
1export function testFetch(params: any) {
2 return params;
3}

parseFigmaURLmain.tsx1 match

@rodrigotello•Updated 1 year ago
1export function parseFigmaURL(url) {
2 const regex = /^https:\/\/www.figma.com\/file\/([^/]+)\/([^/?]+)(\?[^/#]+)?/;
3 const match = url.match(regex);

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.