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=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 18128 results for "function"(2657ms)

myApimain.tsx1 match

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

whoNextmain.tsx1 match

@thedavis•Updated 1 year ago
1import { roundRobin } from "https://esm.town/v/thedavis/roundRobin";
2
3export function whoNext(query, arg) {
4 const m = {
5 "help": () =>

isEvenmain.tsx1 match

@lars_zucker•Updated 1 year ago
1export function isEven(number) {
2 return number % 2 === 0;
3}

doesAdamSuxmain.tsx1 match

@ooo_ooo_oooooh•Updated 1 year ago
1export function doesAdamSux() {
2 return "Yes stupid.";
3}

getWebLoaderBuildermain.tsx1 match

@webup•Updated 1 year ago
1import process from "node:process";
2
3export async function getWebLoaderBuilder(
4 url: string,
5 type: "webpage" | "github" | "audio" = "webpage",

moveBodymain.tsx1 match

@adamgonda•Updated 1 year ago
1import { moveHead } from "https://esm.town/v/adamgonda/moveHead";
2
3export function moveBody({ body, dir }) {
4 return body.map((part, index, arr) => {
5 if (index == 0) {

Viewmain.tsx1 match

@adamgonda•Updated 1 year ago
1export function View(width, height) {
2 return { width, height };
3}

chorus_datamain.tsx1 match

@hyperglitch•Updated 1 year ago
5// get and parse magnetometer data from https://services.swpc.noaa.gov/text/ace-magnetometer.txt
6// used for chorus art installation
7export async function chorus_data(auth) {
8 // check auth
9 if (auth != process.env.chorus_access) {

OfficeJSTestmain.tsx1 match

@steveb1313•Updated 1 year ago
1export async function OfficeJSTest(
2 req: express.Request,
3 res: express.Response,

myApimain.tsx1 match

@steveb1313•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
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": "*",