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=1695&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 18182 results for "function"(3829ms)

nearestOpenStationmain.tsx1 match

@johnmuyskens•Updated 1 year ago
5 lon = +lon;
6 lat = +lat;
7 function dist(station) {
8 return Math.sqrt(
9 Math.pow(station.lat - lat, 2) + Math.pow(station.lon - lon, 2)

alphaVantageSymbolSearchmain.tsx1 match

@sean•Updated 1 year ago
12 const queryString = await toQueryString({
13 ...options,
14 function: "SYMBOL_SEARCH",
15 });
16

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

subscribemain.tsx1 match

@eric•Updated 1 year ago
3import { getEmails } from "https://esm.town/v/eric/getEmails";
4
5export function subscribe() {
6 const s = getEmails()
7 console.log(s)

oneifymain.tsx1 match

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

untitled6372775main.tsx1 match

@eric•Updated 1 year ago
3import { getEmails } from "https://esm.town/v/eric/getEmails";
4
5untitled6372775 = export async function subscribe() {
6 const s = await getEmails()
7 console.log(s)

myApimain.tsx1 match

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

preactWebAppmain.tsx1 match

@easrng•Updated 1 year ago
1export const preactWebApp = (function () {
2 type propType =
3 & {

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