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=1775&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"(4664ms)

myApimain.tsx1 match

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

women_and_powermain.tsx2 matches

@andreterron•Updated 1 year ago
9 const black = p.color(0, 0, 0, 255);
10 const white = p.color(255, 255, 255, 255);
11 function triangle(x: number, y: number) {
12 return Math.min(x, 1 - x) < y ? 0 : 1;
13 }
14 function fract(v: number) {
15 return v - Math.floor(v);
16 }

myApimain.tsx1 match

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

monitoringEventBusmain.tsx1 match

@tzq•Updated 1 year ago
1import { monitoringGitHubRepository } from "https://esm.town/v/tzq/monitoringGitHubRepository";
2
3export async function monitoringEventBus() {
4 monitoringGitHubRepository("tzq0301/eventbus");
5}

fetchTimelinemain.tsx1 match

@dpetrouk•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function fetchTimeline(url, options) {
4 // const tweetId = url.match(/\/(\d*)\?+/)[1];
5 // const tweetUrl =

getSampleDocumentsmain.tsx1 match

@webup•Updated 1 year ago
1export async function getSampleDocuments() {
2 const { Document } = await import("npm:langchain/document");
3 const docs = [

LoginPelotonmain.tsx1 match

@steveb1313•Updated 1 year ago
2import process from "node:process";
3
4export async function LoginPeloton(
5 req: express.Request,
6 res: express.Response,

GetPelotonUsermain.tsx1 match

@steveb1313•Updated 1 year ago
2import process from "node:process";
3
4export async function GetPelotonUser(
5 req: express.Request,
6 res: express.Response,

myApimain.tsx1 match

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

bulletJournalMonthmain.tsx1 match

@eczajk•Updated 1 year ago
1export async function bulletJournalMonth(month, year) {
2 const d = new Date();
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": "*",