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/image-url.jpg%20%22Image%20title%22?q=function&page=1851&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 18860 results for "function"(1768ms)

polygonEmailDailyTickerSummariesmain.tsx1 match

@rwev•Updated 1 year ago
2import { POLYGON_TICKERS } from "https://esm.town/v/rwev/POLYGON_TICKERS";
3
4export async function polygonEmailDailyTickerSummaries() {
5 return Promise.all(
6 POLYGON_TICKERS.map((ticker) =>

myApimain.tsx1 match

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

errorReportmain.tsx1 match

@estella0527•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3export async function errorReport(name) {
4 await email({ text: name });
5}

ackermannmain.tsx1 match

@nimalu•Updated 1 year ago
1export let ackermann = (x, y) => {
2 function ackermannInner(a, b) {
3 if (a == 0) {
4 return b + 1;

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}

getFileEmail4 file matches

@shouser•Updated 2 weeks 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": "*",