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=1779&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 18135 results for "function"(2888ms)

asyncSubscribemain.tsx1 match

@eric•Updated 1 year ago
3import { getEmails } from "https://esm.town/v/eric/getEmails";
4
5export let asyncSubscribe = async function() {
6 const s = await getEmails()
7 Array.from(arguments).forEach(x => s.add(x))

getEmailsmain.tsx1 match

@eric•Updated 1 year ago
1import { emails } from "https://esm.town/v/eric/emails";
2
3export let getEmails = function() {
4 return new Set(emails)
5}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

deleteTaskmain.tsx1 match

@ju2l0r•Updated 1 year ago
2import { set } from "https://esm.town/v/std/set?v=11";
3
4export async function deleteTask(id) {
5 await set(
6 "tasks",

doeMenuCalendarmain.tsx1 match

@tal•Updated 1 year ago
5import { currentDateValues } from "https://esm.town/v/tal/currentDateValues";
6
7export async function doeMenuCalendar(req: Request) {
8 const url = new URL(req.url);
9 const menuType = url.pathname.substring(1);

testHTMLmain.tsx1 match

@tr3ntg•Updated 1 year ago
1export function testHTML(req: express.Request, res: express.Response) {
2 res.send(
3 "<html lang='en'>" +

untitled_silverGoosemain.tsx1 match

@tr3ntg•Updated 1 year ago
3
4export const untitled_silverGoose = (async () => {
5 async function saveTickerToSupabase(request) {
6 const { createClient } = await import(
7 "https://esm.sh/@supabase/supabase-js@2"

myApimain.tsx1 match

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

myApimain.tsx1 match

@feynman•Updated 1 year ago
1export async function myApi(name) {
2 const got = await import("got");
3 const res = await got.post("http://34.87.31.113:3000/infer", {

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
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",