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/?q=function&page=1780&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 18147 results for "function"(3460ms)

myApimain.tsx1 match

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

gptmain.tsx1 match

@isfeng•Updated 1 year ago
1import { runVal } from "https://esm.town/v/std/runVal";
2
3export async function gpt(prompt) {
4 return await runVal("patrickjm.gpt3", {
5 prompt: prompt,

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"

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": "*",